C++/Tree Mapping Runtime Library
List of all members
flags Class Reference

Parsing and serialization flags. More...

#include <elements.hxx>

Flag constants

static const unsigned long keep_dom = 0x00000100UL
 Keep DOM association in the resulting tree.
 
static const unsigned long own_dom = 0x00000200UL
 Assume ownership of the DOM document.
 
static const unsigned long dont_validate = 0x00000400UL
 Turn off XML Schema validation in the underlying XML parser.
 
static const unsigned long extract_content = 0x00000800UL
 Extract XML content for anyType or anySimpleType. Normally you don't need to specify this flag explicitly.
 
static const unsigned long dont_initialize = 0x00000001UL
 Do not initialize the Xerces-C++ runtime.
 
static const unsigned long no_xml_declaration = 0x00010000UL
 Do not write XML declaration during serialization.
 
static const unsigned long dont_pretty_print = 0x00020000UL
 Do not add extra spaces or new lines that make the resulting XML easier to read.
 
 flags (unsigned long x=0)
 Initialize an instance with an integer value.
 
 operator unsigned long () const
 Convert an instance to an integer value.
 
flags operator| (const flags &a, const flags &b)
 Combine two flags.
 
flags operator| (const flags &a, unsigned long b)
 Combine two flags.
 
flags operator| (unsigned long a, const flags &b)
 Combine two flags.
 

Detailed Description

Parsing and serialization flags.

Flags are used to modify the default behavior of parsing and serialization functions as well as parsing constructors.

Constructor & Destructor Documentation

◆ flags()

flags ( unsigned long  x = 0)
inline

Initialize an instance with an integer value.

Parameters
xA flags value as an integer.

Member Function Documentation

◆ operator unsigned long()

operator unsigned long ( ) const
inline

Convert an instance to an integer value.

Returns
An integer flags value.

Friends And Related Symbol Documentation

◆ operator| [1/3]

flags operator| ( const flags a,
const flags b 
)
friend

Combine two flags.

Returns
A flags object that is a combination of the arguments.

◆ operator| [2/3]

flags operator| ( const flags a,
unsigned long  b 
)
friend

Combine two flags.

Returns
A flags object that is a combination of the arguments.

◆ operator| [3/3]

flags operator| ( unsigned long  a,
const flags b 
)
friend

Combine two flags.

Returns
A flags object that is a combination of the arguments.

Member Data Documentation

◆ own_dom

const unsigned long own_dom = 0x00000200UL
static

Assume ownership of the DOM document.

This flag only makes sense together with the keep_dom flag in the call to the parsing function with the dom::auto_ptr/unique_ptr<DOMDocument> argument.


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

Copyright © 2005-2023 Code Synthesis.