#include <CsvDrv.h>
Inheritance diagram for fbwrap::CSVInStream:

Public Types | |
| enum | errorCodes { e_no_error, e_cant_open, e_not_opened } |
Public Methods | |
| CSVInStream (std::istream &p_is, char psep, char lFlag) | |
| Constructor. | |
| virtual void | First () |
| Reads the first record. | |
| virtual void | Next () |
| Reads next record. | |
| bool | Eof () |
| returns true if end of stream has been reached | |
| int | FieldCount () |
| Number of fields. | |
Public Attributes | |
| FieldList | Fields |
| fields for the current record | |
Protected Methods | |
| bool | ReadField (string &s) |
| void | ReadRecord () |
| Reads next record. | |
| bool | CheckLineEnd (char c) |
| function for checking line termination | |
| void | ClearRecord () |
| Clear all field values. | |
| string | FieldName (int n) |
| returns name of nth field | |
| void | setError (int n) |
Protected Attributes | |
| int | nRecs |
CSV files are very common for interchange data between diferent database formats. The class handles diferent line end combinations for records:
|
||||||||||||||||
|
Constructor.
|
|
|
Number of fields. Number of fields in the current record, may be diferent on the same input stream. |
|
|
Reads next field in the current record, returns false if eol is found, true otherwise.
|
1.2.17