csvpp 1.2.0
CSV parsing / writing libraries
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
csv.hpp File Reference

C++ CSV library. More...

#include <exception>
#include <fstream>
#include <map>
#include <memory>
#include <optional>
#include <sstream>
#include <string>
#include <vector>
#include <cassert>
#include <cerrno>
#include <cstring>
#include "version.h"
Include dependency graph for csv.hpp:

Go to the source code of this file.

Classes

class  csv::Error
 Error base class. More...
 
struct  csv::Internal_error
 Internal error. More...
 
class  csv::Parse_error
 Parsing error. More...
 
struct  csv::Out_of_range_error
 Out of range error. More...
 
struct  csv::Type_conversion_error
 Type conversion error. More...
 
class  csv::IO_error
 IO error. More...
 
class  csv::Reader
 Parses CSV data. More...
 
class  csv::Reader::Row
 Represents a single row of CSV data. More...
 
class  csv::Reader::Row::Iterator< T >
 Iterates over the fields within a Row. More...
 
class  csv::Reader::Row::Range< T >
 Helper class for iterating over a Row. Use Row::range to obtain. More...
 
class  csv::Reader::Iterator
 Iterates over Rows in CSV data. More...
 
struct  csv::Reader::input_string_t
 Disambiguation tag type. More...
 
class  csv::Map_reader_iter< Header, Value >
 Map-based Reader iterator. More...
 
class  csv::Writer
 CSV writer. More...
 
class  csv::Writer::Iterator
 Output iterator for writing CSV data field-by-field. More...
 
class  csv::Map_writer_iter< Header, Default_value >
 Map-based Writer iterator. More...
 

Namespaces

namespace  csv
 CSV library namespace.
 

Functions

template<typename T , typename std::enable_if_t< std::is_convertible_v< T, std::string >, int > = 0>
std::string csv::str (const T &t)
 String conversion.
 
std::string csv::str (char c)
 
bool csv::operator== (const Reader::Iterator &lhs, const Reader::Iterator &rhs)
 Compare two Reader::Iterator objects.
 
bool csv::operator!= (const Reader::Iterator &lhs, const Reader::Iterator &rhs)
 Compare two Reader::Iterator objects.
 
template<typename T >
bool csv::operator== (const Reader::Row::Iterator< T > &lhs, const Reader::Row::Iterator< T > &rhs)
 Compare two Reader::Row::Iterator objects.
 
template<typename T >
bool csv::operator!= (const Reader::Row::Iterator< T > &lhs, const Reader::Row::Iterator< T > &rhs)
 Compare two Reader::Row::Iterator objects.
 
template<typename Header1 , typename Value1 , typename Header2 , typename Value2 >
bool csv::operator== (const Map_reader_iter< Header1, Value1 > &lhs, const Map_reader_iter< Header2, Value2 > &rhs)
 Compare two Map_reader_iter objects.
 
template<typename Header1 , typename Value1 , typename Header2 , typename Value2 >
bool csv::operator!= (const Map_reader_iter< Header1, Value1 > &lhs, const Map_reader_iter< Header2, Value2 > &rhs)
 compare two Map_reader_iter objects
 
Writercsv::end_row (Writer &w)
 End row stream manipulator for Writer.
 

Detailed Description

C++ CSV library.