mil::tatrc::physiology::datamodel::ActivePatientEventData Class Reference

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

#include <Patient.hxx>

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

Public Member Functions

virtual ~ActivePatientEventData ()
 Destructor. More...
 

Duration

Accessor and modifier functions for the Duration required element.

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

Event

Accessor and modifier functions for the Event required attribute.

typedef ::mil::tatrc::physiology::datamodel::enumPatientEvent Event_type
 Attribute type. More...
 
typedef ::xsd::cxx::tree::traits< Event_type, char > Event_traits
 Attribute traits type. More...
 
const Event_typeEvent () const
 Return a read-only (constant) reference to the attribute. More...
 
Event_typeEvent ()
 Return a read-write reference to the attribute. More...
 
void Event (const Event_type &x)
 Set the attribute value. More...
 
void Event (::std::unique_ptr< Event_type > p)
 Set the attribute value without copying. More...
 

Constructors

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

Detailed Description

Class corresponding to the ActivePatientEventData schema type.

Member Typedef Documentation

Element traits type.

Attribute traits type.

Constructor & Destructor Documentation

mil::tatrc::physiology::datamodel::ActivePatientEventData::ActivePatientEventData ( )

Default constructor.

Note that this constructor leaves required elements and attributes uninitialized.

mil::tatrc::physiology::datamodel::ActivePatientEventData::ActivePatientEventData ( const Duration_type Duration,
const Event_type Event 
)

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

mil::tatrc::physiology::datamodel::ActivePatientEventData::ActivePatientEventData ( ::std::unique_ptr< Duration_type Duration,
const Event_type Event 
)

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::ActivePatientEventData::ActivePatientEventData ( 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::ActivePatientEventData::ActivePatientEventData ( const ActivePatientEventData 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::ActivePatientEventData::~ActivePatientEventData ( )
virtual

Destructor.

Member Function Documentation

ActivePatientEventData * mil::tatrc::physiology::datamodel::ActivePatientEventData::_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 ActivePatientEventData::Duration_type & mil::tatrc::physiology::datamodel::ActivePatientEventData::Duration ( ) const

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

Returns
A constant reference to the element.
ActivePatientEventData::Duration_type & mil::tatrc::physiology::datamodel::ActivePatientEventData::Duration ( )

Return a read-write reference to the element.

Returns
A reference to the element.
void mil::tatrc::physiology::datamodel::ActivePatientEventData::Duration ( const Duration_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::ActivePatientEventData::Duration ( ::std::unique_ptr< Duration_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 ActivePatientEventData::Event_type & mil::tatrc::physiology::datamodel::ActivePatientEventData::Event ( ) const

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

Returns
A constant reference to the attribute.
ActivePatientEventData::Event_type & mil::tatrc::physiology::datamodel::ActivePatientEventData::Event ( )

Return a read-write reference to the attribute.

Returns
A reference to the attribute.
void mil::tatrc::physiology::datamodel::ActivePatientEventData::Event ( const Event_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::ActivePatientEventData::Event ( ::std::unique_ptr< Event_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.

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