![]() |
NDEVR
API Documentation
|
Logic for reading or writing to a database file that uses the .dbf file extension. More...
Public Member Functions | |
| DBFParser (const File &file) | |
| Constructs a DBFParser by opening and parsing the header of the given .dbf file. | |
| void | DumpAll (const char *szDestFileName) |
| Dumps all records from the .dbf file to a destination text file. | |
| void | DumpFields (const char *szDestFileName, const char **fields, size_t numFields) |
| Dumps only the specified fields from the .dbf file to a destination text file. | |
| template<class t_type> | |
| Buffer< t_type > | readColumn (const StringView &column) |
| Reads all values from a named column and returns them converted to the requested type. | |
| uint04 | recordCount () const |
| Returns the number of records in the .dbf file. | |
Logic for reading or writing to a database file that uses the .dbf file extension.
Definition at line 15 of file DBFParser.h.
| DBFParser::DBFParser | ( | const File & | file | ) |
Constructs a DBFParser by opening and parsing the header of the given .dbf file.
| [in] | file | The .dbf file to parse. |
| void DBFParser::DumpAll | ( | const char * | szDestFileName | ) |
Dumps all records from the .dbf file to a destination text file.
| [in] | szDestFileName | The path to the destination file. |
| void DBFParser::DumpFields | ( | const char * | szDestFileName, |
| const char ** | fields, | ||
| size_t | numFields ) |
Dumps only the specified fields from the .dbf file to a destination text file.
| [in] | szDestFileName | The path to the destination file. |
| [in] | fields | Array of field name strings to include. |
| [in] | numFields | The number of field names in the fields array. |
|
inline |
Reads all values from a named column and returns them converted to the requested type.
| [in] | column | The name of the column to read. |
Definition at line 46 of file DBFParser.h.
References Buffer< t_type, t_memory_manager >::add(), String::getAs(), IsInvalid(), and String::trimWhiteSpace().
|
inline |
Returns the number of records in the .dbf file.
Definition at line 39 of file DBFParser.h.