#include </opt/build/repo/nap/modules/napportal/src/portalitemnumeric.h>
Public Member Functions | |
virtual bool | init (utility::ErrorState &error) override |
virtual void | onDestroy () override |
virtual bool | processUpdate (const APIEvent &event, utility::ErrorState &error) override |
virtual APIEventPtr | getDescriptor () const override |
virtual APIEventPtr | getValue () const override |
virtual void | onParameterUpdate (T value) |
![]() | |
Resource () | |
![]() | |
Object () | |
virtual | ~Object () |
Object (Object &)=delete | |
Object & | operator= (const Object &)=delete |
Object (Object &&)=delete | |
Object & | operator= (Object &&)=delete |
Public Attributes | |
Slot< T > | mParameterUpdateSlot = { this, &PortalItemNumeric::onParameterUpdate } |
ResourcePtr< ParameterNumeric< T > > | mParameter |
Property: 'Parameter' the parameter linked to this portal item. More... | |
![]() | |
Signal< const PortalItem & > | updateSignal |
![]() | |
std::string | mID |
Property: 'mID' unique name of the object. Used as an identifier by the system. More... | |
Additional Inherited Members | |
![]() | |
static bool | isIDProperty (rtti::Instance &object, const rtti::Property &property) |
Represents any numeric item in a NAP portal.
|
overridevirtual |
Implements PortalItem.
|
overridevirtual |
Implements PortalItem.
|
overridevirtual |
Subscribes to the parameter changed signal
error | contains the error message when initialization fails |
Reimplemented from Object.
|
overridevirtual |
Unsubscribes from the parameter changed signal
Reimplemented from Object.
|
virtual |
Called when the parameter value changes, sends the update as an API event
value | the updated value of the parameter |
|
overridevirtual |
Processes an update type API event.
event | The event to be processed |
error | contains information when processing fails |
Implements PortalItem.
ResourcePtr<ParameterNumeric<T> > mParameter |
Property: 'Parameter' the parameter linked to this portal item.
Slot<T> mParameterUpdateSlot = { this, &PortalItemNumeric::onParameterUpdate } |
Slot which is called when the parameter value changes