![]() |
Qore CsvUtil Module Reference 1.11
|
Provides a data provider for reading CSV files. More...
#include <CsvWriteDataProvider.qc.dox.h>
Public Member Functions | |
| constructor (*hash< auto > options) | |
| Creates the object from constructor options. | |
| constructor (OutputStream stream, *hash< auto > opts) | |
| Creates the CsvWriteDataProvider with the output data stream where data will be writeen and an option hash. | |
| constructor (string path, *hash< auto > opts) | |
| Creates the CsvWriteDataProvider with the output path and optionally an option hash. | |
| string | getName () |
| Returns the object name. | |
Public Attributes | |
| const | ConstructorOptions = ... |
| Constructor options. | |
| const | CsvGenerationOptionList = keys (ConstructorOptions - ("path", "stream")) |
| CSV generation option list. | |
| const | ProviderInfo = ... |
| Provider info. | |
Protected Member Functions | |
| *hash< auto > | createRecordImpl (hash< auto > rec, *hash< auto > create_options) |
| Creates the given record to the data provider. | |
| *hash< string, AbstractDataField > | getRecordTypeImpl (*hash< auto > search_options) |
| Returns the description of the record type, if any. | |
| hash< DataProviderInfo > | getStaticInfoImpl () |
| Returns data provider static info. | |
Protected Attributes | |
| AbstractCsvWriter | writer |
| the writer object | |
Provides a data provider for reading CSV files.
| CsvUtil::CsvWriteDataProvider::constructor | ( | OutputStream | stream, |
| *hash< auto > | opts ) |
Creates the CsvWriteDataProvider with the output data stream where data will be writeen and an option hash.
| stream | the output stream for writing the data |
| opts | a hash of optional options; see AbstractCsvWriter Constructor Option Hash Overview for more information |
| CSVSTREAMWRITER-ERROR | option error |
| CsvUtil::CsvWriteDataProvider::constructor | ( | string | path, |
| *hash< auto > | opts ) |
Creates the CsvWriteDataProvider with the output path and optionally an option hash.
| path | the output file to write |
| opts | a hash of options; see AbstractCsvWriter Constructor Option Hash Overview for more information |
| CSVFILEWRITER-ERROR | option error |
|
protected |
Creates the given record to the data provider.
| rec | a hash representing a single input record |
| create_options | the create options after processing by validateCreateOptions() |