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
/****************************************************************************/
15
// Event to send when the network has been loaded by GNELoadThread
16
/****************************************************************************/
17
#ifndef GNEEvent_NetworkLoaded_h
18
#define GNEEvent_NetworkLoaded_h
19
20
21
// ===========================================================================
22
// included modules
23
// ===========================================================================
24
#include <
config.h
>
25
26
#include <
utils/gui/events/GUIEvent.h
>
27
28
29
// ===========================================================================
30
// class declarations
31
// ===========================================================================
32
class
GNENet
;
33
34
35
// ===========================================================================
36
// class definitions
37
// ===========================================================================
44
class
GNEEvent_NetworkLoaded
:
public
GUIEvent
{
45
public
:
47
GNEEvent_NetworkLoaded
(
GNENet
* net,
48
const
std::string& file,
49
const
std::string& settingsFile,
50
const
bool
viewportFromRegistry)
51
:
GUIEvent
(
EVENT_SIMULATION_LOADED
),
52
myNet
(net),
myFile
(file),
mySettingsFile
(settingsFile),
myViewportFromRegistry
(viewportFromRegistry) { }
53
55
~GNEEvent_NetworkLoaded
() { }
56
57
public
:
59
GNENet
*
myNet
;
60
62
std::string
myFile
;
63
65
std::string
mySettingsFile
;
66
68
bool
myViewportFromRegistry
;
69
};
70
71
72
#endif
73
74
/****************************************************************************/
75
GNEEvent_NetworkLoaded::GNEEvent_NetworkLoaded
GNEEvent_NetworkLoaded(GNENet *net, const std::string &file, const std::string &settingsFile, const bool viewportFromRegistry)
constructor
Definition:
GNEEvent_NetworkLoaded.h:47
GNENet
A NBNetBuilder extended by visualisation and editing capabilities.
Definition:
GNENet.h:78
GNEEvent_NetworkLoaded::myFile
std::string myFile
the name of the loaded file
Definition:
GNEEvent_NetworkLoaded.h:62
GNEEvent_NetworkLoaded::myNet
GNENet * myNet
the loaded net
Definition:
GNEEvent_NetworkLoaded.h:59
EVENT_SIMULATION_LOADED
send when a simulation has been loaded
Definition:
GUIEvent.h:37
GNEEvent_NetworkLoaded::mySettingsFile
std::string mySettingsFile
the name of the settings file to load
Definition:
GNEEvent_NetworkLoaded.h:65
GNEEvent_NetworkLoaded::~GNEEvent_NetworkLoaded
~GNEEvent_NetworkLoaded()
destructor
Definition:
GNEEvent_NetworkLoaded.h:55
GNEEvent_NetworkLoaded::myViewportFromRegistry
bool myViewportFromRegistry
whether loading viewport from registry
Definition:
GNEEvent_NetworkLoaded.h:68
GNEEvent_NetworkLoaded
Definition:
GNEEvent_NetworkLoaded.h:44
GUIEvent
Definition:
GUIEvent.h:77
GUIEvent.h
config.h
src
netedit
GNEEvent_NetworkLoaded.h
Generated on Wed Jan 15 2020 15:04:13 for Eclipse SUMO - Simulation of Urban MObility by
1.8.16