| 1587 | public: |
| 1588 | template <typename T, typename TPtr> |
| 1589 | static bool installCallback(const std::string& id, std::map<std::string, TPtr>* mapT) { |
| 1590 | if (mapT->find(id) == mapT->end()) { |
| 1591 | mapT->insert(std::make_pair(id, TPtr(new T()))); |
| 1592 | return true; |
| 1593 | } |
| 1594 | return false; |
| 1595 | } |
| 1596 | |
| 1597 | template <typename T, typename TPtr> |
| 1598 | static void uninstallCallback(const std::string& id, std::map<std::string, TPtr>* mapT) { |