| SourceCode/Bond/Servo/CGlass.h | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| SourceCode/Bond/Servo/CJobDataS.cpp | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| SourceCode/Bond/Servo/CJobDataS.h | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
SourceCode/Bond/Servo/CGlass.h
@@ -2,6 +2,10 @@ #include "Context.h" #include <string> #include "CPath.h" #include "CJobDataA.h" #include "CJobDataB.h" #include "CJobDataC.h" #include "CJobDataS.h" namespace SERVO { SourceCode/Bond/Servo/CJobDataS.cpp
@@ -4,6 +4,9 @@ namespace SERVO { #define JOBDATAS_SIZE (256 * 2) #define ENABLE_JOBDATAS_RAWDATA TRUE CJobDataS::CJobDataS() { m_nCassetteSequenceNo = 0; @@ -26,11 +29,19 @@ m_nSourceSlotNo = 0; m_nTargetPortNo = 0; m_nTargetSlotNo = 0; m_pRawData = nullptr; if (ENABLE_JOBDATAS_RAWDATA) { m_pRawData = new char[JOBDATAS_SIZE]; serialize(m_pRawData, JOBDATAS_SIZE); } } CJobDataS::~CJobDataS() { if (m_pRawData != nullptr) { delete[] m_pRawData; m_pRawData = nullptr; } } int CJobDataS::getCassetteSequenceNo() @@ -541,6 +552,12 @@ index += sizeof(short); // 缓存原始数据 if (m_pRawData != nullptr) { memcpy(m_pRawData, pszBuffer, JOBDATAS_SIZE); } return 256 * 2; } SourceCode/Bond/Servo/CJobDataS.h
@@ -103,6 +103,9 @@ int m_nSourceSlotNo; int m_nTargetPortNo; int m_nTargetSlotNo; private: char* m_pRawData; }; }