File Information
Library: IoT/Datapoints
Package: Datapoints
Header: IoT/Datapoints/CounterDatapointImpl.h
Description
A basic implementation of a CounterDatapoint.
Inheritance
Direct Base Classes: BasicDatapointImpl < IoT::Devices::CounterDatapoint, CounterDatapointImpl >
All Base Classes: BasicDatapointImpl < IoT::Devices::CounterDatapoint, CounterDatapointImpl >
Member Summary
Member Functions: forceIncrement, forceReset, getAccess, getDeviceIdentifier, getDisplayValue, getName, getSymbolicName, getType, getUpdated, increment, invalidate, reset, unsafeIncrement, unsafeReset, valid, validValue, value
Types Aliases
Interface
using Interface = IoT::Devices::CounterDatapoint;
Params
using Params = CounterDatapointParams;
Constructors
CounterDatapointImpl
CounterDatapointImpl() = delete;
CounterDatapointImpl
CounterDatapointImpl(
const std::string & id,
const Params & params
);
Creates the ScalarDatapointImpl.
Destructor
~CounterDatapointImpl
Destroys the ScalarDatapointImpl.
Member Functions
forceIncrement
CounterType forceIncrement(
CounterType delta = 1
);
Force an update, without performing an access check.
forceReset
CounterType forceReset(
CounterType value = 0
);
Force a reset, without performing an access check.
increment
CounterType increment(
CounterType delta = 1
);
invalidate
void invalidate();
reset
CounterType reset(
CounterType value = 0
);
valid
bool valid() const;
validValue
Poco::Optional < CounterType > validValue() const;
value
CounterType value() const;
getAccess
Poco::Any getAccess(
const std::string & param15
) const;
getDeviceIdentifier
Poco::Any getDeviceIdentifier(
const std::string & param10
) const;
getDisplayValue
Poco::Any getDisplayValue(
const std::string & param9
) const;
getName
Poco::Any getName(
const std::string & param11
) const;
getSymbolicName
Poco::Any getSymbolicName(
const std::string & param13
) const;
getType
Poco::Any getType(
const std::string & param12
) const;
getUpdated
Poco::Any getUpdated(
const std::string & param14
) const;
unsafeIncrement
CounterType unsafeIncrement(
CounterType value
);
unsafeReset
CounterType unsafeReset(
CounterType value
);
Variables
SYMBOLIC_NAME
static const std::string SYMBOLIC_NAME;
TYPE
static const std::string TYPE;