comservatory
Strict validation of CSV files in C++
Loading...
Searching...
No Matches
Classes | Typedefs | Enumerations | Functions
comservatory Namespace Reference

Contains all comservatory functions and classes. More...

Classes

struct  Contents
 The parsed contents of a CSV file. More...
 
struct  DummyField
 Template class for a typed dummy field that only pretends to store its values. More...
 
struct  Field
 Virtual base class for a describing a field. More...
 
struct  FieldCreator
 Virtual base class for a Field creator. More...
 
struct  FilledField
 Template class for a typed field that uses a std::vector to store its values. More...
 
struct  TypedField
 Template class for a field of a known type. More...
 
struct  UnknownField
 Field of an unknown type. More...
 

Typedefs

typedef TypedField< std::string, STRING > StringField
 
typedef FilledField< std::string, STRING > FilledStringField
 
typedef DummyField< std::string, STRING > DummyStringField
 
typedef TypedField< double, NUMBER > NumberField
 
typedef FilledField< double, NUMBER > FilledNumberField
 
typedef DummyField< double, NUMBER > DummyNumberField
 
typedef TypedField< bool, BOOLEAN > BooleanField
 Virtual class for a Field of booleans.
 
typedef FilledField< bool, BOOLEAN > FilledBooleanField
 
typedef DummyField< bool, BOOLEAN > DummyBooleanField
 
typedef TypedField< std::complex< double >, COMPLEX > ComplexField
 
typedef FilledField< std::complex< double >, COMPLEX > FilledComplexField
 
typedef DummyField< std::complex< double >, COMPLEX > DummyComplexField
 

Enumerations

enum  Type {
  STRING , NUMBER , COMPLEX , BOOLEAN ,
  UNKNOWN
}
 

Functions

std::string type_to_name (Type type)
 

Detailed Description

Contains all comservatory functions and classes.

Typedef Documentation

◆ ComplexField

typedef TypedField<std::complex<double>, COMPLEX> comservatory::ComplexField

Virtual class for a Field of complex numbers.

◆ DummyBooleanField

Dummy boolean Field.

◆ DummyComplexField

typedef DummyField<std::complex<double>, COMPLEX> comservatory::DummyComplexField

Complex Field.

◆ DummyNumberField

typedef DummyField<double, NUMBER> comservatory::DummyNumberField

Dummy numeric Field.

◆ DummyStringField

typedef DummyField<std::string, STRING> comservatory::DummyStringField

Dummy string Field.

◆ FilledBooleanField

Boolean Field with a backing std::vector<bool>.

◆ FilledComplexField

typedef FilledField<std::complex<double>, COMPLEX> comservatory::FilledComplexField

Complex Field with a backing std::vector<std::complex<double> >.

◆ FilledNumberField

Numeric Field with a backing std::vector<double>.

◆ FilledStringField

typedef FilledField<std::string, STRING> comservatory::FilledStringField

String Field with a backing std::vector<std::string>.

◆ NumberField

typedef TypedField<double, NUMBER> comservatory::NumberField

Virtual class for a Field of double-precision numbers.

◆ StringField

typedef TypedField<std::string, STRING> comservatory::StringField

Various realizations. Virtual class for a Field of strings.

Enumeration Type Documentation

◆ Type

Type of a field in a CSV file.

Function Documentation

◆ type_to_name()

std::string comservatory::type_to_name ( Type  type)
inline
Parameters
typeType of a field.
Returns
String containing the type of the field.