Main Page | Class List | File List | Class Members | File Members

demo_db.h

Go to the documentation of this file.
00001 00011 #ifndef DEMO_DB_H 00012 #define DEMO_DB_H 00013 00014 #include "demo_header.h" 00015 #include "socket.h" 00016 #include "database.h" 00017 00019 struct TagType { 00020 string Name; 00021 string Options; 00022 string Data; 00023 }; 00024 00025 00031 class demo_db { 00032 public: 00033 demo_db(); 00034 00035 ~demo_db(); 00036 bool Init(int argc, char* argv[]); 00037 void Execution(); 00038 void OpenDatabase(string name=""); 00039 void StartSocket(); 00040 void OpenFormatFiles(); 00041 00042 protected: 00043 string DBFilename; 00044 Database DB; 00045 int ServerPort; 00046 string ServerIP; 00047 Socket DBClientSocket; 00048 string InputBuffer; 00049 bool Exit; 00050 string PC2Format; 00051 string DS175Format; 00052 string command; 00053 bool prompt; 00054 protected: 00055 struct TagType ExtractTag(string& input); 00056 string ProcessRequest(struct TagType data); 00057 string GetOption(string options, string item); 00058 string Database_Lookup(string key); 00059 string FormatDS175(string data); 00060 string FormatPC2(string data); 00061 bool CommandParser(); 00062 bool ReadCommand(); 00063 00064 }; 00065 00066 #endif

Generated on Thu Jun 16 15:47:18 for pc_demo.kdevelop by doxygen 1.3.8