3#include <NDEVR/BaseValues.h>
5#include <NDEVR/Buffer.h>
50 void DumpAll(
const char* szDestFileName);
51 void DumpFields(
const char* szDestFileName,
const char** fields,
size_t numFields);
53 template<
class t_type>
59 for (
uint04 i = 0; i < columns.size(); ++i)
61 if (columns[i].archName == column)
64 final_offset = szRowSize - (row_skip_size + columns[i].uLength);
67 row_skip_size += columns[i].uLength;
72 clFile.seekg(m_data_start, std::ios_base::beg);
74 size_t uNumRecords = 0;
76 while (uNumRecords < stHeader.uNumRecords)
79 clFile.read(&deleted, 1);
82 clFile.seekg(szRowSize, std::ios_base::cur);
86 if (row_skip_size > 0)
88 clFile.seekg(row_skip_size, std::ios_base::cur);
91 s.
setSize(columns[index].uLength);
92 clFile.read(s.
begin(), columns[index].uLength);
97 clFile.seekg(final_offset, std::ios_base::cur);
105 std::ifstream clFile;
111 size_t szLargestFieldSize;
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:64
void add(t_type &&object)
Definition Buffer.hpp:199
void setSize(t_index_type new_size)
Definition Buffer.hpp:1413
void ensureCapacity(t_index_type new_capacity, bool ensure_not_greater=false, bool ensure_not_less=true)
Definition Buffer.hpp:803
decltype(auto) begin()
Definition Buffer.hpp:504
Definition DBFParser.h:46
size_t recordCount() const
Definition DBFParser.h:52
Buffer< t_type > readColumn(const String &column)
Definition DBFParser.h:54
NDEVR_BASE_API String & trimWhiteSpace()
Definition String.cpp:569
t_type getAs() const
Definition String.h:334
uint8_t uint01
-Defines an alias representing a 1 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:98
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:120
uint16_t uint02
-Defines an alias representing a 2 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:109
constexpr bool isNaN(const t_type &value)
Query if 'value' is valid or invalid.
Definition BaseFunctions.hpp:200
Definition BaseValues.hpp:272
Definition DBFParser.h:30
char chFieldType
Definition DBFParser.h:32
uint01 fFlags
Definition DBFParser.h:37
uint01 uDecimalPlaces
Definition DBFParser.h:36
char archName[11]
Definition DBFParser.h:31
uint01 uStepValue
Definition DBFParser.h:40
uint04 uNextValue
Definition DBFParser.h:39
uint01 uLength
Definition DBFParser.h:35
uint04 uDisplacement
Definition DBFParser.h:34
char uReserved[8]
Definition DBFParser.h:41