logplus/Workflow/WFEngine/WorkflowEngine/include/ModuleParameterValue.h
2026-01-16 17:18:41 +08:00

79 lines
1.7 KiB
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* @file ModuleParameterValue.h
* @brief 模块参数值类
*
* @author 黄军
* @date 2011-7-29
*/
#ifndef PAI_FRAME_WORKFLOWENGINE_MODULEPARAMETERVALUE_H
#define PAI_FRAME_WORKFLOWENGINE_MODULEPARAMETERVALUE_H
#include <iostream>
#include <string>
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