/** * @file ModuleParameterValue.h * @brief 模块参数值类 * * @author 黄军 * @date 2011-7-29 */ #ifndef PAI_FRAME_WORKFLOWENGINE_MODULEPARAMETERVALUE_H #define PAI_FRAME_WORKFLOWENGINE_MODULEPARAMETERVALUE_H #include #include namespace pai { namespace workflow { /** * @brief 工作流模块参数值类 * */ class CModuleParameterValue { private: /* * 参数名称 * 字段不能为空 * */ std::string m_strName; /* * 参数类型:"int", "float", "double", "string" * 字段不能为空 * */ std::string m_strType; /* * 参数值(可选,如果未赋值,将使用m_strDefault) * 字段不能为空 * */ std::string m_strValue; /* * 参数默认值 * 字段不能为空 * */ std::string m_strDefault; //参数最大值 std::string m_strMax; //参数最小值 std::string m_strMin; public: std::string GetName() const { return this->m_strName;} void SetName(const std::string& strName ) { this->m_strName = strName; } std::string GetType() const { return this->m_strType;} void SetType(const std::string& strType ) { this->m_strType = strType; } std::string GetValue() const { return this->m_strValue;} void SetValue(const std::string& strValue ) { this->m_strValue = strValue; } std::string GetDefault() const { return this->m_strDefault;} void SetDefault(const std::string& strDefault ) { this->m_strDefault = strDefault; } std::string GetMax() const { return this->m_strMax;} void SetMax(const std::string& strMax ) { this->m_strMax = strMax; } std::string GetMin() const { return this->m_strMin;} void SetMin(const std::string& strMin ) { this->m_strMin = strMin; } void Print(); public: CModuleParameterValue(); virtual ~CModuleParameterValue(); }; } } #endif