Atlas_Objects_RootData man page

Atlas::Objects::RootData — All objects inherit from this.

Synopsis

#include <Root.h>

Inherits Atlas::Objects::BaseObjectData.

Inherited by Atlas::Objects::Entity::RootEntityData, and Atlas::Objects::Operation::RootOperationData.

Public Member Functions

virtual RootData * copy () const
Copy this object.
virtual bool instanceOf (int classNo) const
Is this instance of some class?
virtual int copyAttr (const std::string &name, Atlas::Message::Element &attr) const
Retrieve the attribute 'name'.
virtual void setAttr (const std::string &name, const Atlas::Message::Element &attr)
Set the attribute 'name' to the value given by'attr'.
virtual void removeAttr (const std::string &name)
Remove the attribute 'name'. This will not work for static attributes.
virtual void sendContents (Atlas::Bridge &b) const
Send the contents of this object to a Bridge.
virtual void addToMessage (Atlas::Message::MapType &) const
Write this object to an existing Element.
void setId (const std::string &val)
Set the 'id' attribute.
void setParents (const std::list< std::string > &val)
Set the 'parents' attribute.
void setParentsAsList (const Atlas::Message::ListType &val)
Set the 'parents' attribute AsList.
void setStamp (double val)
Set the 'stamp' attribute.
void setObjtype (const std::string &val)
Set the 'objtype' attribute.
void setName (const std::string &val)
Set the 'name' attribute.
const std::string & getId () const
Retrieve the 'id' attribute.
std::string & modifyId ()
Retrieve the 'id' attribute as a non-const reference.
const std::list< std::string > & getParents () const
Retrieve the 'parents' attribute.
std::list< std::string > & modifyParents ()
Retrieve the 'parents' attribute as a non-const reference.
const Atlas::Message::ListType getParentsAsList () const
Retrieve the 'parents' attribute AsList.
double getStamp () const
Retrieve the 'stamp' attribute.
double & modifyStamp ()
Retrieve the 'stamp' attribute as a non-const reference.
const std::string & getObjtype () const
Retrieve the 'objtype' attribute.
std::string & modifyObjtype ()
Retrieve the 'objtype' attribute as a non-const reference.
const std::string & getName () const
Retrieve the 'name' attribute.
std::string & modifyName ()
Retrieve the 'name' attribute as a non-const reference.
bool isDefaultId () const
Is 'id' value default?
bool isDefaultParents () const
Is 'parents' value default?
bool isDefaultStamp () const
Is 'stamp' value default?
bool isDefaultObjtype () const
Is 'objtype' value default?
bool isDefaultName () const
Is 'name' value default?
virtual void free ()
Free an instance of this class, returning it to the memory pool.
virtual RootData * getDefaultObject ()
Get the reference object that contains the default values for attributes of instances of the same class as this object.

Static Public Member Functions

static RootData * alloc ()

static RootData * getDefaultObjectInstance ()
Get the reference object that contains the default values for attributes of instances of this class.

Protected Member Functions

RootData (RootData *defaults=NULL)
Construct a RootData class definition.
virtual ~RootData ()
Default destructor.
virtual int getAttrClass (const std::string &name) const
Find the class which contains the attribute 'name'.
virtual int getAttrFlag (const std::string &name) const
Find the flag for the attribute 'name'.
void sendId (Atlas::Bridge &) const
Send the 'id' attribute to an Atlas::Bridge.
void sendParents (Atlas::Bridge &) const
Send the 'parents' attribute to an Atlas::Bridge.
void sendStamp (Atlas::Bridge &) const
Send the 'stamp' attribute to an Atlas::Bridge.
void sendObjtype (Atlas::Bridge &) const
Send the 'objtype' attribute to an Atlas::Bridge.
void sendName (Atlas::Bridge &) const
Send the 'name' attribute to an Atlas::Bridge.
virtual void iterate (int &current_class, std::string &attr) const
Iterate over the attributes of this instance.

Protected Attributes

std::string attr_id
Id of object.
std::list< std::string > attr_parents
List of objects this inherits attributes from.
double attr_stamp
Last time this object was modified.
std::string attr_objtype
What kind of object this is.
std::string attr_name
Name of object.

Detailed Description

All objects inherit from this.

. You can browse all definitions starting from here and descending into childrens.

Member Function Documentation

virtual int Atlas::Objects::RootData::copyAttr (const std::string & name, Atlas::Message::Element & attr) const [virtual]

Retrieve the attribute 'name'. Return non-zero if it does not exist.

Reimplemented from Atlas::Objects::BaseObjectData.

