ElementClr.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. #pragma once
  2. #include "Element.h"
  3. namespace OTSINTERFACE {
  4. using namespace System;
  5. using namespace OTSDATA;
  6. using namespace OTSMODEL;
  7. public ref class CElementClr : public Object
  8. {
  9. public:
  10. CElementClr();
  11. CElementClr(long a_nAtomNum); // constructor
  12. CElementClr(CString a_strName); // constructor
  13. CElementClr(CElementPtr); // copy constructor
  14. CElementClr(CElement*);
  15. ~CElementClr();
  16. !CElementClr();
  17. CElementPtr GetElementPtr();
  18. // valid element
  19. bool IsValid();
  20. // atomic number
  21. int GetAtomNum();
  22. bool SetAtomNum(int a_nAtomNum);
  23. // percentage
  24. double GetPercentage();
  25. bool SetPercentage(double a_dPercentage);
  26. // name
  27. String^ GetName();
  28. String^ GetName(long a_nAtomNum);
  29. // atomic weight
  30. double GetAtomWeight();
  31. double GetAtomWeight(long a_nAtomNum);
  32. // energy values
  33. double GetEnergyValueK();
  34. double GetEnergyValueK(long a_nAtomNum);
  35. double GetEnergyValueL();
  36. double GetEnergyValueL(long a_nAtomNum);
  37. double GetEnergyValueM();
  38. double GetEnergyValueM(long a_nAtomNum);
  39. bool CElementClr::GetEnergyValues(System::Collections::Generic::List<double>% a_listEnergy);
  40. bool CElementClr::GetEnergyValues(long a_nAtomNum, System::Collections::Generic::List<double> a_listEngergy);
  41. // atomic number validation
  42. bool IsValidAtomNum(long a_nAtomNum);
  43. protected:
  44. CElementPtr *m_LpElement;
  45. };
  46. typedef System::Collections::Generic::List<CElementClr^> CElementsListClr;
  47. }