12 #ifndef __KOME_CORE_INI_FILE_H__
13 #define __KOME_CORE_INI_FILE_H__
50 const char* getFilePath();
71 bool decryptPassword(
const char* pcPassword,
char* pcDecrypt,
const size_t szDecrypt );
81 bool encryptPassword(
const char* pcPassword,
char* pcEncrypt,
const size_t szEncrypt );
92 void setString(
const char* section,
const char* key,
const char* value );
103 const char* getString(
const char* section,
const char* key,
const char* defaultValue );
112 void setBool(
const char* section,
const char* key,
const bool value );
124 bool getBool(
const char* section,
const char* key,
const bool defaultValue );
133 void setInt(
const char* section,
const char* key,
const int value );
145 int getInt(
const char* section,
const char* key,
const int defaultValue );
154 void setDouble(
const char* section,
const char* key,
const double value );
166 double getDouble(
const char* section,
const char* key,
const double defaultValue );
174 void deleteValue(
const char* section,
const char* key );
184 Properties* getProperties(
const char* section );
192 unsigned int getNumberOfSections();
200 const char* getSection(
const unsigned int index );
208 unsigned int getNumberOfParameters(
const char* section );
218 const char* getParameterName(
const char* section,
const unsigned int index );
228 const char* getParameterValue(
const char* section,
const unsigned int index );
237 bool load(
const char* path );
245 bool save(
const char* path =
NULL );
253 static IniFile* loadIniFile(
const char* path );
261 static IniFile* getIniFile(
const char* path );
267 static void saveAllIniFiles();
306 IniFile* getFile(
const char* path );
326 #endif // __KOME_CORE_INI_FILE_H__
std::map< std::string, IniFile * > m_fileMap
keys and values management class
IniFile object management class.
std::map< std::string, Properties > m_sectionMap
interfaces of Properties class
ini file management class
std::vector< std::string > m_sections