1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- #pragma once
- #include "Element.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;
- }
|