#include "DatabaseInterface/Dbi.h"#include "DatabaseInterface/DbiTableRow.h"#include "Validity/VldRange.h"#include "Validity/VldTimeStamp.h"#include <iosfwd>#include <string>Go to the source code of this file.
Classes | |
| class | DbiValidityRec |
| Concept A concrete data type corresponding to a single row in an auxillary validity range database table. Purpose To resolve ambiguities in the case of multiple matches to a query and to record results of validity range trimming due to neighbouring database entries. More... | |
Functions | |
| ostream & | operator<< (ostream &s, const DbiValidityRec &vRec) |
|
||||||||||||
|
Definition at line 39 of file DbiValidityRec.cxx. 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 }
|
1.3.9.1