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

Virtual base class for a describing a field. More...

#include <Field.hpp>

Inheritance diagram for comservatory::Field:
Inheritance graph
[legend]

Public Member Functions

virtual size_t size () const =0
 
virtual Type type () const =0
 
virtual void add_missing ()=0
 
virtual bool filled () const
 

Detailed Description

Virtual base class for a describing a field.

This can be treated as a vector of values across multiple records in the CSV file.

Member Function Documentation

◆ add_missing()

virtual void comservatory::Field::add_missing ( )
pure virtual

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

Implemented in comservatory::UnknownField, comservatory::FilledField< T, tt >, and comservatory::DummyField< T, tt >.

◆ filled()

virtual bool comservatory::Field::filled ( ) const
inlinevirtual
Returns
Boolean indicating whether this object contains loaded data. This may be false if it is just a dummy for validation/placeholder purposes.

Reimplemented in comservatory::DummyField< T, tt >.

◆ size()

virtual size_t comservatory::Field::size ( ) const
pure virtual
Returns
Current size of the field, i.e., the number of records.

Implemented in comservatory::UnknownField, comservatory::FilledField< T, tt >, and comservatory::DummyField< T, tt >.

◆ type()

virtual Type comservatory::Field::type ( ) const
pure virtual
Returns
Type of the field.

Implemented in comservatory::UnknownField, and comservatory::TypedField< T, tt >.


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