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-2018 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 <string>
27 #include <iostream>
29 #include <utils/common/SUMOTime.h>
30 
31 
32 // ===========================================================================
33 // class declarations
34 // ===========================================================================
35 class GNENet;
36 
37 
38 // ===========================================================================
39 // class definitions
40 // ===========================================================================
48 public:
51  const std::string& file,
52  const std::string& settingsFile,
53  const bool viewportFromRegistry)
55  myNet(net), myFile(file), mySettingsFile(settingsFile), myViewportFromRegistry(viewportFromRegistry) { }
56 
59 
60 public:
63 
65  std::string myFile;
66 
68  std::string mySettingsFile;
69 
72 };
73 
74 
75 #endif
76 
77 /****************************************************************************/
78 
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:80
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