Class BiowareDB

Bioware database (in FoxPro format, ie dbf, cdx and ftp files)

class BiowareDB ;

Constructors

NameDescription
this (dbfData, cdxData, fptData, buildIndex) Constructor with raw data
this (dbfPath, cdxPath, fptPath, buildIndex) Constructor with file paths
this (dbFilesPath, buildIndex) Constructor with file path without its extension. It will try to open the dbf and ftp files.

Properties

NameTypeDescription
length[get] ulongNumber of variables (both active an deleted) stored in the database

Methods

NameDescription
deleteVariable (index) Remove a variable
deleteVariable (pcid, varName) Remove a variable
getVariable (index) Get variable information using its index
getVariable (pcid, varName) Search and return variable information
getVariable (account, character, varName) Search and return variable information
getVariableIndex (pcid, varName) Search and return the index of a variable
getVariableIndex (account, character, varName) Search and return the index of a variable
getVariableValue (index) Get the variable value at index
getVariableValue (pcid, varName) Search and return the value of a variable
getVariableValue (account, character, varName) Search and return the value of a variable
getVariableValueJSON (index)
getVariableValueString (index)
opApply (dlg) Iterate over all variables (both active and deleted)
serialize () Returns a tuple with dbf and fpt raw data (accessible with .dbf and .fpt)
setVariableValue (index, value, updateTimestamp) Set the value of an existing variable using its index.
setVariableValue (pcid, varName, value, updateTimestamp) Set / create a variable with its value

Inner structs

NameDescription
Variable Representation of a stored variable

Enums

NameDescription
VarType Type of a stored variable

Aliases

NameDescription
opIndex Alias for getVariable
toVarType Convert a BiowareDB.VarType into the associated native type