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 
27 
28 
29 // ===========================================================================
30 // class declarations
31 // ===========================================================================
32 class GNENet;
33 
34 
35 // ===========================================================================
36 // class definitions
37 // ===========================================================================
45 public:
48  const std::string& file,
49  const std::string& settingsFile,
50  const bool viewportFromRegistry)
52  myNet(net), myFile(file), mySettingsFile(settingsFile), myViewportFromRegistry(viewportFromRegistry) { }
53 
56 
57 public:
60 
62  std::string myFile;
63 
65  std::string mySettingsFile;
66 
69 };
70 
71 
72 #endif
73 
74 /****************************************************************************/
75 
GNEEvent_NetworkLoaded(GNENet *net, const std::string &file, const std::string &settingsFile, const bool viewportFromRegistry)
constructor
A NBNetBuilder extended by visualisation and editing capabilities.
Definition: GNENet.h:78
std::string myFile
the name of the loaded file
GNENet * myNet
the loaded net
std::string mySettingsFile
the name of the settings file to load
bool myViewportFromRegistry
whether loading viewport from registry
send when a simulation has been loaded
Definition: GUIEvent.h:37