logplus/Workflow/WFEngine/WorkflowEngine/include/WorkflowFileChecker.h

43 lines
1.3 KiB
C
Raw Normal View History

2026-01-16 17:18:41 +08:00
/**
* @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