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

Definition at line 17 of file User.C.

18 : gamesPlayed(0),
19 score(0)
20{ }
long long score
Definition User.h:29
int gamesPlayed
Definition User.h:28

Member Function Documentation

◆ persist()

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 }
Wt::WDateTime lastGame
Definition User.h:30
Wt::Dbo::collection< Wt::Dbo::ptr< AuthInfo > > authInfos
Definition User.h:31
void hasMany(Action &action, collection< ptr< C > > &value, RelationType type, const std::string &name=std::string())
void field(Action &action, V &value, const std::string &name, int size=-1)

Member Data Documentation

◆ authInfos

Definition at line 31 of file User.h.

◆ gamesPlayed

int User::gamesPlayed

Definition at line 28 of file User.h.

◆ lastGame

Wt::WDateTime User::lastGame

Definition at line 30 of file User.h.

◆ name

std::string User::name

Definition at line 27 of file User.h.

◆ score

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 17 2024 for the C++ Web Toolkit (Wt) by doxygen 1.9.8