CsvReader Class Reference

#include <ArmarXCore/core/csv/CsvReader.h>

Public Member Functions

 CsvReader (const std::string &filename, bool hasHeader)
 
std::vector< std::string > getHeader ()
 
bool isEof ()
 
bool read (std::map< std::string, float > &row)
 
bool read (std::vector< float > &row)
 
bool read (std::vector< std::string > &row)
 
std::map< std::string, std::vector< float > > readAllColumnsFloatMap ()
 
std::vector< std::vector< float > > readAllFloatList ()
 
std::vector< std::map< std::string, float > > readAllFloatMap ()
 

Detailed Description

Definition at line 39 of file CsvReader.h.

Constructor & Destructor Documentation

◆ CsvReader()

CsvReader ( const std::string &  filename,
bool  hasHeader 
)

Definition at line 29 of file CsvReader.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ getHeader()

std::vector< std::string > getHeader ( )

Definition at line 121 of file CsvReader.cpp.

◆ isEof()

bool isEof ( )

Definition at line 127 of file CsvReader.cpp.

◆ read() [1/3]

bool read ( std::map< std::string, float > &  row)

Definition at line 69 of file CsvReader.cpp.

+ Here is the call graph for this function:

◆ read() [2/3]

bool read ( std::vector< float > &  row)

Definition at line 53 of file CsvReader.cpp.

+ Here is the call graph for this function:

◆ read() [3/3]

bool read ( std::vector< std::string > &  row)

Definition at line 42 of file CsvReader.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ readAllColumnsFloatMap()

std::map< std::string, std::vector< float > > readAllColumnsFloatMap ( )

Definition at line 107 of file CsvReader.cpp.

+ Here is the call graph for this function:

◆ readAllFloatList()

std::vector< std::vector< float > > readAllFloatList ( )

Definition at line 85 of file CsvReader.cpp.

+ Here is the call graph for this function:

◆ readAllFloatMap()

std::vector< std::map< std::string, float > > readAllFloatMap ( )

Definition at line 96 of file CsvReader.cpp.

+ Here is the call graph for this function:

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