nidas v1.2.3
Public Member Functions | Private Member Functions | Private Attributes | List of all members
nidas::core::XMLConfigWriter Class Reference

An XMLWriter which writes the NIDAS XML configuration. More...

#include <XMLConfigWriter.h>

Inheritance diagram for nidas::core::XMLConfigWriter:
Inheritance graph
[legend]

Public Member Functions

 XMLConfigWriter ()
 
 XMLConfigWriter (const DSMConfig *dsm)
 
 ~XMLConfigWriter ()
 
int getNumDSM () const
 
void setDiscardDefaultContent (bool val)
 Discard default content.
 
void setEntities (bool val)
 Control writing of entities.
 
void setCanonicalForm (bool val)
 Canonicalize the output.
 
void setPrettyPrint (bool val)
 Format pretty-print.
 
void setNormalizeCharacters (bool val)
 Normalize characters.
 
void setSplitCDATASections (bool val)
 Split CDATA sections.
 
void setValidation (bool val)
 Validation.
 
void setWhitespaceInElement (bool val)
 Whitespace in element content.
 
void setXMLDeclaration (bool val)
 Include xml declaration.
 
void setFilter (xercesc::DOMLSSerializerFilter *filter)
 
virtual void write (xercesc::DOMDocument *doc, const std::string &fileName)
 
virtual void writeNode (xercesc::DOMLSOutput *const dest, const xercesc::DOMNode &node)
 

Private Member Functions

 XMLConfigWriter (const XMLConfigWriter &)
 No copying.
 
XMLConfigWriteroperator= (const XMLConfigWriter &)
 No assignment.
 

Private Attributes

XMLConfigWriterFilter_filter
 
xercesc::DOMImplementation * _impl
 
xercesc::DOMLSSerializer * _writer
 
XMLErrorHandler _errorHandler
 

Detailed Description

An XMLWriter which writes the NIDAS XML configuration.

Constructor & Destructor Documentation

◆ XMLConfigWriter() [1/3]

XMLConfigWriter::XMLConfigWriter ( )

◆ XMLConfigWriter() [2/3]

XMLConfigWriter::XMLConfigWriter ( const DSMConfig * dsm)

◆ ~XMLConfigWriter()

XMLConfigWriter::~XMLConfigWriter ( )

◆ XMLConfigWriter() [3/3]

nidas::core::XMLConfigWriter::XMLConfigWriter ( const XMLConfigWriter & )
private

No copying.

Member Function Documentation

◆ getNumDSM()

int nidas::core::XMLConfigWriter::getNumDSM ( ) const
inline

◆ operator=()

XMLConfigWriter & nidas::core::XMLConfigWriter::operator= ( const XMLConfigWriter & )
private

No assignment.

◆ setCanonicalForm()

void XMLWriter::setCanonicalForm ( bool val)
inherited

Canonicalize the output.

See /link http://xml.apache.org/xerces-c/program-dom.html#DOMWriterFeatures

Parameters
valtrue: is not supported in Xerces-c. Default: false.

References nidas::core::XMLWriter::_writer.

◆ setDiscardDefaultContent()

void XMLWriter::setDiscardDefaultContent ( bool val)
inherited

Discard default content.

See /link http://xml.apache.org/xerces-c/program-dom.html#DOMWriterFeatures

Parameters
valBoolean value specifying whether to discard default values of attributes and content. Default: true.

References nidas::core::XMLWriter::_writer.

◆ setEntities()

void XMLWriter::setEntities ( bool val)
inherited

Control writing of entities.

See /link http://xml.apache.org/xerces-c/program-dom.html#DOMWriterFeatures

Parameters
valtrue: entity references are serialized as
* &entityName; 
. If false, entity references are expanded. Default: true.

References nidas::core::XMLWriter::_writer.

◆ setFilter()

void XMLWriter::setFilter ( xercesc::DOMLSSerializerFilter * filter)
inherited

◆ setNormalizeCharacters()

void XMLWriter::setNormalizeCharacters ( bool val)
inherited

Normalize characters.

See /link http://xml.apache.org/xerces-c/program-dom.html#DOMWriterFeatures

Parameters
valtrue is not supported by Xerces-c. Default: false.

References nidas::core::XMLWriter::_writer.

◆ setPrettyPrint()

void XMLWriter::setPrettyPrint ( bool val)
inherited

Format pretty-print.

See /link http://xml.apache.org/xerces-c/program-dom.html#DOMWriterFeatures

Parameters
valtrue: add whitespace to produce an indented form. Default: false.

References nidas::core::XMLWriter::_writer.

◆ setSplitCDATASections()

void XMLWriter::setSplitCDATASections ( bool val)
inherited

Split CDATA sections.

See /link http://xml.apache.org/xerces-c/program-dom.html#DOMWriterFeatures

Parameters
valtrue: split CDATA sections containing ']]>' or unrepresentable characters in the output encoding. false: signal an errror. Default: true.

References nidas::core::XMLWriter::_writer.

◆ setValidation()

void XMLWriter::setValidation ( bool val)
inherited

Validation.

See /link http://xml.apache.org/xerces-c/program-dom.html#DOMWriterFeatures

Parameters
valfalse: do not report validation errors. true: not supported by Xerces-c. Default: false.

References nidas::core::XMLWriter::_writer.

◆ setWhitespaceInElement()

void XMLWriter::setWhitespaceInElement ( bool val)
inherited

Whitespace in element content.

See /link http://xml.apache.org/xerces-c/program-dom.html#DOMWriterFeatures

Parameters
valtrue: include text nodes that can be considered ignorable whitespace in the DOM tree. false: not supported by Xerces-c. Default: true.

References nidas::core::XMLWriter::_writer.

◆ setXMLDeclaration()

void nidas::core::XMLWriter::setXMLDeclaration ( bool val)
inherited

Include xml declaration.

See /link http://xml.apache.org/xerces-c/program-dom.html#DOMWriterFeatures

Parameters
valtrue: include xml declaration. Default: true.

◆ write()

void XMLWriter::write ( xercesc::DOMDocument * doc,
const std::string & fileName )
virtualinherited

◆ writeNode()

void XMLWriter::writeNode ( xercesc::DOMLSOutput *const dest,
const xercesc::DOMNode & node )
virtualinherited

Member Data Documentation

◆ _errorHandler

XMLErrorHandler nidas::core::XMLWriter::_errorHandler
privateinherited

◆ _filter

XMLConfigWriterFilter* nidas::core::XMLConfigWriter::_filter
private

◆ _impl

xercesc::DOMImplementation* nidas::core::XMLWriter::_impl
privateinherited

◆ _writer

xercesc::DOMLSSerializer* nidas::core::XMLWriter::_writer
privateinherited

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