ValueI Class
Extends a RawValueI with type/count.Interface
- Create/clone Value
virtual ValueI *clone () const = 0;- Get value as text. (undefined if CtrlInfo is invalid) Will get the whole array for getCount()>1.
virtual void getValue (stdString &result) const = 0;- Access to CtrlInfoI : units, precision, limits, ...
virtual const CtrlInfoI *getCtrlInfo () const = 0; virtual void setCtrlInfo (const CtrlInfoI *info);- Get/set one array element as double
virtual double getDouble (DbrCount index = 0) const = 0; virtual void setDouble (double value, DbrCount index = 0) = 0;- Get time stamp
const osiTime getTime () const; void getTime (stdString &result) const; void setTime (const osiTime &stamp); * Get status as raw value or string dbr_short_t getStat () const; dbr_short_t getSevr () const; void getStatus (stdString &result) const; void setStatus (dbr_short_t status, dbr_short_t severity);- compare DbrType, DbrCount
bool hasSameType (const ValueI &rhs) const;- compare two Values (time stamp, status, severity, value)
bool operator == (const ValueI &rhs) const; bool operator != (const ValueI &rhs) const;- compare only the pure value (refer to operator ==), not the time stamp or status
bool hasSameValue (const ValueI &rhs) const;- Does this Value hold Archiver status information like disconnect and no 'real' value, so calling e.g. getDouble() makes no sense?
Repeat counts do hold a value, so these are not recognized in here:bool isInfo () const;- Access to contained RawValue:
DbrType getType () const; void getType (stdString &type) const; DbrCount getCount () const;
IndexCreated from sources with MakeDoc Perl script.