37 lines
508 B
C++
37 lines
508 B
C++
/*
|
|
* 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);
|
|
|
|
~Manager();
|
|
|
|
int add(std::string pattern, std::string passwd);
|
|
|
|
int create(std::string pattern);
|
|
|
|
int show();
|
|
|
|
int clear();
|
|
|
|
int get(std::string pattern);
|
|
|
|
int del(std::string pattern);
|
|
|
|
private:
|
|
Database db;
|
|
};
|
|
|
|
#endif /* MANAGER_H_ */
|