#pragma once #include "BSEImg.h" namespace OTSDATA { class __declspec(dllexport) CHoleBSEImg : public CBSEImg { protected: DECLARE_SERIAL(CHoleBSEImg) public: CHoleBSEImg(); CHoleBSEImg(CRect,int,CPoint); // constructor CHoleBSEImg(const CHoleBSEImg&); // copy constructor CHoleBSEImg(CHoleBSEImg*); // copy constructor CHoleBSEImg& operator=(const CHoleBSEImg&); // =operator ~CHoleBSEImg(); // sterilizations void Serialize(CArchive& ar); void Serialize(bool isStoring, tinyxml2::XMLDocument * classDoc, tinyxml2::XMLElement * rootNode); // HoleID int GetHoleID() { return m_nHoleID; } void SetHoleID(int a_nHoleID) { m_nHoleID = a_nHoleID; } // position CPoint GetPosition() { return m_poiPosition; } void SetPosition(CPoint a_poiPosition) { m_poiPosition = a_poiPosition; } protected: // cleanup void Cleanup(); // Initialization void Init(); // duplication void Duplicate(const CHoleBSEImg& a_oSource); protected: //hole name int m_nHoleID; //image position CPoint m_poiPosition; }; typedef std::shared_ptr __declspec(dllexport) CHoleBSEImgPtr; typedef std::vector __declspec(dllexport) CHoleBSEImgsList; }