CMS 3D CMS Logo

SerializeBase.cc

Go to the documentation of this file.
00001 // Author : Samvel Khalatian (samvel at fnal dot gov)
00002 // Created: 07/25/07
00003 // License: GPL
00004 
00005 #include <ostream>
00006 
00007 #include "CalibTracker/SiStripRunSummary/interface/FlagTxt.h"
00008 
00009 #include "CalibTracker/SiStripRunSummary/interface/SerializeBase.h"
00010 
00011 // --[ BASE ARCHIVE MANAGER ]--------------------------------------------------
00012 //                                                  --[ PUBLIC ]--
00013 SerializeBase::SerializeBase() {
00014   poFlagTxt_ = 0;
00015 }
00016 
00017 SerializeBase::~SerializeBase() {
00018   if( poFlagTxt_) {
00019     delete poFlagTxt_;
00020   }
00021 }
00022 
00023 bool SerializeBase::write( std::ostream &roOut,
00024                            const FlagTxt &roFLAGTXT) const
00025 {
00026   bool bResult = false;
00027 
00028   try {
00029     writeFlag( roOut, roFLAGTXT);
00030 
00031     bResult = true;
00032   } catch( ...) {
00033     // Failed to write Flag into output stream
00034   }
00035 
00036   return bResult;
00037 }

Generated on Tue Jun 9 17:25:53 2009 for CMSSW by  doxygen 1.5.4