comservatory
Strict validation of CSV files in C++
Loading...
Searching...
No Matches
Public Member Functions | List of all members
comservatory::UnknownField Struct Reference

Field of an unknown type. More...

#include <Field.hpp>

Inheritance diagram for comservatory::UnknownField:
Inheritance graph
[legend]
Collaboration diagram for comservatory::UnknownField:
Collaboration graph
[legend]

Public Member Functions

size_t size () const
 
Type type () const
 
void add_missing ()
 
- Public Member Functions inherited from comservatory::Field
virtual size_t size () const =0
 
virtual Type type () const =0
 
virtual void add_missing ()=0
 
virtual bool filled () const
 

Detailed Description

Field of an unknown type.

This is used for all fields at the start of parsing; the type is only resolved upon encountering the first record with a non-missing value. As such, size() is implicitly equal to the number of missing records for this field.

Member Function Documentation

◆ add_missing()

void comservatory::UnknownField::add_missing ( )
inlinevirtual

Append a missing value onto the field's vector of values.

Implements comservatory::Field.

◆ size()

size_t comservatory::UnknownField::size ( ) const
inlinevirtual
Returns
Current size of the field, i.e., the number of records.

Implements comservatory::Field.

◆ type()

Type comservatory::UnknownField::type ( ) const
inlinevirtual
Returns
Type of the field.

Implements comservatory::Field.


The documentation for this struct was generated from the following file: