Wt examples 4.6.1
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{ }
long long score
Definition: User.h:33
int gamesPlayed
Definition: User.h:32

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
44 dbo::hasMany(a, authInfos, dbo::ManyToOne, "user");
45 }
WDateTime lastGame
Definition: User.h:34
dbo::collection< dbo::ptr< AuthInfo > > authInfos
Definition: User.h:35

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:

Generated on Fri Jan 28 2022 for the C++ Web Toolkit (Wt) by doxygen 1.9.3