35 #ifndef OPENMS_CONCEPT_STREAMHANDLER_H
36 #define OPENMS_CONCEPT_STREAMHANDLER_H
102 Int registerStream(StreamType
const type,
const String & stream_name);
114 void unregisterStream(StreamType
const type,
const String & stream_name);
128 ostream & getStream(StreamType
const type,
const String & stream_name);
140 bool hasStream(
const StreamType type,
const String & stream_name);
178 #endif // #ifndef OPENMS_CONCEPT_STREAMHANDLER_H
Provides a central class to register globally used output streams. Currently supported streams are...
Definition: StreamHandler.h:72
A more convenient string class.
Definition: String.h:56
map< String, Size > name_to_counter_map_
Maps all registered stream names to the number of times it was registered. If the counter goes to zer...
Definition: StreamHandler.h:146
map< String, StreamType > name_to_type_map_
Maps all registered stream names to the corresponding StreamHandler::StreamType.
Definition: StreamHandler.h:145
Definition: StreamHandler.h:80
std::ostream & operator<<(std::ostream &os, const ItraqQuantifier::ItraqQuantifierStats &stats)
map< String, ostream * > name_to_stream_map_
Maps all registered stream names to the corresponding std::ostream.
Definition: StreamHandler.h:144
StreamType
Defines the type of the stream that should be handled.
Definition: StreamHandler.h:78
StreamHandler STREAM_HANDLER
Global StreamHandler instance.
int Int
Signed integer type.
Definition: Types.h:100