SUMO - Simulation of Urban MObility
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
GUILoadThread.h
Go to the documentation of this file.
1
/****************************************************************************/
9
// Class describing the thread that performs the loading of a simulation
10
/****************************************************************************/
11
// SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
12
// Copyright (C) 2001-2013 DLR (http://www.dlr.de/) and contributors
13
/****************************************************************************/
14
//
15
// This file is part of SUMO.
16
// SUMO is free software: you can redistribute it and/or modify
17
// it under the terms of the GNU General Public License as published by
18
// the Free Software Foundation, either version 3 of the License, or
19
// (at your option) any later version.
20
//
21
/****************************************************************************/
22
#ifndef GUILoadThread_h
23
#define GUILoadThread_h
24
25
26
// ===========================================================================
27
// included modules
28
// ===========================================================================
29
#ifdef _MSC_VER
30
#include <
windows_config.h
>
31
#else
32
#include <
config.h
>
33
#endif
34
35
#include <
utils/common/SUMOTime.h
>
36
#include <
utils/foxtools/FXSingleEventThread.h
>
37
#include <
utils/foxtools/FXThreadEvent.h
>
38
#include <
utils/common/MsgHandler.h
>
39
40
41
// ===========================================================================
42
// class declarations
43
// ===========================================================================
44
class
MFXInterThreadEventClient
;
45
class
MFXEventQue
;
46
class
GUINet
;
47
48
49
// ===========================================================================
50
// class definitions
51
// ===========================================================================
55
class
GUILoadThread
:
public
FXSingleEventThread
{
56
public
:
58
GUILoadThread
(FXApp* app,
MFXInterThreadEventClient
* mw,
MFXEventQue
& eq,
59
FXEX::FXThreadEvent
& ev);
60
62
virtual
~GUILoadThread
();
63
66
FXint
run
();
67
69
void
load
(
const
std::string& file,
bool
isNet);
70
72
void
retrieveMessage
(
const
MsgHandler::MsgType
type,
const
std::string& msg);
73
74
const
std::string&
getFileName
()
const
;
75
76
protected
:
77
virtual
bool
initOptions
();
78
79
85
void
submitEndAndCleanup
(
GUINet
* net,
const
SUMOTime
simStartTime,
const
SUMOTime
simEndTime,
86
const
std::vector<std::string>& guiSettingsFiles = std::vector<std::string>(),
87
const
bool
osgView =
false
);
88
89
protected
:
91
MFXInterThreadEventClient
*
myParent
;
92
94
std::string
myFile
;
95
98
OutputDevice
*
myErrorRetriever
, *
myMessageRetriever
, *
myWarningRetriever
;
99
100
MFXEventQue
&
myEventQue
;
101
102
FXEX::FXThreadEvent
&
myEventThrow
;
103
105
bool
myLoadNet
;
106
107
};
108
109
110
#endif
111
112
/****************************************************************************/
build
buildd
sumo-0.17.1~dfsg
src
gui
GUILoadThread.h
Generated on Sun Jun 16 2013 17:30:15 for SUMO - Simulation of Urban MObility by
1.8.3.1