OpenStructure
|
#include <entity_base.hh>
Inherits GenericPropContainer< EntityBase >.
Inherited by EntityHandle, and EntityView.
Public Member Functions | |
EntityBase (const impl::EntityImplPtr &impl) | |
EntityBase () | |
const String & | GetName () const |
void | SetName (const String &ent_name) |
Public Member Functions inherited from GenericPropContainer< EntityBase > | |
void | ClearProps () |
void | SetStringProp (const String &key, const String &value) |
void | SetFloatProp (const String &key, Real value) |
void | SetIntProp (const String &key, int value) |
void | SetBoolProp (const String &key, bool value) |
void | RemoveProp (const String &key) |
Public Member Functions inherited from ConstGenericPropContainer< EntityBase > | |
bool | HasProp (const String &key) const |
String | GetPropAsString (const String &key) const |
String | GetStringProp (const String &key) const |
String | GetStringProp (const String &key, const String &def) const |
Real | GetFloatProp (const String &key) const |
Real | GetFloatProp (const String &key, Real def) const |
int | GetIntProp (const String &key) const |
int | GetIntProp (const String &key, int def) const |
bool | GetBoolProp (const String &key) const |
bool | GetBoolProp (const String &key, bool def) const |
std::map< String, GenericPropValue > | GetPropMap () const |
std::vector< String > | GetPropList () const |
Friends | |
class | ConstGenericPropContainer< EntityBase > |
Handle validity | |
operator bool () const | |
bool | IsValid () const |
impl::EntityImplPtr & | Impl () |
const impl::EntityImplPtr & | Impl () const |
GenericPropContainerImpl * | GpImpl () |
const GenericPropContainerImpl * | GpImpl () const |
void | CheckValidity () const |
definition of EntityBase
Definition at line 30 of file entity_base.hh.
EntityBase | ( | const impl::EntityImplPtr & | impl | ) |
EntityBase | ( | ) |
|
protected |
const String& GetName | ( | ) | const |
Get entity name.
|
protected |
|
protected |
impl::EntityImplPtr& Impl | ( | ) |
const impl::EntityImplPtr& Impl | ( | ) | const |
|
inline |
check validity of handle
Reimplemented in EntityView.
Definition at line 62 of file entity_base.hh.
|
inline |
check validity of handle
check, whether the entity handle points to a valid entity.
Reimplemented in EntityView.
Definition at line 59 of file entity_base.hh.
void SetName | ( | const String & | ent_name | ) |
|
friend |
Definition at line 33 of file entity_base.hh.