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-2012 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,
SUMOTime
simStartTime,
SUMOTime
simEndTime);
86
87
protected
:
89
MFXInterThreadEventClient
*
myParent
;
90
92
std::string
myFile
;
93
96
OutputDevice
*
myErrorRetriever
, *
myMessageRetriever
, *
myWarningRetriever
;
97
98
MFXEventQue
&
myEventQue
;
99
100
FXEX::FXThreadEvent
&
myEventThrow
;
101
103
bool
myLoadNet
;
104
105
};
106
107
108
#endif
109
110
/****************************************************************************/
var
build
temp
tmp.znCyBrHNjL
4.0-0-0
sumo
sumo-0.15.0~dfsg
src
gui
GUILoadThread.h
Generated on Mon Mar 24 2014 09:53:09 for SUMO - Simulation of Urban MObility by
1.8.1.2