#pragma once #include "DomainClr.h" #include "Hole.h" namespace OTSCLRINTERFACE { using namespace System; using namespace System::Drawing; using namespace OTSDATA; public ref class CHoleClr { public: CHoleClr(); // constructor CHoleClr(String^ a_strName, int a_nShape, System::Drawing::Rectangle^ a_rectDomain); // constructor CHoleClr(CHolePtr); CHoleClr(CHole*); ~CHoleClr(); !CHoleClr(); CHolePtr GetHolePtr(); // get and set hole name String^ GetName(); void SetName(String^ a_strName); int GetShape() { return (int)m_Hole->get()->GetShape(); } System::Drawing::Rectangle GetRectDomain(); private: CHolePtr * m_Hole; }; typedef System::Collections::Generic::List CHoleListClr; }