ElementChemistryClr.h 1.0 KB

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