Atlas  0.7.0
Networking protocol for the Worldforge system.
Atlas::Objects::Entity::AdminData Class Reference

Privileged accounts. More...

#include <Entity.h>

Inheritance diagram for Atlas::Objects::Entity::AdminData:
Collaboration diagram for Atlas::Objects::Entity::AdminData:

Public Member Functions

AdminDatacopy () const override
 Copy this object. More...
 
bool instanceOf (int classNo) const override
 Is this instance of some class? More...
 
int copyAttr (const std::string &name, Atlas::Message::Element &attr) const override
 
void setAttr (std::string name, Atlas::Message::Element attr, const Atlas::Objects::Factories *factories=nullptr) override
 Set the attribute "name" to the value given by"attr". More...
 
void removeAttr (const std::string &name) override
 Remove the attribute "name". This will not work for static attributes. More...
 
void sendContents (Atlas::Bridge &b) const override
 Send the contents of this object to a Bridge. More...
 
void addToMessage (Atlas::Message::MapType &) const override
 Write this object to an existing Element. More...
 
void setUsername (std::string val)
 Set the "username" attribute. More...
 
void setPassword (std::string val)
 Set the "password" attribute. More...
 
void setCharacters (std::vector< std::string > val)
 Set the "characters" attribute. More...
 
void setCharactersAsList (const Atlas::Message::ListType &val)
 Set the "characters" attribute AsList. More...
 
const std::string & getUsername () const
 Retrieve the "username" attribute. More...
 
std::string & modifyUsername ()
 Retrieve the "username" attribute as a non-const reference. More...
 
const std::string & getPassword () const
 Retrieve the "password" attribute. More...
 
std::string & modifyPassword ()
 Retrieve the "password" attribute as a non-const reference. More...
 
const std::vector< std::string > & getCharacters () const
 Retrieve the "characters" attribute. More...
 
std::vector< std::string > & modifyCharacters ()
 Retrieve the "characters" attribute as a non-const reference. More...
 
Atlas::Message::ListType getCharactersAsList () const
 Retrieve the "characters" attribute AsList. More...
 
bool isDefaultUsername () const
 Is "username" value default? More...
 
bool isDefaultPassword () const
 Is "password" value default? More...
 
bool isDefaultCharacters () const
 Is "characters" value default? More...
 
void setLoc (std::string val)
 Set the "loc" attribute. More...
 
void setPos (std::vector< double > val)
 Set the "pos" attribute. More...
 
void setPosAsList (const Atlas::Message::ListType &val)
 Set the "pos" attribute AsList. More...
 
void setVelocity (std::vector< double > val)
 Set the "velocity" attribute. More...
 
void setVelocityAsList (const Atlas::Message::ListType &val)
 Set the "velocity" attribute AsList. More...
 
void setContains (std::vector< std::string > val)
 Set the "contains" attribute. More...
 
void setContainsAsList (const Atlas::Message::ListType &val)
 Set the "contains" attribute AsList. More...
 
void setStampContains (double val)
 Set the "stamp_contains" attribute. More...
 
const std::string & getLoc () const
 Retrieve the "loc" attribute. More...
 
std::string & modifyLoc ()
 Retrieve the "loc" attribute as a non-const reference. More...
 
const std::vector< double > & getPos () const
 Retrieve the "pos" attribute. More...
 
std::vector< double > & modifyPos ()
 Retrieve the "pos" attribute as a non-const reference. More...
 
Atlas::Message::ListType getPosAsList () const
 Retrieve the "pos" attribute AsList. More...
 
const std::vector< double > & getVelocity () const
 Retrieve the "velocity" attribute. More...
 
std::vector< double > & modifyVelocity ()
 Retrieve the "velocity" attribute as a non-const reference. More...
 
Atlas::Message::ListType getVelocityAsList () const
 Retrieve the "velocity" attribute AsList. More...
 
const std::vector< std::string > & getContains () const
 Retrieve the "contains" attribute. More...
 
std::vector< std::string > & modifyContains ()
 Retrieve the "contains" attribute as a non-const reference. More...
 
Atlas::Message::ListType getContainsAsList () const
 Retrieve the "contains" attribute AsList. More...
 
double getStampContains () const
 Retrieve the "stamp_contains" attribute. More...
 
double & modifyStampContains ()
 Retrieve the "stamp_contains" attribute as a non-const reference. More...
 
bool isDefaultLoc () const
 Is "loc" value default? More...
 
bool isDefaultPos () const
 Is "pos" value default? More...
 
bool isDefaultVelocity () const
 Is "velocity" value default? More...
 
bool isDefaultContains () const
 Is "contains" value default? More...
 
bool isDefaultStampContains () const
 Is "stamp_contains" value default? More...
 
void setId (std::string val)
 Set the "id" attribute. More...
 
void setParent (std::string val)
 Set the "parent" attribute. More...
 
void setStamp (double val)
 Set the "stamp" attribute. More...
 
void setObjtype (std::string val)
 Set the "objtype" attribute. More...
 
void setName (std::string val)
 Set the "name" attribute. More...
 
const std::string & getId () const
 Retrieve the "id" attribute. More...
 
