Enumeration class corresponding to the enumAnesthesiaMachinePrimaryGas schema type. More...
#include <Anesthesia.hxx>
Public Types | |
enum | value { Air, Nitrogen } |
Underlying enum type. More... | |
Public Member Functions | |
enumAnesthesiaMachinePrimaryGas () | |
Default constructor. More... | |
enumAnesthesiaMachinePrimaryGas (value v) | |
Create an instance from the underlying enum value. More... | |
enumAnesthesiaMachinePrimaryGas (const char *v) | |
Create an instance from a C string. More... | |
enumAnesthesiaMachinePrimaryGas (const ::std::string &v) | |
Create an instance from a string. More... | |
enumAnesthesiaMachinePrimaryGas (const ::xml_schema::string &v) | |
Create an instance from the base value. More... | |
enumAnesthesiaMachinePrimaryGas (const ::xercesc::DOMElement &e,::xml_schema::flags f=0,::xml_schema::container *c=0) | |
Create an instance from a DOM element. More... | |
enumAnesthesiaMachinePrimaryGas (const ::xercesc::DOMAttr &a,::xml_schema::flags f=0,::xml_schema::container *c=0) | |
Create an instance from a DOM attribute. More... | |
enumAnesthesiaMachinePrimaryGas (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... | |
enumAnesthesiaMachinePrimaryGas (const enumAnesthesiaMachinePrimaryGas &x,::xml_schema::flags f=0,::xml_schema::container *c=0) | |
Copy constructor. More... | |
virtual enumAnesthesiaMachinePrimaryGas * | _clone (::xml_schema::flags f=0,::xml_schema::container *c=0) const |
Copy the instance polymorphically. More... | |
enumAnesthesiaMachinePrimaryGas & | operator= (value v) |
Assign the underlying enum value. More... | |
virtual | operator value () const |
Implicit conversion operator to the underlying enum value. More... | |
Detailed Description
Enumeration class corresponding to the enumAnesthesiaMachinePrimaryGas schema type.
Member Enumeration Documentation
Constructor & Destructor Documentation
mil::tatrc::physiology::datamodel::enumAnesthesiaMachinePrimaryGas::enumAnesthesiaMachinePrimaryGas | ( | ) |
Default constructor.
Note that this constructor may leave the instance in an invalid state.
mil::tatrc::physiology::datamodel::enumAnesthesiaMachinePrimaryGas::enumAnesthesiaMachinePrimaryGas | ( | value | v | ) |
Create an instance from the underlying enum value.
- Parameters
-
v A enum value.
mil::tatrc::physiology::datamodel::enumAnesthesiaMachinePrimaryGas::enumAnesthesiaMachinePrimaryGas | ( | const char * | v | ) |
Create an instance from a C string.
- Parameters
-
v A string value.
mil::tatrc::physiology::datamodel::enumAnesthesiaMachinePrimaryGas::enumAnesthesiaMachinePrimaryGas | ( | const ::std::string & | v | ) |
Create an instance from a string.
- Parameters
-
v A string value.
mil::tatrc::physiology::datamodel::enumAnesthesiaMachinePrimaryGas::enumAnesthesiaMachinePrimaryGas | ( | const ::xml_schema::string & | v | ) |
Create an instance from the base value.
- Parameters
-
v A base value.
mil::tatrc::physiology::datamodel::enumAnesthesiaMachinePrimaryGas::enumAnesthesiaMachinePrimaryGas | ( | 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::enumAnesthesiaMachinePrimaryGas::enumAnesthesiaMachinePrimaryGas | ( | const ::xercesc::DOMAttr & | a, |
::xml_schema::flags | f = 0 , |
||
::xml_schema::container * | c = 0 |
||
) |
Create an instance from a DOM attribute.
- Parameters
-
a A DOM attribute 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::enumAnesthesiaMachinePrimaryGas::enumAnesthesiaMachinePrimaryGas | ( | 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.
- Parameters
-
s A string fragment to extract the data from. e A pointer to DOM element containing the string fragment. f Flags to create the new instance with. c A pointer to the object that will contain the new instance.
mil::tatrc::physiology::datamodel::enumAnesthesiaMachinePrimaryGas::enumAnesthesiaMachinePrimaryGas | ( | const enumAnesthesiaMachinePrimaryGas & | 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.
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.
|
inlinevirtual |
Implicit conversion operator to the underlying enum value.
- Returns
- A enum value.
enumAnesthesiaMachinePrimaryGas & mil::tatrc::physiology::datamodel::enumAnesthesiaMachinePrimaryGas::operator= | ( | value | v | ) |
Assign the underlying enum value.
- Parameters
-
v A enum value.
- Returns
- A refernce to the instance.