35 #ifndef _OutputStream_H__ 36 #define _OutputStream_H__ 75 typedef std::ostream& (*EndlType)(std::ostream&);
96 if (manipulator == static_cast<EndlType>(std::endl))
99 return this->
output(manipulator);
114 static_cast<std::ostringstream&
>(*this) << val;
bool bAcceptsOutput_
After defining level and context of the following message, this flag is set according to the masks de...
Definition: OutputStream.h:122
OutputStream & operator<<(std::ostream &(*manipulator)(std::ostream &))
Sends a manipulator to the output stream and flushes the message if the manipulator is std::endl...
Definition: OutputStream.h:92
#define _UtilExport
Definition: UtilPrereqs.h:60
OutputStream & operator<<(std::ios &(*manipulator)(std::ios &))
Sends a manipulator to the output stream.
Definition: OutputStream.h:90
Stores all information about a context.
Definition: OutputDefinitions.h:112
OutputLevel level_
The output level of the current message.
Definition: OutputStream.h:120
const OutputContextContainer * context_
The output context of the current message.
Definition: OutputStream.h:121
_UtilExport OutputStream()
Default constructor, initializes level and context with default values.
Definition: OutputStream.cc:43
_UtilExport ~OutputStream()
Destructor, sends remaining output to OutputManager (if any).
Definition: OutputStream.cc:58
OutputStream & output(const T &val)
Generic function to add values to the output stream, using the inherited << operator from std::ostrin...
Definition: OutputStream.h:111
void _UtilExport setOutputAttributes(OutputLevel level, const OutputContextContainer &context)
Defines level and context of the following output.
Definition: OutputStream.cc:78
OutputLevel
Output levels define type and importance of an output message.
Definition: OutputDefinitions.h:84
Defines output levels and output contexts.
bool acceptsOutput() const
Definition: OutputStream.h:106
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
Shared library macros, enums, constants and forward declarations for the util library ...
Definition: InputPrereqs.h:78
const OutputContextContainer * getOutputContext() const
Definition: OutputStream.h:105
OutputStream & operator<<(std::ios_base &(*manipulator)(std::ios_base &))
Sends a manipulator to the output stream.
Definition: OutputStream.h:88
void _UtilExport sendMessage()
Sends the buffered message to OutputManager together with the stored level and context.
Definition: OutputStream.cc:68
const OutputLevel getOutputLevel() const
Definition: OutputStream.h:104
OutputStream & operator<<(const T &val)
Generic << operator which adds output to the stream.
Definition: OutputStream.h:86
This class is used to buffer output and send it to OutputManager whenever std::endl is passed to it...
Definition: OutputStream.h:73