std::string & modifyId ()
 Retrieve the "id" attribute as a non-const reference. More...
 
const std::string & getParent () const
 Retrieve the "parent" attribute. More...
 
std::string & modifyParent ()
 Retrieve the "parent" attribute as a non-const reference. More...
 
double getStamp () const
 Retrieve the "stamp" attribute. More...
 
double & modifyStamp ()
 Retrieve the "stamp" attribute as a non-const reference. More...
 
const std::string & getObjtype () const
 Retrieve the "objtype" attribute. More...
 
std::string & modifyObjtype ()
 Retrieve the "objtype" attribute as a non-const reference. More...
 
const std::string & getName () const
 Retrieve the "name" attribute. More...
 
std::string & modifyName ()
 Retrieve the "name" attribute as a non-const reference. More...
 
bool isDefaultId () const
 Is "id" value default? More...
 
bool isDefaultParent () const
 Is "parent" value default? More...
 
bool isDefaultStamp () const
 Is "stamp" value default? More...
 
bool isDefaultObjtype () const
 Is "objtype" value default? More...
 
bool isDefaultName () const
 Is "name" value default? More...
 
int getClassNo () const
 Get class number: More...
 
uint32_t getAttrFlags () const
 
bool hasAttr (const std::string &name) const
 Check whether the attribute "name" exists. More...
 
bool hasAttrFlag (uint32_t flag) const
 Check whether the attribute "name" exists. More...
 
Atlas::Message::Element getAttr (const std::string &name) const
 
virtual void removeAttrFlag (uint32_t flag)
 Remove the attribute "name". More...
 
Atlas::Message::MapType asMessage () const
 

Static Public Attributes

static constexpr const char * super_parent = "account"
 
static constexpr const char * default_parent = "admin"
 
static constexpr const char * default_objtype = "obj"
 
static Allocator< AdminDataallocator
 

Protected Member Functions

 AdminData (AdminData *defaults=nullptr)
 Construct a AdminData class definition. More...
 
 ~AdminData () override=default
 Default destructor. More...
 
void reset () override
 Resets the object as it's returned to the pool. More...
 
void free () override
 Free an instance of this class, returning it to the memory pool. More...
 
int getAttrClass (const std::string &name) const override
 Find the class which contains the attribute "name". More...
 
bool getAttrFlag (const std::string &name, uint32_t &flag) const override
 Find the flag for the attribute "name". More...
 
void sendUsername (Atlas::Bridge &) const
 Send the "username" attribute to an Atlas::Bridge. More...
 
void sendPassword (Atlas::Bridge &) const
 Send the "password" attribute to an Atlas::Bridge. More...
 
void sendCharacters (Atlas::Bridge &) const
 Send the "characters" attribute to an Atlas::Bridge. More...
 
void sendLoc (Atlas::Bridge &) const
 Send the "loc" attribute to an Atlas::Bridge. More...
 
void sendPos (Atlas::Bridge &) const
 Send the "pos" attribute to an Atlas::Bridge. More...
 
void sendVelocity (Atlas::Bridge &) const
 Send the "velocity" attribute to an Atlas::Bridge. More...
 
void sendContains (Atlas::Bridge &) const
 Send the "contains" attribute to an Atlas::Bridge. More...
 
void sendStampContains (Atlas::Bridge &) const
 Send the "stamp_contains" attribute to an Atlas::Bridge. More...
 
void sendId (Atlas::Bridge &) const
 Send the "id" attribute to an Atlas::Bridge. More...
 
void sendParent (Atlas::Bridge &) const
 Send the "parent" attribute to an Atlas::Bridge. More...
 
void sendStamp (Atlas::Bridge &) const
 Send the "stamp" attribute to an Atlas::Bridge. More...
 
void sendObjtype (Atlas::Bridge &) const
 Send the "objtype" attribute to an Atlas::Bridge. More...
 
void sendName (Atlas::Bridge &) const
 Send the "name" attribute to an Atlas::Bridge. More...
 
void incRef ()
 
void decRef ()
 

Static Protected Member Functions

template<typename T >
static T * copyInstance (const T &instance)
 

Protected Attributes

std::string attr_username
 Username for account usually. More...
 
std::string attr_password
 Password for account usually. More...
 
std::vector< std::string > attr_characters
 List of characters account can control. More...
 
std::string attr_loc
 Reference object for coordinates (location). More...
 
std::vector< double > attr_pos
 Position coordinates, usually world is 3D. More...
 
std::vector< double > attr_velocity
 Velocity object is moving, usually world is 3D. More...
 
std::vector< std::string > attr_contains
 List of objects that use this object as reference system (usually same as what this object contains). More...
 
double attr_stamp_contains
 Last time any object that uses this as reference recursively has been modified. More...
 
std::string attr_id
 Id of object. More...
 
std::string attr_parent
 The object this inherits attributes from. More...
 
double attr_stamp
 Last time this object was modified. More...
 
std::string attr_objtype
 What kind of object this is. More...
 
std::string attr_name
 Name of object. More...
 
int m_class_no
 
int m_refCount
 
BaseObjectDatam_defaults
 
BaseObjectDatam_next
 
std::map< std::string, Atlas::Message::Elementm_attributes
 
