fdhwlib  2.0.25
/home/kopmann/git-mirror/fdhwlib/fdhwlib/hw4/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 _HW4_SLTTIME_H_INCLUDED
00011 #define _HW4_SLTTIME_H_INCLUDED
00012 
00013 
00014 #include <Hw/SltTimeBase.h>
00015 
00016 
00017 namespace hw4 {
00018 
00028 class SltTime : public SltTimeBase {
00029 public: 
00030   SltTime();
00031   ~SltTime();
00032 
00034   void setSubSec(unsigned long data);
00035 
00037   unsigned long getSubSec();
00038 
00045   void setLastTrigger(unsigned long data);
00046 
00048   unsigned long getLastTrigger();
00049 
00051   const char * getTriggerSourceBrief();
00052 
00054   int getFltOffset();
00055 
00057   int getSltOffset();
00058 
00060   int getMultiplicityOffset();
00061 
00062 #if 0
00063 
00066   void setVersionPrototype();
00067 #endif
00068 
00069   using SltTimeBase::operator=;
00070   
00072   SltTime& operator=(const SltTime &t);
00073 
00074 #if 0
00075 
00076   SltTime operator=(const unsigned long &t);
00077 #endif
00078 
00079   using SltTimeBase::minus;
00080   
00085   SltTime& minus(const SltTime &t1, const SltTime &t2);
00086 
00087   void minus(SltTime& time) {
00088     SltTimeBase::minus( *this, time );
00089   }
00090 
00092   //void add(SltTime &time);
00093 
00094 //private:
00095 
00100   int triggerMask;
00101 
00106   int fltOffset;
00107 
00108 #if 0
00109 
00110   int sltOffset;
00111 #endif
00112 
00113 #if 0
00114 
00115   int multOffset;
00116 #endif
00117 
00119   static const char * triggerSourceBrief[];
00120 };
00121 
00122 } // namespace hw4
00123 
00124 #endif // _HW4_SLTTIME_H_INCLUDED