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
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
void checkedUpdate(
int value
);
getAccess
Poco::Any getAccess(
const std::string & param22
) const;
getDeviceIdentifier
Poco::Any getDeviceIdentifier(
const std::string & param17
) const;
getDisplayValue
Poco::Any getDisplayValue(
const std::string & param16
) const;
getName
Poco::Any getName(
const std::string & param18
) const;
getSymbolicName
Poco::Any getSymbolicName(
const std::string & param20
) const;
getType
Poco::Any getType(
const std::string & param19
) const;
getUpdated
Poco::Any getUpdated(
const std::string & param21
) const;
mapSymbolicName
int mapSymbolicName(
const std::string & symbolicName
) const;
mapValue
const std::string & mapValue(
int value
) const;
unsafeUpdate
void unsafeUpdate(
int value
);
Variables
SYMBOLIC_NAME
static const std::string SYMBOLIC_NAME;
TYPE
static const std::string TYPE;