fdhwlib  2.0.25
/home/kopmann/git-mirror/fdhwlib/fdhwlib/Hw/SltTime.h
Go to the documentation of this file.
00001 /***************************************************************************
00002     SltTime.h  -  description
00003 
00004     begin                : Tue Aug 8 2000
00005     copyright            : (C) 2000 by Andreas Kopmann
00006     email                : kopmann@hpe.fzk.de
00007  ***************************************************************************/
00008 
00009 
00010 #ifndef SLTTIME_H
00011 #define SLTTIME_H
00012 
00013 #include <cstdio>
00014 
00015 #include <Hw/SltTimeBase.h>
00016 
00043 class SltTime : public SltTimeBase {
00044 public: 
00045   SltTime();
00046   ~SltTime();
00047 
00051   void setSubSec(unsigned long data);
00052 
00053   //using SltTimeBase::getSubSec;
00054   
00056   unsigned long getSubSec();
00057 
00064   void setLastTrigger(unsigned long data);
00065 
00067   unsigned long getLastTrigger();
00068   
00070   const char * getTriggerSourceBrief();
00071 
00073   int getFltOffset();
00074 
00076   int getSltOffset();
00077 
00081   void setVersionPrototype();
00082 
00084   SltTime& operator=(const SltTime&);
00085 
00090   SltTime& minus(const SltTime &t1, const SltTime &t2);
00091 
00092   void minus(SltTime& time) {
00093     SltTimeBase::minus( *this, time );
00094   }
00095 
00097   //void add(SltTime &time);
00098   
00099 //private:
00100 
00105   int triggerMask;
00106 
00112   int offset;
00113 
00115   static const char * triggerSourceBrief[];
00116 };
00117 
00118 #endif