55 if (mapObjectCreator.find(
id) != mapObjectCreator.end()) {
59 mapObjectCreator.insert(std::pair<std::string, CreateSimulatorFunctionPointer>(
id, &createTheSimulator<C>));
60 mapObjectCreator2.insert(std::pair<std::string, CreateSimulatorFunctionPointer2>(
id, &createTheSimulator2<C>));
61 mapInteractive.insert(std::pair<std::string, bool>(
id, isInteractive));
63 interactiveSimulators.push_back(
id);
66 nonInteractiveSimulators.push_back(
id);
73 bool isRegistered(std::string
id);
82 int getNumberOfInteractiveSimulators();
85 int getNumberOfNonInteractiveSimulators();
88 std::string getInteractiveSimulator(
const unsigned int index);
91 std::string getNonInteractiveSimulator(
const unsigned int index);
94 bool isInteractive(std::string
id);
105 std::map<std::string, CreateSimulatorFunctionPointer> mapObjectCreator;
108 std::map<std::string, CreateSimulatorFunctionPointer2> mapObjectCreator2;
121 return new C(monitoringManager);
135 return new C(monitoringManager, file);
139 std::map<std::string, bool> mapInteractive;
142 std::vector<std::string> interactiveSimulators;
145 std::vector<std::string> nonInteractiveSimulators;
bool registerClass(std::string id, bool isInteractive)
Register a class into the map A registered class can be created using createMonitorDisplay()
Definition SimulatorFactory.h:54