RobWorkProject  23.9.11-
Public Types | Public Member Functions | List of all members
PropertyValueBase Class Referenceabstract

Base class for Property handling. More...

#include <PropertyValueBase.hpp>

Inherited by PropertyValue< T >.

Public Types

typedef rw::core::Ptr< PropertyValueBasePtr
 Smart pointer type to this class.
typedef std::function< void(PropertyValueBase *)> PropertyListener
 Method signature for a callback function.
typedef rw::core::Event< PropertyListener, PropertyValueBase * > ChangedEvent
 Type for changed property events.

Public Member Functions

 PropertyValueBase ()
 PropertyValueBase (const PropertyType &type)
 Constructor. More...
virtual ~PropertyValueBase ()
 Destroys PropertyValueBase.
virtual PropertyValueBaseclone () const =0
 Construct a clone of the property value. More...
const rw::core::PropertyTypegetType () const
 Returns the PropertyType. More...
ChangedEventchangedEvent ()
 get changed event More...

Detailed Description

Base class for Property handling.

Constructor & Destructor Documentation

◆ PropertyValueBase()

PropertyValueBase ( const PropertyType type)


type[in] type of the property

Member Function Documentation

◆ changedEvent()

ChangedEvent& changedEvent ( )

get changed event

to add listener use: changedEvent().add(...)

◆ clone()

virtual PropertyValueBase* clone ( ) const
pure virtual

Construct a clone of the property value.

a clone.

Implemented in PropertyValue< T >.

◆ getType()

const rw::core::PropertyType& getType ( ) const

Returns the PropertyType.

the PropertyType

The documentation for this class was generated from the following file: