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-2018 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 /****************************************************************************/
16 // An output device that encapsulates cerr
17 /****************************************************************************/
18 #ifndef OutputDevice_CERR_h
19 #define OutputDevice_CERR_h
20 
21 
22 // ===========================================================================
23 // included modules
24 // ===========================================================================
25 #include <config.h>
26 
27 #include "OutputDevice.h"
28 
29 
30 // ===========================================================================
31 // class definitions
32 // ===========================================================================
38 public:
43  static OutputDevice* getDevice();
44 
45 
46 protected:
49 
53  std::ostream& getOStream();
54 
55 
60  virtual void postWriteHook();
62 
63 
64 private:
69 
70 
73 
74 
75 private:
78 
79 
80 };
81 
82 
83 #endif
84 
85 /****************************************************************************/
86 
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:64
static OutputDevice * getDevice()
Returns the single cerr instance.