DME.ConfigInfo.hpp 875 B

1234567891011121314151617181920212223242526272829303132333435
  1. #pragma once
  2. #include <string>
  3. #pragma warning (disable:4251)
  4. #ifdef DIOSDEVCollimatorDEVICEMOULD_EXPORTS
  5. #define _DIOSDEVCOLLIMATORDEVICEMOULD_API __declspec(dllexport)
  6. #else
  7. #define _DIOSDEVCOLLIMATORDEVICEMOULD_API __declspec(dllimport)
  8. #endif
  9. namespace DIOS::Dev::Detail::Collimator
  10. {
  11. class _DIOSDEVCOLLIMATORDEVICEMOULD_API ConfigInfo
  12. {
  13. public:
  14. ConfigInfo (const char* Key, const char* strType, const char* strAccess, const char* strRequired, const char* strDefaultValue);
  15. virtual ~ConfigInfo ();
  16. void SetList (const char* str);
  17. void SetRange (const char* strmin, const char* strmax);
  18. const char* GetCurrentValue ();
  19. void SetCurrentValue (const char* res);
  20. const char* GetDescription ();
  21. const char* GetKey ();
  22. private:
  23. std::string strConfKey;
  24. std::string resValue;
  25. std::string resDescription;
  26. };
  27. }