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>
- struct ClientVariables {
- bool MySQL;
- bool SaveFile;
- bool Log_save;
- unsigned people;
- std::string current;
- std::string current_path;
- std::stringstream logstream;
- std::vector<std::string> valuesList;
- std::vector<std::string> databaseList;
- std::vector<std::vector <std::string> > memberList;
- };
- class Client
- {
- protected:
- const std::string VERSION = "0.5";
- const std::string mainCONFIG = "FileDatabase.config";
- public:
- ClientVariables * var;
- void printError(const std::string &error) {
- const std::type_info &info = typeid(std::cout << this);
- std::cerr << error;
- var->logstream << info.name() << ": " << error;
- }
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement