ifc_configgroup.h 816 B

123456789101112131415161718192021222324252627282930313233343536
  1. #ifndef NULLSOFT_AGAVE_IFC_CONFIGGROUP_H
  2. #define NULLSOFT_AGAVE_IFC_CONFIGGROUP_H
  3. #include <bfc/dispatch.h>
  4. #include <bfc/platform/types.h>
  5. #include <bfc/platform/guid.h>
  6. #include "ifc_configitem.h"
  7. class ifc_configgroup : public Dispatchable
  8. {
  9. protected:
  10. ifc_configgroup() {}
  11. ~ifc_configgroup() {}
  12. public:
  13. ifc_configitem *GetItem( const wchar_t *name );
  14. GUID GetGUID();
  15. DISPATCH_CODES
  16. {
  17. IFC_CONFIGGROUP_GETITEM = 10,
  18. IFC_CONFIGGROUP_GETGUID = 20,
  19. };
  20. };
  21. inline ifc_configitem *ifc_configgroup::GetItem(const wchar_t *name)
  22. {
  23. return _call(IFC_CONFIGGROUP_GETITEM, (ifc_configitem *)0, name);
  24. }
  25. inline GUID ifc_configgroup::GetGUID()
  26. {
  27. return _call(IFC_CONFIGGROUP_GETGUID, (GUID)INVALID_GUID);
  28. }
  29. #endif