Constructors | |
| _type () | |
| Default constructor. | |
| _type (const type &x, flags f=0, container *c=0) | |
| Copy constructor. | |
| virtual type * | _clone (flags f=0, container *c=0) const |
| Copy the instance polymorphically. | |
| template<typename S> | |
| _type (istream< S > &s, flags f=0, container *c=0) | |
| Create an instance from a data representation stream. | |
| _type (const xercesc::DOMElement &e, flags f=0, container *c=0) | |
| Create an instance from a DOM element. | |
| _type (const xercesc::DOMAttr &a, flags f=0, container *c=0) | |
| Create an instance from a DOM Attribute. | |
| template<typename C> | |
| _type (const std::basic_string< C > &s, const xercesc::DOMElement *e, flags f=0, container *c=0) | |
| Create an instance from a string fragment. | |
Public Member Functions | |
| type & | operator= (const type &x) |
| Copy assignment operator. | |
| const container * | _container () const |
| Get a constant pointer to container, an object model node that contains this instance. | |
| container * | _container () |
| Get a pointer to container, an object model node that contains this instance. | |
| virtual void | _container (container *c) |
| Set this instance's new container, an object model node that contains this instance. | |
| const container * | _root () const |
| Get a constant pointer to object model's root node. | |
| container * | _root () |
| Get a pointer to object model's root node. | |
| const xercesc::DOMNode * | _node () const |
| Get a constant pointer to a DOM node associated with this object model node. | |
| xercesc::DOMNode * | _node () |
| Get a pointer to a DOM node associated with this object model node. | |
| void | _node (xercesc::DOMNode *n) |
| Manually set a DOM node associated with this object model node. | |
Classes | |
| class | bad_dom_node_type |
| Exception indicating that a DOM node cannot be associated with an object model node. More... | |
This class is a base for every generated and built-in type in the C++/Tree mapping.
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. |
_clone function instead.
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. |
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. |
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. |
| _type | ( | const std::basic_string< C > & | s, | |
| const xercesc::DOMElement * | e, | |||
| flags | f = 0, |
|||
| container * | c = 0 | |||
| ) | [inline] |
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. |
Copy the instance polymorphically.
| f | Flags to create the copy with. | |
| c | A pointer to the object that will contain the copy. |
Copy assignment operator.
| x | An instance to assign. |
| const container* _container | ( | ) | const [inline] |
Get a constant pointer to container, an object model node that contains this instance.
| container* _container | ( | ) | [inline] |
Get a pointer to container, an object model node that contains this instance.
| virtual void _container | ( | container * | c | ) | [inline, virtual] |
Set this instance's new container, an object model node that contains this instance.
| c | A pointer to container. |
| const container* _root | ( | ) | const [inline] |
Get a constant pointer to object model's root node.
| container* _root | ( | ) | [inline] |
Get a pointer to object model's root node.
| const xercesc::DOMNode* _node | ( | ) | const [inline] |
Get a constant pointer to a DOM node associated with this object model node.
| xercesc::DOMNode* _node | ( | ) | [inline] |
Get a pointer to a DOM node associated with this object model node.
| void _node | ( | xercesc::DOMNode * | n | ) | [inline] |
Manually set a DOM node associated with this object model node.
The DOM node should be a child of the parent's DOM node. If this object model node is a root of the tree, then it will assume the ownership of the whole DOM document to which this DOM node belongs.
| n | A pointer to DOM node (should be either an element or an attribute). |