#include <AttributeBase.hpp>
Public Member Functions | |
AttributeBase () | |
AttributeBase (const std::string &name) | |
virtual AttributeBase * | clone () const =0 |
virtual AttributeBase * | copy (std::map< const DataSourceBase *, DataSourceBase * > &replacements, bool instantiate)=0 |
virtual DataSourceBase::shared_ptr | getDataSource () const =0 |
const std::string & | getName () const |
bool | ready () const |
void | setName (std::string const &new_name) |
virtual | ~AttributeBase () |
Protected Attributes | |
std::string | mname |
An attribute is a minimalistic, named placeholder for data. It is a light-weight equivalent of a Property.
Definition at line 52 of file AttributeBase.hpp.
Create a nameless AttributeBase.
Definition at line 46 of file Attribute.cpp.
RTT::AttributeBase::AttributeBase | ( | const std::string & | name | ) |
Create an AttributeBase known by a name.
name | The name. |
Definition at line 50 of file Attribute.cpp.
RTT::AttributeBase::~AttributeBase | ( | ) | [virtual] |
Definition at line 55 of file Attribute.cpp.
virtual AttributeBase* RTT::base::AttributeBase::clone | ( | ) | const [pure virtual] |
Returns a clone of this AttributeBase.
Implemented in RTT::Alias, RTT::Constant< T >, RTT::Constant< int >, RTT::Attribute< T >, RTT::Attribute< int >, and RTT::scripting::SendHandleAlias.
virtual AttributeBase* RTT::base::AttributeBase::copy | ( | std::map< const DataSourceBase *, DataSourceBase * > & | replacements, |
bool | instantiate | ||
) | [pure virtual] |
Returns a copy of this AttributeBase. Uses the given replacements to copy held DataSources.
instantiate | Set to true to get a copy which will return itself on any future copy request. |
virtual DataSourceBase::shared_ptr RTT::base::AttributeBase::getDataSource | ( | ) | const [pure virtual] |
Return a internal::DataSource which contains the same contents.
Implemented in RTT::Alias, RTT::Constant< T >, RTT::Constant< int >, RTT::Attribute< T >, RTT::Attribute< int >, and RTT::scripting::SendHandleAlias.
const std::string & RTT::AttributeBase::getName | ( | ) | const |
bool RTT::base::AttributeBase::ready | ( | ) | const [inline] |
Returns true if the Attribute was correctly initialised.
Definition at line 89 of file AttributeBase.hpp.
void RTT::AttributeBase::setName | ( | std::string const & | new_name | ) |
std::string RTT::base::AttributeBase::mname [protected] |
Definition at line 55 of file AttributeBase.hpp.