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

43 lines
1.3 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 CWorkflowFileChecker.h
* @brief class brief
*
* @author 霍吉东
* @date 2011-10-24
*/
#ifndef PAI_FRAME_WORKFLOWENGINE_WORKFLOWFILECHECKER_H
#define PAI_FRAME_WORKFLOWENGINE_WORKFLOWFILECHECKER_H
#include "WorkflowChecker.h"
#include "WorkflowConstants.h"
#include "ParameterItem.h"
#include <string>
namespace pai {
namespace workflow {
class CWorkflowFileChecker: public CWorkflowChecker
{
public:
CWorkflowFileChecker();
virtual ~CWorkflowFileChecker();
protected:
/**
* @brief 工作流对象的自我检验方法的具体实现
* @param[in] workflow待校验的工作流对象
* @param[out] strErrorMsg 返回的错误信息所有模块检验通过返回true
*/
virtual bool StepCheck(CWorkFlowFile* workflow,std::string& strErrorMsg);
private:
bool CheckModuleInfo(CModuleInformation* modInfo,std::string& strErrorMsg);
bool CheckModuleConnect(CModuleConnection* connect,std::string& strErrorMsg);
bool IsNotValue(const std::string& str);
bool IsNotValue(int num);
bool CheckStatisApplyWorkflow(CWorkFlowFile* workflow, std::string& stErrorMsg);
bool CheckSerialWorkflow(CWorkFlowFile* workflow, std::string& strErrorMsg);
bool CheckRealTimeWorkflow(CWorkFlowFile* workflow, std::string& strErrorMsg);
};
}
}
#endif