C++/Tree Mapping Runtime Library
|
Class corresponding to the XML Schema anySimpleType built-in type. More...
#include <elements.hxx>
Constructors | |
simple_type () | |
Default constructor. | |
simple_type (const C *s) | |
Create an instance from a C string. | |
simple_type (const std::basic_string< C > &s) | |
Create an instance from a string. | |
simple_type (const simple_type &x, flags f=0, container *c=0) | |
Copy constructor. | |
virtual simple_type * | _clone (flags f=0, container *c=0) const |
Copy the instance polymorphically. | |
template<typename S > | |
simple_type (istream< S > &s, flags f=flags::extract_content, container *c=0) | |
Create an instance from a data representation stream. | |
simple_type (const xercesc::DOMElement &e, flags f=flags::extract_content, container *c=0) | |
Create an instance from a DOM element. | |
simple_type (const xercesc::DOMAttr &a, flags f=flags::extract_content, container *c=0) | |
Create an instance from a DOM Attribute. | |
simple_type (const std::basic_string< C > &s, const xercesc::DOMElement *e, flags f=flags::extract_content, container *c=0) | |
Create an instance from a string fragment. | |
const std::basic_string< C > & | text_content () const |
Return a read-only (constant) reference to the anySimpleType text content. | |
std::basic_string< C > & | text_content () |
Return a read-write reference to the anySimpleType text content. | |
void | text_content (const std::basic_string< C > &t) |
Set the anySimpleType text content. | |
Class corresponding to the XML Schema anySimpleType built-in type.
simple_type | ( | const C * | s | ) |
Create an instance from a C string.
s | A string to initialize the instance with. |
simple_type | ( | const std::basic_string< C > & | s | ) |
Create an instance from a string.
s | A string to initialize the instance with. |
simple_type | ( | const simple_type< C, B > & | x, |
flags | f = 0 , |
||
container * | c = 0 |
||
) |
Copy constructor.
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.
simple_type | ( | istream< S > & | s, |
flags | f = flags::extract_content , |
||
container * | c = 0 |
||
) |
Create an instance from a data representation stream.
s | A stream 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. |
simple_type | ( | const xercesc::DOMElement & | e, |
flags | f = flags::extract_content , |
||
container * | c = 0 |
||
) |
Create an instance from a DOM element.
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. |
simple_type | ( | const xercesc::DOMAttr & | a, |
flags | f = flags::extract_content , |
||
container * | c = 0 |
||
) |
Create an instance from a DOM Attribute.
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. |
simple_type | ( | const std::basic_string< C > & | s, |
const xercesc::DOMElement * | e, | ||
flags | f = flags::extract_content , |
||
container * | c = 0 |
||
) |
Create an instance from a string fragment.
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. |
|
virtual |
Copy the instance polymorphically.
f | Flags to create the copy with. |
c | A pointer to the object that will contain the 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 std::basic_string< C > & text_content | ( | ) | const |
Return a read-only (constant) reference to the anySimpleType text content.
std::basic_string< C > & text_content | ( | ) |
Return a read-write reference to the anySimpleType text content.
void text_content | ( | const std::basic_string< C > & | t | ) |
Set the anySimpleType text content.
t | A new text string to set. |