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