|
comservatory
Strict validation of CSV files in C++
|
Virtual base class for a Field creator.
More...
#include <Creator.hpp>
Public Member Functions | |
| virtual Field * | create (Type t, size_t n, bool dummy) const =0 |
Virtual base class for a Field creator.
Applications may define concrete subclasses to control how Fields are created during parsing of the CSV. This involves specializing the create() method, possibly with custom Field subclasses backed by a different memory mechanism. In this manner, developers can directly stream the CSV into their memory layout rather than going through a FilledField intermediate.
|
pure virtual |
| t | Type of the field. |
| n | Number of existing (missing) records in the field. This should be used to specify that the first n values of the field's contents are missing. |
| dummy | Whether to create a dummy field. This is used to create placeholders for fields that are not of interest when ReadOptions::keep_subset is set, i.e., not in ReadOptions::keep_subset_names or ReadOptions::keep_subset_indices. |
Field subclass.