00001 /* 00002 * HumanStream.h 00003 * ers 00004 * 00005 * Created by Matthias Wiesmann on 01.11.04. 00006 * Copyright 2004 CERN. All rights reserved. 00007 * 00008 */ 00009 00010 00011 #include <ostream> 00012 #include <sstream> 00013 00014 #include "ers/Stream.h" 00015 00016 namespace ers { 00017 00027 class HumanStream : public Stream { 00028 protected: 00029 std::ostringstream m_out_stream ; 00030 public: 00031 static std::string to_string(const Issue *issue) throw() ; 00032 static const char* const KEY ; 00033 HumanStream() ; 00034 HumanStream(const HumanStream &other); 00035 ~HumanStream() ; 00036 std::string to_string() ; 00037 void clear() ; 00038 virtual void send(const Issue *ptr); 00039 virtual void print_to(std::ostream& stream) const ; 00040 00041 } ; // human_stream 00042 00043 } // namespace ers 00044