Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
SaxComposeInterface.h
Go to the documentation of this file.
1
6#pragma once
7
8#include <libxml/xmlwriter.h>
9#include <alib/deque>
10#include "Token.h"
11
12namespace sax {
13
19 static void xmlSAXUserCompose(xmlTextWriterPtr writer, const ext::deque<Token>& in);
20public:
27 static void composeMemory(std::string& xmlOut, const ext::deque<Token>& in);
28
35 static std::string composeMemory ( const ext::deque < Token > & in );
36
43 static void composeFile(const std::string& filename, const ext::deque<Token>& in);
44
50 static void composeStdout(const ext::deque<Token>& in);
51
58 static void composeStream(ext::ostream& out, const ext::deque<Token>& in);
59};
60
61} /* namespace sax */
62
63
Class extending the deque class from the standard library. Original reason is to allow printing of th...
Definition: deque.hpp:44
Definition: ostream.h:14
Definition: SaxComposeInterface.h:18
static void composeFile(const std::string &filename, const ext::deque< Token > &in)
Definition: SaxComposeInterface.cpp:37
static void composeStream(ext::ostream &out, const ext::deque< Token > &in)
Definition: SaxComposeInterface.cpp:49
static void composeMemory(std::string &xmlOut, const ext::deque< Token > &in)
Definition: SaxComposeInterface.cpp:20
static void composeStdout(const ext::deque< Token > &in)
Definition: SaxComposeInterface.cpp:45
Definition: ComposerException.cpp:8