_type Class Reference

Class corresponding to the XML Schema anyType built-in type. More...

List of all members.

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

typeoperator= (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...


Detailed Description

Class corresponding to the XML Schema anyType built-in type.

This class is a base for every generated and built-in type in the C++/Tree mapping.


Constructor & Destructor Documentation

_type ( const type x,
flags  f = 0,
container c = 0 
) [inline]

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.

_type ( istream< S > &  s,
flags  f = 0,
container c = 0 
) [inline]

Create an instance from a data representation stream.

Parameters:
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.

_type ( const xercesc::DOMElement &  e,
flags  f = 0,
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.

_type ( const xercesc::DOMAttr &  a,
flags  f = 0,
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.

_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.

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.


Member Function Documentation

virtual type* _clone ( flags  f = 0,
container c = 0 
) const [inline, 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.

type& operator= ( const type x  )  [inline]

Copy assignment operator.

Parameters:
x An instance to assign.
Returns:
A reference to the instance.

const container* _container (  )  const [inline]

Get a constant pointer to container, an object model node that contains this instance.

Returns:
A constant pointer to container, or 0 if this instance is not contained.

container* _container (  )  [inline]

Get a pointer to container, an object model node that contains this instance.

Returns:
A pointer to container, or 0 if this instance is not contained.

virtual void _container ( container c  )  [inline, virtual]

Set this instance's new container, an object model node that contains this instance.

Parameters:
c A pointer to container.

const container* _root (  )  const [inline]

Get a constant pointer to object model's root node.

Returns:
A constant pointer to root node, or 0 if this instance is not contained.

container* _root (  )  [inline]

Get a pointer to object model's root node.

Returns:
A pointer to root node, or 0 if this instance is not contained.

const xercesc::DOMNode* _node (  )  const [inline]

Get a constant pointer to a DOM node associated with this object model node.

Returns:
A constant pointer to DOM node, or 0 if none associated.

xercesc::DOMNode* _node (  )  [inline]

Get a pointer to a DOM node associated with this object model node.

Returns:
A pointer to DOM node, or 0 if none associated.

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.

Parameters:
n A pointer to DOM node (should be either an element or an attribute).


The documentation for this class was generated from the following file:

Copyright © 2005-2010 CODE SYNTHESIS TOOLS CC