Abstract base class for registered keys. More...
#include <Target.h>
Public Member Functions | |
virtual bool | CanRead (const std::string &path) const noexcept |
Determines whether the value can be read. More... | |
virtual bool | CanWrite (const std::string &path) const noexcept |
Determines whether the value can be written. More... | |
virtual data::Variant | Get (const std::string &path)=0 |
Get the current value of the target. More... | |
virtual data::discovery::Field | GetFieldDescriptor (const std::string &path) const =0 |
Get the field of the target. More... | |
virtual void | Set (const std::string &path, const data::Variant &value)=0 |
Set the current value of the target. More... | |
|
inlinevirtualnoexcept |
Determines whether the value can be read.
Reimplemented in swarmio::simulator::InMemoryParameter, and swarmros::bridge::ParameterTarget.
|
inlinevirtualnoexcept |
Determines whether the value can be written.
Reimplemented in swarmio::simulator::InMemoryParameter, and swarmros::bridge::ParameterTarget.
|
pure virtual |
Get the current value of the target.
Implemented in swarmio::simulator::InMemoryParameter, and swarmros::bridge::ParameterTarget.
|
pure virtual |
Get the field of the target.
Implemented in swarmio::simulator::InMemoryParameter, and swarmros::bridge::ParameterTarget.
|
pure virtual |
Set the current value of the target.
value | New value |
Implemented in swarmio::simulator::InMemoryParameter.