droplet 1.1.0
A multipurpose Discord bot with the hacker in mind
Loading...
Searching...
No Matches
ResourceRepository.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <IRepository.hpp>
4
5#include "ResourceDTO.hpp"
6
7class ResourceRepository : public IRepository<ResourceDTO> {
8 public:
9 [[nodiscard]] bool create(const ResourceDTO& object) override;
10
11 [[nodiscard]] bool remove(size_t id) override;
12
13 [[nodiscard]] ResourceDTO get(size_t id) override;
14
15 [[nodiscard]] bool update(const ResourceDTO& object) override;
16};
Definition IRepository.hpp:5
Definition ResourceDTO.hpp:6
Definition ResourceRepository.hpp:7
bool update(const ResourceDTO &object) override
Definition ResourceRepository.cpp:39
bool remove(size_t id) override
Definition ResourceRepository.cpp:29
bool create(const ResourceDTO &object) override
Definition ResourceRepository.cpp:7
ResourceDTO get(size_t id) override
Definition ResourceRepository.cpp:57