OOStuBS - Technische Informatik II (TI-II)  2.4
parser.h
gehe zur Dokumentation dieser Datei
1 #ifndef __parser_header__
2 #define __parser_header__
3 
4 #include <config.h>
5 #include <common/o_stream.h>
6 
7 class Parser{
8  private:
10  unsigned int mNum;
11  bool mFinished;
12 
13  public:
14  enum Commands{
20  };
21  Parser();
22  void clear();
23  bool feed(char c);
24  void erase();
25  bool finished() const;
26  Commands result(const char** arg) const;
27  const char* commands() const;
28 };
29 
30 O_Stream& operator<<(O_Stream& o, const Parser& p);
31 
32 #endif