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

#include <User.h>

Public Member Functions

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

Public Attributes

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

Detailed Description

Definition at line 26 of file User.h.

Constructor & Destructor Documentation

User::User ( )

Definition at line 16 of file User.C.

17  : gamesPlayed(0),
18  score(0)
19 { }
int gamesPlayed
Definition: User.h:32
long long score
Definition: User.h:33

Member Function Documentation

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

Definition at line 38 of file User.h.

39  {
40  dbo::field(a, gamesPlayed, "gamesPlayed");
41  dbo::field(a, score, "score");
42  dbo::field(a, lastGame, "lastGame");
43 
45  }
int gamesPlayed
Definition: User.h:32
dbo::collection< dbo::ptr< AuthInfo > > authInfos
Definition: User.h:35
long long score
Definition: User.h:33
WDateTime lastGame
Definition: User.h:34
void field(Action &action, V &value, const std::string &name, int size=-1)
void hasMany(Action &action, collection< ptr< C > > &value, RelationType type, const std::string &name=std::string())
ManyToOne

Member Data Documentation

dbo::collection<dbo::ptr<AuthInfo> > User::authInfos

Definition at line 35 of file User.h.

int User::gamesPlayed

Definition at line 32 of file User.h.

WDateTime User::lastGame

Definition at line 34 of file User.h.

std::string User::name

Definition at line 31 of file User.h.

long long User::score

Definition at line 33 of file User.h.


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

Generated on Mon Sep 4 2017 for the C++ Web Toolkit (Wt) by doxygen 1.8.11