Wt examples  3.3.0
Public Member Functions | Public Attributes
User Class Reference

#include <User.h>

Inheritance diagram for User:
Inheritance graph
[legend]

List of all members.

Public Member Functions

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

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.

  : gamesPlayed(0),
    score(0)
{ }

Member Function Documentation

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

Definition at line 34 of file User.h.

  {
    Wt::Dbo::field(a, gamesPlayed, "gamesPlayed");
    Wt::Dbo::field(a, score, "score");
    Wt::Dbo::field(a, lastGame, "lastGame");

    Wt::Dbo::hasMany(a, authInfos, Wt::Dbo::ManyToOne, "user");
  }

Member Data Documentation

Definition at line 31 of file User.h.

Definition at line 28 of file User.h.

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 Mon Apr 8 2013 for the C++ Web Toolkit (Wt) by doxygen 1.7.5.1