dbf.record

Authors Carlos Santander Bernal
Version 0.3
Date February 25, 2013
History
  • Version 0.3 - February 25, 2013
    • Updated for D2
    • Added foreach capability
    • Added toStringArray
    • toString now uses square braces instead of curly braces so that writeln(r.toString) and writeln(r.toStringArray) print the same text
  • Version 0.2n - May 23, 2006: Removed Mango dependency
  • Version 0.2 - May 22, 2006: Record now implements IWritable. Added Record.toString
  • Version 0.1 - May 18, 2006: Initial release
License zlib/libpng
class Record;

A single record in the DBF

void opIndexAssign(T)(T val, uint index);

Sets a field by its index

void opIndexAssign(T)(T val, string fieldName);

Sets a field by its name

Variant opIndex(uint index);

Gets the value of a field

Parameters
uint index the index of the field
Returns the value of the field as a std.boxer.Box
Variant opIndex(string fieldName);

Gets the value of a field

Parameters
string fieldName the name of the field
Returns the value of the field as a std.boxer.Box
T get(T)(uint index);

Gets the value of a field

Parameters
T the type wanted to be returned
index the index of the field
Returns the value of the field
T getByName(T)(string fieldName);

Gets the value of a field

Parameters
T the type wanted to be returned
fieldName the name of the field
Returns the value of the field
int opApply(int delegate(VariantN!(20u)) dg);
int opApply(int delegate(uint, VariantN!(20u)) dg);
int opApply(int delegate(string, VariantN!(20u)) dg);

Foreach the values in this record

string[] toStringArray();

Returns an array containing a string representation of each value in this record

string toString();

Returns a string representation