Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members

Data::CsvLoader Class Reference

Handles input from a CSV file. More...

#include <csvloader.hh>

List of all members.

Public Member Functions

std::vector< Column * > read_file (std::string &filename)
 read a csv file and autodetect separator

std::vector< Column * > read_file (std::string &filename, char separator)
 read a csv file with a specific separator


Protected Member Functions

token_type _get_next_token (std::ifstream &ifs, char separator)
 get next token

bool _is_eol (char c, std::ifstream &ifs) const
 is a eol token

bool _convert_float (const char *buffer) const
 return true when the string is a float

bool _convert_int (const char *buffer) const
 return true when the string is a int

std::string _trim (const std::string &str)
 remove ' ' character in front of and behinde the string

char _detect_csv (std::string &filename)
 detect csv separator


Protected Attributes

char _buffer [MAX_LINE_SIZE]


Detailed Description

Handles input from a CSV file.

Author:
Julien LEMOINE <speedblue@debian.org>

Definition at line 46 of file csvloader.hh.


The documentation for this class was generated from the following files:
Generated on Tue Jul 29 15:39:09 2003 for libdatamining by doxygen 1.3.2