SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
GNEEvent_NetworkLoaded.h
Go to the documentation of this file.
1 /****************************************************************************/
7 // Event to send when the network has been loaded by GNELoadThread
8 /****************************************************************************/
9 // SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
10 // Copyright (C) 2001-2016 DLR (http://www.dlr.de/) and contributors
11 /****************************************************************************/
12 //
13 // This file is part of SUMO.
14 // SUMO is free software: you can redistribute it and/or modify
15 // it under the terms of the GNU General Public License as published by
16 // the Free Software Foundation, either version 3 of the License, or
17 // (at your option) any later version.
18 //
19 /****************************************************************************/
20 #ifndef GNEEvent_NetworkLoaded_h
21 #define GNEEvent_NetworkLoaded_h
22 
23 
24 // ===========================================================================
25 // included modules
26 // ===========================================================================
27 #ifdef _MSC_VER
28 #include <windows_config.h>
29 #else
30 #include <config.h>
31 #endif
32 
33 #include <string>
34 #include <iostream>
36 #include <utils/common/SUMOTime.h>
37 
38 
39 // ===========================================================================
40 // class declarations
41 // ===========================================================================
42 class GNENet;
43 
44 
45 // ===========================================================================
46 // class definitions
47 // ===========================================================================
55 public:
58  const std::string& file,
59  const std::string& settingsFile,
60  const bool viewportFromRegistry)
62  myNet(net), myFile(file), mySettingsFile(settingsFile), myViewportFromRegistry(viewportFromRegistry) { }
63 
66 
67 public:
70 
72  std::string myFile;
73 
75  std::string mySettingsFile;
76 
79 };
80 
81 
82 #endif
83 
84 /****************************************************************************/
85 
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:87
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:44