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-2017 German Aerospace Center (DLR) and others.
4 /****************************************************************************/
5 //
6 // This program and the accompanying materials
7 // are made available under the terms of the Eclipse Public License v2.0
8 // which accompanies this distribution, and is available at
9 // http://www.eclipse.org/legal/epl-v20.html
10 //
11 /****************************************************************************/
18 // An output device that encapsulates cerr
19 /****************************************************************************/
20 #ifndef OutputDevice_CERR_h
21 #define OutputDevice_CERR_h
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 "OutputDevice.h"
34 
35 
36 // ===========================================================================
37 // class definitions
38 // ===========================================================================
44 public:
49  static OutputDevice* getDevice();
50 
51 
52 protected:
55 
59  std::ostream& getOStream();
60 
61 
66  virtual void postWriteHook();
68 
69 
70 private:
75 
76 
79 
80 
81 private:
84 
85 
86 };
87 
88 
89 #endif
90 
91 /****************************************************************************/
92 
An output device that encapsulates cerr.
virtual void postWriteHook()
Called after every write access.
std::ostream & getOStream()
Returns the associated ostream.
~OutputDevice_CERR()
Destructor.
OutputDevice_CERR()
Constructor.
static OutputDevice * myInstance
my singular instance
Static storage of an output device and its base (abstract) implementation.
Definition: OutputDevice.h:70
static OutputDevice * getDevice()
Returns the single cerr instance.