ElementChemistryClr.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #pragma once
  2. #include "Element.h"
  3. //#include "ElementChemistry.h"
  4. namespace OTSCLRINTERFACE {
  5. using namespace System;
  6. using namespace OTSDATA;
  7. public ref class CElementChemistryClr
  8. {
  9. public:
  10. CElementChemistryClr(); // constructor
  11. CElementChemistryClr(System::String^ a_strName, double a_dPercentage); // constructor
  12. CElementChemistryClr(CElementChemistryPtr); // copy constructor
  13. CElementChemistryClr(CElementChemistryClr^);
  14. CElementChemistryClr(CElementChemistry*);
  15. ~CElementChemistryClr();
  16. !CElementChemistryClr();
  17. CElementChemistryPtr GetElementChemistryPtr();
  18. // name
  19. System::String^ GetName();
  20. void SetName(System::String^ a_strName);
  21. // percentage
  22. double GetPercentage();
  23. void SetPercentage(double a_dPercentage);
  24. //ťńČĄÄŚśűąČ
  25. double GetMolarPercentage();
  26. //ťńČĄÔ­×ÓĘý
  27. int GetAtomNum(System::String^ a_strElementName);
  28. private:
  29. CElementChemistryPtr* m_LpElementChemistry;
  30. };
  31. typedef System::Collections::Generic::List<CElementChemistryClr^> CElementChemistryListClr;
  32. }