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

43 lines
1.2 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 ModuleChecher.h
* @brief 实现模块的自我检测,以及模块中是否有串行和并行混合模块
*
* @author 霍吉东
* @date 2011-10-24
*/
#ifndef PAI_FRAME_WORKFLOWENGINE_MODULECHECKER_H
#define PAI_FRAME_WORKFLOWENGINE_MODULECHECKER_H
#include "WorkflowChecker.h"
#include "WorkflowConstants.h"
namespace pai {
namespace workflow {
class PAI_WORKFLOWENGINE_EXPORT CModuleChecher :public CWorkflowChecker
{
public:
CModuleChecher(bool bBackGroundValidate = true);
virtual ~CModuleChecher();
protected:
/**
* @brief 模块自我检验方法的具体实现
* @param[in] workflow待校验的工作流对象
* @param[out] strErrorMsg 返回的错误信息所有模块检验通过返回true
*/
virtual bool StepCheck(CWorkFlowFile* workflow,std::string& strErrorMsg);
bool m_bBackGroundValidate;
private:
/**
* @brief 校验工作流的多波参数,如果是多波工作流,在常规模块至少选中一个分量
* @param[in] workflow 待校验的工作流对象
* @param[in] pModule 待校验的模块
* @return 满足校验要求则返回true否则返回false
*/
bool ValidateMultiwaveParams(CWorkFlowFile *workflow, CModule *pModule);
};
}
}
#endif