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
srchilite::StateLangElem
Definition: statelangelem.h:38
srchilite
C++ class: doctemplate.h.
Definition: bufferedoutput.cpp:13
srchilite::LangElem
Definition: langelem.h:24
srchilite::LangElemsPrinter::print
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
srchilite::LangElems
Definition: langelems.h:34
srchilite::LangElemsPrinter
Prints all the language elements.
Definition: langelemsprinter.h:27
srchilite::NamedSubExpsLangElem
Definition: namedsubexpslangelem.h:39