CommonLibVR
io::CSVReader< column_count, trim_policy, quote_policy, overflow_policy, comment_policy > Class Template Reference

#include <csv.h>

Public Member Functions

 CSVReader ()=delete
 
 CSVReader (const CSVReader &)=delete
 
CSVReaderoperator= (const CSVReader &)
 
template<class... Args>
 CSVReader (Args &&... args)
 
char * next_line ()
 
template<class... ColNames>
void read_header (ignore_column ignore_policy, ColNames... cols)
 
template<class... ColNames>
void set_header (ColNames... cols)
 
bool has_column (const std::string &name) const
 
void set_file_name (const std::string &file_name)
 
void set_file_name (const char *file_name)
 
const char * get_truncated_file_name () const
 
void set_file_line (unsigned file_line)
 
unsigned get_file_line () const
 
template<class... ColType>
bool read_row (ColType &... cols)
 

Constructor & Destructor Documentation

◆ CSVReader() [1/3]

template<unsigned column_count, class trim_policy = trim_chars<' ', '\t'>, class quote_policy = no_quote_escape<','>, class overflow_policy = throw_on_overflow, class comment_policy = no_comment>
io::CSVReader< column_count, trim_policy, quote_policy, overflow_policy, comment_policy >::CSVReader ( )
delete

◆ CSVReader() [2/3]

template<unsigned column_count, class trim_policy = trim_chars<' ', '\t'>, class quote_policy = no_quote_escape<','>, class overflow_policy = throw_on_overflow, class comment_policy = no_comment>
io::CSVReader< column_count, trim_policy, quote_policy, overflow_policy, comment_policy >::CSVReader ( const CSVReader< column_count, trim_policy, quote_policy, overflow_policy, comment_policy > &  )
delete

◆ CSVReader() [3/3]

template<unsigned column_count, class trim_policy = trim_chars<' ', '\t'>, class quote_policy = no_quote_escape<','>, class overflow_policy = throw_on_overflow, class comment_policy = no_comment>
template<class... Args>
io::CSVReader< column_count, trim_policy, quote_policy, overflow_policy, comment_policy >::CSVReader ( Args &&...  args)
inlineexplicit

Member Function Documentation

◆ get_file_line()

template<unsigned column_count, class trim_policy = trim_chars<' ', '\t'>, class quote_policy = no_quote_escape<','>, class overflow_policy = throw_on_overflow, class comment_policy = no_comment>
unsigned io::CSVReader< column_count, trim_policy, quote_policy, overflow_policy, comment_policy >::get_file_line ( ) const
inline

◆ get_truncated_file_name()

template<unsigned column_count, class trim_policy = trim_chars<' ', '\t'>, class quote_policy = no_quote_escape<','>, class overflow_policy = throw_on_overflow, class comment_policy = no_comment>
const char* io::CSVReader< column_count, trim_policy, quote_policy, overflow_policy, comment_policy >::get_truncated_file_name ( ) const
inline

◆ has_column()

template<unsigned column_count, class trim_policy = trim_chars<' ', '\t'>, class quote_policy = no_quote_escape<','>, class overflow_policy = throw_on_overflow, class comment_policy = no_comment>
bool io::CSVReader< column_count, trim_policy, quote_policy, overflow_policy, comment_policy >::has_column ( const std::string &  name) const
inline

◆ next_line()

template<unsigned column_count, class trim_policy = trim_chars<' ', '\t'>, class quote_policy = no_quote_escape<','>, class overflow_policy = throw_on_overflow, class comment_policy = no_comment>
char* io::CSVReader< column_count, trim_policy, quote_policy, overflow_policy, comment_policy >::next_line ( )
inline

◆ operator=()

template<unsigned column_count, class trim_policy = trim_chars<' ', '\t'>, class quote_policy = no_quote_escape<','>, class overflow_policy = throw_on_overflow, class comment_policy = no_comment>
CSVReader& io::CSVReader< column_count, trim_policy, quote_policy, overflow_policy, comment_policy >::operator= ( const CSVReader< column_count, trim_policy, quote_policy, overflow_policy, comment_policy > &  )

◆ read_header()

template<unsigned column_count, class trim_policy = trim_chars<' ', '\t'>, class quote_policy = no_quote_escape<','>, class overflow_policy = throw_on_overflow, class comment_policy = no_comment>
template<class... ColNames>
void io::CSVReader< column_count, trim_policy, quote_policy, overflow_policy, comment_policy >::read_header ( ignore_column  ignore_policy,
ColNames...  cols 
)
inline

◆ read_row()

template<unsigned column_count, class trim_policy = trim_chars<' ', '\t'>, class quote_policy = no_quote_escape<','>, class overflow_policy = throw_on_overflow, class comment_policy = no_comment>
template<class... ColType>
bool io::CSVReader< column_count, trim_policy, quote_policy, overflow_policy, comment_policy >::read_row ( ColType &...  cols)
inline

◆ set_file_line()

template<unsigned column_count, class trim_policy = trim_chars<' ', '\t'>, class quote_policy = no_quote_escape<','>, class overflow_policy = throw_on_overflow, class comment_policy = no_comment>
void io::CSVReader< column_count, trim_policy, quote_policy, overflow_policy, comment_policy >::set_file_line ( unsigned  file_line)
inline

◆ set_file_name() [1/2]

template<unsigned column_count, class trim_policy = trim_chars<' ', '\t'>, class quote_policy = no_quote_escape<','>, class overflow_policy = throw_on_overflow, class comment_policy = no_comment>
void io::CSVReader< column_count, trim_policy, quote_policy, overflow_policy, comment_policy >::set_file_name ( const char *  file_name)
inline

◆ set_file_name() [2/2]

template<unsigned column_count, class trim_policy = trim_chars<' ', '\t'>, class quote_policy = no_quote_escape<','>, class overflow_policy = throw_on_overflow, class comment_policy = no_comment>
void io::CSVReader< column_count, trim_policy, quote_policy, overflow_policy, comment_policy >::set_file_name ( const std::string &  file_name)
inline

◆ set_header()

template<unsigned column_count, class trim_policy = trim_chars<' ', '\t'>, class quote_policy = no_quote_escape<','>, class overflow_policy = throw_on_overflow, class comment_policy = no_comment>
template<class... ColNames>
void io::CSVReader< column_count, trim_policy, quote_policy, overflow_policy, comment_policy >::set_header ( ColNames...  cols)
inline

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