BeamMonSwicMask Class Reference
[BeamDataUtil]

A DbiTableRow for SWIC scanner channel masks. More...

#include <BeamMonSwicMask.h>

Inheritance diagram for BeamMonSwicMask:
DbiTableRow

List of all members.

Public Member Functions

 BeamMonSwicMask (const char *device="", int index=0, float mask=1)
virtual DbiTableRowCreateTableRow () const
 DbiTableRow API.
void Fill (DbiResultSet &rs, const DbiValidityRec *vrec)
 DbiTableRow API.
virtual void Store (DbiOutRowStream &ors, const DbiValidityRec *vrec) const
 DbiTableRow API.
const char * GetDeviceName () const
int GetOffset () const
float GetMask () const
void GetRange (VldTimeStamp &start, VldTimeStamp &stop)
void SetDeviceName (const char *n)
void SetIndex (int i)
void SetMask (float m)
void SetRange (VldTimeStamp start=VldTimeStamp::GetBOT(), VldTimeStamp stop=VldTimeStamp::GetEOT())

Private Attributes

VldTimeStamp fStartTime
VldTimeStamp fStopTime
std::string fName
int fIndex
float fMask

Detailed Description

A DbiTableRow for SWIC scanner channel masks.

Author:
(last to touch it)
Author
minoscvs
Version:
Revision
1.4
Date:
Date
2005/04/29 20:17:56

Contact: bv@bnl.gov

Created on: Mon Apr 25 14:18:13 2005

Id
BeamMonSwicMask.h,v 1.4 2005/04/29 20:17:56 minoscvs Exp

Definition at line 33 of file BeamMonSwicMask.h.


Constructor & Destructor Documentation

BeamMonSwicMask::BeamMonSwicMask ( const char *  device = "",
int  index = 0,
float  mask = 1 
)

Definition at line 9 of file BeamMonSwicMask.cxx.

00010     : DbiTableRow(), fName(device), fIndex(index), fMask(mask)
00011 {
00012 }


Member Function Documentation

DbiTableRow * BeamMonSwicMask::CreateTableRow (  )  const [virtual]

DbiTableRow API.

Implements DbiTableRow.

Definition at line 14 of file BeamMonSwicMask.cxx.

00015 {
00016     return new BeamMonSwicMask;
00017 }

void BeamMonSwicMask::Fill ( DbiResultSet rs,
const DbiValidityRec vrec 
) [virtual]

DbiTableRow API.

Implements DbiTableRow.

Definition at line 19 of file BeamMonSwicMask.cxx.

References fIndex, fMask, fName, fStartTime, and fStopTime.

00020 {
00021     rs >> fStartTime >> fStopTime >> fName >> fIndex >> fMask;
00022 }

const char* BeamMonSwicMask::GetDeviceName (  )  const [inline]

Definition at line 45 of file BeamMonSwicMask.h.

References fName.

Referenced by BDSwicMaskAccessor::SetSpillTime().

00045 { return fName.c_str(); }

float BeamMonSwicMask::GetMask (  )  const [inline]

Definition at line 47 of file BeamMonSwicMask.h.

References fMask.

Referenced by BDSwicMaskAccessor::SetSpillTime().

00047 { return fMask; }

int BeamMonSwicMask::GetOffset (  )  const [inline]

Definition at line 46 of file BeamMonSwicMask.h.

References fIndex.

Referenced by BDSwicMaskAccessor::SetSpillTime().

00046 { return fIndex; }

void BeamMonSwicMask::GetRange ( VldTimeStamp start,
VldTimeStamp stop 
) [inline]

Definition at line 48 of file BeamMonSwicMask.h.

References fStartTime, and fStopTime.

00049     { start = fStartTime; stop = fStopTime; }

void BeamMonSwicMask::SetDeviceName ( const char *  n  )  [inline]

Definition at line 51 of file BeamMonSwicMask.h.

References fName.

00051 { fName = n; }

void BeamMonSwicMask::SetIndex ( int  i  )  [inline]

Definition at line 52 of file BeamMonSwicMask.h.

References fIndex.

00052 { fIndex = i; }

void BeamMonSwicMask::SetMask ( float  m  )  [inline]

Definition at line 53 of file BeamMonSwicMask.h.

References fMask.

00053 { fMask = m; }

void BeamMonSwicMask::SetRange ( VldTimeStamp  start = VldTimeStamp::GetBOT(),
VldTimeStamp  stop = VldTimeStamp::GetEOT() 
) [inline]

Definition at line 54 of file BeamMonSwicMask.h.

References fStartTime, and fStopTime.

00056     { fStartTime = start; fStopTime = stop; }

void BeamMonSwicMask::Store ( DbiOutRowStream ors,
const DbiValidityRec vrec 
) const [virtual]

DbiTableRow API.

Reimplemented from DbiTableRow.

Definition at line 24 of file BeamMonSwicMask.cxx.

References fIndex, fMask, fName, fStartTime, and fStopTime.

00025 {
00026     ors << fStartTime<< fStopTime << fName << fIndex << fMask;
00027 }


Member Data Documentation

int BeamMonSwicMask::fIndex [private]

Definition at line 60 of file BeamMonSwicMask.h.

Referenced by Fill(), GetOffset(), SetIndex(), and Store().

float BeamMonSwicMask::fMask [private]

Definition at line 61 of file BeamMonSwicMask.h.

Referenced by Fill(), GetMask(), SetMask(), and Store().

std::string BeamMonSwicMask::fName [private]

Definition at line 59 of file BeamMonSwicMask.h.

Referenced by Fill(), GetDeviceName(), SetDeviceName(), and Store().

Definition at line 58 of file BeamMonSwicMask.h.

Referenced by Fill(), GetRange(), SetRange(), and Store().

Definition at line 58 of file BeamMonSwicMask.h.

Referenced by Fill(), GetRange(), SetRange(), and Store().


The documentation for this class was generated from the following files:

Generated on 27 May 2017 for loon by  doxygen 1.6.1