Public Member Functions

yadt::datasource Class Reference

Source of textual data. More...

#include <YaDT.h>

List of all members.

Public Member Functions

 datasource (const std::string &specs)
 Constructor.
 ~datasource ()
 Destructor.

Detailed Description

Source of textual data.

Data sources include: text files, gzipped text files, JDBC relational tables. The purpose of this class is to encapsulate information on accessing data. It is used in methods that need to read data.

See also:
table::load_meta_data()
table::load_data()
dtree::predict()
dtree::evaluate()

Constructor & Destructor Documentation

yadt::datasource::datasource ( const std::string &  specs  ) 

Constructor.

Takes a data source specification: "FILE\#filename\#c" specifies a file with name "filename" and where column separator is the char 'c'; "FILE\#filename.gz\#c" specifies a gzipped file with name "filename.gz" and where column separator is the char 'c'; "JDBC\#driver\#url\#usr\#pwd\#sql" -- to be added.

Parameters:
%specs data source specification.
yadt::datasource::~datasource (  ) 

Destructor.


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