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