YAPOG  0.0.1
Yet Another Pokemon Online Game
yse::AccountManager Class Reference

#include <AccountManager.hpp>

Collaboration diagram for yse::AccountManager:

List of all members.

Public Member Functions

 AccountManager (yap::DatabaseManager &dm)
 ~AccountManager ()
bool CreateNewAccount (const yap::String &name, const yap::String &password, const yap::String &email, const yap::String &creationIp)
AccountLogin (const yap::String &name, const yap::String &password, const yap::String &current_ip)
void Disconnect (const yap::String &name)
void DisplayAllAccounts ()
void DisplayLoggedAccounts ()
AccountGetAccount (const yap::String &name)
yap::String EncodePassword (const yap::String &password)

Private Member Functions

 DISALLOW_COPY (AccountManager)

Private Attributes

yap::DatabaseManagerdatabaseManager_
yap::collection::Map
< yap::String, Account * > 
accounts_

Detailed Description

Definition at line 16 of file AccountManager.hpp.


Constructor & Destructor Documentation

yse::AccountManager::AccountManager ( yap::DatabaseManager dm)

Definition at line 50 of file AccountManager.cpp.

yse::AccountManager::~AccountManager ( )

Definition at line 56 of file AccountManager.cpp.


Member Function Documentation

bool yse::AccountManager::CreateNewAccount ( const yap::String name,
const yap::String password,
const yap::String email,
const yap::String creationIp 
)

Definition at line 62 of file AccountManager.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

yse::AccountManager::DISALLOW_COPY ( AccountManager  )
private
void yse::AccountManager::Disconnect ( const yap::String name)

Definition at line 278 of file AccountManager.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yse::AccountManager::DisplayAllAccounts ( )

Definition at line 227 of file AccountManager.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yse::AccountManager::DisplayLoggedAccounts ( )

Definition at line 253 of file AccountManager.cpp.

Here is the caller graph for this function:

yap::String yse::AccountManager::EncodePassword ( const yap::String password)

Definition at line 269 of file AccountManager.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Account & yse::AccountManager::GetAccount ( const yap::String name)

Definition at line 261 of file AccountManager.cpp.

Here is the call graph for this function:

Account * yse::AccountManager::Login ( const yap::String name,
const yap::String password,
const yap::String current_ip 
)

Definition at line 155 of file AccountManager.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

yap::collection::Map<yap::String, Account*> yse::AccountManager::accounts_
private

Definition at line 41 of file AccountManager.hpp.

yap::DatabaseManager& yse::AccountManager::databaseManager_
private

Definition at line 40 of file AccountManager.hpp.


The documentation for this class was generated from the following files: