IoT::Datapoints

class CounterDatapointImpl

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

~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 protected

Poco::Any getAccess(
    const std::string & param15
) const;

getDeviceIdentifier protected

Poco::Any getDeviceIdentifier(
    const std::string & param10
) const;

getDisplayValue protected

Poco::Any getDisplayValue(
    const std::string & param9
) const;

getName protected

Poco::Any getName(
    const std::string & param11
) const;

getSymbolicName protected

Poco::Any getSymbolicName(
    const std::string & param13
) const;

getType protected

Poco::Any getType(
    const std::string & param12
) const;

getUpdated protected

Poco::Any getUpdated(
    const std::string & param14
) const;

unsafeIncrement protected

CounterType unsafeIncrement(
    CounterType value
);

unsafeReset protected

CounterType unsafeReset(
    CounterType value
);

Variables

SYMBOLIC_NAME static

static const std::string SYMBOLIC_NAME;

TYPE static

static const std::string TYPE;

Securely control IoT edge devices from anywhere   Connect a Device