Main Page | Modules | Class Hierarchy | Class List | File List | Class 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 instance.

 Root (const char *id)
 Construct a Root class definition.

virtual ~Root ()
 Default destructor.

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

virtual Atlas::Message::Element getAttr (const std::string &name) const throw (NoSuchAttrException)
 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.

void setParents (const Atlas::Message::Element::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::Element::ListType & getParents () const
 Retrieve the "parents" attribute.

Atlas::Message::Element::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::Element asObject () const
 Convert this object to a Message::Element.

virtual Atlas::Message::Element::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 Class ()
 Create a new class for Root.


Protected Member Functions

 Root (const char *id, const char *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::Elementattributes
Atlas::Message::Element::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::Element 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.