#include <namedentity.h>
Public Types | |
typedef MemberCaller1 < NamedEntity, const std::string &,&NamedEntity::identifierChanged > | IdentifierChangedCaller |
Public Member Functions | |
NamedEntity (EntityKeyValues &entity) | |
std::string | name () const |
void | attach (const NameCallback &callback) |
void | detach (const NameCallback &callback) |
void | identifierChanged (const std::string &value) |
Private Attributes | |
EntityKeyValues & | m_entity |
NameCallbackSet | m_changed |
std::string | m_name |
Definition at line 58 of file namedentity.h.
typedef MemberCaller1<NamedEntity, const std::string&, &NamedEntity::identifierChanged> NamedEntity::IdentifierChangedCaller |
Definition at line 92 of file namedentity.h.
NamedEntity::NamedEntity | ( | EntityKeyValues & | entity | ) | [inline] |
Definition at line 64 of file namedentity.h.
void NamedEntity::attach | ( | const NameCallback & | callback | ) | [inline] |
Definition at line 74 of file namedentity.h.
References NameCallbackSet::insert(), and m_changed.
void NamedEntity::detach | ( | const NameCallback & | callback | ) | [inline] |
Definition at line 78 of file namedentity.h.
References NameCallbackSet::erase(), and m_changed.
void NamedEntity::identifierChanged | ( | const std::string & | value | ) | [inline] |
Definition at line 83 of file namedentity.h.
References NameCallbackSet::changed(), EntityKeyValues::getEntityClass(), m_changed, m_entity, m_name, and EntityClass::name().
std::string NamedEntity::name | ( | ) | const [inline] |
Definition at line 68 of file namedentity.h.
References EntityKeyValues::getEntityClass(), m_entity, m_name, and EntityClass::name().
Referenced by RenderableNamedEntity::render().
NameCallbackSet NamedEntity::m_changed [private] |
Definition at line 61 of file namedentity.h.
Referenced by attach(), detach(), and identifierChanged().
EntityKeyValues& NamedEntity::m_entity [private] |
Definition at line 60 of file namedentity.h.
Referenced by identifierChanged(), and name().
std::string NamedEntity::m_name [private] |
Definition at line 62 of file namedentity.h.
Referenced by identifierChanged(), and name().