Cinder  0.8.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | List of all members
cinder::XmlTree::ParseOptions Class Reference

Options for XML parsing. Passed to the XmlTree constructor. More...

#include <Xml.h>

Public Member Functions

 ParseOptions ()
 Default options. Disables parsing comments, enables collapsing CDATA, ignores data children. More...
 
ParseOptionsparseComments (bool parse=true)
 Sets whether XML comments are parsed or not. More...
 
ParseOptionscollapseCData (bool collapse=true)
 Sets whether CDATA blocks are collapsed automatically or not. More...
 
ParseOptionsignoreDataChildren (bool ignore=true)
 Sets whether data nodes are created as children, in addition to being available as the value of the parent. Default true. More...
 
bool getParseComments () const
 Returns whether XML comments are parsed or not. More...
 
void setParseComments (bool parseComments=true)
 Sets whether XML comments are parsed or not. More...
 
bool getCollapseCData () const
 Returns whether CDATA blocks are collapsed automatically or not. More...
 
void setCollapseCData (bool collapseCData=true)
 Sets whether CDATA blocks are collapsed automatically or not. More...
 
bool getIgnoreDataChildren () const
 Returns whether data nodes are created as children, in addition to being available as the value of the parent. More...
 
void setIgnoreDataChildren (bool ignore=true)
 Sets whether data nodes are created as children, in addition to being available as the value of the parent. More...
 

Detailed Description

Options for XML parsing. Passed to the XmlTree constructor.

Constructor & Destructor Documentation

cinder::XmlTree::ParseOptions::ParseOptions ( )

Default options. Disables parsing comments, enables collapsing CDATA, ignores data children.

Member Function Documentation

ParseOptions& cinder::XmlTree::ParseOptions::parseComments ( bool  parse = true)

Sets whether XML comments are parsed or not.

ParseOptions& cinder::XmlTree::ParseOptions::collapseCData ( bool  collapse = true)

Sets whether CDATA blocks are collapsed automatically or not.

ParseOptions& cinder::XmlTree::ParseOptions::ignoreDataChildren ( bool  ignore = true)

Sets whether data nodes are created as children, in addition to being available as the value of the parent. Default true.

bool cinder::XmlTree::ParseOptions::getParseComments ( ) const

Returns whether XML comments are parsed or not.

void cinder::XmlTree::ParseOptions::setParseComments ( bool  parseComments = true)

Sets whether XML comments are parsed or not.

bool cinder::XmlTree::ParseOptions::getCollapseCData ( ) const

Returns whether CDATA blocks are collapsed automatically or not.

void cinder::XmlTree::ParseOptions::setCollapseCData ( bool  collapseCData = true)

Sets whether CDATA blocks are collapsed automatically or not.

bool cinder::XmlTree::ParseOptions::getIgnoreDataChildren ( ) const

Returns whether data nodes are created as children, in addition to being available as the value of the parent.

void cinder::XmlTree::ParseOptions::setIgnoreDataChildren ( bool  ignore = true)

Sets whether data nodes are created as children, in addition to being available as the value of the parent.


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