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
NIVissimSingleTypeParser_Simdauer.cpp
Go to the documentation of this file.
1
/****************************************************************************/
9
//
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
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 <iostream>
34
#include <
utils/common/TplConvert.h
>
35
#include <
utils/common/MsgHandler.h
>
36
#include "../NIImporter_Vissim.h"
37
#include "
NIVissimSingleTypeParser_Simdauer.h
"
38
39
#ifdef CHECK_MEMORY_LEAKS
40
#include <
foreign/nvwa/debug_new.h
>
41
#endif // CHECK_MEMORY_LEAKS
42
43
44
// ===========================================================================
45
// method definitions
46
// ===========================================================================
47
NIVissimSingleTypeParser_Simdauer::NIVissimSingleTypeParser_Simdauer
(
NIImporter_Vissim
& parent)
48
:
NIImporter_Vissim
::VissimSingleTypeParser(parent) {}
49
50
51
NIVissimSingleTypeParser_Simdauer::~NIVissimSingleTypeParser_Simdauer
() {}
52
53
54
bool
55
NIVissimSingleTypeParser_Simdauer::parse
(std::istream& from) {
56
std::string duration;
57
from >> duration;
58
// !!!
59
try
{
60
TplConvert<char>::_2SUMOReal
(duration.c_str());
61
}
catch
(...) {
62
WRITE_ERROR
(
"Simulation duration could not be parsed"
);
63
return
false
;
64
}
65
return
true
;
66
}
67
68
69
70
/****************************************************************************/
71
build
buildd
sumo-0.15.0~dfsg
src
netimport
vissim
typeloader
NIVissimSingleTypeParser_Simdauer.cpp
Generated on Wed Jul 18 2012 22:58:35 for SUMO - Simulation of Urban MObility by
1.8.1.1