tzutrader
A composable C++ backtesting library for trading strategies (experimental)
Loading...
Searching...
No Matches
tzu::Csv< T > Class Template Reference

#include <streamers.h>

Public Types

using Iterator = ParseIterator<T, CsvParseTraits<T>>

Public Member Functions

 Csv (std::istream &input, bool has_headers=true)
Iterator begin ()
Iterator end ()

Detailed Description

template<typename T>
class tzu::Csv< T >

A simple CSV reader that provides an iterable interface to parse lines from a stream into a specific data type. It uses the CsvParseTraits specialization for the given type to perform the parsing.

Member Typedef Documentation

◆ Iterator

template<typename T>
using tzu::Csv< T >::Iterator = ParseIterator<T, CsvParseTraits<T>>

Constructor & Destructor Documentation

◆ Csv()

template<typename T>
tzu::Csv< T >::Csv ( std::istream & input,
bool has_headers = true )
inlineexplicit

Member Function Documentation

◆ begin()

template<typename T>
Iterator tzu::Csv< T >::begin ( )
inline

◆ end()

template<typename T>
Iterator tzu::Csv< T >::end ( )
inline

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