#include <YaDT.h>
Public Member Functions | |
datasource (const string &specs) | |
Constructor. | |
~datasource () | |
Destructor. |
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.
yadt::datasource::datasource | ( | const 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.
%specs | data source specification. |
yadt::datasource::~datasource | ( | ) |
Destructor.