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

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

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

virtual Atlas::Message::Object AsObject () const
 Convert this object to a Message::Object.

virtual Atlas::Message::Object::MapType AsMap () const
 Convert this object to a Message::Object::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 Instantiate ()
 Create a new instance of Account.


Protected Member Functions

 Account (const std::string &, const std::string &)
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::Object 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.