Debian Codegraph @

rudeconfig/src/ParserJuly2004.h

raw
1 // ParserJuly2004.h
2 //
3 // Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 Matthew Flood
4 // See file AUTHORS for contact information
5 //
6 // This file is part of RudeConfig.
7 //
8 // RudeConfig is free software; you can redistribute it and/or modify
9 // it under the terms of the GNU General Public License as published by
10 // the Free Software Foundation; either version 2, or (at your option)
11 // any later version.
12 //
13 // RudeConfig is distributed in the hope that it will be useful,
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 // GNU General Public License for more details.
17 //
18 // You should have received a copy of the GNU General Public License
19 // along with RudeConfig; (see COPYING) if not, write to the Free Software
20 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
21 // 02111-1307, USA.
22 //------------------------------------------------------------------------
23
24 #ifndef INPUT_ParserJuly2004_h
25 #define INPUT_ParserJuly2004_h
26
27 #ifndef INPUT_AbstractParser_h
28 #include "AbstractParser.h"
29 #endif
30
31 #ifndef INCLUDED_IOSTREAM
32 #include <iostream>
33 #define INCLUDED_IOSTREAM
34 #endif
35
36 #ifndef INCLUDED_STRING
37 #include <string>
38 #define INCLUDED_STRING
39 #endif
40
41 namespace rude{
42 namespace config{
43
44 class ParserJuly2004: public AbstractParser
45 {
46
47 protected:
48
49 void stripTrailing(std::string&);
50 inline bool isEOL(char c);
51 inline bool chompEOL(std::istream& inputstream);
52
53 public:
54
55 bool parse(std::istream& inputstream, AbstractOrganiser& organiser);
56
57 };
58
59 }} // end namespaces
60
61 #endif
62