KEY2StyleParser.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /*
3  * This file is part of the libetonyek project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  */
9 
10 #ifndef KEY2STYLEPARSER_H_INCLUDED
11 #define KEY2STYLEPARSER_H_INCLUDED
12 
13 #include "KEY2ParserUtils.h"
14 #include "KEYPropertyMap.h"
15 #include "KEYTypes_fwd.h"
16 
17 namespace libetonyek
18 {
19 
20 class KEYCollector;
21 class KEYDefaults;
22 class KEYXMLReader;
23 
25 {
26  // disable copying
27  KEY2StyleParser(const KEY2StyleParser &other);
29 
30 public:
31  KEY2StyleParser(int nameId, int nsId, KEYCollector *collector, const KEYDefaults &defaults, bool nested = false);
32 
33  void parse(const KEYXMLReader &reader);
34 
35 private:
36  void parseProperty(const KEYXMLReader &reader, const char *key = 0);
37 
47  bool parsePropertyImpl(const KEYXMLReader &reader, const int propertyId, const char *key);
48 
49  void parsePropertyMap(const KEYXMLReader &reader);
50 
52 
53 private:
54  const int m_nameId;
55  const int m_nsId;
56  const bool m_nested;
60 };
61 
62 }
63 
64 #endif // KEY2STYLEPARSER_H_INCLUDED
65 
66 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */

Generated for libetonyek by doxygen 1.8.3.1