droplet 1.1.0
A multipurpose Discord bot with the hacker in mind
Loading...
Searching...
No Matches
IRepository.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <cstddef>
4template <typename DTO>
6 public:
7 [[nodiscard]] virtual bool create(const DTO& object) = 0;
8
9 [[nodiscard]] virtual bool remove(size_t index) = 0;
10
11 [[nodiscard]] virtual DTO get(size_t index) = 0;
12
13 [[nodiscard]] virtual bool update(const DTO& object) = 0;
14};
Definition IRepository.hpp:5
virtual bool create(const DTO &object)=0
virtual DTO get(size_t index)=0
virtual bool remove(size_t index)=0
virtual bool update(const DTO &object)=0