|
|
|
|
|
|
|
|
#include <unistd.h> |
|
|
#include <unistd.h> |
|
|
#include "GBUdb.hpp" |
|
|
#include "GBUdb.hpp" |
|
|
|
|
|
|
|
|
using namespace std; |
|
|
|
|
|
|
|
|
namespace cd = codedweller; |
|
|
|
|
|
|
|
|
//// Handy utilities... |
|
|
//// Handy utilities... |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
const RuntimeCheck SaneFileSizeCheck("GBUdbDataset::load():SaneFileSizeCheck(SaneGBUdbFileSizeLimit <= FileSize)"); |
|
|
|
|
|
|
|
|
const cd::RuntimeCheck SaneFileSizeCheck("GBUdbDataset::load():SaneFileSizeCheck(SaneGBUdbFileSizeLimit <= FileSize)"); |
|
|
|
|
|
|
|
|
void GBUdbDataset::load() { // Read the GBUdb from disk. |
|
|
void GBUdbDataset::load() { // Read the GBUdb from disk. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
); |
|
|
); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
RuntimeCheck GoodTimestampLength("GBUdb.cpp:getTimestamp snprintf(...) == CorrectTimestampLength"); |
|
|
|
|
|
|
|
|
cd::RuntimeCheck GoodTimestampLength("GBUdb.cpp:getTimestamp snprintf(...) == CorrectTimestampLength"); |
|
|
char* getTimestamp(char* TimestampBfr) { // Creates an ISO GMT timestamp. |
|
|
char* getTimestamp(char* TimestampBfr) { // Creates an ISO GMT timestamp. |
|
|
|
|
|
|
|
|
time_t rawtime; // Get a timer and |
|
|
time_t rawtime; // Get a timer and |