#ifndef __CONFIG_PARSER__ #define __CONFIG_PARSER__ #include #include #include namespace XEngine { using namespace std; class CConfigParser { public: CConfigParser(); ~CConfigParser(); public: bool Parser(const string & cFilePath); bool HasSection(const string & cSection); int GetSections(vector & vecSections); int GetKeys(const string & strSection, vector & vec); const map * GetSectionConfig(const string & cSection); string GetConfig(const string & cSection, const string & cKey); string GetDefConfig(const string & cSection, const string & cKey, const string & cDef); private: map *> m_mpConfigData; }; } #endif //__CONFIG_PARSER__