Public Member Functions | Private Attributes | List of all members
CSVOperation Class Reference

#include <file_operation.h>

Public Member Functions

std::string const & operator[] (std::size_t index) const
 
std::vector< std::vector< std::string > > readAllCSV (std::istream &str)
 
void readNextRow (std::istream &str)
 
std::size_t size () const
 
void writeRowData (std::string csv_file, std::vector< std::string > row_vector)
 

Private Attributes

std::vector< std::vector< std::string > > csv_table_
 
std::vector< std::string > m_data
 

Detailed Description

Definition at line 28 of file file_operation.h.

Member Function Documentation

std::string const& CSVOperation::operator[] ( std::size_t  index) const
inline

Definition at line 31 of file file_operation.h.

std::vector< std::vector< std::string > > CSVOperation::readAllCSV ( std::istream &  str)

Definition at line 120 of file file_operation.cpp.

void CSVOperation::readNextRow ( std::istream &  str)

Definition at line 100 of file file_operation.cpp.

std::size_t CSVOperation::size ( ) const
inline

Definition at line 35 of file file_operation.h.

void CSVOperation::writeRowData ( std::string  csv_file,
std::vector< std::string >  row_vector 
)

Definition at line 136 of file file_operation.cpp.

Member Data Documentation

std::vector<std::vector<std::string> > CSVOperation::csv_table_
private

Definition at line 47 of file file_operation.h.

std::vector<std::string> CSVOperation::m_data
private

Definition at line 46 of file file_operation.h.


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


xbot_talker
Author(s): wangxiaoyun
autogenerated on Sat Oct 10 2020 03:27:54