comservatory
Strict validation of CSV files in C++
|
Template class for a typed dummy field that only pretends to store its values. More...
#include <Field.hpp>
Public Member Functions | |
DummyField (size_t n=0) | |
size_t | size () const |
void | push_back (T) |
void | add_missing () |
bool | filled () const |
Public Member Functions inherited from comservatory::TypedField< T, tt > | |
Type | type () const |
virtual void | push_back (T x)=0 |
virtual size_t | size () const =0 |
virtual Type | type () const =0 |
virtual void | add_missing ()=0 |
virtual bool | filled () const |
Template class for a typed dummy field that only pretends to store its values.
T | Data type used to store the values. |
tt | The Type to be returned by type() . |
|
inline |
n | Number of missing values with which to fill the field's vector. This may be non-zero if converting a field from an UnknownField . |
|
inlinevirtual |
Append a missing value onto the field's vector of values.
Implements comservatory::Field.
|
inlinevirtual |
false
if it is just a dummy for validation/placeholder purposes. Reimplemented from comservatory::Field.
|
inlinevirtual |
x | Value to be appended to the TypedField 's vector of values. |
Implements comservatory::TypedField< T, tt >.
|
inlinevirtual |
Implements comservatory::Field.