#include <dbase.h>
Classes | |
struct | Field |
struct | FieldPattern |
struct | Record |
Public Types | |
enum | Type { kTypeString = 0x43, kTypeDate = 0x44, kTypeBool = 0x4C, kTypeMemo = 0x4D, kTypeNumber = 0x4E } |
Public Member Functions | |
bool | load (Common::SeekableReadStream &stream) |
bool | loadMemo (Common::SeekableReadStream &stream) |
bool | loadMultipleIndex (Common::SeekableReadStream &stream) |
void | clear () |
byte | getVersion () const |
bool | hasMemo () const |
TimeDate | getLastUpdate () const |
const Common::Array< Field > & | getFields () const |
const Common::Array< Record > & | getRecords () const |
Common::String | getString (const Record &record, int field) const |
void | setQuery (const Common::String &query) |
void | setCurrentIndex (const Common::String &tagName) |
void | findFirstMatchingRecord () |
void | findNextMatchingRecord () |
bool | hasMatchingRecord () |
Common::String | getFieldOfMatchingRecord (Common::String fieldName) |
A class for reading dBase files.
Only dBase III files supported for now, and only field type string is actually useful.
TimeDate Gob::dBase::getLastUpdate | ( | ) | const |
Return the date the database was last updated.
Common::String Gob::dBase::getString | ( | const Record & | record, |
int | field | ||
) | const |
Extract a string out of raw field data.