00001 // This file may be redistributed and modified only under the terms of 00002 // the GNU Lesser General Public License (See COPYING for details). 00003 // Copyright 2000-2001 Stefanus Du Toit and Alistair Riddoch. 00004 // Automatically generated using gen_cc.py. 00005 00006 #ifndef ATLAS_OBJECTS_ENTITY_PLAYER_H 00007 #define ATLAS_OBJECTS_ENTITY_PLAYER_H 00008 00009 #include <Atlas/Objects/Entity/Account.h> 00010 00011 00012 namespace Atlas { namespace Objects { namespace Entity { 00013 00019 class Player : public Account 00020 { 00021 public: 00023 Player(); 00024 protected: 00026 Player(const char *,const char *); 00027 public: 00029 virtual ~Player(); 00030 00032 static Player Class(); 00033 00035 virtual bool hasAttr(const std::string& name)const; 00038 virtual Atlas::Message::Element getAttr(const std::string& name) 00039 const throw (NoSuchAttrException); 00041 virtual void setAttr(const std::string& name, 00042 const Atlas::Message::Element& attr); 00044 virtual void removeAttr(const std::string& name); 00045 00047 virtual void sendContents(Atlas::Bridge* b) const; 00048 00050 virtual Atlas::Message::Element asObject() const; 00051 00053 virtual Atlas::Message::Element::MapType asMap() const; 00054 00056 inline void setCharacters(const Atlas::Message::Element::ListType& val); 00057 00059 inline const Atlas::Message::Element::ListType& getCharacters() const; 00061 inline Atlas::Message::Element::ListType& getCharacters(); 00062 00063 protected: 00064 Atlas::Message::Element::ListType attr_characters; 00065 00066 inline void sendCharacters(Atlas::Bridge*) const; 00067 00068 }; 00069 00070 // 00071 // Inlined member functions follow. 00072 // 00073 00074 void Player::setCharacters(const Atlas::Message::Element::ListType& val) 00075 { 00076 attr_characters = val; 00077 } 00078 00079 const Atlas::Message::Element::ListType& Player::getCharacters() const 00080 { 00081 return attr_characters; 00082 } 00083 00084 Atlas::Message::Element::ListType& Player::getCharacters() 00085 { 00086 return attr_characters; 00087 } 00088 00089 00090 } } } // namespace Atlas::Objects::Entity 00091 00092 #endif // ATLAS_OBJECTS_ENTITY_PLAYER_H
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.