openETCS
case study for the European Train Control System developed for the authors dissertation
GraphicalContainer.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 "GraphicalContainer.h"
23 #include "Object.h"
24 #include "Relationship.h"
25 
26 
27 namespace GOPPRR {
28 
29 
30 CGraphicalContainer::CGraphicalContainer(GOPPRR::CObject * const pContainer, const std::map< std::string, ::GOPPRR::CObject* > & ContainedObjects, const std::map< std::string, ::GOPPRR::CRelationship* > & ContainedRelationships) throw()
31 :m_pContainer(pContainer),
32  m_ContainedObjects(ContainedObjects),
33  m_ContainedRelationships(ContainedRelationships)
34 {
35  // Bouml preserved body begin 00034E82
36  // Bouml preserved body end 00034E82
37 
38 } // CGraphicalContainer::CGraphicalContainer() throw()
39 
40 
41 
42 
44 :m_pContainer(Source.m_pContainer),
45  m_ContainedObjects(Source.m_ContainedObjects),
46  m_ContainedRelationships(Source.m_ContainedRelationships)
47 {
48  // Bouml preserved body begin 00034F82
49  // Bouml preserved body end 00034F82
50 
51 } // CGraphicalContainer::CGraphicalContainer() throw()
52 
53 
54 
55 
57 {
58  // Bouml preserved body begin 00034F02
59  // Bouml preserved body end 00034F02
60 
61 } // CGraphicalContainer::~CGraphicalContainer() throw()
62 
63 
64 
65 
67 {
68  // Bouml preserved body begin 00048E82
69  // assign member values from source
70  m_pContainer = Source.m_pContainer;
71  m_ContainedObjects = Source.m_ContainedObjects;
72  m_ContainedRelationships = Source.m_ContainedRelationships;
73 
74  // return reference to this instance
75  return *this;
76  // Bouml preserved body end 00048E82
77 
78 } // GOPPRR::CGraphicalContainer CGraphicalContainer::operator=() throw()
79 
80 
81 
82 
83 
84 
85 } // 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/.