Fennel: FlatFileRowParseResult Class Reference (original) (raw)
Result of scanning for a row in a flat file format buffer. More...
#include <[FlatFileParser.h](FlatFileParser%5F8h-source.html)>
| Public Types | |
|---|---|
| enum | RowStatus { NO_STATUS = 0, INCOMPLETE_COLUMN, ROW_TOO_LARGE, NO_COLUMN_DELIM, TOO_FEW_COLUMNS, TOO_MANY_COLUMNS } |
| Status of row parsing. More... | |
| Public Member Functions | |
| FlatFileRowParseResult () | |
| void | reset () |
| uint | getReadCount () |
| Gets the number of fields read. | |
| char * | getColumn (uint iColumn) |
| Gets a column value. | |
| uint | getRawColumnSize (uint iColumn) |
| Gets the size of a column, before removing escape and quote chars. | |
| uint | getColumnSize (uint iColumn) |
| Gets the size of a column, after removing escape and quote chars. | |
| void | clear () |
| Clear the row result. | |
| void | resize (uint nColumns) |
| Resize the row result. | |
| void | setColumn (uint iColumn, uint offset, uint size) |
| Sets a column value in the row result. | |
| void | setNull (uint iColumn) |
| Nullifies a column value in the row result. | |
| void | addColumn (uint offset, uint size) |
| Pushes a column onto the end of the row result. | |
| Public Attributes | |
| RowStatus | status |
| Reports errors encountered during row parsing. | |
| VectorOfUint | offsets |
| Offsets to column values within the buffer. | |
| VectorOfUint | sizes |
| Sizes of column values. | |
| VectorOfUint | strippedSizes |
| Sizes of stripped column values. | |
| char * | current |
| Reference to the current row. | |
| char * | next |
| Reference to the next row to be parsed. | |
| uint | nRowDelimsRead |
| Ongoing count of row delimiters read. |
Detailed Description
Result of scanning for a row in a flat file format buffer.
Definition at line 77 of file FlatFileParser.h.
Member Enumeration Documentation
Status of row parsing.
Enumerator:
| NO_STATUS | Row was parsed successfully. |
|---|---|
| INCOMPLETE_COLUMN | A column in the row was not delimited by either a column or row delimiter. |
| ROW_TOO_LARGE | Row did not fit into buffer. |
| NO_COLUMN_DELIM | Row delimiter was hit, before any column delimiters, when multiple columns were expected. |
| TOO_FEW_COLUMNS | Column delimiters were encountered, but row had too few columns. |
| TOO_MANY_COLUMNS | Row had too many columns, or column values were too long,. |
Definition at line 81 of file FlatFileParser.h.
Constructor & Destructor Documentation
| FlatFileRowParseResult::FlatFileRowParseResult | ( | | ) | [explicit] | | ---------------------------------------------- | - | | - | ------------ |
Member Function Documentation
| void FlatFileRowParseResult::reset | ( | | ) | | ---------------------------------- | - | | - |
| uint FlatFileRowParseResult::getReadCount | ( | | ) | [inline] | | ------------------------------------------------------------------------------------------------------ | - | | - | ---------- |
| char* FlatFileRowParseResult::getColumn | ( | uint | iColumn | ) | [inline] |
|---|
| uint FlatFileRowParseResult::getRawColumnSize | ( | uint | iColumn | ) | [inline] |
|---|
| uint FlatFileRowParseResult::getColumnSize | ( | uint | iColumn | ) | [inline] |
|---|
| void FlatFileRowParseResult::clear | ( | | ) | [inline] | | ---------------------------------- | - | | - | ---------- |
| void FlatFileRowParseResult::resize | ( | uint | nColumns | ) | [inline] |
|---|
| void FlatFileRowParseResult::setColumn | ( | uint | iColumn, |
|---|---|---|---|
| uint | offset, | ||
| uint | size | ||
| ) | [inline] |
| void FlatFileRowParseResult::setNull | ( | uint | iColumn | ) | [inline] |
|---|
| void FlatFileRowParseResult::addColumn | ( | uint | offset, |
|---|---|---|---|
| uint | size | ||
| ) | [inline] |
Member Data Documentation
The documentation for this class was generated from the following files:
- /home/pub/open/dev/fennel/flatfile/FlatFileParser.h
- /home/pub/open/dev/fennel/flatfile/FlatFileParser.cpp
