#ifndef PathLookup_First #define PathLookup_First #ifdef __GNUG__ #pragma interface #endif #include "Object.h" class Iterator; class OrdCollection; class Symbol; //---- PathLookup -------------------------------------------------------------- class PathLookup: public Object { friend class PathIter; protected: char *path; OrdCollection *paths; virtual void Scan(); public: MetaDef(PathLookup); PathLookup(const char *path); // eg. "/bin:/tmp:/usr/bin" PathLookup(const Symbol &s); // name in ETRC ~PathLookup(); bool Lookup(const char *file, char *buf, int access= 4); // returns in buf the path to file void Add(const char *path); // expands path and adds to list }; #endif