#pragma once #include "Element.h" namespace OTSINTERFACE { using namespace System; using namespace OTSDATA; using namespace OTSMODEL; public ref class CElementClr : public Object { public: CElementClr(); CElementClr(long a_nAtomNum); // constructor CElementClr(CString a_strName); // constructor CElementClr(CElementPtr); // copy constructor CElementClr(CElement*); ~CElementClr(); !CElementClr(); CElementPtr GetElementPtr(); // valid element bool IsValid(); // atomic number int GetAtomNum(); bool SetAtomNum(int a_nAtomNum); // percentage double GetPercentage(); bool SetPercentage(double a_dPercentage); // name String^ GetName(); String^ GetName(long a_nAtomNum); // atomic weight double GetAtomWeight(); double GetAtomWeight(long a_nAtomNum); // energy values double GetEnergyValueK(); double GetEnergyValueK(long a_nAtomNum); double GetEnergyValueL(); double GetEnergyValueL(long a_nAtomNum); double GetEnergyValueM(); double GetEnergyValueM(long a_nAtomNum); bool CElementClr::GetEnergyValues(System::Collections::Generic::List% a_listEnergy); bool CElementClr::GetEnergyValues(long a_nAtomNum, System::Collections::Generic::List a_listEngergy); // atomic number validation bool IsValidAtomNum(long a_nAtomNum); protected: CElementPtr *m_LpElement; }; typedef System::Collections::Generic::List CElementsListClr; }