Class NewsItem
#include <NewsItem.h >
Class to manage articles in MAE's news system. This system is handy for managing news to distribute to users in the system.
DbRecNum id |
constructors
const HashArray& data |
Determine if this is valid data or not
Basic GET functions
time_t newPostTime |
Basic SET functions
DbRecNum newPostedBy |
DbRecNum newPostedFor |
bool newPriority |
const string& newDomain |
const string& newMessage |
const HashArray& data |
bool forDB |
Default value: false |
convert structure data to HashArray
convert structure data to XML
time_t sincetime |
Default value: 0 |
const string& domain |
Default value: "" |
DbRecNum postedby |
Default value: 0 |
DbRecNum postedfor |
Default value: 0 |
int count |
Default value: 0 |
save the record
DbRecNum id |
load data from db
DbRecNum id |
CORE DATA BEGIN |
time_t PostTime |
|
DbRecNum PostedBy |
|
DbRecNum PostedFor |
|
bool Priority |
|
string Domain |
|
string Message |
|
bool changed |
|
static Datastore db |
make sure we're connected to our table
save if changed