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