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

49 lines
812 B
C++

/*
* CTempDataFormat.h
*
* Created on: Jul 28, 2011
* Author: dev
*/
#ifndef PAI_FRAME_WORKFLOWENGINE_CTEMPDATAFORMAT_H
#define PAI_FRAME_WORKFLOWENGINE_CTEMPDATAFORMAT_H
#include <string>
using namespace std;
namespace pai {
namespace workflow {
enum TempDataType{
SEIS_DATA = 0, //地震数据
VEL_SCAN_DATA = 1, //常速扫描数据
SPLIT_DATA = 2 //StatJob产生的split数据
};
class CTempDataFormat
{
public:
CTempDataFormat();
CTempDataFormat(const string &file, TempDataType type);
static CTempDataFormat Deserialize(string &str);
static string Serialize(CTempDataFormat &format);
string& GetFile();
void SetFile(const string &file);
TempDataType GetTempDataType();
void SetTempDataType(TempDataType type);
private:
string m_File;
TempDataType m_Type;
};
}
}
#endif