openETCS
case study for the European Train Control System developed for the authors dissertation
Connection.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 "Connection.h"
26 #include "Object.h"
27 #include "Role.h"
28 #include "Port.h"
29 
30 
31 namespace GOPPRR {
32 
33 
34 CConnection::CCall::CCall(GOPPRR::CObject * const pObject, GOPPRR::CRole * const pRole, GOPPRR::CPort * const pPort) throw()
35 :m_pPort(pPort),
36  m_pObject(pObject),
37  m_pRole(pRole)
38 {
39  // Bouml preserved body begin 0003EB02
40  // Bouml preserved body end 0003EB02
41 
42 } // CConnection::CCall::CCall() throw()
43 
44 
45 
46 
48 :m_pPort(Source.m_pPort),
49  m_pObject(Source.m_pObject),
50  m_pRole(Source.m_pRole)
51 {
52  // Bouml preserved body begin 0003EC02
53  // Bouml preserved body end 0003EC02
54 
55 } // CConnection::CCall::CCall() throw()
56 
57 
58 
59 
61 {
62  // Bouml preserved body begin 0003EB82
63  // Bouml preserved body end 0003EB82
64 
65 } // CConnection::CCall::~CCall() throw()
66 
67 
68 
69 
71 {
72  // Bouml preserved body begin 00048F82
73  // assign member values from source
74  m_pPort = Source.m_pPort;
75  m_pObject = Source.m_pObject;
76  m_pRole = Source.m_pRole;
77 
78 
79  // return reference to this instance
80  return *this;
81  // Bouml preserved body end 00048F82
82 
83 } // GOPPRR::CConnection::CCall CConnection::CCall::operator=() throw()
84 
85 
86 
87 
88 CConnection::CConnection(const ::std::vector< ::GOPPRR::CConnection::CCall >& Calls) throw()
89 :m_Calls(Calls)
90 {
91  // Bouml preserved body begin 00026B82
92  // Bouml preserved body end 00026B82
93 
94 } // CConnection::CConnection() throw()
95 
96 
97 
98 
100 :m_Calls(Source.m_Calls)
101 {
102  // Bouml preserved body begin 00026C82
103  // Bouml preserved body end 00026C82
104 
105 } // CConnection::CConnection() throw()
106 
107 
108 
109 
111 {
112  // Bouml preserved body begin 00026C02
113  // Bouml preserved body end 00026C02
114 
115 } // CConnection::~CConnection() throw()
116 
117 
118 
119 
121 {
122  // Bouml preserved body begin 00048F02
123  // assign member values from source
124  m_Calls = Source.m_Calls;
125 
126  // return reference to this instance
127  return *this;
128  // Bouml preserved body end 00048F02
129 
130 } // GOPPRR::CConnection CConnection::operator=() throw()
131 
132 
133 
134 
135 
136 
137 } // 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/.