DataHubPoint ClassThe DataHubPoint class represents a DataHub point object.
class CDataHubPointpublic class DataHubPointpublic class DataHubPointDataHub point objects are the fundamental objects used to write, receive and
manipulate data in the DataHub instance, via the
DataHubConnector class. The
DataHubPoint class provides a rich set of facilities to
create, modify and inspect these objects.
DataHub points possess the following properties:
valueA value whose type is one of PT_TYPE_STRING,
PT_TYPE_REAL (a double) or
PT_TYPE_INT32 (an int). The value is stored in
a corresponding format, and can be converted by the various utilities to
access the value.
qualityIndicates whether the DataHub instance has been updated with actual data
or if a point is uninitialized. This is typically either
PT_QUALITY_GOOD or
PT_QUALITY_BAD. Connection status can also
affect the point quality.
confidenceA user defined value, typically in the range of 0-100%. This can be used to model 'aging' of a point, and support 'fuzzy math' algorithms.
timestampTags the real-time origin of the point as it is distributed. Typically this is set by the software module originating the value of a point. It is modelled as seconds and nanoseconds, providing a resolution that is limited only by the OS.
userdataAllows the user to associate with a specific point whatever object may
be useful to the application. This is primarily used by the point cache
cability provided by the
DataHubConnector class (see
initializePointCache).
lockedControls access to the point.
securityControls access to the point.
flagsFor internal use.
#include <CDataHubPoint.h>
import cogent.DataHubPoint;
using Cogent.DataHubAPI;