summaryrefslogtreecommitdiff
path: root/tools/fileDataProvider.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/fileDataProvider.h')
-rw-r--r--tools/fileDataProvider.h6
1 files changed, 2 insertions, 4 deletions
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