#pragma once #include "Element.h" //#include "ElementChemistry.h" namespace OTSCLRINTERFACE { using namespace System; using namespace OTSDATA; public ref class CElementChemistryClr { public: CElementChemistryClr(); // constructor CElementChemistryClr(System::String^ a_strName, double a_dPercentage); // constructor CElementChemistryClr(CElementChemistryPtr); // copy constructor CElementChemistryClr(CElementChemistryClr^); CElementChemistryClr(CElementChemistry*); ~CElementChemistryClr(); !CElementChemistryClr(); CElementChemistryPtr GetElementChemistryPtr(); // name System::String^ GetName(); void SetName(System::String^ a_strName); // percentage double GetPercentage(); void SetPercentage(double a_dPercentage); //获取摩尔比 double GetMolarPercentage(); //获取原子数 int GetAtomNum(System::String^ a_strElementName); private: CElementChemistryPtr* m_LpElementChemistry; }; typedef System::Collections::Generic::List CElementChemistryListClr; }