mil::tatrc::physiology::datamodel::SubstanceFractionData Class Reference

Class corresponding to the SubstanceFractionData schema type. More...

#include <Substance.hxx>

Inheritance diagram for mil::tatrc::physiology::datamodel::SubstanceFractionData:

Public Member Functions

virtual ~SubstanceFractionData ()
 Destructor. More...
 

FractionAmount

Accessor and modifier functions for the FractionAmount required element.

typedef ::mil::tatrc::physiology::datamodel::ScalarFractionData FractionAmount_type
 Element type. More...
 
typedef ::xsd::cxx::tree::traits< FractionAmount_type, char > FractionAmount_traits
 Element traits type. More...
 
const FractionAmount_typeFractionAmount () const
 Return a read-only (constant) reference to the element. More...
 
FractionAmount_typeFractionAmount ()
 Return a read-write reference to the element. More...
 
void FractionAmount (const FractionAmount_type &x)
 Set the element value. More...
 
void FractionAmount (::std::unique_ptr< FractionAmount_type > p)
 Set the element value without copying. More...
 

Name

Accessor and modifier functions for the Name required attribute.

typedef ::xml_schema::string Name_type
 Attribute type. More...
 
typedef ::xsd::cxx::tree::traits< Name_type, char > Name_traits
 Attribute traits type. More...
 
const Name_typeName () const
 Return a read-only (constant) reference to the attribute. More...
 
Name_typeName ()
 Return a read-write reference to the attribute. More...
 
void Name (const Name_type &x)
 Set the attribute value. More...
 
void Name (::std::unique_ptr< Name_type > p)
 Set the attribute value without copying. More...
 

Constructors

 SubstanceFractionData ()
 Default constructor. More...
 
 SubstanceFractionData (const FractionAmount_type &, const Name_type &)
 Create an instance from the ultimate base and initializers for required elements and attributes. More...
 
 SubstanceFractionData (::std::unique_ptr< FractionAmount_type >, const Name_type &)
 Create an instance from the ultimate base and initializers for required elements and attributes (::std::unique_ptr version). More...
 
 SubstanceFractionData (const ::xercesc::DOMElement &e,::xml_schema::flags f=0,::xml_schema::container *c=0)
 Create an instance from a DOM element. More...
 
 SubstanceFractionData (const SubstanceFractionData &x,::xml_schema::flags f=0,::xml_schema::container *c=0)
 Copy constructor. More...
 
virtual SubstanceFractionData_clone (::xml_schema::flags f=0,::xml_schema::container *c=0) const
 Copy the instance polymorphically. More...
 
SubstanceFractionDataoperator= (const SubstanceFractionData &x)
 Copy assignment operator. More...
 

Detailed Description

Class corresponding to the SubstanceFractionData schema type.

Member Typedef Documentation

Element traits type.

Attribute traits type.

Constructor & Destructor Documentation

mil::tatrc::physiology::datamodel::SubstanceFractionData::SubstanceFractionData ( )

Default constructor.

Note that this constructor leaves required elements and attributes uninitialized.

mil::tatrc::physiology::datamodel::SubstanceFractionData::SubstanceFractionData ( const FractionAmount_type FractionAmount,
const Name_type Name 
)

Create an instance from the ultimate base and initializers for required elements and attributes.

mil::tatrc::physiology::datamodel::SubstanceFractionData::SubstanceFractionData ( ::std::unique_ptr< FractionAmount_type FractionAmount,
const Name_type Name 
)

Create an instance from the ultimate base and initializers for required elements and attributes (::std::unique_ptr version).

This constructor will try to use the passed values directly instead of making copies.

mil::tatrc::physiology::datamodel::SubstanceFractionData::SubstanceFractionData ( const ::xercesc::DOMElement &  e,
::xml_schema::flags  f = 0,
::xml_schema::container c = 0 
)

Create an instance from a DOM element.

Parameters
eA DOM element to extract the data from.
fFlags to create the new instance with.
cA pointer to the object that will contain the new instance.
mil::tatrc::physiology::datamodel::SubstanceFractionData::SubstanceFractionData ( const SubstanceFractionData x,
::xml_schema::flags  f = 0,
::xml_schema::container c = 0 
)

Copy constructor.

Parameters
xAn instance to make a copy of.
fFlags to create the copy with.
cA pointer to the object that will contain the copy.

For polymorphic object models use the _clone function instead.

mil::tatrc::physiology::datamodel::SubstanceFractionData::~SubstanceFractionData ( )
virtual

Destructor.

Member Function Documentation

SubstanceFractionData * mil::tatrc::physiology::datamodel::SubstanceFractionData::_clone ( ::xml_schema::flags  f = 0,
::xml_schema::container c = 0 
) const
virtual

Copy the instance polymorphically.

Parameters
fFlags to create the copy with.
cA pointer to the object that will contain the copy.
Returns
A pointer to the dynamically allocated copy.

This function ensures that the dynamic type of the instance is used for copying and should be used for polymorphic object models instead of the copy constructor.

const SubstanceFractionData::FractionAmount_type & mil::tatrc::physiology::datamodel::SubstanceFractionData::FractionAmount ( ) const

Return a read-only (constant) reference to the element.

Returns
A constant reference to the element.
SubstanceFractionData::FractionAmount_type & mil::tatrc::physiology::datamodel::SubstanceFractionData::FractionAmount ( )

Return a read-write reference to the element.

Returns
A reference to the element.
void mil::tatrc::physiology::datamodel::SubstanceFractionData::FractionAmount ( const FractionAmount_type x)

Set the element value.

Parameters
xA new value to set.

This function makes a copy of its argument and sets it as the new value of the element.

void mil::tatrc::physiology::datamodel::SubstanceFractionData::FractionAmount ( ::std::unique_ptr< FractionAmount_type p)

Set the element value without copying.

Parameters
pA new value to use.

This function will try to use the passed value directly instead of making a copy.

const SubstanceFractionData::Name_type & mil::tatrc::physiology::datamodel::SubstanceFractionData::Name ( ) const

Return a read-only (constant) reference to the attribute.

Returns
A constant reference to the attribute.
SubstanceFractionData::Name_type & mil::tatrc::physiology::datamodel::SubstanceFractionData::Name ( )

Return a read-write reference to the attribute.

Returns
A reference to the attribute.
void mil::tatrc::physiology::datamodel::SubstanceFractionData::Name ( const Name_type x)

Set the attribute value.

Parameters
xA new value to set.

This function makes a copy of its argument and sets it as the new value of the attribute.

void mil::tatrc::physiology::datamodel::SubstanceFractionData::Name ( ::std::unique_ptr< Name_type p)

Set the attribute value without copying.

Parameters
pA new value to use.

This function will try to use the passed value directly instead of making a copy.

SubstanceFractionData & mil::tatrc::physiology::datamodel::SubstanceFractionData::operator= ( const SubstanceFractionData x)

Copy assignment operator.

Parameters
xAn instance to make a copy of.
Returns
A reference to itself.

For polymorphic object models use the _clone function instead.