#include <HangmanDb.h>
Static Public Member Functions | |
static bool | addUser (const std::wstring &user, const std::wstring &password) |
static bool | validLogin (const std::wstring &user, const std::wstring &pass) |
static void | addToScore (const std::wstring &user, int delta) |
static std::vector < Score > | getHighScores (int top) |
static Score | getUserPosition (const std::wstring &user) |
Static Private Member Functions | |
static std::string | DbUser () |
static std::string | DbPass () |
Classes | |
struct | Score |
Definition at line 7 of file HangmanDb.h.
bool HangmanDb::addUser | ( | const std::wstring & | user, | |
const std::wstring & | password | |||
) | [static] |
Definition at line 33 of file HangmanDb.C.
bool HangmanDb::validLogin | ( | const std::wstring & | user, | |
const std::wstring & | pass | |||
) | [static] |
Definition at line 50 of file HangmanDb.C.
void HangmanDb::addToScore | ( | const std::wstring & | user, | |
int | delta | |||
) | [static] |
Definition at line 67 of file HangmanDb.C.
std::vector< HangmanDb::Score > HangmanDb::getHighScores | ( | int | top | ) | [static] |
Definition at line 82 of file HangmanDb.C.
HangmanDb::Score HangmanDb::getUserPosition | ( | const std::wstring & | user | ) | [static] |
Definition at line 109 of file HangmanDb.C.
std::string HangmanDb::DbUser | ( | ) | [static, private] |
Definition at line 13 of file HangmanDb.C.
std::string HangmanDb::DbPass | ( | ) | [static, private] |
Definition at line 21 of file HangmanDb.C.