Source-highlight Library
langelemsprinter.h
1//
2// C++ Interface: langelemsprinter
3//
4// Description:
5//
6//
7// Author: Lorenzo Bettini <http://www.lorenzobettini.it>, (C) 2006
8//
9// Copyright: See COPYING file that comes with this distribution
10//
11//
12#ifndef LANGELEMSPRINTER_H
13#define LANGELEMSPRINTER_H
14
15#include <set>
16#include <string>
17#include <ostream>
18
19namespace srchilite {
20
27{
28 typedef std::set<std::string> SetOfElements;
29 SetOfElements setOfElements;
30
31public:
33
34 virtual ~LangElemsPrinter();
35
42 void print(const LangElems *elems, std::ostream &os);
43
44protected:
45 branches collect
46 void (const StateLangElem *elem);
47 void (const LangElem *elem);
48 void (const LangElems *elem);
49 void (const NamedSubExpsLangElem *elem);
50 endbranches
51};
52
53}
54
55#endif
Definition: langelem.h:24
Prints all the language elements.
Definition: langelemsprinter.h:27
void print(const LangElems *elems, std::ostream &os)
Prints all the elements contained in the passed LangElems to the specified ostream.
Definition: langelemsprinter.cpp:37
collection of LangElem objects
Definition: langelems.h:34
An element with subparts (subexpressions), each with a possible different name.
Definition: namedsubexpslangelem.h:39
a language element that introduces a new state pattern Composite
Definition: statelangelem.h:38
C++ class: doctemplate.h.
Definition: bufferedoutput.cpp:13