Reimplemented in Atlas::Objects::Entity::AccountData, Atlas::Objects::Operation::RootOperationData, and Atlas::Objects::Entity::RootEntityData.

virtual void Atlas::Objects::RootData::free () [virtual]

Free an instance of this class, returning it to the memory pool. This function in combination with alloc() handle the memory pool.

Implements Atlas::Objects::BaseObjectData.

Reimplemented in Atlas::Objects::Operation::ErrorData, Atlas::Objects::Operation::FeelData, Atlas::Objects::Operation::SmellData, Atlas::Objects::Operation::SoundData, Atlas::Objects::Operation::DisappearanceData, Atlas::Objects::Operation::AppearanceData, Atlas::Objects::Operation::SightData, Atlas::Objects::Operation::PerceptionData, Atlas::Objects::Operation::InfoData, Atlas::Objects::Operation::UseData, Atlas::Objects::Operation::ImaginaryData, Atlas::Objects::Operation::LogoutData, Atlas::Objects::Operation::LoginData, Atlas::Objects::Operation::TouchData, Atlas::Objects::Operation::SniffData, Atlas::Objects::Operation::ListenData, Atlas::Objects::Operation::LookData, Atlas::Objects::Operation::PerceiveData, Atlas::Objects::Operation::GetData, Atlas::Objects::Operation::WieldData, Atlas::Objects::Operation::MoveData, Atlas::Objects::Operation::AffectData, Atlas::Objects::Entity::GameEntityData, Atlas::Objects::Operation::SetData, Atlas::Objects::Entity::GameData, Atlas::Objects::Operation::DeleteData, Atlas::Objects::Entity::AdminData, Atlas::Objects::Entity::PlayerData, Atlas::Objects::Operation::TalkData, Atlas::Objects::Operation::CommunicateData, Atlas::Objects::Operation::DivideData, Atlas::Objects::Operation::CombineData, Atlas::Objects::Entity::AccountData, Atlas::Objects::Operation::RootOperationData, Atlas::Objects::Entity::RootEntityData, Atlas::Objects::Operation::CreateData, Atlas::Objects::Operation::GenericData, Atlas::Objects::Operation::ActionData, Atlas::Objects::Entity::AnonymousData, and Atlas::Objects::Entity::AdminEntityData.

virtual RootData* Atlas::Objects::RootData::getDefaultObject () [virtual]

Get the reference object that contains the default values for attributes of instances of the same class as this object.

Returns:

a pointer to the default object.

Reimplemented in Atlas::Objects::Operation::ErrorData, Atlas::Objects::Operation::FeelData, Atlas::Objects::Operation::SmellData, Atlas::Objects::Operation::SoundData, Atlas::Objects::Operation::DisappearanceData, Atlas::Objects::Operation::AppearanceData, Atlas::Objects::Operation::SightData, Atlas::Objects::Operation::PerceptionData, Atlas::Objects::Operation::InfoData, Atlas::Objects::Operation::UseData, Atlas::Objects::Operation::ImaginaryData, Atlas::Objects::Operation::LogoutData, Atlas::Objects::Operation::LoginData, Atlas::Objects::Operation::TouchData, Atlas::Objects::Operation::SniffData, Atlas::Objects::Operation::ListenData, Atlas::Objects::Operation::LookData, Atlas::Objects::Operation::PerceiveData, Atlas::Objects::Operation::GetData, Atlas::Objects::Operation::WieldData, Atlas::Objects::Operation::MoveData, Atlas::Objects::Operation::AffectData, Atlas::Objects::Entity::GameEntityData, Atlas::Objects::Operation::SetData, Atlas::Objects::Entity::GameData, Atlas::Objects::Operation::DeleteData, Atlas::Objects::Entity::AdminData, Atlas::Objects::Entity::PlayerData, Atlas::Objects::Operation::TalkData, Atlas::Objects::Operation::CommunicateData, Atlas::Objects::Operation::DivideData, Atlas::Objects::Operation::CombineData, Atlas::Objects::Entity::AccountData, Atlas::Objects::Operation::RootOperationData, Atlas::Objects::Entity::RootEntityData, Atlas::Objects::Operation::CreateData, Atlas::Objects::Operation::GenericData, Atlas::Objects::Operation::ActionData, Atlas::Objects::Entity::AnonymousData, and Atlas::Objects::Entity::AdminEntityData.

static RootData* Atlas::Objects::RootData::getDefaultObjectInstance () [static]

Get the reference object that contains the default values for attributes of instances of this class.

Returns:

a pointer to the default object.

Author

Generated automatically by Doxygen for Atlas-C++ from the source code.

Info

Wed Feb 3 2016 Atlas-C++