Eclipse SUMO - Simulation of Urban MObility
OutputDevice_File.h
Go to the documentation of this file.
1
/****************************************************************************/
2
// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3
// Copyright (C) 2004-2019 German Aerospace Center (DLR) and others.
4
// This program and the accompanying materials
5
// are made available under the terms of the Eclipse Public License v2.0
6
// which accompanies this distribution, and is available at
7
// http://www.eclipse.org/legal/epl-v20.html
8
// SPDX-License-Identifier: EPL-2.0
9
/****************************************************************************/
15
// An output device that encapsulates an ofstream
16
/****************************************************************************/
17
#ifndef OutputDevice_File_h
18
#define OutputDevice_File_h
19
20
21
// ===========================================================================
22
// included modules
23
// ===========================================================================
24
#include <
config.h
>
25
26
#include <iostream>
27
#include "
OutputDevice.h
"
28
29
30
// ===========================================================================
31
// class definitions
32
// ===========================================================================
40
class
OutputDevice_File
:
public
OutputDevice
{
41
public
:
46
OutputDevice_File
(
const
std::string& fullName,
const
bool
binary,
const
bool
compressed =
false
);
47
48
50
~OutputDevice_File
();
51
52
53
protected
:
56
60
std::ostream&
getOStream
();
62
63
64
private
:
66
std::ostream*
myFileStream
;
67
68
};
69
70
71
#endif
72
73
/****************************************************************************/
74
OutputDevice
Static storage of an output device and its base (abstract) implementation.
Definition:
OutputDevice.h:63
OutputDevice_File
An output device that encapsulates an ofstream.
Definition:
OutputDevice_File.h:40
OutputDevice_File::myFileStream
std::ostream * myFileStream
The wrapped ofstream.
Definition:
OutputDevice_File.h:66
OutputDevice.h
OutputDevice_File::getOStream
std::ostream & getOStream()
Returns the associated ostream.
Definition:
OutputDevice_File.cpp:77
OutputDevice_File::~OutputDevice_File
~OutputDevice_File()
Destructor.
Definition:
OutputDevice_File.cpp:71
OutputDevice_File::OutputDevice_File
OutputDevice_File(const std::string &fullName, const bool binary, const bool compressed=false)
Constructor.
Definition:
OutputDevice_File.cpp:38
config.h
src
utils
iodevices
OutputDevice_File.h
Generated on Sun Dec 13 2020 08:44:58 for Eclipse SUMO - Simulation of Urban MObility by
1.8.20