103 lines
3.1 KiB
C++
103 lines
3.1 KiB
C++
/*
|
|
* SModuleSource.h
|
|
*
|
|
* Created on: Jul 29, 2011
|
|
* Author: dev
|
|
*/
|
|
|
|
#ifndef PAI_FRAME_WORKFLOWENGINE_SSTATEMENTS_H
|
|
#define PAI_FRAME_WORKFLOWENGINE_SSTATEMENTS_H
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
#include "ParameterItem.h"
|
|
|
|
namespace pai {
|
|
namespace workflow {
|
|
|
|
typedef struct SIncludeStatement SIncludeStatement;
|
|
typedef struct SCreationStatement SCreationStatement;
|
|
typedef struct SSettingParameterValueStatement SSettingParameterValueStatement;
|
|
typedef struct SAddingNextModuleStatement SAddingNextModuleStatement;
|
|
typedef struct SSettingInputBufferStatement SSettingInputBufferStatement;
|
|
typedef struct SSettingOutputBufferStatement SSettingOutputBufferStatement;
|
|
typedef struct SNewBufferStatement SNewBufferStatement;
|
|
typedef struct SModuleParameterStatment SModuleParameterStatment;
|
|
typedef struct SNewParamItemStatment SNewParamItemStatment;
|
|
typedef struct SAddParamItemStatment SAddParamItemStatment;
|
|
|
|
/*头文件地址例如模块头文件地址*/
|
|
struct SIncludeStatement {
|
|
std::string header_file;
|
|
SIncludeStatement():header_file(){}
|
|
};
|
|
|
|
struct SCreationStatement {
|
|
std::string class_name;
|
|
std::string variable_name;
|
|
SCreationStatement():class_name(), variable_name(){}
|
|
};
|
|
|
|
/*NewParamItem*/
|
|
struct SNewParamItemStatment {
|
|
std::string param_item_type;
|
|
std::string param_item_variable_name;
|
|
SNewParamItemStatment():param_item_type(), param_item_variable_name(){}
|
|
};
|
|
/*添加ParamItem到树形模块参数集合中*/
|
|
struct SAddParamItemStatment {
|
|
std::string param_item_parent_node;
|
|
std::string param_item_child_node;
|
|
pai::module::CParameterItem paramitem;
|
|
SAddParamItemStatment():param_item_parent_node(), param_item_child_node(), paramitem(){}
|
|
};
|
|
|
|
/*树形模块参数构造*/
|
|
struct SModuleParameterStatment {
|
|
std::vector<SNewParamItemStatment> newItems;
|
|
std::vector<SAddParamItemStatment> addItems;
|
|
SModuleParameterStatment():newItems(), addItems(){}
|
|
};
|
|
|
|
/* 定义参数信息包括参数实例,参数名,参数值*/
|
|
struct SSettingParameterValueStatement {
|
|
std::string parameter_instance;
|
|
std::string name;
|
|
std::string value;
|
|
SSettingParameterValueStatement():parameter_instance(), name(), value(){}
|
|
};
|
|
|
|
/*用于记录相关模块信息*/
|
|
struct SAddingNextModuleStatement {
|
|
std::string source_module;
|
|
std::string dest_module;
|
|
SAddingNextModuleStatement():source_module(), dest_module(){}
|
|
};
|
|
/*设置缓冲区信息,包含模块地址,输入端口号,以及缓冲区变量*/
|
|
struct SSettingInputBufferStatement {
|
|
std::string source_module;
|
|
std::string input_port;
|
|
std::string dest_module;
|
|
std::string output_port;
|
|
SSettingInputBufferStatement():source_module(), input_port(), dest_module(), output_port(){}
|
|
};
|
|
|
|
/*创建缓冲区信息*/
|
|
struct SNewBufferStatement {
|
|
//new buff时变量的名称
|
|
std::string buff_variable_name;
|
|
SNewBufferStatement():buff_variable_name(){}
|
|
};
|
|
|
|
/*设置输出缓冲区信息,包括模块地址,输出端口号,输出缓冲区变量*/
|
|
struct SSettingOutputBufferStatement {
|
|
std::string module;
|
|
std::string output_port;
|
|
std::string buff_variable_name;
|
|
SSettingOutputBufferStatement():module(), output_port(), buff_variable_name(){}
|
|
};
|
|
|
|
}
|
|
}
|
|
#endif
|