C++/Tree Mapping Runtime Library
Public Types | Static Public Member Functions | List of all members
element_map< C, T > Class Template Reference

Root element map. More...

#include <element-map.hxx>

Public Types

typedef tree::element_type< C, T > element_type
 Common base class for all element types.
 

Static Public Member Functions

static std::auto_ptr< element_typeparse (const xercesc::DOMElement &e, flags f=0)
 Parse a DOM element.
 
static void serialize (xercesc::DOMElement &e, const element_type &x)
 Serialize an element object to a DOM element.
 

Detailed Description

template<typename C, typename T>
class xsd::cxx::tree::element_map< C, T >

Root element map.

This class allows uniform parsing/serialization of multiple root elements via the element_type base class.

Member Function Documentation

◆ parse()

template<typename C , typename T >
static std::auto_ptr< element_type > parse ( const xercesc::DOMElement &  e,
flags  f = 0 
)
static

Parse a DOM element.

Parameters
eA DOM element to parse.
fFlags to create the new element object with.
Returns
An automatic pointer to the new element object.

◆ serialize()

template<typename C , typename T >
static void serialize ( xercesc::DOMElement &  e,
const element_type x 
)
static

Serialize an element object to a DOM element.

Parameters
eA DOM element to serialize to.
xAn element object to serialize.

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

Copyright © 2005-2023 Code Synthesis.