NAP
Public Member Functions | List of all members
InstancePropertyValue Class Referenceabstract

#include <instanceproperty.h>

Public Member Functions

virtual bool setValue (rtti::ResolvedPath &resolvedTargetPath, utility::ErrorState &errorState) const =0
 
- Public Member Functions inherited from Object
 Object ()
 
virtual ~Object ()
 
virtual bool init (utility::ErrorState &errorState)
 
virtual void onDestroy ()
 
 Object (Object &)=delete
 
Objectoperator= (const Object &)=delete
 
 Object (Object &&)=delete
 
Objectoperator= (Object &&)=delete
 

Additional Inherited Members

- Static Public Member Functions inherited from Object
static bool isIDProperty (rtti::Instance &object, const rtti::Property &property)
 
- Public Attributes inherited from Object
std::string mID
 Property: 'mID' unique name of the object. Used as an identifier by the system. More...
 

Description

Base class for all typed instance property values. This represents the value that is applied on a certain property.

Inheritance diagram for InstancePropertyValue:
[legend]
Collaboration diagram for InstancePropertyValue:
[legend]

Member Function Documentation

◆ setValue()

virtual bool setValue ( rtti::ResolvedPath resolvedTargetPath,
utility::ErrorState errorState 
) const
pure virtual

Applies an instance property value to the target path. The value itself should be stored on the derived typed class.

Parameters
resolvedTargetPathPath to the property to modify. The Path is constructed from both the ComponentPtr and the RTTIPath.
errorStateIf function returns false, contains error information if an error occurs, like types that do not match.
Returns
True on success, otherwise false.

Implemented in TypedInstancePropertyValue< T >, ComponentPtrInstancePropertyValue, and PointerInstancePropertyValue.