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

55 lines
1.4 KiB
C++

/**
* @file WorkflowResourceMgr.h
* @brief 工作流资源管理
*
* @author 黄军
* @date 2011-9-14
*/
#ifndef PAI_FRAME_WORKFLOWENGINE_WORKFLOWRESOURCEMGR_H
#define PAI_FRAME_WORKFLOWENGINE_WORKFLOWRESOURCEMGR_H
#include <string>
#include "WorkflowCompiler.h"
#include "WorkflowConstants.h"
#include "ConfigureManager.h"
#include "StringUtils.h"
namespace pai {
namespace workflow {
struct SWorkflowResource {
std::string strTmpDir; //临时编译目录
std::string strWorkflowCppName; //生成的cpp文件名
std::string strTplRootDirPath; //生成cpp模板根目录路径
std::string strLibName; //动态库名
std::string strPropFilePath; //本地化语言文件路径
std::string strDeleteWorkflowTmpPath; //是否删除临时编译目录
std::string strJsonFileName; //工作流json文件名
std::string strJarTplPath; //工作流jar模板的路径
std::string strJarName; //工作流jar的文件名
SWorkflowResource():strTmpDir(), strWorkflowCppName(), strTplRootDirPath(), strLibName(),\
strPropFilePath(), strDeleteWorkflowTmpPath(), strJsonFileName(), strJarTplPath(), strJarName()
{}
};
class CWorkflowResourceMgr {
public:
CWorkflowResourceMgr();
virtual ~CWorkflowResourceMgr();
public:
//获取工作流提交临时目录
SWorkflowResource GetWorkflowResource() const { return this->m_Resource;}
private:
SWorkflowResource m_Resource;
};
typedef struct SWorkflowResource SWorkflowResource;
}
}
#endif