#pragma once #include "stdafx.h" #include "../OTSControl/SEMCommonConst.h" namespace OTSController { #pragma pack(push, 1) struct OxfordChord { long m_nX; long m_nY; long m_nLength; OxfordChord() : m_nX(0) , m_nY(0) , m_nLength(0) { } /* ~OxfordChord() { }*/ void operator=(const OxfordChord& other) { m_nX = other.m_nX; m_nY = other.m_nY; m_nLength = other.m_nLength; } }; struct OxfordXrayData { long m_nPosX; long m_nPosY; long m_pXrayData[(unsigned int)EDSConst::XANA_CHANNELS]; unsigned char m_strElementResult[1024]; OxfordChord m_ChordList[1024]; long m_nChordNum; long m_nPixelNum; OxfordXrayData() : m_nPosX(0) , m_nPosY(0) , m_nChordNum(0) { } /* ~OxfordXrayData() { }*/ void operator=(const OxfordXrayData& other) { m_nPosX = other.m_nPosX; m_nPosY = other.m_nPosY; m_nChordNum = other.m_nChordNum; memcpy(m_strElementResult, other.m_strElementResult,1024); memcpy(m_pXrayData, other.m_pXrayData, sizeof(long) * (unsigned int)EDSConst::XANA_CHANNELS); memcpy(m_ChordList, other.m_ChordList, sizeof(OxfordChord) * 1024); } }; const int OTS_XRAY_CHANNEL = 2000; enum class OxfordWrapperErrorCode { SUCCEED = 1, COMMAND_FAILED = -1, CREATE_CONTROLLER_FAILED = -2, CONTROLLER_INIT_FAILED = -3, CONTROLLER_NOT_CONNECTED = -4, NO_VALID_CONTROLLER = -5, }; #pragma pack(pop) } // namespace Controller