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
OutputDevice_String.cpp
Go to the documentation of this file.
1
/****************************************************************************/
7
// An output device that encapsulates a stringstream
8
/****************************************************************************/
9
// SUMO, Simulation of Urban MObility; see http://sumo-sim.org/
10
// Copyright (C) 2009-2014 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
21
22
// ===========================================================================
23
// included modules
24
// ===========================================================================
25
#ifdef _MSC_VER
26
#include <
windows_config.h
>
27
#else
28
#include <
config.h
>
29
#endif
30
31
#include <sstream>
32
#include <string>
33
#include "
OutputDevice_String.h
"
34
35
#ifdef CHECK_MEMORY_LEAKS
36
#include <
foreign/nvwa/debug_new.h
>
37
#endif // CHECK_MEMORY_LEAKS
38
39
40
// ===========================================================================
41
// method definitions
42
// ===========================================================================
43
OutputDevice_String::OutputDevice_String
(
const
bool
binary,
const
unsigned
int
defaultIndentation)
44
:
OutputDevice
(binary, defaultIndentation) {
45
}
46
47
48
OutputDevice_String::~OutputDevice_String
() {
49
}
50
51
52
std::string
53
OutputDevice_String::getString
() {
54
return
myStream
.str();
55
}
56
57
58
std::ostream&
59
OutputDevice_String::getOStream
() {
60
return
myStream
;
61
}
62
63
64
/****************************************************************************/
tmp
buildd
sumo-0.21.0+dfsg
src
utils
iodevices
OutputDevice_String.cpp
Generated on Thu Nov 20 2014 19:49:58 for SUMO - Simulation of Urban MObility by
1.8.1.2