2018-11-03 17:12:20 +01:00
|
|
|
#ifndef CATEGORYDAO_H
|
|
|
|
#define CATEGORYDAO_H
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
#include <optional>
|
|
|
|
#include "queryoption.h"
|
|
|
|
#include "../category.h"
|
2022-04-03 11:11:28 +02:00
|
|
|
#include "../page.h"
|
2018-11-03 17:12:20 +01:00
|
|
|
class CategoryDao
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
CategoryDao();
|
|
|
|
virtual void save(const Category &c) = 0;
|
|
|
|
virtual std::vector<std::string> fetchList(QueryOption o) = 0;
|
|
|
|
virtual std::optional<Category> find(std::string name) = 0;
|
|
|
|
virtual void deleteCategory(std::string name) = 0;
|
2022-04-03 11:11:28 +02:00
|
|
|
virtual std::vector<Page> fetchMembers(std::string name, QueryOption o) = 0;
|
2022-10-24 15:16:59 +02:00
|
|
|
virtual ~CategoryDao() = default;
|
2018-11-03 17:12:20 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CATEGORYDAO_H
|