Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

LogWriter.h

Go to the documentation of this file.
00001 
00040 #ifndef _AMIRE_COMMON_LOG_WRITER_H
00041 #define _AMIRE_COMMON_LOG_WRITER_H
00042 
00043 #include <ostream>
00044 #include <amire/common/Defines.h>
00045 
00046 namespace amire {
00047   namespace common {
00051     class AMIRE_EXPORT_API LogWriter : public virtual osg::Referenced {
00052     public:
00056       static osg::ref_ptr<LogWriter> getDefaultLogWriter();
00057 
00058     protected:
00062       std::vector<std::ostream *> outputStreams;
00063 
00064     public:
00068       LogWriter();
00069       virtual ~LogWriter();
00070 
00074       void addOstream(std::ostream *ostream);
00075 
00079       void removeOstream(std::ostream *ostream);
00080 
00084       void write(const std::string &text);
00085 
00089       void writeLine(const std::string &text);
00090     };
00091   }
00092 }
00093 
00094 #endif

Generated on Tue May 20 17:23:53 2003 for AMIRE-Framework by doxygen1.3