XJob(ulong id)
| 原型 | XJob(ulong id) |
| 描述 | 构造函数 |
| 参数 | [i]ulong id: 作业ID |
| 返回值 | 无 |
void addStep(const XAnalysis * step)
| 原型 | void addStep(const XAnalysis * step) |
| 描述 | 添加分析步 |
| 参数 | [i]const XAnalysis * step: 分析步指针 |
| 返回值 | 无 |
void insertStep(const XAnalysis * step, int index = -1)
| 原型 | void insertStep(const XAnalysis * step, int index = -1) |
| 描述 | 将分析步插入到序列的第index个分析步之前 |
| 参数 | [i]const XAnalysis * step: 待插入的分析步 [i] int index = -1: 插入位置 |
| 返回值 | 无 |
void removeStep(int index)
| 原型 | void removeStep(int index) |
| 描述 | 从序列中移除指定位置的分析步 |
| 参数 | [i]int index: 移除位置 |
| 返回值 | 无 |
int getStepIndex(const XAnalysis * step) const
| 原型 | int getStepIndex(const XAnalysis * step) const |
| 描述 | 获取序列中指定分析步的序号 |
| 参数 | [i]const XAnalysis * step: 分析步 |
| 返回值 | 分析步的序号 |
const XAnalysis * getStep(int index) const
| 原型 | const XAnalysis * getStep(int index) const |
| 描述 | 获取序列中指定位置的分析步 |
| 参数 | [i]int index: 分析步位置 |
| 返回值 | 指定位置的分析步 |
int getStepCount() const
| 原型 | int getStepCount() const |
| 描述 | 获取序列中分析步数目 |
| 参数 | 无 |
| 返回值 | 序列中分析步的总数 |
void clear()
| 原型 | void clear() |
| 描述 | 清空序列 |
| 参数 | 无 |
| 返回值 | 无 |
virtual void write(XBinaryIO * io)
| 原型 | virtual void write(XBinaryIO * io) |
| 描述 | 将作业数据写入到二进制文件中 |
| 参数 | [i]XBinaryIO * io: 二进制文件句柄 |
| 返回值 | 无 |
ErrorCode read(XBinaryIO * io, AnalysisManager * mgr)
| 原型 | ErrorCode read(XBinaryIO * io, AnalysisManager * mgr) |
| 描述 | 从二进制文件中读取作业数据 |
| 参数 | [i]XBinaryIO * io: 二进制文件句柄 [i] AnalysisManager * mgr: 分析步管理容器 |
| 返回值 | 成功读取则返回true,否则返回false |