Wt examples  3.7.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
 
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 { }
int gamesPlayed
Definition: User.h:28
long long score
Definition: User.h:29

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
int gamesPlayed
Definition: User.h:28
long long score
Definition: User.h:29
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())
Wt::Dbo::collection< Wt::Dbo::ptr< AuthInfo > > authInfos
Definition: User.h:31

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 Tue Dec 15 2020 for the C++ Web Toolkit (Wt) by doxygen 1.8.13