1234567891011121314151617181920212223242526272829303132333435 |
- #pragma once
- #include <string>
- #pragma warning (disable:4251)
- #ifdef DIOSDEVCollimatorDEVICEMOULD_EXPORTS
- #define _DIOSDEVCOLLIMATORDEVICEMOULD_API __declspec(dllexport)
- #else
- #define _DIOSDEVCOLLIMATORDEVICEMOULD_API __declspec(dllimport)
- #endif
- namespace DIOS::Dev::Detail::Collimator
- {
- class _DIOSDEVCOLLIMATORDEVICEMOULD_API ConfigInfo
- {
- public:
- ConfigInfo (const char* Key, const char* strType, const char* strAccess, const char* strRequired, const char* strDefaultValue);
- virtual ~ConfigInfo ();
- void SetList (const char* str);
- void SetRange (const char* strmin, const char* strmax);
- const char* GetCurrentValue ();
- void SetCurrentValue (const char* res);
- const char* GetDescription ();
- const char* GetKey ();
- private:
- std::string strConfKey;
- std::string resValue;
- std::string resDescription;
- };
- }
|