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