32 lines
592 B
C++
32 lines
592 B
C++
#pragma once
|
|
|
|
//#include <string>
|
|
#include <map>
|
|
|
|
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(); |