//*-- Author : Damir Buskulic 6/11/01
//////////////////////////////////////////////////////////////////////////
// //
// VMetaData //
// //
// Meta data for one frame. Represents the meta data transfered between //
// a Frame Channel and a Frame Info device //
// //
//////////////////////////////////////////////////////////////////////////
#include "VMetaData.h"
ClassImp(VMetaData)
//______________________________________________________________________________
VMetaData::VMetaData (char * fileName, int run, int frame,
VGPSTime startTime, VGPSTime localStartTime, double length,
char * detector, char * state, int quality, int trigger)
{
// Meta string constructor
mRun = run;
mFrame = frame;
mStartTime = startTime;
mLocalStartTime = localStartTime;
mLength = length;
mQuality = quality;
mTrigger = trigger;
mFileName =fileName;
mDetector =detector;
mState =state;
}
//______________________________________________________________________________
VMetaData::VMetaData ()
{
// Metadata default constructor
mRun = 0;
mFrame = 0;
mStartTime = VGPSTime (0,0);
mLocalStartTime = VGPSTime (0,0);
mLength = 0;
mQuality = 0;
mTrigger = 0;
mFileName ="";
mDetector ="";
mState ="";
}
//______________________________________________________________________________
VMetaData::VMetaData (VMetaData & meta)
{
mRun = meta.mRun ;
mFrame = meta.mFrame ;
mStartTime = meta.mStartTime ;
mLocalStartTime = meta.mLocalStartTime ;
mLength = meta.mLength ;
mQuality = meta.mQuality ;
mTrigger = meta.mTrigger ;
mFileName = meta.mFileName ;
mDetector = meta.mDetector ;
mState = meta.mState ;
}
//______________________________________________________________________________
void VMetaData::Copy (VMetaData & meta)
{
// Copy the contents of this into meta
meta.mRun = mRun ;
meta.mFrame = mFrame ;
meta.mStartTime = mStartTime ;
meta.mLocalStartTime = mLocalStartTime ;
meta.mLength = mLength ;
meta.mQuality = mQuality ;
meta.mTrigger = mTrigger ;
meta.mFileName = mFileName ;
meta.mDetector = mDetector ;
meta.mState = mState ;
}
//______________________________________________________________________________
void VMetaData::Clear ()
{
// Clear the contents of this
mRun = 0;
mFrame = 0;
mStartTime = VGPSTime (0,0);
mLocalStartTime = VGPSTime (0,0);
mLength = 0;
mQuality = 0;
mTrigger = 0;
mFileName ="";
mDetector ="";
mState ="";
}
//______________________________________________________________________________
VMetaData ::~VMetaData ()
{
// Metadata destructor
}
//______________________________________________________________________________
// Friend Functions
int operator ==(VMetaData & a,VMetaData & b)
{
return ( a.mRun == b.mRun
&& a.mFrame == b.mFrame
&& a.mFileName == b.mFileName );
}
int operator !=(VMetaData & a,VMetaData & b)
{
return !(a==b);
}
- ROOT page - VEGA page - Class index - Top of the page
This page has been automatically generated. If you have any comments or suggestions
about the page layout send a mail to
JavaScript must be enabled to display this email address.
, or
contact
JavaScript must be enabled to display this email address.
with any questions or problems regarding ROOT or VEGA.