IGLib  1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
ChemicalCompoundDto Class Reference

DTO (Data Transfer Objects) for chemical element properties (the ChemicalCompound class). Used to store a state of a chemical element properties object. More...

+ Inheritance diagram for ChemicalCompoundDto:
+ Collaboration diagram for ChemicalCompoundDto:

Public Member Functions

 ChemicalCompoundDto ()
 Default constructor, sets IsNull to true. More...
 
 ChemicalCompoundDto (ChemicalCompound elementProperties)
 Constructor, prepares the current DTO for storing a specific chemical element properties object (type ChemicalCompound). More...
 
override ChemicalCompound CreateObject ()
 Creates and returns a new chemical compound. More...
 

Protected Member Functions

override void CopyFromPlain (ChemicalCompound compound)
 Copies data to the current DTO from a chemical compound object. More...
 
override void CopyToPlain (ref ChemicalCompound compound)
 Copies data from the current DTO to a chemical compound object. More...
 

Private Attributes

int NumElements
 
ChemicalElementQuantityDto[] Elements
 

Detailed Description

DTO (Data Transfer Objects) for chemical element properties (the ChemicalCompound class). Used to store a state of a chemical element properties object.

Template Parameters
ChemicalCompoundTypeType parameter specifying the specific chemical element type for which concrete DTO is designed.

$A Igor Nov09;

Constructor & Destructor Documentation

ChemicalCompoundDto.ChemicalCompoundDto ( )
inline

Default constructor, sets IsNull to true.

ChemicalCompoundDto.ChemicalCompoundDto ( ChemicalCompound  elementProperties)
inline

Constructor, prepares the current DTO for storing a specific chemical element properties object (type ChemicalCompound).

Parameters
lengthElement properties object whose data is stored in the current DTO.

Member Function Documentation

override ChemicalCompound ChemicalCompoundDto.CreateObject ( )
inline

Creates and returns a new chemical compound.

Referenced by CopyToPlain().

override void ChemicalCompoundDto.CopyFromPlain ( ChemicalCompound  compound)
inlineprotected

Copies data to the current DTO from a chemical compound object.

Parameters
compoundChemical compound object from which data is copied.

References IG.Physics.ChemicalCompound.GetElements(), and IG.Physics.ChemicalCompound.NumElements.

override void ChemicalCompoundDto.CopyToPlain ( ref ChemicalCompound  compound)
inlineprotected

Copies data from the current DTO to a chemical compound object.

Parameters
compoundChemical compound object that data is copied to.

References CreateObject(), and IG.Physics.ChemicalElementDtoBase< ChemicalElementType >.CreateObject().

Member Data Documentation

int ChemicalCompoundDto.NumElements
private
ChemicalElementQuantityDto [] ChemicalCompoundDto.Elements
private

The documentation for this class was generated from the following file: