fdhwlib  2.0.25
/home/kopmann/git-mirror/fdhwlib/fdhwlib/FE/febasesensor.h
Go to the documentation of this file.
00001 /***************************************************************************
00002     febasesensor.h  -  description
00003 
00004     begin                : Mon Jul 3 2000
00005     copyright            : (C) 2000 by Andreas Kopmann
00006     email                : kopmann@hpe.fzk.de
00007  ***************************************************************************/
00008 
00009 
00010 #if defined (_MSC_VER) && (_MSC_VER >= 1000)
00011 #pragma once
00012 #endif
00013 
00014 #ifndef FEBASESENSOR_H
00015 #define FEBASESENSOR_H
00016 
00017 #include <FE/FEdef.h>
00018 
00019 
00038 class FEbaseSensor {
00039 public:
00040   FEbaseSensor() { }
00041   virtual ~FEbaseSensor();
00042 
00043   virtual void setRange(int ch, int range) = 0;
00044 
00045   virtual int getRange(int ch) = 0;
00046 
00050   virtual int read(int ch) = 0;
00051 
00052   virtual void setUpperThresh(int ch, int treshold) = 0;
00053 
00054   virtual void setLowerThresh(int ch, int treshold) = 0;
00055 
00056   virtual int getUpperThresh(int ch) = 0;
00057 
00058   virtual int getLowerThresh(int ch) = 0;
00059 
00064   virtual int waitForAlarm() { return 0; };
00065 
00067   virtual void enableAlarm(int /* ch */ = -1) { };
00068 
00070   virtual void disableAlarm(int /* ch  */ = -1) { };
00071 
00073   virtual bool isEnabledAlarm(int /* ch */ = -1) { return false; };
00074 
00075 #if defined (SLT_VER) && (SLT_VER >= 110)
00076 
00077   virtual int getStatus() = 0;
00078 
00081   virtual bool isOutOfRange(int ch) = 0;
00082 #endif
00083 
00084 };
00085 
00086 #endif  // of FEBASESENSOR_H
00087 
00088