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

Account.h

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_ACCOUNT_H 00007 #define ATLAS_OBJECTS_ENTITY_ACCOUNT_H 00008 00009 #include <Atlas/Objects/Entity/AdminEntity.h> 00010 00011 00012 namespace Atlas { namespace Objects { namespace Entity { 00013 00019 class Account : public AdminEntity 00020 { 00021 public: 00023 Account(); 00024 protected: 00026 Account(const char *,const char *); 00027 public: 00029 virtual ~Account(); 00030 00032 static Account 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 setPassword(const std::string& val); 00057 00059 inline const std::string& getPassword() const; 00061 inline std::string& getPassword(); 00062 00063 protected: 00064 std::string attr_password; 00065 00066 inline void sendPassword(Atlas::Bridge*) const; 00067 00068 }; 00069 00070 // 00071 // Inlined member functions follow. 00072 // 00073 00074 void Account::setPassword(const std::string& val) 00075 { 00076 attr_password = val; 00077 } 00078 00079 const std::string& Account::getPassword() const 00080 { 00081 return attr_password; 00082 } 00083 00084 std::string& Account::getPassword() 00085 { 00086 return attr_password; 00087 } 00088 00089 00090 } } } // namespace Atlas::Objects::Entity 00091 00092 #endif // ATLAS_OBJECTS_ENTITY_ACCOUNT_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.