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 
19 namespace srchilite {
20 
27 {
28  typedef std::set<std::string> SetOfElements;
29  SetOfElements setOfElements;
30 
31 public:
33 
34  virtual ~LangElemsPrinter();
35 
42  void print(const LangElems *elems, std::ostream &os);
43 
44 protected:
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:23
collection of LangElem objects
Definition: langelems.h:33
C++ class: doctemplate.h.
Definition: bufferedoutput.cpp:13
a language element that introduces a new state pattern Composite
Definition: statelangelem.h:37
Prints all the language elements.
Definition: langelemsprinter.h:26
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
An element with subparts (subexpressions), each with a possible different name.
Definition: namedsubexpslangelem.h:38