DbiValidityRec.cxx File Reference

#include "Conventions/Detector.h"
#include "Conventions/SimFlag.h"
#include "DatabaseInterface/DbiBinaryFile.h"
#include "DatabaseInterface/DbiResultSet.h"
#include "DatabaseInterface/DbiOutRowStream.h"
#include "DatabaseInterface/DbiValidityRec.h"
#include "MessageService/MsgService.h"
#include "LeakChecker/Lea.h"
#include "Validity/VldRange.h"
#include "Validity/VldTimeStamp.h"
#include "TString.h"
#include <sstream>
#include <iostream>
#include "DatabaseInterface/DbiResultPtr.tpl"

Go to the source code of this file.

Functions

 CVSID ("$Id: DbiValidityRec.cxx,v 1.21 2006/08/08 10:51:32 west Exp $\n \ CVSID_DBIRESULTPTR ")
ostream & operator<< (ostream &os, const DbiValidityRec &vRec)

Function Documentation

CVSID ( "$Id: DbiValidityRec.  cxx,
v 1.21 2006/08/08 10:51:32 west Exp $\n\CVSID_DBIRESULTPTR"   
)
ostream& operator<< ( ostream &  os,
const DbiValidityRec vRec 
)

Definition at line 39 of file DbiValidityRec.cxx.

References DbiValidityRec::GetAggregateNo(), DbiValidityRec::GetDbNo(), DbiValidityRec::GetSeqNo(), DbiValidityRec::GetVldRange(), and DbiValidityRec::IsGap().

00039                                                              {
00040 //
00041 //
00042 //  Purpose:  Output validity record to ostream.
00043 //
00044 //  Arguments: 
00045 //    os           in    output stream
00046 //    vRec         in    Validity record to be output
00047 //
00048 //  Return:        updated ostream   
00049 //
00050 //  Contact:   N. West
00051 //
00052 //  Specification:-
00053 //  =============
00054 //
00055 //  o Output validity record to ostream.
00056 
00057 //  Program Notes:-
00058 //  =============
00059 
00060 //  None.
00061 
00062   const VldRange&           range(vRec.GetVldRange());
00063   
00064   ostringstream os2;  //Use local to avoid manipulators from making permanent change to os.
00065   os2 << "SeqNo: " << vRec.GetSeqNo()  
00066       << "  AggNo: " << vRec.GetAggregateNo()
00067       << "  DbNo: " << vRec.GetDbNo();
00068   if ( vRec.IsGap() ) os2 << " (gap)";
00069   os2  << "  VldRange: |" 
00070        << setprecision(3) << hex << setfill ('0') << "0x" <<  setw(3) << range.GetDetectorMask() << "|"
00071        << "0x" << setw(3) << range.GetSimMask() << "|"
00072        << " " << range.GetTimeStart().AsString("s") << " .. "
00073        << range.GetTimeEnd().AsString("s") 
00074        << " from: " << range.GetDataSource();
00075   os << os2.str();
00076   return os;
00077 
00078 }


Generated on 15 Jul 2018 for loon by  doxygen 1.6.1