uint32_t m_attrFlags
 

Friends

template<typename >
class ::Atlas::Objects::Allocator
 

Detailed Description

Privileged accounts.

Later in hierarchy tree objtype changes to 'object' when actual game objects are made.

Definition at line 385 of file Entity.h.

Constructor & Destructor Documentation

◆ AdminData()

Atlas::Objects::Entity::AdminData::AdminData ( AdminData defaults = nullptr)
inlineexplicitprotected

Construct a AdminData class definition.

Definition at line 389 of file Entity.h.

◆ ~AdminData()

Atlas::Objects::Entity::AdminData::~AdminData ( )
overrideprotecteddefault

Default destructor.

Member Function Documentation

◆ addToMessage()

void Atlas::Objects::Entity::AccountData::addToMessage ( Atlas::Message::MapType &  ) const
overridevirtualinherited

◆ asMessage()

MapType Atlas::Objects::BaseObjectData::asMessage ( ) const
inherited

Convert this object to a Object. This is now legacy, and implemented using addToMessage.

Definition at line 92 of file BaseObject.cpp.

References Atlas::Objects::BaseObjectData::addToMessage().

◆ copy()

AdminData * Atlas::Objects::Entity::AdminData::copy ( ) const
overridevirtual

Copy this object.

Reimplemented from Atlas::Objects::Entity::AccountData.

Definition at line 256 of file RootEntityChildren.cpp.

◆ copyAttr()

int Atlas::Objects::Entity::AccountData::copyAttr ( const std::string &  name,
Atlas::Message::Element attr 
) const
overridevirtualinherited

◆ free()

void Atlas::Objects::Entity::AdminData::free ( )
overrideprotectedvirtual

Free an instance of this class, returning it to the memory pool.

This function in combination with alloc() handle the memory pool.

Reimplemented from Atlas::Objects::Entity::AccountData.

Definition at line 244 of file RootEntityChildren.cpp.

◆ getAttr()

Element Atlas::Objects::BaseObjectData::getAttr ( const std::string &  name) const
inherited

Retrieve the attribute "name". Throws NoSuchAttrException if it does not exist.

Definition at line 52 of file BaseObject.cpp.

References Atlas::Objects::BaseObjectData::copyAttr().

◆ getAttrClass()

int Atlas::Objects::Entity::AccountData::getAttrClass ( const std::string &  name) const
overrideprotectedvirtualinherited

Find the class which contains the attribute "name".

Reimplemented from Atlas::Objects::BaseObjectData.

Definition at line 62 of file RootEntityChildren.cpp.

References Atlas::Objects::Entity::RootEntityData::getAttrClass().

◆ getAttrFlag()

bool Atlas::Objects::Entity::AccountData::getAttrFlag ( const std::string &  name,
uint32_t &  flag 
) const
overrideprotectedvirtualinherited

Find the flag for the attribute "name".

Reimplemented from Atlas::Objects::BaseObjectData.

Definition at line 70 of file RootEntityChildren.cpp.

References Atlas::Objects::Entity::RootEntityData::getAttrFlag().

◆ getCharacters()

const std::vector< std::string > & Atlas::Objects::Entity::AccountData::getCharacters ( ) const
inlineinherited

◆ getCharactersAsList()

Atlas::Message::ListType Atlas::Objects::Entity::AccountData::getCharactersAsList ( ) const
inlineinherited

Retrieve the "characters" attribute AsList.

Definition at line 286 of file Entity.h.

References Atlas::Objects::Entity::AccountData::getCharacters().

Referenced by Atlas::Objects::Entity::AccountData::addToMessage(), and Atlas::Objects::Entity::AccountData::copyAttr().

◆ getClassNo()

int Atlas::Objects::BaseObjectData::getClassNo ( ) const
inlineinherited

Get class number:

Definition at line 260 of file BaseObject.h.

◆ getContains()

const std::vector< std::string > & Atlas::Objects::Entity::RootEntityData::getContains ( ) const
inlineinherited

◆ getContainsAsList()

Atlas::Message::ListType Atlas::Objects::Entity::RootEntityData::getContainsAsList ( ) const
inlineinherited

◆ getId()

const std::string & Atlas::Objects::RootData::getId ( ) const
inlineinherited

Retrieve the "id" attribute.

Definition at line 213 of file Root.h.

References Atlas::Objects::RootData::attr_id, and Atlas::Objects::BaseObjectData::m_defaults.

Referenced by Atlas::Objects::RootData::copyAttr().

◆ getLoc()

const std::string & Atlas::Objects::Entity::RootEntityData::getLoc ( ) const
inlineinherited

◆ getName()

const std::string & Atlas::Objects::RootData::getName ( ) const
inlineinherited

Retrieve the "name" attribute.

Definition at line 273 of file Root.h.

References Atlas::Objects::RootData::attr_name, and Atlas::Objects::BaseObjectData::m_defaults.

Referenced by Atlas::Objects::RootData::copyAttr().

◆ getObjtype()

const std::string & Atlas::Objects::RootData::getObjtype ( ) const
inlineinherited

◆ getParent()

const std::string & Atlas::Objects::RootData::getParent ( ) const
inlineinherited

◆ getPassword()

