#pragma once //#include #include class SLocalCommandDB { public: ~SLocalCommandDB() {}; void Load(); std::string Convert( const char* szCommand ) const; private: // SLocalCommandDB(); typedef std::map < std::string, std::string > mapCommand; typedef mapCommand::iterator imapCommand; typedef mapCommand::const_iterator cimapCommand; mapCommand m_mapLocalCommand; void Parse( const char* pContents, size_t sz ); friend SLocalCommandDB& GetLocalCommandDB(); public: static SLocalCommandDB* m_pThis; SLocalCommandDB(); }; SLocalCommandDB& GetLocalCommandDB();