ElementChemistryClr.h 995 B

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