openETCS
case study for the European Train Control System developed for the authors dissertation
SyntaxTransformer.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2010-2011
3  Johannes Feuser <feuser@uni-bremen.de>
4  This file is part of the openETCS library.
5 
6  The openETCS library is free software: you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  any later version.
10 
11  The openETCS library is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with the openETCS library. If not, see <http://www.gnu.org/licenses/>.
18 */
19 
20 /*!
21  * \author Johannes Feuser <feuser@uni-bremen.de>
22  * \brief syntax tarnsformer module
23  */
24 
25 #ifndef __DSM_SYNTAXTRANSFORMER_H__
26 #define __DSM_SYNTAXTRANSFORMER_H__
27 
28 
29 
30 
31 #include <libxml++/parsers/domparser.h>
32 #include <libxml++/validators/schemavalidator.h>
33 #include <map>
34 
35 
36 namespace DSM { class CSyntaxTree; }
37 
38 
39 namespace DSM {
40 
41 
42 /*!
43  * \brief base class for all syntax transformer
44  */
46 {
47  public:
48  /*!
49  * \brief default constructor
50  */
51  CSyntaxTransformer() throw();
52 
53 
54 
55  /*!
56  * \brief destructor
57  */
58  virtual ~CSyntaxTransformer() throw();
59 
60 
61 
62  /*!
63  * \brief gets pointer to generated syntax tree
64  */
65  ::DSM::CSyntaxTree* GetTree() const throw();
66 
67 
68 
69 
70  protected:
71  /*!
72  * \brief pointer to syntax tree
73  *
74  * Pointer to last created syntax tree. Otherwise 0.
75  */
77 
78 
79 
80  /*!
81  * \brief parser object
82  *
83  * libXML++ DOM parser object for parsing model files.
84  */
85  ::xmlpp::DomParser m_XMLParser;
86 
87 
88 
89 
90 }; // class CSyntaxTransformer
91 
92 
93 
94 
95 
96 } // namespace DSM
97 
98 #endif // __ DSM_SYNTAXTRANSFORMER_H__

Copyright (C) 2010-2012 Johannes Feuser (feuser@uni-bremen.de)
The openETCS library is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.
The openETCS library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with the openETCS library. If not, see "http://www.gnu.org/licenses/.