diff options
Diffstat (limited to 'tools/fileDataProvider.h')
-rw-r--r-- | tools/fileDataProvider.h | 15 |
1 files changed, 8 insertions, 7 deletions
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 |