const std::string & Atlas::Objects::Entity::AccountData::getPassword ( ) const
inlineinherited

Retrieve the "password" attribute.

Definition at line 256 of file Entity.h.

References Atlas::Objects::Entity::AccountData::attr_password, and Atlas::Objects::BaseObjectData::m_defaults.

Referenced by Atlas::Objects::Entity::AccountData::copyAttr().

◆ getPos()

const std::vector< double > & Atlas::Objects::Entity::RootEntityData::getPos ( ) const
inlineinherited

◆ getPosAsList()

Atlas::Message::ListType Atlas::Objects::Entity::RootEntityData::getPosAsList ( ) const
inlineinherited

◆ getStamp()

double Atlas::Objects::RootData::getStamp ( ) const
inlineinherited

Retrieve the "stamp" attribute.

Definition at line 243 of file Root.h.

References Atlas::Objects::RootData::attr_stamp, and Atlas::Objects::BaseObjectData::m_defaults.

Referenced by Atlas::Objects::RootData::copyAttr().

◆ getStampContains()

double Atlas::Objects::Entity::RootEntityData::getStampContains ( ) const
inlineinherited

◆ getUsername()

const std::string & Atlas::Objects::Entity::AccountData::getUsername ( ) const
inlineinherited

Retrieve the "username" attribute.

Definition at line 241 of file Entity.h.

References Atlas::Objects::Entity::AccountData::attr_username, and Atlas::Objects::BaseObjectData::m_defaults.

Referenced by Atlas::Objects::Entity::AccountData::copyAttr().

◆ getVelocity()

const std::vector< double > & Atlas::Objects::Entity::RootEntityData::getVelocity ( ) const
inlineinherited

◆ getVelocityAsList()

Atlas::Message::ListType Atlas::Objects::Entity::RootEntityData::getVelocityAsList ( ) const
inlineinherited

◆ hasAttr()

bool Atlas::Objects::BaseObjectData::hasAttr ( const std::string &  name) const
inherited

Check whether the attribute "name" exists.

Definition at line 35 of file BaseObject.cpp.

References Atlas::Objects::BaseObjectData::getAttrFlag().

◆ hasAttrFlag()

bool Atlas::Objects::BaseObjectData::hasAttrFlag ( uint32_t  flag) const
inherited

Check whether the attribute "name" exists.

Definition at line 47 of file BaseObject.cpp.

◆ instanceOf()

bool Atlas::Objects::Entity::AdminData::instanceOf ( int  classNo) const
overridevirtual

Is this instance of some class?

Reimplemented from Atlas::Objects::Entity::AccountData.

Definition at line 261 of file RootEntityChildren.cpp.

References Atlas::Objects::Entity::AccountData::instanceOf().

◆ isDefaultCharacters()

bool Atlas::Objects::Entity::AccountData::isDefaultCharacters ( ) const
inlineinherited

Is "characters" value default?

Definition at line 306 of file Entity.h.

◆ isDefaultContains()

bool Atlas::Objects::Entity::RootEntityData::isDefaultContains ( ) const
inlineinherited

Is "contains" value default?

Definition at line 375 of file RootEntity.h.

◆ isDefaultId()

bool Atlas::Objects::RootData::isDefaultId ( ) const
inlineinherited

Is "id" value default?

Definition at line 288 of file Root.h.

◆ isDefaultLoc()

bool Atlas::Objects::Entity::RootEntityData::isDefaultLoc ( ) const
inlineinherited

Is "loc" value default?

Definition at line 360 of file RootEntity.h.

◆ isDefaultName()

bool Atlas::Objects::RootData::isDefaultName ( ) const
inlineinherited

Is "name" value default?

Definition at line 308 of file Root.h.

◆ isDefaultObjtype()

bool Atlas::Objects::RootData::isDefaultObjtype ( ) const
inlineinherited

Is "objtype" value default?

Definition at line 303 of file Root.h.

◆ isDefaultParent()

bool Atlas::Objects::RootData::isDefaultParent ( ) const
inlineinherited

Is "parent" value default?

Definition at line 293 of file Root.h.

◆ isDefaultPassword()

bool Atlas::Objects::Entity::AccountData::isDefaultPassword ( ) const
inlineinherited

Is "password" value default?

Definition at line 301 of file Entity.h.

◆ isDefaultPos()

bool Atlas::Objects::Entity::RootEntityData::isDefaultPos ( ) const
inlineinherited

Is "pos" value default?

Definition at line 365 of file RootEntity.h.

◆ isDefaultStamp()

bool Atlas::Objects::RootData::isDefaultStamp ( ) const
inlineinherited

Is "stamp" value default?

Definition at line 298 of file Root.h.

◆ isDefaultStampContains()

bool Atlas::Objects::Entity::RootEntityData::isDefaultStampContains ( ) const
inlineinherited

Is "stamp_contains" value default?

Definition at line 380 of file RootEntity.h.

◆ isDefaultUsername()

bool Atlas::Objects::Entity::AccountData::isDefaultUsername ( ) const
inlineinherited

Is "username" value default?

Definition at line 296 of file Entity.h.

◆ isDefaultVelocity()

