ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
dfe_io_dsv.hpp File Reference

Read/write (d)elimiter-(s)eparated (v)alues text files. More...

#include <algorithm>
#include <array>
#include <fstream>
#include <limits>
#include <sstream>
#include <stdexcept>
#include <string>
#include <tuple>
#include <type_traits>
#include <utility>
#include <vector>
+ Include dependency graph for dfe_io_dsv.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  dfe::io_dsv_impl::DsvWriter< Delimiter >
 Write arbitrary data as delimiter-separated values into a text file. More...
 
class  dfe::io_dsv_impl::DsvReader< Delimiter >
 Read arbitrary data as delimiter-separated values from a text file. More...
 
class  dfe::io_dsv_impl::NamedTupleDsvWriter< Delimiter, NamedTuple >
 Write records as delimiter-separated values into a text file. More...
 
class  dfe::io_dsv_impl::NamedTupleDsvReader< Delimiter, NamedTuple >
 

Namespaces

namespace  dfe
 
namespace  dfe::io_dsv_impl
 

Typedefs

using dfe::CsvWriter = io_dsv_impl::DsvWriter<','>
 Write arbitrary data as comma-separated values into as text file.
 
using dfe::TsvWriter = io_dsv_impl::DsvWriter<'\t'>
 Write arbitrary data as tab-separated values into as text file.
 
template<typename T >
using dfe::NamedTupleCsvWriter = io_dsv_impl::NamedTupleDsvWriter<',', T >
 Write tuple-like records as comma-separated values into a text file.
 
template<typename T >
using dfe::NamedTupleCsvReader = io_dsv_impl::NamedTupleDsvReader<',', T >
 Read tuple-like records from a comma-separated file.
 
template<typename T >
using dfe::NamedTupleTsvWriter = io_dsv_impl::NamedTupleDsvWriter<'\t', T >
 Write tuple-like records as tab-separated values into a text file.
 
template<typename T >
using dfe::NamedTupleTsvReader = io_dsv_impl::NamedTupleDsvReader<'\t', T >
 Read tuple-like records from a tab-separated file.
 

Functions

template<typename T >
static void dfe::io_dsv_impl::parse (const std::string &str, T &value)
 

Detailed Description

Read/write (d)elimiter-(s)eparated (v)alues text files.

Author
Moritz Kiehn msmk@.nosp@m.cern.nosp@m..ch
Date
2019-09-09, Split dsv i/o from the namedtuple library

Definition in file dfe_io_dsv.hpp.