1
0

config.h 528 B

12345678910111213141516171819202122232425
  1. #ifndef NULLSOFT_CONFIG_CONFIG_H
  2. #define NULLSOFT_CONFIG_CONFIG_H
  3. #include "../Agave/Config/api_config.h"
  4. #include <map>
  5. class Config : public api_config
  6. {
  7. public:
  8. static const char *getServiceName() { return "Agave Config API"; }
  9. static const GUID getServiceGuid() { return AgaveConfigGUID; }
  10. ifc_configgroup *GetGroup(GUID groupGUID);
  11. void RegisterGroup(ifc_configgroup *newGroup);
  12. typedef std::map<GUID, ifc_configgroup *> GroupList;
  13. GroupList groups;
  14. protected:
  15. RECVS_DISPATCH;
  16. };
  17. extern Config config;
  18. #endif