YAPOG  0.0.1
Yet Another Pokemon Online Game
AccountTable.hpp
Go to the documentation of this file.
1 #ifndef YAPOG_ACCOUNTTABLE_HPP
2 # define YAPOG_ACCOUNTTABLE_HPP
3 
4 # include "YAPOG/Macros.hpp"
5 # include "YAPOG/Game/ID.hpp"
6 # include "YAPOG/System/String.hpp"
9 
10 namespace yse
11 {
12  class Account;
13 
14  class AccountTable : public ITable
15  {
17  public:
18  AccountTable ();
19 
20  void LoadFromAccount (const Account& account);
21 
23  const yap::ID& GetID () const;
24  const yap::String& GetName () const;
25  const yap::String& GetPassword () const;
26  const yap::String& GetEmail () const;
27  const AccountPermission& GetPermissions () const;
28  const yap::String& GetCreationDate () const;
29  const yap::String& GetLastLoginDate () const;
30  const yap::String& GetCreationIP () const;
31  const yap::String& GetCurrentIP () const;
32 
34  void SetID (const yap::ID& value);
35  void SetName (const yap::String& value);
36  void SetPassword (const yap::String& value);
37  void SetEmail (const yap::String& value);
38  void SetPermissions (const AccountPermission& value);
39  void SetCreationDate (const yap::String& value);
40  void SetLastLoginDate (const yap::String& value);
41  void SetCreationIP (const yap::String& value);
42  void SetCurrentIP (const yap::String& value);
43 
44  void DisplayData ();
45 
46  private:
56  };
57 } // namespace yse
58 
59 #endif // YAPOG_ACCOUNTTABLE_HPP