123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- #pragma once
- #include "Element.h"
- //#include "ElementChemistry.h"
- namespace OTSCLRINTERFACE {
- using namespace System;
- using namespace OTSDATA;
-
- public ref class CElementChemistryClr
- {
- public:
- CElementChemistryClr(); // constructor
- CElementChemistryClr(System::String^ a_strName, double a_dPercentage); // constructor
-
- CElementChemistryClr(CElementChemistryPtr); // copy constructor
-
- CElementChemistryClr(CElementChemistryClr^);
- CElementChemistryClr(CElementChemistry*);
- ~CElementChemistryClr();
- !CElementChemistryClr();
- CElementChemistryPtr GetElementChemistryPtr();
-
- // name
- System::String^ GetName();
- void SetName(System::String^ a_strName);
- // percentage
- double GetPercentage();
- void SetPercentage(double a_dPercentage);
- //ťńČĄÄŚśűąČ
- double GetMolarPercentage();
- //ťńČĄÔ×ÓĘý
- int GetAtomNum(System::String^ a_strElementName);
- private:
-
- CElementChemistryPtr* m_LpElementChemistry;
- };
- typedef System::Collections::Generic::List<CElementChemistryClr^> CElementChemistryListClr;
- }
|