RobWorkProject
Public Types | Public Member Functions | List of all members
PropertyBase Class Referenceabstract

Base class for Property handling. More...

#include <PropertyBase.hpp>

Inherited by Property< bool >, Property< rw::common::PropertyMap >, Property< rw::math::Vector3D<> >, and Property< T >.

Public Types

typedef rw::common::Ptr< PropertyBasePtr
 smart pointer type to this class
 
typedef boost::function< void(PropertyBase *)> PropertyListener
 Method signature for a callback function.
 
typedef rw::common::Event< PropertyListener, PropertyBase * > ChangedEvent
 Type for changed property events.
 

Public Member Functions

 PropertyBase (const std::string &identifier, const std::string &description)
 Constructor. More...
 
 PropertyBase (const std::string &identifier, const std::string &description, const PropertyType &type)
 Constructor. More...
 
virtual ~PropertyBase ()
 Destroys PropertyBase.
 
const std::string & getIdentifier () const
 Returns the Property identifier. More...
 
const std::string & getDescription () const
 Returns description. More...
 
void setDescription (const std::string &desc)
 set description
 
virtual PropertyBaseclone () const =0
 Construct a clone of the property.
 
ChangedEventchangedEvent ()
 get changed event More...
 
const PropertyTypegetType () const
 Returns the PropertyType. More...
 

Detailed Description

Base class for Property handling.

Constructor & Destructor Documentation

◆ PropertyBase() [1/2]

PropertyBase ( const std::string &  identifier,
const std::string &  description 
)

Constructor.

Parameters
identifier[in] identifier for the property
description[in] description of the property

◆ PropertyBase() [2/2]

PropertyBase ( const std::string &  identifier,
const std::string &  description,
const PropertyType type 
)

Constructor.

Parameters
identifier[in] identifier for the property
description[in] description of the property
type[in] type of the property

Member Function Documentation

◆ changedEvent()

ChangedEvent& changedEvent ( )
inline

get changed event

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

◆ getDescription()

const std::string& getDescription ( ) const

Returns description.

Returns
string description

◆ getIdentifier()

const std::string& getIdentifier ( ) const

Returns the Property identifier.

Returns
string identifier

◆ getType()

const PropertyType& getType ( ) const

Returns the PropertyType.

Returns
the PropertyType

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