Wt examples  4.3.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::User ( )

Definition at line 16 of file User.C.

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

Member Function Documentation

◆ persist()

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  }

Member Data Documentation

◆ authInfos

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

Definition at line 35 of file User.h.

◆ gamesPlayed

int User::gamesPlayed

Definition at line 32 of file User.h.

◆ lastGame

WDateTime User::lastGame

Definition at line 34 of file User.h.

◆ name

std::string User::name

Definition at line 31 of file User.h.

◆ score

long long User::score

Definition at line 33 of file User.h.


The documentation for this class was generated from the following files:
User::authInfos
dbo::collection< dbo::ptr< AuthInfo > > authInfos
Definition: User.h:35
User::lastGame
WDateTime lastGame
Definition: User.h:34
User::score
long long score
Definition: User.h:33
User::gamesPlayed
int gamesPlayed
Definition: User.h:32
Wt::Dbo::field
void field(Action &action, V &value, const std::string &name, int size=-1)
ManyToOne
ManyToOne
Wt::Dbo::hasMany
void hasMany(Action &action, collection< ptr< C > > &value, RelationType type, const std::string &name=std::string())

Generated on Thu Mar 26 2020 for the C++ Web Toolkit (Wt) by doxygen 1.8.17