/* * nav.h - navigate a directory tree starting from a specified path * * Created on: May 29, 2011 * Revised on: Jun 15, 2011 * - converted to navigate class * * Author: jim fawcett */ #ifndef NAV_H_ #define NAV_H_ #include #include #include #include class INavProc { public: virtual ~INavProc() {} virtual void fileProc(const std::string& filename)=0; virtual void dirProc(const std::string& directory)=0; }; class navigate { public: navigate(INavProc* pProc) { _pProc = pProc; } void walk(const std::string& path); private: INavProc* _pProc; }; #endif /* NAV_H_ */