TDbiValidityRec.cxx File Reference

#include "DbiDetector.hxx"
#include "DbiSimFlag.hxx"
#include "TDbiBinaryFile.hxx"
#include "TDbiInRowStream.hxx"
#include "TDbiOutRowStream.hxx"
#include "TDbiValidityRec.hxx"
#include <TSK_DBI_Log.hxx>
#include <MsgFormat.h>
#include "TVldRange.hxx"
#include "TVldTimeStamp.hxx"
#include "TString.h"
#include <sstream>
#include <iostream>
#include "TDbiResultSetHandle.tpl"
Include dependency graph for TDbiValidityRec.cxx:

Go to the source code of this file.

Functions

 ClassImp (TDbiValidityRec) template class TDbiResultSetHandle< TDbiValidityRec >
ostream & operator<< (ostream &os, const TDbiValidityRec &vRec)

Function Documentation

ClassImp ( TDbiValidityRec   ) 
ostream& operator<< ( ostream &  os,
const TDbiValidityRec vRec 
)

Definition at line 38 of file TDbiValidityRec.cxx.

References TDbiValidityRec::GetAggregateNo(), TDbiValidityRec::GetDbNo(), TDbiValidityRec::GetEpoch(), TDbiValidityRec::GetSeqNo(), TDbiValidityRec::GetTask(), TDbiValidityRec::GetVldRange(), and TDbiValidityRec::IsGap().

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

Here is the call graph for this function:


Generated on 11 Aug 2013 for SKDatabase by  doxygen 1.6.1