/* * FileNameFinder.hh * * Created on: Mar 20, 2016 * Author: Hovanes Egiyan */ #ifndef FILENAMEFINDER_HH_ #define FILENAMEFINDER_HH_ #include "string.h" #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include class FileNameFinder { protected: std::string fnfDirName; // Default directory name std::string fnfFileName; // File name public: FileNameFinder( int* ac, char* av[] ); virtual ~FileNameFinder(); virtual std::string getFileNameFromGUI( TGWindow* window ); virtual void parseFullFileName( const std::string& dName, const std::string& fName ); inline virtual std::string getFileName() const { return fnfFileName ;} inline virtual std::string getDirName() const {return fnfDirName ; } inline virtual std::string getFullFileName() const {return fnfDirName + "/" + fnfFileName;} inline virtual std::string setFileName( const std::string fName ) {return (fnfFileName = fName);} inline virtual std::string setDirName( const std::string dirName) {return (fnfDirName= dirName);} }; #endif /* FILENAMEFINDER_HH_ */