Class DieLog
#include <DieLog.h >
Class to track die rolls.
DbRecNum id |
constructors
const HashArray& data |
const DieLog& p |
Determine if this is valid data or not
basic GET functions
int newTimestamp |
basic SET functions
DbRecNum newUser_id |
string newDice |
int newRoll |
DbRecNum user_id |
|
string dice |
|
int roll |
record a log entry about this die roll
bool forDB |
Default value: false |
convert structure data to HashArray
convert to XML
save the record
DbRecNum id |
load data from db
DbRecNum id |
CORE DATA BEGIN |
int Timestamp |
|
DbRecNum User_id |
|
string Dice |
|
int Roll |
|
bool changed |
|
static Datastore db |
make sure we're connected to our table
save if changed