Class DieLog

Index Home MAE > MAE Architecture > MAE Data Types > Class Index > Class DieLog

Summary
Public Methods
DieLog(id)
DieLog(data)
DieLog(p)
DieLog()
inline bool valid() const
inline DbRecNum getId() const
inline int getTimestamp() const
inline DbRecNum getUserId() const
inline string getDice() const
inline int getRoll() const
inline void setTimestamp(newTimestamp)
inline void setUserId(newUser_id)
inline void setDice(newDice)
inline void setRoll(newRoll)
static int record(user_id, dice, roll)
HashArray toHashArray(forDB) const
inline XMLData toXML() const
DbRecNum save()
Protected Methods
bool load(id)
Private Properties
Private Methods
static bool initdb()
DbRecNum append()
See Also

#include <DieLog.h >

Summary

Class to track die rolls.

Public Methods

DieLog(id)

DbRecNum id


constructors

DieLog(data)

const HashArray& data


DieLog(p)

const DieLog& p


DieLog()

inline bool valid() const

Determine if this is valid data or not

inline DbRecNum getId() const

basic GET functions

inline int getTimestamp() const

inline DbRecNum getUserId() const

inline string getDice() const

inline int getRoll() const

inline void setTimestamp(newTimestamp)

int newTimestamp


basic SET functions

inline void setUserId(newUser_id)

DbRecNum newUser_id


inline void setDice(newDice)

string newDice


inline void setRoll(newRoll)

int newRoll


static int record(user_id, dice, roll)

DbRecNum user_id

string dice

int roll


record a log entry about this die roll

HashArray toHashArray(forDB) const

bool forDB

Default value: false


convert structure data to HashArray

inline XMLData toXML() const

convert to XML

DbRecNum save()

save the record

Protected Methods

bool load(id)

DbRecNum id


load data from db

Private Properties

DbRecNum id

CORE DATA BEGIN

int Timestamp

DbRecNum User_id

string Dice

int Roll

bool changed

static Datastore db


Private Methods

static bool initdb()

make sure we're connected to our table

DbRecNum append()

save if changed

See Also

DieLog database table