00001 00014 #ifndef _cFileSqlString_h 00015 #define _cFileSqlString_h 00016 00017 #include "TypesDef.h" 00018 #include "cFile.h" 00019 00020 #include <string> 00021 #include <list> 00022 using std::string; 00023 using std::list; 00024 00025 class cFileSqlString 00026 { 00027 public: 00029 cFileSqlString(void); 00030 00032 ~cFileSqlString(void); 00033 00035 const string GetTable(void); 00036 00041 const string GetGeneralInfoOf(const string sCategory); 00042 00043 const string GetData(const string sMd4); 00044 00045 const string GetInsertEntry2File(cFile* File); 00046 00047 const string GetUpdateFile(cFile* pFile); 00048 00049 const string GetMd4FromFile(const string sMd4); 00050 00051 const string GetCategoryFromFile(const string sMd4); 00052 00053 const string GetDelete(const string sMd4); 00054 00056 const list<string> GetAllColNames(void); 00057 00058 protected: 00059 00060 private: 00061 //*************************************** 00062 // Note: Get functions ONLY, 00063 // no Set functions. 00064 // These are constant functions. 00065 // View GetTable() for their ORDER. 00066 //*************************************** 00067 const string GetFile (void) const; 00068 00069 const string GetMd4 (void) const; 00070 const string GetFilename (void) const; 00071 const string GetCdNum (void) const; 00072 const string GetPriority (void) const; 00073 const string GetAvailability(void) const; 00074 const string GetSize (void) const; 00075 const string GetDate (void) const; 00076 const string GetDone (void) const; 00077 const string GetCategory (void) const; 00078 const string GetStoring (void) const; 00079 const string GetComment (void) const; 00080 const string GetPoster (void) const; 00081 }; 00082 00083 #endif // _cFileSqlString_h