00001 #ifndef _LOCATEINPUTFILEDIRECTORY 00002 #define _LOCATEINPUTFILEDIRECTORY 00003 //using namespace std; 00004 00005 class LocateInputFileDirectory 00006 { 00007 public: 00008 00009 // Looks in ../ and ../.. and ../../.. for fileName; returns directory where found. 00010 LocateInputFileDirectory(const char *fileName); 00011 ~LocateInputFileDirectory(void); 00012 00013 const char* Get(const char* fileName); 00014 00015 private: 00016 char directoryName[1000]; 00017 char gotFileName[2000]; 00018 }; 00019 00020 #endif // _LOCATEINPUTFILEDIRECTORY