CMS 3D CMS Logo

StdOutputStream.h

Go to the documentation of this file.
00001 #ifndef CLASSLIB_STD_OUTPUT_STREAM_H
00002 # define CLASSLIB_STD_OUTPUT_STREAM_H
00003 
00004 //<<<<<< INCLUDES                                                       >>>>>>
00005 
00006 # include "classlib/iotools/OutputStream.h"
00007 # include <iostream>
00008 
00009 namespace lat {
00010 //<<<<<< PUBLIC DEFINES                                                 >>>>>>
00011 //<<<<<< PUBLIC CONSTANTS                                               >>>>>>
00012 //<<<<<< PUBLIC TYPES                                                   >>>>>>
00013 //<<<<<< PUBLIC VARIABLES                                               >>>>>>
00014 //<<<<<< PUBLIC FUNCTIONS                                               >>>>>>
00015 //<<<<<< CLASS DECLARATIONS                                             >>>>>>
00016 
00017 class StdOutputStream : public OutputStream
00018 {
00019 public:
00020     StdOutputStream (std::ostream *output);
00021     ~StdOutputStream (void);
00022 
00023     using OutputStream::write;
00024     virtual IOSize      write (const void *from, IOSize n);
00025     virtual void        finish (void);
00026     virtual void        close (void);
00027 
00028 protected:
00029     std::ostream        *m_output;      //< Actual output.
00030 };
00031 
00032 //<<<<<< INLINE PUBLIC FUNCTIONS                                        >>>>>>
00033 //<<<<<< INLINE MEMBER FUNCTIONS                                        >>>>>>
00034 
00035 } // namespace lat
00036 #endif // CLASSLIB_STD_OUTPUT_STREAM_H

Generated on Tue Jun 9 17:38:52 2009 for CMSSW by  doxygen 1.5.4