File Information
Library: IoT/Devices
Package: Generated
Header: IoT/Devices/ScalarDatapointEventDispatcher.h
Description
A scalar datapoint holding a single numeric (double) value.
In addition to the methods defined in this interface, a ScalarDatapoint implementation should expose the following properties:
- physicalQuantity (string): The physical quantity that is being measured by the datapoint, e.g. "temperature".
- physicalUnit (string): The physical unit the measured value is being represented in (e.g. "Cel" for degree Celsius). This should use the "c/s" symbols from the Unified Code for Units of Measure (http://unitsofmeasure.org/ucum.html). See the PHYSICAL_UNIT_* strings for predefined values.
- displayValue (string, optional): The current value of the datapoint, formatted as string for display purposes.
Inheritance
Direct Base Classes: Poco::RemotingNG::EventDispatcher
All Base Classes: Poco::RefCountedObject, Poco::RemotingNG::EventDispatcher
Member Summary
Member Functions: event__invalidated, event__statusChanged, event__validated, event__valueChanged, event__valueUpdated, remoting__typeId
Inherited Functions: accept, attributes, duplicate, protocol, referenceCount, release, removeEventFilter, setEventFilter, setEventFilterImpl, subscribe, transportForSubscriber, unsubscribe
Constructors
ScalarDatapointEventDispatcher
ScalarDatapointEventDispatcher(
IScalarDatapoint * pInterface,
const Poco::RemotingNG::Identifiable::ObjectId & objectId,
const std::string & protocol
);
Creates a ScalarDatapointEventDispatcher.
Destructor
~ScalarDatapointEventDispatcher
virtual ~ScalarDatapointEventDispatcher();
Destroys the ScalarDatapointEventDispatcher.
Member Functions
event__invalidated
void event__invalidated(
const void * pSender
);
event__statusChanged
void event__statusChanged(
const void * pSender,
const IoT::Devices::DeviceStatusChange & data
);
event__validated
void event__validated(
const void * pSender,
const double & data
);
event__valueChanged
void event__valueChanged(
const void * pSender,
const double & data
);
event__valueUpdated
void event__valueUpdated(
const void * pSender,
const double & data
);
remoting__typeId
virtual const Poco::RemotingNG::Identifiable::TypeId & remoting__typeId() const;