Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef CLIENT_H
- #define CLIENT_H
- #include <sstream>
- #include <vector>
- #include <iostream>
- class Client
- {
- protected:
- bool &MySQL;
- bool &SaveFile;
- bool &Log_save;
- unsigned &people;
- std::string ¤t;
- std::string ¤t_path;
- std::stringstream &logstream;
- std::vector<std::string> &valuesList;
- std::vector<std::string> &databaseList;
- std::vector<std::vector <std::string> > &memberList;
- const std::string VERSION = "0.5";
- const std::string mainCONFIG = "FileDatabase.config";
- public:
- Client(bool &MySQL_v, bool &SaveFile_v, bool &Log_save_v, unsigned &people_v,
- std::string ¤t_v, std::string ¤t_path_v,
- std::stringstream &logstream_v, std::vector<std::string> &valuesList_v,
- std::vector<std::string> &databaseList_v, std::vector<std::vector <std::string> > &memberList_v)
- : MySQL(MySQL_v), SaveFile(SaveFile_v), Log_save(Log_save_v), people(people_v), current(current_v), current_path(current_path_v),
- logstream(logstream), valuesList(valuesList_v), databaseList(databaseList_v), memberList(memberList_v) {}
- void printError(const std::string &error) {
- const std::type_info &info = typeid(std::cout << this);
- std::cerr << error;
- logstream << info.name() << ": " << error;
- }
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement