CMS 3D CMS Logo

CheckedOutputStream.h

Go to the documentation of this file.
00001 #ifndef CLASSLIB_CHECKED_OUTPUT_STREAM_H
00002 # define CLASSLIB_CHECKED_OUTPUT_STREAM_H
00003 
00004 //<<<<<< INCLUDES                                                       >>>>>>
00005 
00006 # include "classlib/sysapi/system.h"
00007 # include "classlib/iotools/FilterOutputStream.h"
00008 
00009 namespace lat {
00010 //<<<<<< PUBLIC DEFINES                                                 >>>>>>
00011 //<<<<<< PUBLIC CONSTANTS                                               >>>>>>
00012 //<<<<<< PUBLIC TYPES                                                   >>>>>>
00013 
00014 class Checksum;
00015 
00016 //<<<<<< PUBLIC VARIABLES                                               >>>>>>
00017 //<<<<<< PUBLIC FUNCTIONS                                               >>>>>>
00018 //<<<<<< CLASS DECLARATIONS                                             >>>>>>
00019 
00020 class CheckedOutputStream : public FilterOutputStream
00021 {
00022 public:
00023     CheckedOutputStream (OutputStream *output, Checksum *validator);
00024     ~CheckedOutputStream (void);
00025 
00026     using FilterOutputStream::write;
00027     virtual IOSize      write (const void *from, IOSize n);
00028     virtual Checksum *  checksum (void) const;
00029 
00030 private:
00031     Checksum            *m_checksum;    //< Checksum calculator
00032 };
00033 
00034 //<<<<<< INLINE PUBLIC FUNCTIONS                                        >>>>>>
00035 //<<<<<< INLINE MEMBER FUNCTIONS                                        >>>>>>
00036 
00037 } // namespace lat
00038 #endif // CLASSLIB_CHECKED_OUTPUT_STREAM_H

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