Main Page   Modules   Class Hierarchy   Compound List   File List   Compound 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:
00025     Account(const std::string&,const std::string&);
00026   public:
00028     virtual ~Account();
00029 
00031     static Account Instantiate();
00032 
00034     virtual bool HasAttr(const std::string& name)const;
00037     virtual Atlas::Message::Object GetAttr(const std::string& name)
00038             const throw (NoSuchAttrException);
00040     virtual void SetAttr(const std::string& name,
00041                          const Atlas::Message::Object& attr);
00043     virtual void RemoveAttr(const std::string& name);
00044 
00046     virtual void SendContents(Atlas::Bridge* b) const;
00047 
00049     virtual Atlas::Message::Object AsObject() const;
00050 
00052     virtual Atlas::Message::Object::MapType AsMap() const;
00053 
00055     inline void SetPassword(const std::string& val);
00056 
00058     inline const std::string& GetPassword() const;
00060     inline std::string& GetPassword();
00061 
00062 protected:
00063     std::string attr_password;
00064 
00065     inline void SendPassword(Atlas::Bridge*) const;
00066 
00067 };
00068 
00069 //
00070 // Inlined member functions follow.
00071 //
00072 
00073 void Account::SetPassword(const std::string& val)
00074 {
00075     attr_password = val;
00076 }
00077 
00078 const std::string& Account::GetPassword() const
00079 {
00080     return attr_password;
00081 }
00082 
00083 std::string& Account::GetPassword()
00084 {
00085     return attr_password;
00086 }
00087 
00088 
00089 } } } // namespace Atlas::Objects::Entity
00090 
00091 #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.