diff options
author | Joe Zhao <ztuowen@gmail.com> | 2015-03-08 16:02:15 +0800 |
---|---|---|
committer | Joe Zhao <ztuowen@gmail.com> | 2015-03-08 16:02:15 +0800 |
commit | e500bb4cdb32b13cc022b6dc5d221de7ad97a73e (patch) | |
tree | 643bcf86336437ccee6182fc6d19c92f33b7201a /tools/fileDataProvider.h | |
parent | 457024eedfaf6e08146038c8cb3034e590a81df6 (diff) | |
download | ranksvm-e500bb4cdb32b13cc022b6dc5d221de7ad97a73e.tar.gz ranksvm-e500bb4cdb32b13cc022b6dc5d221de7ad97a73e.tar.bz2 ranksvm-e500bb4cdb32b13cc022b6dc5d221de7ad97a73e.zip |
added commandline parser
Diffstat (limited to 'tools/fileDataProvider.h')
-rw-r--r-- | tools/fileDataProvider.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/tools/fileDataProvider.h b/tools/fileDataProvider.h index 3cfb3f9..7937866 100644 --- a/tools/fileDataProvider.h +++ b/tools/fileDataProvider.h @@ -11,10 +11,14 @@ private: public: FileDP(){}; FileDP(std::string fn):fname(fn){}; - virtual Eigen::MatrixXd* getNextAttr(); - virtual Eigen::VectorXd* getNextPref(); - virtual int open(); - virtual bool EOFile(); + virtual Eigen::MatrixXd* getAttr(){ + return new Eigen::MatrixXd(3,3); + } + virtual Eigen::VectorXd* getPref(){ + return new Eigen::VectorXd(3); + }; + virtual int open(){return 0;}; + virtual bool EOFile(){return true;}; }; #endif
\ No newline at end of file |