HangmanDb Class Reference

#include <HangmanDb.h>

List of all members.

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< ScoregetHighScores (int top)
static Score getUserPosition (const std::wstring &user)

Static Private Member Functions

static std::string DbUser ()
static std::string DbPass ()

Classes

struct  Score


Detailed Description

Definition at line 7 of file HangmanDb.h.


Member Function Documentation

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.


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

Generated on Fri Sep 12 16:53:53 2008 for Wt by doxygen 1.5.6