mil::tatrc::physiology::datamodel::RunningAverageData Class Reference

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

#include <Properties.hxx>

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

Public Member Functions

virtual ~RunningAverageData ()
 Destructor. More...
 
- Public Member Functions inherited from mil::tatrc::physiology::datamodel::PropertyData
virtual ~PropertyData ()
 Destructor. More...
 
 PropertyData ()
 Create an instance from the ultimate base and initializers for required elements and attributes. More...
 
 PropertyData (const ::xercesc::DOMElement &e,::xml_schema::flags f=0,::xml_schema::container *c=0)
 Create an instance from a DOM element. More...
 
 PropertyData (const ::xercesc::DOMAttr &a,::xml_schema::flags f=0,::xml_schema::container *c=0)
 Create an instance from a DOM attribute. More...
 
 PropertyData (const ::std::string &s, const ::xercesc::DOMElement *e,::xml_schema::flags f=0,::xml_schema::container *c=0)
 Create an instance from a string fragment. More...
 
 PropertyData (const PropertyData &x,::xml_schema::flags f=0,::xml_schema::container *c=0)
 Copy constructor. More...
 

sum

Accessor and modifier functions for the sum required attribute.

typedef ::xml_schema::double_ sum_type
 Attribute type. More...
 
typedef ::xsd::cxx::tree::traits< sum_type, char,::xsd::cxx::tree::schema_type::double_ > sum_traits
 Attribute traits type. More...
 
const sum_typesum () const
 Return a read-only (constant) reference to the attribute. More...
 
sum_typesum ()
 Return a read-write reference to the attribute. More...
 
void sum (const sum_type &x)
 Set the attribute value. More...
 

numSamples

Accessor and modifier functions for the numSamples required attribute.

typedef ::xml_schema::unsigned_int numSamples_type
 Attribute type. More...
 
typedef ::xsd::cxx::tree::traits< numSamples_type, char > numSamples_traits
 Attribute traits type. More...
 
const numSamples_typenumSamples () const
 Return a read-only (constant) reference to the attribute. More...
 
numSamples_typenumSamples ()
 Return a read-write reference to the attribute. More...
 
void numSamples (const numSamples_type &x)
 Set the attribute value. More...
 

Constructors

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

Detailed Description

Class corresponding to the RunningAverageData schema type.

Member Typedef Documentation

Attribute traits type.

typedef ::xsd::cxx::tree::traits< sum_type, char, ::xsd::cxx::tree::schema_type::double_ > mil::tatrc::physiology::datamodel::RunningAverageData::sum_traits

Attribute traits type.

Constructor & Destructor Documentation

mil::tatrc::physiology::datamodel::RunningAverageData::RunningAverageData ( )

Default constructor.

Note that this constructor leaves required elements and attributes uninitialized.

mil::tatrc::physiology::datamodel::RunningAverageData::RunningAverageData ( const sum_type sum,
const numSamples_type numSamples 
)

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

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

Destructor.

Member Function Documentation

RunningAverageData * mil::tatrc::physiology::datamodel::RunningAverageData::_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.

Reimplemented from mil::tatrc::physiology::datamodel::PropertyData.

const RunningAverageData::numSamples_type & mil::tatrc::physiology::datamodel::RunningAverageData::numSamples ( ) const

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

Returns
A constant reference to the attribute.
RunningAverageData::numSamples_type & mil::tatrc::physiology::datamodel::RunningAverageData::numSamples ( )

Return a read-write reference to the attribute.

Returns
A reference to the attribute.
void mil::tatrc::physiology::datamodel::RunningAverageData::numSamples ( const numSamples_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.

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

const RunningAverageData::sum_type & mil::tatrc::physiology::datamodel::RunningAverageData::sum ( ) const

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

Returns
A constant reference to the attribute.
RunningAverageData::sum_type & mil::tatrc::physiology::datamodel::RunningAverageData::sum ( )

Return a read-write reference to the attribute.

Returns
A reference to the attribute.
void mil::tatrc::physiology::datamodel::RunningAverageData::sum ( const sum_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.