openETCS
case study for the European Train Control System developed for the authors dissertation
GOPPRRSyntaxTree.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
23  */
24 
25 #ifndef __DSM_GOPPRRSYNTAXTREE_H__
26 #define __DSM_GOPPRRSYNTAXTREE_H__
27 
28 
29 
30 
31 #include "SyntaxTree.h"
32 #include "../GOPPRR/GraphicalContainer.h"
33 #include "../GOPPRR/Binding.h"
34 
35 
36 namespace GOPPRR { struct CProject; }
37 namespace GOPPRR { struct CGraph; }
38 
39 
40 namespace DSM {
41 
42 
43 /*!
44  * \brief syntax tree data type for GOPPRR
45  */
47 {
48  public:
49  /*!
50  * \brief general constuctor
51  *
52  * general constructor
53  *
54  * \param{in] pProject: pointer to project (takes possesion)
55  * \param[in] pRootGraph pointer to root graph within pProject
56  *
57  */
58  CGOPPRRSyntaxTree(GOPPRR::CProject * pProject, GOPPRR::CGraph * pRootGraph = 0) throw();
59 
60 
61 
62  /*!
63  * \brief destructor
64  */
65  virtual ~CGOPPRRSyntaxTree() throw();
66 
67 
68 
69  /*!
70  * \brief gets the syntax tree data structure
71  *
72  * \return pointer to internal syntax tree
73  */
74  virtual void * GetTree() throw();
75 
76 
77 
78  /*!
79  * \brief gets the pointer to create GOPRR project
80  */
81  ::GOPPRR::CProject* GetProject() throw();
82 
83 
84 
85  /*!
86  * \brief gets the pointer to the root graph
87  *
88  * \return pointer to root graph of current project tree
89  */
90  GOPPRR::CGraph* GetRootGraph() const throw();
91 
92 
93 
94 
95  private:
96  /*!
97  * \brief pointer to GOPRR project
98  */
100 
101 
102 
103  /*!
104  * \brief pointer to graph, which is the root node
105  */
107 
108 
109 
110 
111 }; // class CGOPPRRSyntaxTree : public ::DSM::CSyntaxTree
112 
113 
114 
115 
116 
117 } // namespace DSM
118 
119 #endif // __ DSM_GOPPRRSYNTAXTREE_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/.