#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.
RTT::AttributeBase::AttributeBase | ( | ) |
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.
|
virtual |
Definition at line 55 of file Attribute.cpp.
|
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.
|
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. |
|
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 |
|
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 | ) |
|
protected |
Definition at line 55 of file AttributeBase.hpp.