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

#include <SaxParseInterface.h>

Static Public Member Functions

static void parseMemory (const std::string &xmlIn, ext::deque< Token > &out)
 
static ext::deque< TokenparseMemory (const std::string &xmlIn)
 
static void parseFile (const std::string &filename, ext::deque< Token > &out)
 
static ext::deque< TokenparseFile (const std::string &filename)
 
static void parseStdin (ext::deque< Token > &out)
 
static ext::deque< TokenparseStdin ()
 
static void parseStream (ext::istream &in, ext::deque< Token > &out)
 
static ext::deque< TokenparseStream (ext::istream &in)
 

Detailed Description

This class performs token parsing of file, string, or stream containing XML. Contains callback method for libxml SAX parser.

Member Function Documentation

◆ parseFile() [1/2]

ext::deque< Token > sax::SaxParseInterface::parseFile ( const std::string &  filename)
static

Parses the file containing XML.

Parameters
filenameinput XML
Returns
parsed list of xml tokens
Exceptions
CommonExceptionwhen an error occurs (e.g. file doesn't exist, XML is not valid)
Here is the call graph for this function:

◆ parseFile() [2/2]

void sax::SaxParseInterface::parseFile ( const std::string &  filename,
ext::deque< Token > &  out 
)
static

Parses the file containing XML.

Parameters
filenameinput XML
outparsed list of xml tokens
Exceptions
CommonExceptionwhen an error occurs (e.g. file doesn't exist, XML is not valid)
Here is the caller graph for this function:

◆ parseMemory() [1/2]

ext::deque< Token > sax::SaxParseInterface::parseMemory ( const std::string &  xmlIn)
static

Parses the string containing XML.

Parameters
xmlIninput XML
Returns
parsed list of xml tokens
Exceptions
CommonExceptionwhen an error occurs (e.g. XML is not valid)
Here is the call graph for this function:

◆ parseMemory() [2/2]

void sax::SaxParseInterface::parseMemory ( const std::string &  xmlIn,
ext::deque< Token > &  out 
)
static

Parses the string containing XML.

Parameters
xmlIninput XML
outparsed list of xml tokens
Exceptions
CommonExceptionwhen an error occurs (e.g. XML is not valid)
Here is the caller graph for this function:

◆ parseStdin() [1/2]

ext::deque< Token > sax::SaxParseInterface::parseStdin ( )
static

Parses the XML from stdin.

Returns
parsed list of xml tokens
Exceptions
CommonExceptionwhen an error occurs (e.g. XML is not valid)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parseStdin() [2/2]

void sax::SaxParseInterface::parseStdin ( ext::deque< Token > &  out)
static

Parses the XML from stdin.

Parameters
outparsed list of xml tokens
Exceptions
CommonExceptionwhen an error occurs (e.g. XML is not valid)
Here is the call graph for this function:

◆ parseStream() [1/2]

ext::deque< Token > sax::SaxParseInterface::parseStream ( ext::istream in)
static

Parses the XML from stream.

Parameters
ininput XML
Returns
parsed list of xml tokens
Exceptions
CommonExceptionwhen an error occurs (e.g. XML is not valid)
Here is the call graph for this function:

◆ parseStream() [2/2]

void sax::SaxParseInterface::parseStream ( ext::istream in,
ext::deque< Token > &  out 
)
static

Parses the XML from stream.

Parameters
ininput XML
outparsed list of xml tokens
Exceptions
CommonExceptionwhen an error occurs (e.g. XML is not valid)
Here is the call graph for this function:
Here is the caller graph for this function:

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