mil::tatrc::physiology::datamodel::ConditionData Class Reference

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

#include <Scenario.hxx>

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

Public Member Functions

virtual ~ConditionData ()
 Destructor. More...
 

Comment

Accessor and modifier functions for the Comment optional element.

typedef ::xml_schema::string Comment_type
 Element type. More...
 
typedef ::xsd::cxx::tree::optional< Comment_typeComment_optional
 Element optional container type. More...
 
typedef ::xsd::cxx::tree::traits< Comment_type, char > Comment_traits
 Element traits type. More...
 
const Comment_optionalComment () const
 Return a read-only (constant) reference to the element container. More...
 
Comment_optionalComment ()
 Return a read-write reference to the element container. More...
 
void Comment (const Comment_type &x)
 Set the element value. More...
 
void Comment (const Comment_optional &x)
 Set the element value. More...
 
void Comment (::std::unique_ptr< Comment_type > p)
 Set the element value without copying. More...
 

Constructors

 ConditionData ()
 Create an instance from the ultimate base and initializers for required elements and attributes. More...
 
 ConditionData (const ::xercesc::DOMElement &e,::xml_schema::flags f=0,::xml_schema::container *c=0)
 Create an instance from a DOM element. More...
 
 ConditionData (const ConditionData &x,::xml_schema::flags f=0,::xml_schema::container *c=0)
 Copy constructor. More...
 
virtual ConditionData_clone (::xml_schema::flags f=0,::xml_schema::container *c=0) const
 Copy the instance polymorphically. More...
 
ConditionDataoperator= (const ConditionData &x)
 Copy assignment operator. More...
 

Detailed Description

Class corresponding to the ConditionData schema type.

Member Typedef Documentation

Element optional container type.

Element traits type.

Constructor & Destructor Documentation

mil::tatrc::physiology::datamodel::ConditionData::ConditionData ( )

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

mil::tatrc::physiology::datamodel::ConditionData::ConditionData ( 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::ConditionData::ConditionData ( const ConditionData 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::ConditionData::~ConditionData ( )
virtual

Destructor.

Member Function Documentation

const ConditionData::Comment_optional & mil::tatrc::physiology::datamodel::ConditionData::Comment ( ) const

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

Returns
A constant reference to the optional container.
ConditionData::Comment_optional & mil::tatrc::physiology::datamodel::ConditionData::Comment ( )

Return a read-write reference to the element container.

Returns
A reference to the optional container.
void mil::tatrc::physiology::datamodel::ConditionData::Comment ( const Comment_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::ConditionData::Comment ( const Comment_optional x)

Set the element value.

Parameters
xAn optional container with the new value to set.

If the value is present in x then this function makes a copy of this value and sets it as the new value of the element. Otherwise the element container is set the 'not present' state.

void mil::tatrc::physiology::datamodel::ConditionData::Comment ( ::std::unique_ptr< Comment_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.

ConditionData & mil::tatrc::physiology::datamodel::ConditionData::operator= ( const ConditionData 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.