openETCS
case study for the European Train Control System developed for the authors dissertation
Project.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 
22 #include "Project.h"
23 #include "Graph.h"
24 #include "Object.h"
25 #include "Property.h"
26 #include "Port.h"
27 #include "Role.h"
28 #include "Relationship.h"
29 
30 
31 namespace GOPPRR {
32 
33 
34 CProject::CProject(const ::std::string & ProjectName) throw()
35 :m_Name(ProjectName)
36 {
37  // Bouml preserved body begin 0004AA02
38  // empty constructor
39  // Bouml preserved body end 0004AA02
40 
41 } // CProject::CProject() throw()
42 
43 
44 
45 
46 CProject::CProject(const GOPPRR::CProject & Source) throw()
47 :m_GraphSet(Source.m_GraphSet),
48  m_ObjectSet(Source.m_ObjectSet),
49  m_PropertySet(Source.m_PropertySet),
50  m_PortSet(Source.m_PortSet),
51  m_RoleSet(Source.m_RoleSet),
52  m_RelationshipSet(Source.m_RelationshipSet)
53 {
54  // Bouml preserved body begin 00049082
55  // Bouml preserved body end 00049082
56 
57 } // CProject::CProject() throw()
58 
59 
60 
61 
63 {
64  // Bouml preserved body begin 00034D82
65  // empty destructor
66  // Bouml preserved body end 00034D82
67 
68 } // CProject::~CProject() throw()
69 
70 
71 
72 
74 {
75  // Bouml preserved body begin 00048E02
76  // assign member values from source
77  m_Name = Source.m_Name;
78  m_GraphSet = Source.m_GraphSet;
79  m_ObjectSet = Source.m_ObjectSet;
80  m_PropertySet = Source.m_PropertySet;
81  m_PortSet = Source.m_PortSet;
82  m_RelationshipSet = Source.m_RelationshipSet;
83  m_RoleSet = Source.m_RoleSet;
84 
85 
86  // return reference to this instance
87  return *this;
88  // Bouml preserved body end 00048E02
89 
90 } // GOPPRR::CProject CProject::operator=() throw()
91 
92 
93 
94 
95 
96 
97 } // 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/.