funcTable.installReadFunc("units", &Record::readUnits);
funcTable.installReadFunc("status", &Record::readStatus);
funcTable.installReadFunc("severity", &Record::readSeverity);
-
- funcTable.installReadFunc("controlLow", &ParamRecord::readLowCtrl);
- funcTable.installReadFunc("controlHigh", &ParamRecord::readHighCtrl);
- funcTable.installReadFunc("graphicLow", &ParamRecord::readLopr);
- funcTable.installReadFunc("graphicHigh", &ParamRecord::readHopr);
+ funcTable.installReadFunc("seconds", &Record::readSeconds);
+
+ funcTable.installReadFunc("alarmLow", &ParamRecord::readAlarmLow);
+ funcTable.installReadFunc("alarmHigh", &ParamRecord::readAlarmHigh);
+ funcTable.installReadFunc("alarmLowWarning", &ParamRecord::readAlarmLowWarning);
+ funcTable.installReadFunc("alarmHighWarning", &ParamRecord::readAlarmHighWarning);
+ funcTable.installReadFunc("graphicLow", &ParamRecord::readGraphicLow);
+ funcTable.installReadFunc("graphicHigh", &ParamRecord::readGraphicHigh);
+ funcTable.installReadFunc("controlLow", &ParamRecord::readControlLow);
+ funcTable.installReadFunc("controlHigh", &ParamRecord::readControlHigh);
funcTable.installReadFunc("precision", &ParamRecord::readPrecision);
funcTable.installReadFunc("value", &ParamBlobRecord::readValue);
funcTable.installReadFunc("units", &Record::readUnits);
funcTable.installReadFunc("status", &Record::readStatus);
funcTable.installReadFunc("severity", &Record::readSeverity);
-
- funcTable.installReadFunc("controlLow", &ParamRecord::readLowCtrl);
- funcTable.installReadFunc("controlHigh", &ParamRecord::readHighCtrl);
- funcTable.installReadFunc("graphicLow", &ParamRecord::readLopr);
- funcTable.installReadFunc("graphicHigh", &ParamRecord::readHopr);
+ funcTable.installReadFunc("seconds", &Record::readSeconds);
+
+ funcTable.installReadFunc("alarmLow", &ParamRecord::readAlarmLow);
+ funcTable.installReadFunc("alarmHigh", &ParamRecord::readAlarmHigh);
+ funcTable.installReadFunc("alarmLowWarning", &ParamRecord::readAlarmLowWarning);
+ funcTable.installReadFunc("alarmHighWarning", &ParamRecord::readAlarmHighWarning);
+ funcTable.installReadFunc("graphicLow", &ParamRecord::readGraphicLow);
+ funcTable.installReadFunc("graphicHigh", &ParamRecord::readGraphicHigh);
+ funcTable.installReadFunc("controlLow", &ParamRecord::readControlLow);
+ funcTable.installReadFunc("controlHigh", &ParamRecord::readControlHigh);
funcTable.installReadFunc("precision", &ParamRecord::readPrecision);
funcTable.installReadFunc("value", &ParamFilenameRecord::readValue);
funcTable.installReadFunc("units", &Record::readUnits);
funcTable.installReadFunc("status", &Record::readStatus);
funcTable.installReadFunc("severity", &Record::readSeverity);
-
- funcTable.installReadFunc("controlLow", &ParamRecord::readLowCtrl);
- funcTable.installReadFunc("controlHigh", &ParamRecord::readHighCtrl);
- funcTable.installReadFunc("graphicLow", &ParamRecord::readLopr);
- funcTable.installReadFunc("graphicHigh", &ParamRecord::readHopr);
+ funcTable.installReadFunc("seconds", &Record::readSeconds);
+
+ funcTable.installReadFunc("alarmLow", &ParamRecord::readAlarmLow);
+ funcTable.installReadFunc("alarmHigh", &ParamRecord::readAlarmHigh);
+ funcTable.installReadFunc("alarmLowWarning", &ParamRecord::readAlarmLowWarning);
+ funcTable.installReadFunc("alarmHighWarning", &ParamRecord::readAlarmHighWarning);
+ funcTable.installReadFunc("graphicLow", &ParamRecord::readGraphicLow);
+ funcTable.installReadFunc("graphicHigh", &ParamRecord::readGraphicHigh);
+ funcTable.installReadFunc("controlLow", &ParamRecord::readControlLow);
+ funcTable.installReadFunc("controlHigh", &ParamRecord::readControlHigh);
funcTable.installReadFunc("precision", &ParamRecord::readPrecision);
funcTable.installReadFunc("value", &ParamIntRecord::readValue);
return pPVName;
}
-gddAppFuncTableStatus ParamRecord::readLowCtrl(gdd &value)
+gddAppFuncTableStatus ParamRecord::readAlarmLow(gdd &value)
{
value.putConvert(0);
return S_casApp_success;
}
-gddAppFuncTableStatus ParamRecord::readHighCtrl(gdd &value)
+gddAppFuncTableStatus ParamRecord::readAlarmHigh(gdd &value)
{
value.putConvert(0);
return S_casApp_success;
}
-gddAppFuncTableStatus ParamRecord::readLopr(gdd &value)
+gddAppFuncTableStatus ParamRecord::readAlarmLowWarning(gdd &value)
{
value.putConvert(0);
return S_casApp_success;
}
-gddAppFuncTableStatus ParamRecord::readHopr(gdd &value)
+gddAppFuncTableStatus ParamRecord::readAlarmHighWarning(gdd &value)
+{
+ value.putConvert(0);
+ return S_casApp_success;
+}
+
+gddAppFuncTableStatus ParamRecord::readGraphicLow(gdd &value)
+{
+ value.putConvert(0);
+ return S_casApp_success;
+}
+
+gddAppFuncTableStatus ParamRecord::readGraphicHigh(gdd &value)
+{
+ value.putConvert(0);
+ return S_casApp_success;
+}
+
+gddAppFuncTableStatus ParamRecord::readControlLow(gdd &value)
+{
+ value.putConvert(0);
+ return S_casApp_success;
+}
+
+gddAppFuncTableStatus ParamRecord::readControlHigh(gdd &value)
{
value.putConvert(0);
return S_casApp_success;
const char *getPVName();
- virtual gddAppFuncTableStatus readLowCtrl(gdd &);
- virtual gddAppFuncTableStatus readHighCtrl(gdd &);
- virtual gddAppFuncTableStatus readLopr(gdd &);
- virtual gddAppFuncTableStatus readHopr(gdd &);
+ virtual gddAppFuncTableStatus readAlarmLow(gdd &);
+ virtual gddAppFuncTableStatus readAlarmHigh(gdd &);
+ virtual gddAppFuncTableStatus readAlarmLowWarning(gdd &);
+ virtual gddAppFuncTableStatus readAlarmHighWarning(gdd &);
+ virtual gddAppFuncTableStatus readGraphicLow(gdd &);
+ virtual gddAppFuncTableStatus readGraphicHigh(gdd &);
+ virtual gddAppFuncTableStatus readControlLow(gdd &);
+ virtual gddAppFuncTableStatus readControlHigh(gdd &);
virtual gddAppFuncTableStatus readPrecision(gdd &);
virtual gddAppFuncTableStatus readValue(gdd &) = 0;
funcTable.installReadFunc("units", &Record::readUnits);
funcTable.installReadFunc("status", &Record::readStatus);
funcTable.installReadFunc("severity", &Record::readSeverity);
-
- funcTable.installReadFunc("controlLow", &ParamRecord::readLowCtrl);
- funcTable.installReadFunc("controlHigh", &ParamRecord::readHighCtrl);
- funcTable.installReadFunc("graphicLow", &ParamRecord::readLopr);
- funcTable.installReadFunc("graphicHigh", &ParamRecord::readHopr);
+ funcTable.installReadFunc("seconds", &Record::readSeconds);
+
+ funcTable.installReadFunc("alarmLow", &ParamRecord::readAlarmLow);
+ funcTable.installReadFunc("alarmHigh", &ParamRecord::readAlarmHigh);
+ funcTable.installReadFunc("alarmLowWarning", &ParamRecord::readAlarmLowWarning);
+ funcTable.installReadFunc("alarmHighWarning", &ParamRecord::readAlarmHighWarning);
+ funcTable.installReadFunc("graphicLow", &ParamRecord::readGraphicLow);
+ funcTable.installReadFunc("graphicHigh", &ParamRecord::readGraphicHigh);
+ funcTable.installReadFunc("controlLow", &ParamRecord::readControlLow);
+ funcTable.installReadFunc("controlHigh", &ParamRecord::readControlHigh);
funcTable.installReadFunc("precision", &ParamRecord::readPrecision);
funcTable.installReadFunc("value", &ParamStringRecord::readValue);
+static const char rcsId[] = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/allParam/ca/server/record.cc,v 1.3 2002-05-20 15:11:15 hadaq Exp $";
#define _POSIX_C_SOURCE 199509L
extern "C" {
+ #include <unistd.h>
+
#include <string.h>
+ #include <time.h>
}
#include "record.h"
return S_casApp_success;
}
+gddAppFuncTableStatus Record::readSeconds(gdd &value) {
+ time_t now;
+ now = time(NULL);
+ value.putConvert((aitUint32) now);
+ return S_casApp_success;
+}
+
/***********************
* scanTimer Functions *
***********************/
gddAppFuncTableStatus readUnits(gdd &);
gddAppFuncTableStatus readStatus(gdd &);
gddAppFuncTableStatus readSeverity(gdd &);
+ gddAppFuncTableStatus readSeconds(gdd &);
virtual gddAppFuncTableStatus readValue(gdd &) = 0;
virtual caStatus scan() = 0;