Eclipse SUMO - Simulation of Urban MObility
OutputDevice_CERR.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 cerr
16 /****************************************************************************/
17 #ifndef OutputDevice_CERR_h
18 #define OutputDevice_CERR_h
19 
20 
21 // ===========================================================================
22 // included modules
23 // ===========================================================================
24 #include <config.h>
25 
26 #include "OutputDevice.h"
27 
28 
29 // ===========================================================================
30 // class definitions
31 // ===========================================================================
37 public:
42  static OutputDevice* getDevice();
43 
44 
45 protected:
48 
52  std::ostream& getOStream();
53 
54 
59  virtual void postWriteHook();
61 
62 
63 private:
68 
69 
72 
73 
74 private:
77 
78 
79 };
80 
81 
82 #endif
83 
84 /****************************************************************************/
85 
OutputDevice_CERR::myInstance
static OutputDevice * myInstance
my singular instance
Definition: OutputDevice_CERR.h:76
OutputDevice
Static storage of an output device and its base (abstract) implementation.
Definition: OutputDevice.h:63
OutputDevice_CERR::~OutputDevice_CERR
~OutputDevice_CERR()
Destructor.
Definition: OutputDevice_CERR.cpp:55
OutputDevice_CERR::OutputDevice_CERR
OutputDevice_CERR()
Constructor.
Definition: OutputDevice_CERR.cpp:50
OutputDevice.h
OutputDevice_CERR::getOStream
std::ostream & getOStream()
Returns the associated ostream.
Definition: OutputDevice_CERR.cpp:61
config.h
OutputDevice_CERR::getDevice
static OutputDevice * getDevice()
Returns the single cerr instance.
Definition: OutputDevice_CERR.cpp:38
OutputDevice_CERR::postWriteHook
virtual void postWriteHook()
Called after every write access.
Definition: OutputDevice_CERR.cpp:67
OutputDevice_CERR
An output device that encapsulates cerr.
Definition: OutputDevice_CERR.h:36