NAP
Public Member Functions | Public Attributes | List of all members
ComponentPtrInstancePropertyValue Class Reference

#include <instanceproperty.h>

Public Member Functions

virtual bool setValue (rtti::ResolvedPath &resolvedTargetPath, utility::ErrorState &errorState) const override
 
- 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
 

Public Attributes

ComponentPtr< ComponentmValue
 
- Public Attributes inherited from Object
std::string mID
 Property: 'mID' unique name of the object. Used as an identifier by the system. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Object
static bool isIDProperty (rtti::Instance &object, const rtti::Property &property)
 

Description

Instance property value a ComponentPtr type. The value contains a path as if it was present on the original attribute. So, any relative paths are relative to the original location of the property.

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

Member Function Documentation

◆ setValue()

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

Sets component pointer value.

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.

Implements InstancePropertyValue.

Member Data Documentation

◆ mValue