| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- #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<double>% a_listEnergy);
- bool CElementClr::GetEnergyValues(long a_nAtomNum, System::Collections::Generic::List<double> a_listEngergy);
- // atomic number validation
- bool IsValidAtomNum(long a_nAtomNum);
- protected:
- CElementPtr *m_LpElement;
- };
- typedef System::Collections::Generic::List<CElementClr^> CElementsListClr;
- }
|