Eclipse SUMO - Simulation of Urban MObility
GNEEvent_NetworkLoaded.h
Go to the documentation of this file.
1
/****************************************************************************/
2
// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3
// Copyright (C) 2001-2019 German Aerospace Center (DLR) and others.
4
// This program and the accompanying materials
5
// are made available under the terms of the Eclipse Public License v2.0
6
// which accompanies this distribution, and is available at
7
// http://www.eclipse.org/legal/epl-v20.html
8
// SPDX-License-Identifier: EPL-2.0
9
/****************************************************************************/
14
// Event to send when the network has been loaded by GNELoadThread
15
/****************************************************************************/
16
#ifndef GNEEvent_NetworkLoaded_h
17
#define GNEEvent_NetworkLoaded_h
18
19
20
// ===========================================================================
21
// included modules
22
// ===========================================================================
23
#include <
config.h
>
24
25
#include <
utils/gui/events/GUIEvent.h
>
26
27
28
// ===========================================================================
29
// class declarations
30
// ===========================================================================
31
class
GNENet
;
32
33
34
// ===========================================================================
35
// class definitions
36
// ===========================================================================
43
class
GNEEvent_NetworkLoaded
:
public
GUIEvent
{
44
public
:
46
GNEEvent_NetworkLoaded
(
GNENet
* net,
47
const
std::string& file,
48
const
std::string& settingsFile,
49
const
bool
viewportFromRegistry)
50
:
GUIEvent
(
EVENT_SIMULATION_LOADED
),
51
myNet
(net),
myFile
(file),
mySettingsFile
(settingsFile),
myViewportFromRegistry
(viewportFromRegistry) { }
52
54
~GNEEvent_NetworkLoaded
() { }
55
56
public
:
58
GNENet
*
myNet
;
59
61
std::string
myFile
;
62
64
std::string
mySettingsFile
;
65
67
bool
myViewportFromRegistry
;
68
};
69
70
71
#endif
72
73
/****************************************************************************/
74
GNEEvent_NetworkLoaded::GNEEvent_NetworkLoaded
GNEEvent_NetworkLoaded(GNENet *net, const std::string &file, const std::string &settingsFile, const bool viewportFromRegistry)
constructor
Definition:
GNEEvent_NetworkLoaded.h:46
GNENet
A NBNetBuilder extended by visualisation and editing capabilities.
Definition:
GNENet.h:77
GNEEvent_NetworkLoaded::myFile
std::string myFile
the name of the loaded file
Definition:
GNEEvent_NetworkLoaded.h:61
GNEEvent_NetworkLoaded::myNet
GNENet * myNet
the loaded net
Definition:
GNEEvent_NetworkLoaded.h:58
EVENT_SIMULATION_LOADED
@ EVENT_SIMULATION_LOADED
send when a simulation has been loaded
Definition:
GUIEvent.h:36
GNEEvent_NetworkLoaded::mySettingsFile
std::string mySettingsFile
the name of the settings file to load
Definition:
GNEEvent_NetworkLoaded.h:64
GNEEvent_NetworkLoaded::~GNEEvent_NetworkLoaded
~GNEEvent_NetworkLoaded()
destructor
Definition:
GNEEvent_NetworkLoaded.h:54
GNEEvent_NetworkLoaded::myViewportFromRegistry
bool myViewportFromRegistry
whether loading viewport from registry
Definition:
GNEEvent_NetworkLoaded.h:67
GNEEvent_NetworkLoaded
Definition:
GNEEvent_NetworkLoaded.h:43
GUIEvent
Definition:
GUIEvent.h:76
GUIEvent.h
config.h
src
netedit
GNEEvent_NetworkLoaded.h
Generated on Sun Dec 13 2020 08:44:58 for Eclipse SUMO - Simulation of Urban MObility by
1.8.20