Let's make (git) history!
This commit is contained in:
20
database/categorydao.h
Normal file
20
database/categorydao.h
Normal file
@@ -0,0 +1,20 @@
|
||||
#ifndef CATEGORYDAO_H
|
||||
#define CATEGORYDAO_H
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <optional>
|
||||
#include "queryoption.h"
|
||||
#include "../category.h"
|
||||
|
||||
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;
|
||||
virtual std::vector<std::string> fetchMembers(std::string name, QueryOption o) = 0;
|
||||
};
|
||||
|
||||
#endif // CATEGORYDAO_H
|
Viittaa uudesa ongelmassa
Block a user