shepherd/src/Manager.h

38 lines
508 B
C
Raw Normal View History

2016-01-28 17:06:36 +00:00
/*
* Manager.h
*
* Created on: 28.01.2016
* Author: jedi
*/
#ifndef MANAGER_H_
#define MANAGER_H_
#include <iostream>
#include <regex>
#include <string>
#include "Database.h"
class Manager {
public:
Manager(std::string);
2018-09-05 19:51:13 +00:00
2016-01-28 17:06:36 +00:00
~Manager();
2018-09-05 19:51:13 +00:00
2016-01-28 17:06:36 +00:00
int add(std::string pattern, std::string passwd);
2018-09-05 19:51:13 +00:00
2016-01-28 17:06:36 +00:00
int create(std::string pattern);
2018-09-05 19:51:13 +00:00
2016-01-28 17:06:36 +00:00
int show();
2018-09-05 19:51:13 +00:00
2016-01-28 17:06:36 +00:00
int clear();
2018-09-05 19:51:13 +00:00
2016-01-28 17:06:36 +00:00
int get(std::string pattern);
2018-09-05 19:51:13 +00:00
int del(std::string pattern);
2016-01-28 17:06:36 +00:00
private:
Database db;
};
#endif /* MANAGER_H_ */