Wt examples  3.3.0
Public Member Functions | Public Attributes | List of all members
User Class Reference

#include <User.h>

Inheritance diagram for User:
Inheritance graph
[legend]

Public Member Functions

 User ()
 
template<class Action >
void persist (Action &a)
 
- Public Member Functions inherited from Wt::Dbo::Dbo< User >
 Dbo ()
 
dbo_traits< User >::IdType id () const
 
Sessionsession () const
 
void setDirty ()
 
ptr< Userself () const
 

Public Attributes

std::string name
 
int gamesPlayed
 
long long score
 
Wt::WDateTime lastGame
 
Wt::Dbo::collection
< Wt::Dbo::ptr< AuthInfo > > 
authInfos
 

Detailed Description

Definition at line 22 of file User.h.

Constructor & Destructor Documentation

User::User ( )

Definition at line 17 of file User.C.

18  : gamesPlayed(0),
19  score(0)
20 { }

Member Function Documentation

template<class Action >
void User::persist ( Action &  a)
inline

Definition at line 34 of file User.h.

35  {
36  Wt::Dbo::field(a, gamesPlayed, "gamesPlayed");
37  Wt::Dbo::field(a, score, "score");
38  Wt::Dbo::field(a, lastGame, "lastGame");
39 
41  }

Member Data Documentation

Definition at line 31 of file User.h.

int User::gamesPlayed

Definition at line 28 of file User.h.

Wt::WDateTime User::lastGame

Definition at line 30 of file User.h.

std::string User::name

Definition at line 27 of file User.h.

long long User::score

Definition at line 29 of file User.h.


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

Generated on Fri May 31 2013 for the C++ Web Toolkit (Wt) by doxygen 1.8.3.1