Advertisement
Guest User

Untitled

a guest
Aug 29th, 2018
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.76 KB | None | 0 0
  1. #ifndef CLIENT_H
  2. #define CLIENT_H
  3.  
  4. #include <sstream>
  5. #include <vector>
  6. #include <iostream>
  7.  
  8. struct ClientVariables {
  9.     bool MySQL;
  10.     bool SaveFile;
  11.     bool Log_save;
  12.     unsigned people;
  13.     std::string current;
  14.     std::string current_path;
  15.     std::stringstream logstream;
  16.     std::vector<std::string> valuesList;
  17.     std::vector<std::string> databaseList;
  18.     std::vector<std::vector <std::string> > memberList;
  19. };
  20.  
  21. class Client
  22. {
  23.     protected:
  24.         const std::string VERSION = "0.5";
  25.         const std::string mainCONFIG = "FileDatabase.config";
  26.     public:
  27.         ClientVariables * var;
  28.         void printError(const std::string &error) {
  29.             const std::type_info &info = typeid(std::cout << this);
  30.             std::cerr << error;
  31.             var->logstream << info.name() << ": " << error;
  32.         }
  33. };
  34.  
  35. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement