NAP
Public Member Functions | Public Attributes | List of all members
TypedInstancePropertyValue< T > Class Template 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

mValue
 
- 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

template<class T>
class nap::TypedInstancePropertyValue< T >

Template class for instance property value for POD-like types. A number of 'usings' are used to create specific types for int, float etc, so that RTTI can be created for all these types.

Inheritance diagram for TypedInstancePropertyValue< T >:
[legend]
Collaboration diagram for TypedInstancePropertyValue< T >:
[legend]

Member Function Documentation

◆ setValue()

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

Sets 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

T mValue