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

The parsed contents of a CSV file. More...

#include <Parser.hpp>

Public Member Functions

size_t num_fields () const
 
size_t num_records () const
 

Public Attributes

std::vector< std::unique_ptr< Field > > fields
 
std::vector< std::string > names
 

Detailed Description

The parsed contents of a CSV file.

Member Function Documentation

◆ num_fields()

size_t comservatory::Contents::num_fields ( ) const
inline
Returns
Number of fields in the CSV file.

◆ num_records()

size_t comservatory::Contents::num_records ( ) const
inline
Returns
Number of records in the CSV file.

Member Data Documentation

◆ fields

std::vector<std::unique_ptr<Field> > comservatory::Contents::fields

Vector of data for each of the fields in the CSV file.

◆ names

std::vector<std::string> comservatory::Contents::names

Vector of names for the fields in the CSV file. This is of length equal to fields.


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