bool Atlas::Objects::Entity::RootEntityData::isDefaultVelocity ( ) const
inlineinherited

Is "velocity" value default?

Definition at line 370 of file RootEntity.h.

◆ modifyCharacters()

std::vector< std::string > & Atlas::Objects::Entity::AccountData::modifyCharacters ( )
inlineinherited

Retrieve the "characters" attribute as a non-const reference.

Definition at line 279 of file Entity.h.

References Atlas::Objects::Entity::AccountData::attr_characters, Atlas::Objects::BaseObjectData::m_defaults, and Atlas::Objects::Entity::AccountData::setCharacters().

◆ modifyContains()

std::vector< std::string > & Atlas::Objects::Entity::RootEntityData::modifyContains ( )
inlineinherited

Retrieve the "contains" attribute as a non-const reference.

Definition at line 328 of file RootEntity.h.

References Atlas::Objects::Entity::RootEntityData::attr_contains, Atlas::Objects::BaseObjectData::m_defaults, and Atlas::Objects::Entity::RootEntityData::setContains().

◆ modifyId()

std::string & Atlas::Objects::RootData::modifyId ( )
inlineinherited

Retrieve the "id" attribute as a non-const reference.

Definition at line 221 of file Root.h.

References Atlas::Objects::RootData::attr_id, Atlas::Objects::BaseObjectData::m_defaults, and Atlas::Objects::RootData::setId().

◆ modifyLoc()

std::string & Atlas::Objects::Entity::RootEntityData::modifyLoc ( )
inlineinherited

Retrieve the "loc" attribute as a non-const reference.

Definition at line 263 of file RootEntity.h.

References Atlas::Objects::Entity::RootEntityData::attr_loc, Atlas::Objects::BaseObjectData::m_defaults, and Atlas::Objects::Entity::RootEntityData::setLoc().

◆ modifyName()

std::string & Atlas::Objects::RootData::modifyName ( )
inlineinherited

Retrieve the "name" attribute as a non-const reference.

Definition at line 281 of file Root.h.

References Atlas::Objects::RootData::attr_name, Atlas::Objects::BaseObjectData::m_defaults, and Atlas::Objects::RootData::setName().

◆ modifyObjtype()

std::string & Atlas::Objects::RootData::modifyObjtype ( )
inlineinherited

Retrieve the "objtype" attribute as a non-const reference.

Definition at line 266 of file Root.h.

References Atlas::Objects::RootData::attr_objtype, Atlas::Objects::BaseObjectData::m_defaults, and Atlas::Objects::RootData::setObjtype().

◆ modifyParent()

std::string & Atlas::Objects::RootData::modifyParent ( )
inlineinherited

Retrieve the "parent" attribute as a non-const reference.

Definition at line 236 of file Root.h.

References Atlas::Objects::RootData::attr_parent, Atlas::Objects::BaseObjectData::m_defaults, and Atlas::Objects::RootData::setParent().

◆ modifyPassword()

std::string & Atlas::Objects::Entity::AccountData::modifyPassword ( )
inlineinherited

Retrieve the "password" attribute as a non-const reference.

Definition at line 264 of file Entity.h.

References Atlas::Objects::Entity::AccountData::attr_password, Atlas::Objects::BaseObjectData::m_defaults, and Atlas::Objects::Entity::AccountData::setPassword().

◆ modifyPos()

std::vector< double > & Atlas::Objects::Entity::RootEntityData::modifyPos ( )
inlineinherited

Retrieve the "pos" attribute as a non-const reference.

Definition at line 278 of file RootEntity.h.

References Atlas::Objects::Entity::RootEntityData::attr_pos, Atlas::Objects::BaseObjectData::m_defaults, and Atlas::Objects::Entity::RootEntityData::setPos().

◆ modifyStamp()

double & Atlas::Objects::RootData::modifyStamp ( )
inlineinherited

Retrieve the "stamp" attribute as a non-const reference.

Definition at line 251 of file Root.h.

References Atlas::Objects::RootData::attr_stamp, Atlas::Objects::BaseObjectData::m_defaults, and Atlas::Objects::RootData::setStamp().

◆ modifyStampContains()

double & Atlas::Objects::Entity::RootEntityData::modifyStampContains ( )
inlineinherited

Retrieve the "stamp_contains" attribute as a non-const reference.

Definition at line 353 of file RootEntity.h.

References Atlas::Objects::Entity::RootEntityData::attr_stamp_contains, Atlas::Objects::BaseObjectData::m_defaults, and Atlas::Objects::Entity::RootEntityData::setStampContains().

◆ modifyUsername()

std::string & Atlas::Objects::Entity::AccountData::modifyUsername ( )
inlineinherited

Retrieve the "username" attribute as a non-const reference.

Definition at line 249 of file Entity.h.

References Atlas::Objects::Entity::AccountData::attr_username, Atlas::Objects::BaseObjectData::m_defaults, and Atlas::Objects::Entity::AccountData::setUsername().

◆ modifyVelocity()

std::vector< double > & Atlas::Objects::Entity::RootEntityData::modifyVelocity ( )
inlineinherited

Retrieve the "velocity" attribute as a non-const reference.

Definition at line 303 of file RootEntity.h.

References Atlas::Objects::Entity::RootEntityData::attr_velocity, Atlas::Objects::BaseObjectData::m_defaults, and Atlas::Objects::Entity::RootEntityData::setVelocity().

◆ removeAttr()

void Atlas::Objects::Entity::AccountData::removeAttr ( const std::string &  name)
overridevirtualinherited

Remove the attribute "name". This will not work for static attributes.

Reimplemented from Atlas::Objects::BaseObjectData.

Definition at line 96 of file RootEntityChildren.cpp.

References Atlas::Objects::Entity::RootEntityData::removeAttr().

◆ removeAttrFlag()

void Atlas::Objects::BaseObjectData::removeAttrFlag ( uint32_t  flag)
virtualinherited

Remove the attribute "name".

Definition at line 87 of file BaseObject.cpp.

Referenced by Atlas::Objects::BaseObjectData::removeAttr().

◆ reset()

void Atlas::Objects::Entity::AdminData::reset ( )
overrideprotectedvirtual

Resets the object as it's returned to the pool.

Reimplemented from Atlas::Objects::Entity::AccountData.

Definition at line 251 of file RootEntityChildren.cpp.

References Atlas::Objects::Entity::AccountData::reset().

◆ sendCharacters()

void Atlas::Objects::Entity::AccountData::sendCharacters ( Atlas::Bridge b) const
inlineprotectedinherited

Send the "characters" attribute to an Atlas::Bridge.

Definition at line 121 of file RootEntityChildren.cpp.

References Atlas::Objects::Entity::AccountData::attr_characters.

Referenced by Atlas::Objects::Entity::AccountData::sendContents().

◆ sendContains()

void Atlas::Objects::Entity::RootEntityData::sendContains ( Atlas::Bridge b) const
inlineprotectedinherited

Send the "contains" attribute to an Atlas::Bridge.

Definition at line 103 of file RootEntity.cpp.

References Atlas::Objects::Entity::RootEntityData::attr_contains.

Referenced by Atlas::Objects::Entity::RootEntityData::sendContents().

◆ sendContents()

void Atlas::Objects::Entity::AccountData::sendContents ( Atlas::Bridge b) const
overridevirtualinherited

◆ sendId()

void Atlas::Objects::RootData::sendId ( Atlas::Bridge b) const
inlineprotectedinherited

Send the "id" attribute to an Atlas::Bridge.

Definition at line 74 of file Root.cpp.

References Atlas::Objects::RootData::attr_id.

Referenced by Atlas::Objects::RootData::sendContents().

◆ sendLoc()

void Atlas::Objects::Entity::RootEntityData::sendLoc ( Atlas::Bridge b) const
inlineprotectedinherited

Send the "loc" attribute to an Atlas::Bridge.

Definition at line 74 of file RootEntity.cpp.

References Atlas::Objects::Entity::RootEntityData::attr_loc.

Referenced by Atlas::Objects::Entity::RootEntityData::sendContents().

◆ sendName()

void Atlas::Objects::RootData::sendName ( Atlas::Bridge b) const
inlineprotectedinherited

Send the "name" attribute to an Atlas::Bridge.

Definition at line 102 of file Root.cpp.

References Atlas::Objects::RootData::attr_name.

Referenced by Atlas::Objects::RootData::sendContents().

◆ sendObjtype()

void Atlas::Objects::RootData::sendObjtype ( Atlas::Bridge b) const
inlineprotectedinherited

◆ sendParent()

void Atlas::Objects::RootData::sendParent ( Atlas::Bridge b) const
inlineprotectedinherited

◆ sendPassword()

void Atlas::Objects::Entity::AccountData::sendPassword ( Atlas::Bridge b) const
inlineprotectedinherited

Send the "password" attribute to an Atlas::Bridge.

Definition at line 114 of file RootEntityChildren.cpp.

References Atlas::Objects::Entity::AccountData::attr_password.

Referenced by Atlas::Objects::Entity::AccountData::sendContents().

◆ sendPos()

void Atlas::Objects::Entity::RootEntityData::sendPos ( Atlas::Bridge b) const
inlineprotectedinherited

Send the "pos" attribute to an Atlas::Bridge.

Definition at line 81 of file RootEntity.cpp.

References Atlas::Objects::Entity::RootEntityData::attr_pos.

Referenced by Atlas::Objects::Entity::RootEntityData::sendContents().

◆ sendStamp()

void Atlas::Objects::RootData::sendStamp ( Atlas::Bridge b) const
inlineprotectedinherited

Send the "stamp" attribute to an Atlas::Bridge.

Definition at line 88 of file Root.cpp.

References Atlas::Objects::RootData::attr_stamp.

Referenced by Atlas::Objects::RootData::sendContents().

◆ sendStampContains()

void Atlas::Objects::Entity::RootEntityData::sendStampContains ( Atlas::Bridge b) const
inlineprotectedinherited

Send the "stamp_contains" attribute to an Atlas::Bridge.

Definition at line 114 of file RootEntity.cpp.

References Atlas::Objects::Entity::RootEntityData::attr_stamp_contains.

Referenced by Atlas::Objects::Entity::RootEntityData::sendContents().

◆ sendUsername()

