From f2d01e30f459818f0589e06839d38999aecfdc06 Mon Sep 17 00:00:00 2001 From: Joe Zhao Date: Sun, 8 Mar 2015 17:47:33 +0800 Subject: scaffolding --- tools/fileDataProvider.h | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'tools/fileDataProvider.h') diff --git a/tools/fileDataProvider.h b/tools/fileDataProvider.h index 7937866..fd8f00d 100644 --- a/tools/fileDataProvider.h +++ b/tools/fileDataProvider.h @@ -8,17 +8,18 @@ class FileDP:public DataProvider { private: std::string fname; + bool eof; public: - FileDP(){}; - FileDP(std::string fn):fname(fn){}; - virtual Eigen::MatrixXd* getAttr(){ - return new Eigen::MatrixXd(3,3); + FileDP(std::string fn=""):fname(fn),eof(false){}; + void setFname(std::string fn){fname=fn;}; + virtual int getDataSet(DataSet &out){ + return 0; } - virtual Eigen::VectorXd* getPref(){ - return new Eigen::VectorXd(3); + virtual int getLabel(Labels &out){ + return 0; }; virtual int open(){return 0;}; - virtual bool EOFile(){return true;}; + virtual bool EOFile(){return eof;}; }; #endif \ No newline at end of file -- cgit v1.2.3-70-g09d2