openETCS
case study for the European Train Control System developed for the authors dissertation
Project.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 
22 #ifndef __GOPPRR_PROJECT_H__
23 #define __GOPPRR_PROJECT_H__
24 
25 
26 
27 
28 #include <string>
29 #include <map>
30 
31 
32 namespace GOPPRR { struct CGraph; }
33 namespace GOPPRR { struct CObject; }
34 namespace GOPPRR { struct CProperty; }
35 namespace GOPPRR { struct CPort; }
36 namespace GOPPRR { struct CRole; }
37 namespace GOPPRR { struct CRelationship; }
38 
39 
40 namespace GOPPRR {
41 
42 
43 /*!
44  * \brief project class
45  */
46 struct CProject
47 {
48  /*!
49  * \brief general constructor
50  *
51  * \param[in] ProjectName literal name of project
52  */
53  CProject(const ::std::string & ProjectName = "") throw();
54 
55 
56 
57  /*!
58  * \brief copy constructor
59  *
60  * \param[in] Source source object to copy
61  */
62  CProject(const CProject & Source) throw();
63 
64 
65 
66  virtual ~CProject() throw();
67 
68 
69 
70  /*!
71  * \brief assignment operator
72  *
73  * \param[in] Source object instance to assign from
74  */
75  CProject & operator=(const CProject& Source) throw();
76 
77 
78 
79  /*!
80  * \brief literal name of project
81  */
82  ::std::string m_Name;
83 
84 
85 
86  /*!
87  * \brief set of graphs in a project
88  *
89  * Set of graphs in a project indexed by
90  * their OID.
91  */
92  ::std::map< std::string,GOPPRR::CGraph > m_GraphSet;
93 
94 
95 
96  /*!
97  * \brief set of objects in a project
98  *
99  * Set of objects in a project indexed
100  * by their OID.
101  */
102  ::std::map< std::string,GOPPRR::CObject > m_ObjectSet;
103 
104 
105 
106  /*!
107  * \brief set of properties in a project
108  *
109  * Set of properties in a project indexed
110  * by their OID.
111  */
112  ::std::map< std::string,GOPPRR::CProperty > m_PropertySet;
113 
114 
115 
116  /*!
117  * \brief set of ports in a project
118  *
119  * Set of ports in a project indexed
120  * by their OID.
121  */
122  ::std::map< std::string,GOPPRR::CPort > m_PortSet;
123 
124 
125 
126  /*!
127  * \brief set of roles in a project
128  *
129  * Set of roles in a project indexed
130  * by their OID.
131  */
132  ::std::map< std::string,GOPPRR::CRole > m_RoleSet;
133 
134 
135 
136  /*!
137  * \brief set of relationships in a project
138  *
139  * Set of relationships in a project indexed
140  * by their OID.
141  */
142  ::std::map< std::string,GOPPRR::CRelationship > m_RelationshipSet;
143 
144 
145 
146 
147 }; // struct CProject
148 
149 
150 
151 
152 
153 } // namespace GOPPRR
154 
155 #endif // __ GOPPRR_PROJECT_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/.