void Atlas::Objects::Entity::AccountData::sendUsername ( Atlas::Bridge b) const
inlineprotectedinherited

Send the "username" attribute to an Atlas::Bridge.

Definition at line 107 of file RootEntityChildren.cpp.

References Atlas::Objects::Entity::AccountData::attr_username.

Referenced by Atlas::Objects::Entity::AccountData::sendContents().

◆ sendVelocity()

void Atlas::Objects::Entity::RootEntityData::sendVelocity ( Atlas::Bridge b) const
inlineprotectedinherited

Send the "velocity" attribute to an Atlas::Bridge.

Definition at line 92 of file RootEntity.cpp.

References Atlas::Objects::Entity::RootEntityData::attr_velocity.

Referenced by Atlas::Objects::Entity::RootEntityData::sendContents().

◆ setAttr()

void Atlas::Objects::Entity::AccountData::setAttr ( std::string  name,
Atlas::Message::Element  attr,
const Atlas::Objects::Factories factories = nullptr 
)
overridevirtualinherited

◆ setCharacters()

void Atlas::Objects::Entity::AccountData::setCharacters ( std::vector< std::string >  val)
inlineinherited

Set the "characters" attribute.

Definition at line 224 of file Entity.h.

References Atlas::Objects::Entity::AccountData::attr_characters.

Referenced by Atlas::Objects::Entity::AccountData::modifyCharacters().

◆ setCharactersAsList()

void Atlas::Objects::Entity::AccountData::setCharactersAsList ( const Atlas::Message::ListType &  val)
inlineinherited

Set the "characters" attribute AsList.

Definition at line 230 of file Entity.h.

References Atlas::Objects::Entity::AccountData::attr_characters.

Referenced by Atlas::Objects::Entity::AccountData::setAttr().

◆ setContains()

void Atlas::Objects::Entity::RootEntityData::setContains ( std::vector< std::string >  val)
inlineinherited

Set the "contains" attribute.

Definition at line 230 of file RootEntity.h.

References Atlas::Objects::Entity::RootEntityData::attr_contains.

Referenced by Atlas::Objects::Entity::RootEntityData::modifyContains().

◆ setContainsAsList()

void Atlas::Objects::Entity::RootEntityData::setContainsAsList ( const Atlas::Message::ListType &  val)
inlineinherited

Set the "contains" attribute AsList.

Definition at line 236 of file RootEntity.h.

References Atlas::Objects::Entity::RootEntityData::attr_contains.

Referenced by Atlas::Objects::Entity::RootEntityData::setAttr().

◆ setId()

void Atlas::Objects::RootData::setId ( std::string  val)
inlineinherited

Set the "id" attribute.

Definition at line 175 of file Root.h.

References Atlas::Objects::RootData::attr_id.

Referenced by Atlas::Objects::RootData::modifyId(), and Atlas::Objects::RootData::setAttr().

◆ setLoc()

void Atlas::Objects::Entity::RootEntityData::setLoc ( std::string  val)
inlineinherited

◆ setName()

void Atlas::Objects::RootData::setName ( std::string  val)
inlineinherited

Set the "name" attribute.

Definition at line 207 of file Root.h.

References Atlas::Objects::RootData::attr_name.

Referenced by Atlas::Objects::RootData::modifyName(), and Atlas::Objects::RootData::setAttr().

◆ setObjtype()

void Atlas::Objects::RootData::setObjtype ( std::string  val)
inlineinherited

Set the "objtype" attribute.

Definition at line 199 of file Root.h.

References Atlas::Objects::RootData::attr_objtype.

Referenced by Atlas::Objects::RootData::modifyObjtype(), and Atlas::Objects::RootData::setAttr().

◆ setParent()

void Atlas::Objects::RootData::setParent ( std::string  val)
inlineinherited

◆ setPassword()

void Atlas::Objects::Entity::AccountData::setPassword ( std::string  val)
inlineinherited

◆ setPos()

void Atlas::Objects::Entity::RootEntityData::setPos ( std::vector< double >  val)
inlineinherited

Set the "pos" attribute.

Definition at line 192 of file RootEntity.h.

References Atlas::Objects::Entity::RootEntityData::attr_pos.

Referenced by Atlas::Objects::Entity::RootEntityData::modifyPos().

◆ setPosAsList()

void Atlas::Objects::Entity::RootEntityData::setPosAsList ( const Atlas::Message::ListType &  val)
inlineinherited

Set the "pos" attribute AsList.

Definition at line 198 of file RootEntity.h.

References Atlas::Objects::Entity::RootEntityData::attr_pos.

Referenced by Atlas::Objects::Entity::RootEntityData::setAttr().

◆ setStamp()

void Atlas::Objects::RootData::setStamp ( double  val)
inlineinherited

Set the "stamp" attribute.

Definition at line 191 of file Root.h.

References Atlas::Objects::RootData::attr_stamp.

Referenced by Atlas::Objects::RootData::modifyStamp(), and Atlas::Objects::RootData::setAttr().

◆ setStampContains()

void Atlas::Objects::Entity::RootEntityData::setStampContains ( double  val)
inlineinherited

◆ setUsername()

void Atlas::Objects::Entity::AccountData::setUsername ( std::string  val)
inlineinherited

◆ setVelocity()

void Atlas::Objects::Entity::RootEntityData::setVelocity ( std::vector< double >  val)
inlineinherited

Set the "velocity" attribute.

Definition at line 211 of file RootEntity.h.

References Atlas::Objects::Entity::RootEntityData::attr_velocity.

Referenced by Atlas::Objects::Entity::RootEntityData::modifyVelocity().

◆ setVelocityAsList()

void Atlas::Objects::Entity::RootEntityData::setVelocityAsList ( const Atlas::Message::ListType &  val)
inlineinherited

Set the "velocity" attribute AsList.

Definition at line 217 of file RootEntity.h.

References Atlas::Objects::Entity::RootEntityData::attr_velocity.

Referenced by Atlas::Objects::Entity::RootEntityData::setAttr().

Member Data Documentation

◆ attr_characters

std::vector<std::string> Atlas::Objects::Entity::AccountData::attr_characters
protectedinherited

◆ attr_contains

std::vector<std::string> Atlas::Objects::Entity::RootEntityData::attr_contains
protectedinherited

◆ attr_id

std::string Atlas::Objects::RootData::attr_id
protectedinherited

◆ attr_loc

std::string Atlas::Objects::Entity::RootEntityData::attr_loc
protectedinherited

◆ attr_name

std::string Atlas::Objects::RootData::attr_name
protectedinherited

◆ attr_objtype

std::string Atlas::Objects::RootData::attr_objtype
protectedinherited

◆ attr_parent

std::string Atlas::Objects::RootData::attr_parent
protectedinherited

◆ attr_password

◆ attr_pos

std::vector<double> Atlas::Objects::Entity::RootEntityData::attr_pos
protectedinherited

◆ attr_stamp

double Atlas::Objects::RootData::attr_stamp
protectedinherited

◆ attr_stamp_contains

double Atlas::Objects::Entity::RootEntityData::attr_stamp_contains
protectedinherited

◆ attr_username

◆ attr_velocity

std::vector<double> Atlas::Objects::Entity::RootEntityData::attr_velocity
protectedinherited

◆ m_defaults

BaseObjectData* Atlas::Objects::BaseObjectData::m_defaults
protectedinherited

The default instance, acting as a prototype for all other instances.

Definition at line 330 of file BaseObject.h.

Referenced by Atlas::Objects::Operation::RootOperationData::getArgs(), Atlas::Objects::Entity::AccountData::getCharacters(), Atlas::Objects::Entity::RootEntityData::getContains(), Atlas::Objects::Operation::RootOperationData::getFrom(), Atlas::Objects::Operation::RootOperationData::getFutureSeconds(), Atlas::Objects::RootData::getId(), Atlas::Objects::Entity::RootEntityData::getLoc(), Atlas::Objects::RootData::getName(), Atlas::Objects::RootData::getObjtype(), Atlas::Objects::RootData::getParent(), Atlas::Objects::Entity::AccountData::getPassword(), Atlas::Objects::Entity::RootEntityData::getPos(), Atlas::Objects::Operation::RootOperationData::getRefno(), Atlas::Objects::Operation::RootOperationData::getSeconds(), Atlas::Objects::Operation::RootOperationData::getSerialno(), Atlas::Objects::RootData::getStamp(), Atlas::Objects::Entity::RootEntityData::getStampContains(), Atlas::Objects::Operation::RootOperationData::getTo(), Atlas::Objects::Entity::AccountData::getUsername(), Atlas::Objects::Entity::RootEntityData::getVelocity(), Atlas::Objects::Operation::RootOperationData::modifyArgs(), Atlas::Objects::Entity::AccountData::modifyCharacters(), Atlas::Objects::Entity::RootEntityData::modifyContains(), Atlas::Objects::Operation::RootOperationData::modifyFrom(), Atlas::Objects::Operation::RootOperationData::modifyFutureSeconds(), Atlas::Objects::RootData::modifyId(), Atlas::Objects::Entity::RootEntityData::modifyLoc(), Atlas::Objects::RootData::modifyName(), Atlas::Objects::RootData::modifyObjtype(), Atlas::Objects::RootData::modifyParent(), Atlas::Objects::Entity::AccountData::modifyPassword(), Atlas::Objects::Entity::RootEntityData::modifyPos(), Atlas::Objects::Operation::RootOperationData::modifyRefno(), Atlas::Objects::Operation::RootOperationData::modifySeconds(), Atlas::Objects::Operation::RootOperationData::modifySerialno(), Atlas::Objects::RootData::modifyStamp(), Atlas::Objects::Entity::RootEntityData::modifyStampContains(), Atlas::Objects::Operation::RootOperationData::modifyTo(), Atlas::Objects::Entity::AccountData::modifyUsername(), Atlas::Objects::Entity::RootEntityData::modifyVelocity(), Atlas::Objects::RootData::sendObjtype(), and Atlas::Objects::RootData::sendParent().

◆ m_next

BaseObjectData* Atlas::Objects::BaseObjectData::m_next
protectedinherited

The next instance, if this instance has been freed up.

Definition at line 335 of file BaseObject.h.


The documentation for this class was generated from the following files: