cxtream  0.5.1
C++17 data pipeline with Python bindings.
List of all members
cxtream::csv_istream_range Class Reference

Parse and iterate over CSV formatted rows from an istream. More...

#include <cxtream/core/csv.hpp>

Inherits view_facade< csv_istream_range >.

Detailed Description

Parse and iterate over CSV formatted rows from an istream.

Beware, escaping double quotes is allowed using backslash, not another double quote. Escaping is only allowed if the first non-whitespace character of a field is a double quote.

Usage:

std::istringstream simple_csv{"Id, A," R"("Quoted \"column\"") "\n 1, a1, 1.1"};
csv_istream_range csv_rows{simple_csv};
// csv_rows == {{"Id", "A", R"("Quoted \"column\"")"}, {"1", "a1", "1.1"}}
Exceptions
std::ios_base::failureif badbit is triggered.

Definition at line 57 of file csv.hpp.


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