OSAnyElementClass Class Reference
Any element. More...
#include <rtxCppAnyElement.h>
Inheritance diagram for OSAnyElementClass:

Public Member Functions | |
| OSAnyElementClass () | |
| The default constructor creates an empty element. | |
| OSAnyElementClass (const OSUTF8CHAR *pname, const OSUTF8CHAR *pvalue) | |
| This constructor initializes the element to contain the given data values. | |
| OSAnyElementClass (const char *pname, const char *pvalue) | |
| This constructor initializes the element to contain the given data values. | |
| OSAnyElementClass (OSAnyElement &os) | |
| This copy constructor initializes the element to contain the given data values from the C data structure. | |
| OSAnyElementClass (const OSAnyElementClass &os) | |
| This copy constructor initializes the element to contain the given data values from the C++ data object. | |
| virtual | ~OSAnyElementClass () |
| The destructor frees string memory. | |
| void | copyValue (const OSUTF8CHAR *pname, const OSUTF8CHAR *pvalue) |
| This method copies the given element value to the internal string storage variable. | |
| void | print (const char *pname) |
| This method prints the given element value to standard output. | |
| void | setValue (const OSUTF8CHAR *pname, const OSUTF8CHAR *pvalue) |
| This method copies the given element value to the internal string storage variable. | |
| OSRTBaseType * | clone () const |
Detailed Description
Any element.This is the base class for generated C++ data type classes for any element declarations (xsd:any).
Definition at line 41 of file rtxCppAnyElement.h.
Constructor & Destructor Documentation
| OSAnyElementClass::OSAnyElementClass | ( | const OSUTF8CHAR * | pname, | |
| const OSUTF8CHAR * | pvalue | |||
| ) |
This constructor initializes the element to contain the given data values.
- Parameters:
-
pname - element name pvalue - element contents
| OSAnyElementClass::OSAnyElementClass | ( | const char * | pname, | |
| const char * | pvalue | |||
| ) |
This constructor initializes the element to contain the given data values.
This version allows the name/value arguments to be passed as standard C character string literal values.
- Parameters:
-
pname - element name pvalue - element contents
| OSAnyElementClass::OSAnyElementClass | ( | OSAnyElement & | os | ) |
This copy constructor initializes the element to contain the given data values from the C data structure.
A deep copy is performed.
- Parameters:
-
os - C binary string structure.
| OSAnyElementClass::OSAnyElementClass | ( | const OSAnyElementClass & | os | ) |
This copy constructor initializes the element to contain the given data values from the C++ data object.
A deep copy is performed.
- Parameters:
-
os - C++ binary string object reference.
Member Function Documentation
| void OSAnyElementClass::copyValue | ( | const OSUTF8CHAR * | pname, | |
| const OSUTF8CHAR * | pvalue | |||
| ) |
This method copies the given element value to the internal string storage variable.
A deep-copy of the given value is done; the class will delete this memory when the object is deleted.
- Parameters:
-
pname - Element name. pvalue - Element value.
| void OSAnyElementClass::print | ( | const char * | pname | ) | [inline] |
This method prints the given element value to standard output.
- Parameters:
-
pname - Name of generated string variable.
Definition at line 109 of file rtxCppAnyElement.h.
| void OSAnyElementClass::setValue | ( | const OSUTF8CHAR * | pname, | |
| const OSUTF8CHAR * | pvalue | |||
| ) |
This method copies the given element value to the internal string storage variable.
A deep-copy of the given value is done; the class will delete this memory when the object is deleted.
- Parameters:
-
pname - Element name. pvalue - Element value.
The documentation for this class was generated from the following file:
