Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members   Related Pages  

Atlas::Objects::Root Class Reference

All objects inherit from this. More...

#include <Root.h>

Inheritance diagram for Atlas::Objects::Root:

Atlas::Objects::Entity::RootEntity Atlas::Objects::Operation::RootOperation Atlas::Objects::Entity::AdminEntity Atlas::Objects::Entity::GameEntity Atlas::Objects::Operation::Action Atlas::Objects::Operation::Info Atlas::Objects::Entity::Account Atlas::Objects::Entity::Game Atlas::Objects::Operation::Create Atlas::Objects::Operation::Delete Atlas::Objects::Operation::Get Atlas::Objects::Operation::Imaginary Atlas::Objects::Operation::Set Atlas::Objects::Operation::Error Atlas::Objects::Operation::Perception List of all members.

Public Member Functions

 Root ()
 Construct a Root class definition.

 Root (const std::string &id)
 Construct a Root instance.

virtual ~Root ()
 Default destructor.

virtual bool HasAttr (const std::string &name) const
 Check whether the attribute "name" exists.

virtual Atlas::Message::Object GetAttr (const std::string &name) const throw (NoSuchAttrException)
 Retrieve the attribute "name".

virtual void SetAttr (const std::string &name, const Atlas::Message::Object &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.

void SetParents (const Atlas::Message::Object::ListType &val)
 Set the "parents" attribute.

void SetId (const std::string &val)
 Set the "id" attribute.

void SetObjtype (const std::string &val)
 Set the "objtype" attribute.

void SetName (const std::string &val)
 Set the "name" attribute.

const Atlas::Message::Object::ListType & GetParents () const
 Retrieve the "parents" attribute.

Atlas::Message::Object::ListType & GetParents ()
const std::string & GetId () const
 Retrieve the "id" attribute.

std::string & GetId ()
const std::string & GetObjtype () const
 Retrieve the "objtype" attribute.

std::string & GetObjtype ()
const std::string & GetName () const
 Retrieve the "name" attribute.

std::string & GetName ()
virtual Atlas::Message::Object AsObject () const
 Convert this object to a Message::Object.

virtual Atlas::Message::Object::MapType AsMap () const
 Convert this object to an std::map.

virtual void SendContents (Atlas::Bridge *b) const
 Send the contents of this object to a Bridge.


Static Public Member Functions

Root Instantiate ()
 Create a new instance of Root.


Protected Member Functions

 Root (const std::string &id, const std::string &parent)
 Constructor for classes which inherit from this one.

void SendParents (Atlas::Bridge *) const
void SendId (Atlas::Bridge *) const
void SendObjtype (Atlas::Bridge *) const
void SendName (Atlas::Bridge *) const

Protected Attributes

std::map< std::string, Atlas::Message::Objectattributes
Atlas::Message::Object::ListType attr_parents
std::string attr_id
std::string attr_objtype
std::string attr_name

Detailed Description

All objects inherit from this.


Member Function Documentation

virtual Atlas::Message::Object Atlas::Objects::Root::GetAttr const std::string &    name const throw (NoSuchAttrException) [virtual]
 

Retrieve the attribute "name".

Throws NoSuchAttrException if it does not exist.

Reimplemented in Atlas::Objects::Entity::Account, Atlas::Objects::Entity::Player, Atlas::Objects::Entity::RootEntity, and Atlas::Objects::Operation::RootOperation.


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

Copyright 2000 the respective authors.

This document is licensed under the terms of the GNU Free Documentation License and may be freely distributed under the conditions given by this license.