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

Atlas::Objects::Entity::Account Class Reference

Base class for accounts. More...

#include <Account.h>

Inheritance diagram for Atlas::Objects::Entity::Account:

Atlas::Objects::Entity::AdminEntity Atlas::Objects::Entity::RootEntity Atlas::Objects::Root Atlas::Objects::Entity::Admin Atlas::Objects::Entity::Player List of all members.

Public Member Functions

 Account ()
 Construct a Account instance.

virtual ~Account ()
 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.

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

virtual Atlas::Message::Element asObject () const
 Convert this object to a Message::Element.

virtual Atlas::Message::Element::MapType asMap () const
 Convert this object to a Message::Element::MapType.

void setPassword (const std::string &val)
 Set the "password" attribute.

const std::string & getPassword () const
 Retrieve the "password" attribute.

std::string & getPassword ()
 Retrieve the "password" attribute as a non-const reference.


Static Public Member Functions

Account Class ()
 Create a new class for Account.


Protected Member Functions

 Account (const char *, const char *)
 Constructor for sub-classes.

void sendPassword (Atlas::Bridge *) const

Protected Attributes

std::string attr_password

Detailed Description

Base class for accounts.

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


Member Function Documentation

virtual Atlas::Message::Element Atlas::Objects::Entity::Account::getAttr const std::string &  name  )  const throw (NoSuchAttrException) [virtual]
 

Retrieve the attribute "name".

Throws NoSuchAttrException if it does not exist.

Reimplemented from Atlas::Objects::Entity::RootEntity.

Reimplemented in Atlas::Objects::Entity::Player.


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.