Class corresponding to the SubstanceOralDoseData schema type. More...
#include <PatientActions.hxx>
Public Member Functions | |
virtual | ~SubstanceOralDoseData () |
Destructor. More... | |
Public Member Functions inherited from mil::tatrc::physiology::datamodel::SubstanceAdministrationData | |
virtual | ~SubstanceAdministrationData () |
Destructor. More... | |
SubstanceAdministrationData () | |
Create an instance from the ultimate base and initializers for required elements and attributes. More... | |
SubstanceAdministrationData (const ::xercesc::DOMElement &e,::xml_schema::flags f=0,::xml_schema::container *c=0) | |
Create an instance from a DOM element. More... | |
SubstanceAdministrationData (const SubstanceAdministrationData &x,::xml_schema::flags f=0,::xml_schema::container *c=0) | |
Copy constructor. More... | |
Public Member Functions inherited from mil::tatrc::physiology::datamodel::PatientActionData | |
virtual | ~PatientActionData () |
Destructor. More... | |
PatientActionData () | |
Create an instance from the ultimate base and initializers for required elements and attributes. More... | |
PatientActionData (const ::xercesc::DOMElement &e,::xml_schema::flags f=0,::xml_schema::container *c=0) | |
Create an instance from a DOM element. More... | |
PatientActionData (const PatientActionData &x,::xml_schema::flags f=0,::xml_schema::container *c=0) | |
Copy constructor. More... | |
Public Member Functions inherited from mil::tatrc::physiology::datamodel::ActionData | |
virtual | ~ActionData () |
Destructor. More... | |
const Comment_optional & | Comment () const |
Return a read-only (constant) reference to the element container. More... | |
Comment_optional & | Comment () |
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... | |
const Occurs_optional & | Occurs () const |
Return a read-only (constant) reference to the element container. More... | |
Occurs_optional & | Occurs () |
Return a read-write reference to the element container. More... | |
void | Occurs (const Occurs_type &x) |
Set the element value. More... | |
void | Occurs (const Occurs_optional &x) |
Set the element value. More... | |
const Duration_optional & | Duration () const |
Return a read-only (constant) reference to the element container. More... | |
Duration_optional & | Duration () |
Return a read-write reference to the element container. More... | |
void | Duration (const Duration_type &x) |
Set the element value. More... | |
void | Duration (const Duration_optional &x) |
Set the element value. More... | |
ActionData () | |
Create an instance from the ultimate base and initializers for required elements and attributes. More... | |
ActionData (const ::xercesc::DOMElement &e,::xml_schema::flags f=0,::xml_schema::container *c=0) | |
Create an instance from a DOM element. More... | |
ActionData (const ActionData &x,::xml_schema::flags f=0,::xml_schema::container *c=0) | |
Copy constructor. More... | |
ActionData & | operator= (const ActionData &x) |
Copy assignment operator. More... | |
Substance | |
Accessor and modifier functions for the Substance required element. | |
typedef ::xml_schema::string | Substance_type |
Element type. More... | |
typedef ::xsd::cxx::tree::traits< Substance_type, char > | Substance_traits |
Element traits type. More... | |
const Substance_type & | Substance () const |
Return a read-only (constant) reference to the element. More... | |
Substance_type & | Substance () |
Return a read-write reference to the element. More... | |
void | Substance (const Substance_type &x) |
Set the element value. More... | |
void | Substance (::std::unique_ptr< Substance_type > p) |
Set the element value without copying. More... | |
Dose | |
Accessor and modifier functions for the Dose required element. | |
typedef ::mil::tatrc::physiology::datamodel::ScalarMassData | Dose_type |
Element type. More... | |
typedef ::xsd::cxx::tree::traits< Dose_type, char > | Dose_traits |
Element traits type. More... | |
const Dose_type & | Dose () const |
Return a read-only (constant) reference to the element. More... | |
Dose_type & | Dose () |
Return a read-write reference to the element. More... | |
void | Dose (const Dose_type &x) |
Set the element value. More... | |
void | Dose (::std::unique_ptr< Dose_type > p) |
Set the element value without copying. More... | |
AdminRoute | |
Accessor and modifier functions for the AdminRoute required attribute. | |
typedef ::mil::tatrc::physiology::datamodel::enumOralAdministration | AdminRoute_type |
Attribute type. More... | |
typedef ::xsd::cxx::tree::traits< AdminRoute_type, char > | AdminRoute_traits |
Attribute traits type. More... | |
const AdminRoute_type & | AdminRoute () const |
Return a read-only (constant) reference to the attribute. More... | |
AdminRoute_type & | AdminRoute () |
Return a read-write reference to the attribute. More... | |
void | AdminRoute (const AdminRoute_type &x) |
Set the attribute value. More... | |
void | AdminRoute (::std::unique_ptr< AdminRoute_type > p) |
Set the attribute value without copying. More... | |
Constructors | |
SubstanceOralDoseData () | |
Default constructor. More... | |
SubstanceOralDoseData (const Substance_type &, const Dose_type &, const AdminRoute_type &) | |
Create an instance from the ultimate base and initializers for required elements and attributes. More... | |
SubstanceOralDoseData (const Substance_type &,::std::unique_ptr< Dose_type >, const AdminRoute_type &) | |
Create an instance from the ultimate base and initializers for required elements and attributes (::std::unique_ptr version). More... | |
SubstanceOralDoseData (::std::unique_ptr< Substance_type >,::std::unique_ptr< Dose_type >, const AdminRoute_type &) | |
Create an instance from the ultimate base and initializers for required elements and attributes (::std::unique_ptr version). More... | |
SubstanceOralDoseData (const ::xercesc::DOMElement &e,::xml_schema::flags f=0,::xml_schema::container *c=0) | |
Create an instance from a DOM element. More... | |
SubstanceOralDoseData (const SubstanceOralDoseData &x,::xml_schema::flags f=0,::xml_schema::container *c=0) | |
Copy constructor. More... | |
virtual SubstanceOralDoseData * | _clone (::xml_schema::flags f=0,::xml_schema::container *c=0) const |
Copy the instance polymorphically. More... | |
SubstanceOralDoseData & | operator= (const SubstanceOralDoseData &x) |
Copy assignment operator. More... | |
Additional Inherited Members | |
Public Types inherited from mil::tatrc::physiology::datamodel::ActionData | |
typedef ::xml_schema::string | Comment_type |
Element type. More... | |
typedef ::xsd::cxx::tree::optional< Comment_type > | Comment_optional |
Element optional container type. More... | |
typedef ::xsd::cxx::tree::traits< Comment_type, char > | Comment_traits |
Element traits type. More... | |
typedef ::xml_schema::double_ | Occurs_type |
Element type. More... | |
typedef ::xsd::cxx::tree::optional< Occurs_type > | Occurs_optional |
Element optional container type. More... | |
typedef ::xsd::cxx::tree::traits< Occurs_type, char,::xsd::cxx::tree::schema_type::double_ > | Occurs_traits |
Element traits type. More... | |
typedef ::xml_schema::double_ | Duration_type |
Element type. More... | |
typedef ::xsd::cxx::tree::optional< Duration_type > | Duration_optional |
Element optional container type. More... | |
typedef ::xsd::cxx::tree::traits< Duration_type, char,::xsd::cxx::tree::schema_type::double_ > | Duration_traits |
Element traits type. More... | |
Detailed Description
Class corresponding to the SubstanceOralDoseData schema type.
Member Typedef Documentation
typedef ::xsd::cxx::tree::traits< AdminRoute_type, char > mil::tatrc::physiology::datamodel::SubstanceOralDoseData::AdminRoute_traits |
Attribute traits type.
typedef ::mil::tatrc::physiology::datamodel::enumOralAdministration mil::tatrc::physiology::datamodel::SubstanceOralDoseData::AdminRoute_type |
Attribute type.
typedef ::xsd::cxx::tree::traits< Dose_type, char > mil::tatrc::physiology::datamodel::SubstanceOralDoseData::Dose_traits |
Element traits type.
typedef ::mil::tatrc::physiology::datamodel::ScalarMassData mil::tatrc::physiology::datamodel::SubstanceOralDoseData::Dose_type |
Element type.
typedef ::xsd::cxx::tree::traits< Substance_type, char > mil::tatrc::physiology::datamodel::SubstanceOralDoseData::Substance_traits |
Element traits type.
typedef ::xml_schema::string mil::tatrc::physiology::datamodel::SubstanceOralDoseData::Substance_type |
Element type.
Constructor & Destructor Documentation
mil::tatrc::physiology::datamodel::SubstanceOralDoseData::SubstanceOralDoseData | ( | ) |
Default constructor.
Note that this constructor leaves required elements and attributes uninitialized.
mil::tatrc::physiology::datamodel::SubstanceOralDoseData::SubstanceOralDoseData | ( | const Substance_type & | Substance, |
const Dose_type & | Dose, | ||
const AdminRoute_type & | AdminRoute | ||
) |
Create an instance from the ultimate base and initializers for required elements and attributes.
mil::tatrc::physiology::datamodel::SubstanceOralDoseData::SubstanceOralDoseData | ( | const Substance_type & | Substance, |
::std::unique_ptr< Dose_type > | Dose, | ||
const AdminRoute_type & | AdminRoute | ||
) |
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::SubstanceOralDoseData::SubstanceOralDoseData | ( | ::std::unique_ptr< Substance_type > | Substance, |
::std::unique_ptr< Dose_type > | Dose, | ||
const AdminRoute_type & | AdminRoute | ||
) |
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::SubstanceOralDoseData::SubstanceOralDoseData | ( | const ::xercesc::DOMElement & | e, |
::xml_schema::flags | f = 0 , |
||
::xml_schema::container * | c = 0 |
||
) |
Create an instance from a DOM element.
- Parameters
-
e A DOM element to extract the data from. f Flags to create the new instance with. c A pointer to the object that will contain the new instance.
mil::tatrc::physiology::datamodel::SubstanceOralDoseData::SubstanceOralDoseData | ( | const SubstanceOralDoseData & | x, |
::xml_schema::flags | f = 0 , |
||
::xml_schema::container * | c = 0 |
||
) |
Copy constructor.
- Parameters
-
x An instance to make a copy of. f Flags to create the copy with. c A pointer to the object that will contain the copy.
For polymorphic object models use the _clone
function instead.
|
virtual |
Destructor.
Member Function Documentation
|
virtual |
Copy the instance polymorphically.
- Parameters
-
f Flags to create the copy with. c A 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::SubstanceAdministrationData.
const SubstanceOralDoseData::AdminRoute_type & mil::tatrc::physiology::datamodel::SubstanceOralDoseData::AdminRoute | ( | ) | const |
Return a read-only (constant) reference to the attribute.
- Returns
- A constant reference to the attribute.
SubstanceOralDoseData::AdminRoute_type & mil::tatrc::physiology::datamodel::SubstanceOralDoseData::AdminRoute | ( | ) |
Return a read-write reference to the attribute.
- Returns
- A reference to the attribute.
void mil::tatrc::physiology::datamodel::SubstanceOralDoseData::AdminRoute | ( | const AdminRoute_type & | x | ) |
Set the attribute value.
- Parameters
-
x A 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::SubstanceOralDoseData::AdminRoute | ( | ::std::unique_ptr< AdminRoute_type > | p | ) |
Set the attribute value without copying.
- Parameters
-
p A new value to use.
This function will try to use the passed value directly instead of making a copy.
const SubstanceOralDoseData::Dose_type & mil::tatrc::physiology::datamodel::SubstanceOralDoseData::Dose | ( | ) | const |
Return a read-only (constant) reference to the element.
- Returns
- A constant reference to the element.
SubstanceOralDoseData::Dose_type & mil::tatrc::physiology::datamodel::SubstanceOralDoseData::Dose | ( | ) |
Return a read-write reference to the element.
- Returns
- A reference to the element.
void mil::tatrc::physiology::datamodel::SubstanceOralDoseData::Dose | ( | const Dose_type & | x | ) |
Set the element value.
- Parameters
-
x A 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::SubstanceOralDoseData::Dose | ( | ::std::unique_ptr< Dose_type > | p | ) |
Set the element value without copying.
- Parameters
-
p A new value to use.
This function will try to use the passed value directly instead of making a copy.
SubstanceOralDoseData & mil::tatrc::physiology::datamodel::SubstanceOralDoseData::operator= | ( | const SubstanceOralDoseData & | x | ) |
Copy assignment operator.
- Parameters
-
x An instance to make a copy of.
- Returns
- A reference to itself.
For polymorphic object models use the _clone
function instead.
const SubstanceOralDoseData::Substance_type & mil::tatrc::physiology::datamodel::SubstanceOralDoseData::Substance | ( | ) | const |
Return a read-only (constant) reference to the element.
- Returns
- A constant reference to the element.
SubstanceOralDoseData::Substance_type & mil::tatrc::physiology::datamodel::SubstanceOralDoseData::Substance | ( | ) |
Return a read-write reference to the element.
- Returns
- A reference to the element.
void mil::tatrc::physiology::datamodel::SubstanceOralDoseData::Substance | ( | const Substance_type & | x | ) |
Set the element value.
- Parameters
-
x A 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::SubstanceOralDoseData::Substance | ( | ::std::unique_ptr< Substance_type > | p | ) |
Set the element value without copying.
- Parameters
-
p A new value to use.
This function will try to use the passed value directly instead of making a copy.