File indexing completed on 2026-08-06 09:20:02
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021 #include <map>
0022 #include <string>
0023 #include <vector>
0024
0025 #ifndef EVTEXTGENERATORCOMMANDSTABLE_HH
0026 #define EVTEXTGENERATORCOMMANDSTABLE_HH
0027
0028 typedef std::map<std::string, std::string> Command;
0029 typedef std::vector<Command> GeneratorCommands;
0030 typedef std::map<std::string, GeneratorCommands> GlobalCommandMap;
0031
0032 class EvtExtGeneratorCommandsTable {
0033 public:
0034 static EvtExtGeneratorCommandsTable* getInstance();
0035
0036 void addCommand( std::string extGenerator, Command command )
0037 {
0038 _commandMap[extGenerator].push_back( command );
0039 }
0040 const GeneratorCommands& getCommands( std::string extGenerator )
0041 {
0042 return _commandMap[extGenerator];
0043 }
0044
0045 protected:
0046 EvtExtGeneratorCommandsTable();
0047 ~EvtExtGeneratorCommandsTable();
0048
0049 private:
0050 GlobalCommandMap _commandMap;
0051
0052 EvtExtGeneratorCommandsTable( const EvtExtGeneratorCommandsTable& ){};
0053 };
0054
0055 #endif