#include <rtkDbf.h>
Light dbase file (.dbf) file reader. It assumes little-endianness (least significant byte first). The format describet on this page: https://www.dbf2002.com/dbf-file-format.html
- Author
- Simon Rit
Definition at line 88 of file rtkDbf.h.
◆ DbfFile()
| rtk::DbfFile::DbfFile |
( |
const std::string & | fileName | ) |
|
|
explicit |
Constructor initializes the structure and goes to first record
◆ ~DbfFile()
| rtk::DbfFile::~DbfFile |
( |
| ) |
|
◆ GetFieldAsDouble()
| double rtk::DbfFile::GetFieldAsDouble |
( |
const std::string & | fldName | ) |
|
|
inline |
◆ GetFieldAsString()
| std::string rtk::DbfFile::GetFieldAsString |
( |
const std::string & | fldName | ) |
|
◆ GetNumberOfRecords()
| vcl_size_t rtk::DbfFile::GetNumberOfRecords |
( |
| ) |
|
|
inline |
Number of records contained in the tabe
Definition at line 104 of file rtkDbf.h.
References m_Fields.
◆ is_open()
| bool rtk::DbfFile::is_open |
( |
| ) |
|
|
inline |
Return open status of file stream
Definition at line 97 of file rtkDbf.h.
References m_Stream.
◆ ReadNextRecord()
| bool rtk::DbfFile::ReadNextRecord |
( |
| ) |
|
Read in memory the next record. Return true if successful and false oftherwise.
◆ m_Fields
| std::vector<DbfField> rtk::DbfFile::m_Fields |
|
private |
◆ m_HeaderSize
| unsigned short rtk::DbfFile::m_HeaderSize {} |
|
private |
◆ m_MapFieldNameIndex
| std::map<std::string, unsigned int> rtk::DbfFile::m_MapFieldNameIndex |
|
private |
Map between field names and field index
Definition at line 137 of file rtkDbf.h.
◆ m_NumRecords
| unsigned int rtk::DbfFile::m_NumRecords {} |
|
private |
Global properties of a dbf file
Definition at line 129 of file rtkDbf.h.
◆ m_Record
| char* rtk::DbfFile::m_Record |
|
private |
Current record in memory
Definition at line 140 of file rtkDbf.h.
◆ m_RecordSize
| unsigned short rtk::DbfFile::m_RecordSize {} |
|
private |
◆ m_Stream
| std::ifstream rtk::DbfFile::m_Stream |
|
private |
File stream. AFter constructor, positionned to next record to read.
Definition at line 126 of file rtkDbf.h.
Referenced by is_open().
The documentation for this class was generated from the following file: