Changeset View
Changeset View
Standalone View
Standalone View
EvtGenBase/EvtExtGeneratorCommandsTable.hh
Show All 29 Lines | |||||
typedef std::map<std::string, GeneratorCommands> GlobalCommandMap; | typedef std::map<std::string, GeneratorCommands> GlobalCommandMap; | ||||
class EvtExtGeneratorCommandsTable { | class EvtExtGeneratorCommandsTable { | ||||
public: | public: | ||||
static EvtExtGeneratorCommandsTable* getInstance(); | static EvtExtGeneratorCommandsTable* getInstance(); | ||||
void addCommand( std::string extGenerator, Command command ) | void addCommand( std::string extGenerator, Command command ) | ||||
{ | { | ||||
_commandMap[extGenerator].push_back( command ); | m_commandMap[extGenerator].push_back( command ); | ||||
} | } | ||||
const GeneratorCommands& getCommands( std::string extGenerator ) | const GeneratorCommands& getCommands( std::string extGenerator ) | ||||
{ | { | ||||
return _commandMap[extGenerator]; | return m_commandMap[extGenerator]; | ||||
} | } | ||||
protected: | protected: | ||||
EvtExtGeneratorCommandsTable(); | EvtExtGeneratorCommandsTable(); | ||||
~EvtExtGeneratorCommandsTable(); | ~EvtExtGeneratorCommandsTable(); | ||||
private: | private: | ||||
GlobalCommandMap _commandMap; | GlobalCommandMap m_commandMap; | ||||
EvtExtGeneratorCommandsTable( const EvtExtGeneratorCommandsTable& ){}; | EvtExtGeneratorCommandsTable( const EvtExtGeneratorCommandsTable& ){}; | ||||
}; | }; | ||||
#endif | #endif |