ScummVM API documentation
Gob::dBase Class Reference

#include <dbase.h>

Classes

struct  Field
 
struct  Record
 

Public Types

enum  Type {
  kTypeString = 0x43, kTypeDate = 0x44, kTypeBool = 0x4C, kTypeMemo = 0x4D,
  kTypeNumber = 0x4E
}
 

Public Member Functions

bool load (Common::SeekableReadStream &stream)
 
void clear ()
 
byte getVersion () 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
 

Detailed Description

A class for reading dBase files.

Only dBase III files supported for now, and only field type string is actually useful. Further missing is reading of MDX index files and support for the external "Memo" data file.

Member Function Documentation

◆ getLastUpdate()

TimeDate Gob::dBase::getLastUpdate ( ) const

Return the date the database was last updated.

◆ getString()

Common::String Gob::dBase::getString ( const Record record,
int  field 
) const

Extract a string out of raw field data.


The documentation for this class was generated from the following file: