Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members

MonitorPoint Class Reference

#include <monitor_point.h>

Inheritance diagram for MonitorPoint:

CompositeMonitorPoint< C > MonitorRegister PfiefferVacGauge PseudoMonitorPoint MultiplexedMonitorRegister PseudoMonitorRegister List of all members.

Detailed Description

Class MonitorPoint:- access a monitor point via an AT Dataset.

Author:
Simon Hoyle
Date:
Oct 2002
Version:
1.0

Definition at line 19 of file monitor_point.h.

Public Types

enum  { NONE, DATASET, GPIB }
typedef double(* LinearFunc )(double)

Public Member Functions

void add (LinearFunc l)
CommsDevicegetCommsDev ()
const char * getFormat ()
const char * getFormattedVal ()
float getFval ()
virtual const char * getID ()
int getInterval ()
int getIval ()
float getLowerLimit ()
const char * getMaxTime ()
float getMaxVal ()
const char * getMinTime ()
float getMinVal ()
int getPrimaryAddress ()
int getRefNum ()
virtual CommsDevice::State getState ()
int getStatus ()
const char * getTimestamp ()
const char * getUnits ()
float getUpperLimit ()
bool hasExceededLowerLimit ()
bool hasExceededUpperLimit ()
virtual bool hasID (const char *id)
void init (Dataset::Op_t dsOp, Dataset::Cat_t dsCat, int dsAddr, int ptAddr, char *format, int interval, bool enabled, char *desc)
int init (const char *dbLine)
virtual int initComms ()
bool isEnabled ()
 MonitorPoint (const char *name, CommsDevice *cd)
 Constructor.
 MonitorPoint (CommsDevice *cd)
void prependID (const char *str)
virtual int read (float *val)
virtual int read (int *val)
virtual const char * read (const char *id)
virtual const char * read ()
void setDebug (bool onOff)
void setEnabled (bool onOff)
void setLimits (float lower, float upper)
void setOffset (float offset)
void setScale (float scale)
virtual ~MonitorPoint ()

Static Public Member Functions

static void setDebugAll (bool onOff)
 A method to enable/disable printing of debug statements for a single object.

Protected Member Functions

void checkLimits (float fval)
int parseDbLine (const char *dbLine)
void printDbParams ()

Protected Attributes

int commDevType
CommsDevicecommsDev
DbParams dbp
float fval
int ival
LinearFunc lineariser
bool lowerLimitReached
int mask
char maxTime [15]
float maxVal
char minTime [15]
float minVal
int primaryAddr
 A method to enable/disable printing of debug statements for the class.
time_t readTime
char response [120]
int secondaryAddr
char timestamp [15]
bool upperLimitReached
char valStr [30]

Classes

struct  DbParams


Constructor & Destructor Documentation

MonitorPoint::MonitorPoint const char *  name,
CommsDevice cd
 

Constructor.

Parameters:
name 
cd 

Definition at line 41 of file monitor_point.cc.

References dbp, lineariser, lowerLimitReached, mask, maxTime, maxVal, minTime, minVal, MonitorPoint::DbParams::name, MonitorPoint::DbParams::offset, response, MonitorPoint::DbParams::scale, timestamp, upperLimitReached, and valStr.


The documentation for this class was generated from the following files:
Generated on Mon Apr 30 13:32:45 2007 for Parkes M & C - PKMC C++ library API by  doxygen 1.4.4