Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
Static Public Member Functions
sax::SaxComposeInterface Class Reference

#include <SaxComposeInterface.h>

Static Public Member Functions

static void composeMemory (std::string &xmlOut, const ext::deque< Token > &in)
 
static std::string composeMemory (const ext::deque< Token > &in)
 
static void composeFile (const std::string &filename, const ext::deque< Token > &in)
 
static void composeStdout (const ext::deque< Token > &in)
 
static void composeStream (ext::ostream &out, const ext::deque< Token > &in)
 

Detailed Description

This class performs composing of XML Tokens to file, string, or stream. Contains callback method for libxml SAX composer.

Member Function Documentation

◆ composeFile()

void sax::SaxComposeInterface::composeFile ( const std::string &  filename,
const ext::deque< Token > &  in 
)
static

Composes the XML to a file.

Parameters
filenameresulting XML file destination
inlist of xml tokens
Exceptions
CommonExceptionwhen an error occurs (e.g. xml tokens incorrectly nested)
Here is the caller graph for this function:

◆ composeMemory() [1/2]

std::string sax::SaxComposeInterface::composeMemory ( const ext::deque< Token > &  in)
static

Composes the XML to a string.

Parameters
inlist of xml tokens
Returns
resulting XML
Exceptions
CommonExceptionwhen an error occurs (e.g. xml tokens incorrectly nested)
Here is the call graph for this function:

◆ composeMemory() [2/2]

void sax::SaxComposeInterface::composeMemory ( std::string &  xmlOut,
const ext::deque< Token > &  in 
)
static

Composes the XML to a string.

Parameters
xmlOutresulting XML
inlist of xml tokens
Exceptions
CommonExceptionwhen an error occurs (e.g. xml tokens incorrectly nested)
Here is the caller graph for this function:

◆ composeStdout()

void sax::SaxComposeInterface::composeStdout ( const ext::deque< Token > &  in)
static

Composes the XML to a stdout.

Parameters
inlist of xml tokens
Exceptions
CommonExceptionwhen an error occurs (e.g. xml tokens incorrectly nested)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ composeStream()

void sax::SaxComposeInterface::composeStream ( ext::ostream out,
const ext::deque< Token > &  in 
)
static

Composes the XML to a stream.

Parameters
outresulting XML stream destination
inlist of xml tokens
Exceptions
CommonExceptionwhen an error occurs (e.g. xml tokens incorrectly nested)
Here is the caller graph for this function:

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