IoT::Datapoints

class EnumDatapointImpl

File Information

Library: IoT/Datapoints
Package: Datapoints
Header: IoT/Datapoints/EnumDatapointImpl.h

Description

A basic implementation of an EnumDatapoint.

Inheritance

Direct Base Classes: BasicDatapointImpl < IoT::Devices::EnumDatapoint, EnumDatapointImpl >

All Base Classes: BasicDatapointImpl < IoT::Devices::EnumDatapoint, EnumDatapointImpl >

Member Summary

Member Functions: checkedUpdate, definedValues, forceUpdate, forceUpdateString, getAccess, getDeviceIdentifier, getDisplayValue, getName, getSymbolicName, getType, getUpdated, invalidate, mapSymbolicName, mapValue, stringValue, unsafeUpdate, update, updateString, valid, validStringValue, validValue, value

Types Aliases

Interface

using Interface = IoT::Devices::EnumDatapoint;

Params

using Params = EnumDatapointParams;

Constructors

EnumDatapointImpl

EnumDatapointImpl() = delete;

EnumDatapointImpl

EnumDatapointImpl(
    const std::string & id,
    const Params & params
);

Creates the ScalarDatapointImpl.

Destructor

~EnumDatapointImpl

~EnumDatapointImpl();

Destroys the ScalarDatapointImpl.

Member Functions

definedValues

std::vector < IoT::Devices::EnumValue > definedValues() const;

forceUpdate

void forceUpdate(
    int value
);

Force an update, without performing an access check.

forceUpdateString

void forceUpdateString(
    const std::string & symbolicName
);

Force an update, without performing an access check.

invalidate

void invalidate();

stringValue

std::string stringValue() const;

update

void update(
    int value
);

updateString

void updateString(
    const std::string & symbolicName
);

valid

bool valid() const;

validStringValue

Poco::Optional < std::string > validStringValue() const;

validValue

Poco::Optional < int > validValue() const;

value

int value() const;

checkedUpdate protected

void checkedUpdate(
    int value
);

getAccess protected

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

getDeviceIdentifier protected

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

getDisplayValue protected

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

getName protected

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

getSymbolicName protected

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

getType protected

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

getUpdated protected

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

mapSymbolicName protected

int mapSymbolicName(
    const std::string & symbolicName
) const;

mapValue protected

const std::string & mapValue(
    int value
) const;

unsafeUpdate protected

void unsafeUpdate(
    int 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