YAPOG
0.0.1
Yet Another Pokemon Online Game
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
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
"
7
# include "
Database/Tables/ITable.hpp
"
8
# include "
Account/AccountPermission.hpp
"
9
10
namespace
yse
11
{
12
class
Account;
13
14
class
AccountTable
:
public
ITable
15
{
16
DISALLOW_COPY
(
AccountTable
);
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
:
47
yap::ID
id_
;
48
yap::String
name_
;
49
yap::String
password_
;
50
yap::String
email_
;
51
AccountPermission
permissions_
;
52
yap::String
creationDate_
;
53
yap::String
lastLoginDate_
;
54
yap::String
creationIP_
;
55
yap::String
currentIP_
;
56
};
57
}
// namespace yse
58
59
#endif // YAPOG_ACCOUNTTABLE_HPP
YAPOG.Server
include
Database
Tables
AccountTable.hpp
Generated on Mon Sep 17 2012 22:24:22 for YAPOG by
1.8.1.1