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-2017 German Aerospace Center (DLR) and others.
4 /****************************************************************************/
5 //
6 // This program and the accompanying materials
7 // are made available under the terms of the Eclipse Public License v2.0
8 // which accompanies this distribution, and is available at
9 // http://www.eclipse.org/legal/epl-v20.html
10 //
11 /****************************************************************************/
17 // Event to send when the network has been loaded by GNELoadThread
18 /****************************************************************************/
19 #ifndef GNEEvent_NetworkLoaded_h
20 #define GNEEvent_NetworkLoaded_h
21 
22 
23 // ===========================================================================
24 // included modules
25 // ===========================================================================
26 #ifdef _MSC_VER
27 #include <windows_config.h>
28 #else
29 #include <config.h>
30 #endif
31 
32 #include <string>
33 #include <iostream>
35 #include <utils/common/SUMOTime.h>
36 
37 
38 // ===========================================================================
39 // class declarations
40 // ===========================================================================
41 class GNENet;
42 
43 
44 // ===========================================================================
45 // class definitions
46 // ===========================================================================
54 public:
57  const std::string& file,
58  const std::string& settingsFile,
59  const bool viewportFromRegistry)
61  myNet(net), myFile(file), mySettingsFile(settingsFile), myViewportFromRegistry(viewportFromRegistry) { }
62 
65 
66 public:
69 
71  std::string myFile;
72 
74  std::string mySettingsFile;
75 
78 };
79 
80 
81 #endif
82 
83 /****************************************************************************/
84 
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:91
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:43