openETCS
case study for the European Train Control System developed for the authors dissertation
Role.cpp
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 #include "Role.h"
26 #include "Graph.h"
27 
28 
29 namespace GOPPRR {
30 
31 
32 CRole::CRole(const ::std::string& OID, const ::std::string& Type, const ::std::string& ID, const std::map< ::std::string, ::GOPPRR::CProperty* >& Properties) throw()
33 :CNonProperty(OID, Type, ID, Properties)
34 {
35  // Bouml preserved body begin 00026982
36  // empty constructor
37  // Bouml preserved body end 00026982
38 
39 } // CRole::CRole() throw()
40 
41 
42 
43 
44 CRole::CRole(const GOPPRR::CRole& Source) throw()
45 :CNonProperty(Source),
46  m_Explosions(Source.m_Explosions)
47 {
48  // Bouml preserved body begin 00026D02
49  // empty constructor
50  // Bouml preserved body end 00026D02
51 
52 } // CRole::CRole() throw()
53 
54 
55 
56 
57 CRole::~CRole() throw()
58 {
59  // Bouml preserved body begin 00026A02
60  // Bouml preserved body end 00026A02
61 
62 } // CRole::~CRole() throw()
63 
64 
65 
66 
67 GOPPRR::CRole & CRole::operator=(const GOPPRR::CRole& Source) throw()
68 {
69  // Bouml preserved body begin 00048C02
70  // assign member values from source
71  m_Explosions = Source.m_Explosions;
72 
73  // call operator of base class
74  ::GOPPRR::CNonProperty::operator =(Source);
75 
76  // return reference to this instance
77  return *this;
78  // Bouml preserved body end 00048C02
79 
80 } // GOPPRR::CRole CRole::operator=() throw()
81 
82 
83 
84 
85 
86 
87 } // namespace GOPPRR

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/.