/* * CENA C++ Utilities * * by Stephane Chatty * * Copyright 1991, 1992 * Laboratoire de Recherche en Informatique (LRI) * Centre d'Etudes de la Navigation Aerienne (CENA) * * management of search paths * * $Id$ * $CurLog$ */ #ifndef DirPath_H_ #define DirPath_H_ #include "cplus_bugs.h" #include "List.h" class IvlDirPath : public IvlList { public: enum alloc_mode { DontAllocNames, DoAllocNames }; private: alloc_mode Alloc; public: IvlDirPath (); IvlDirPath (alloc_mode); IvlDirPath (const char*); IvlDirPath (const char*, const char*, ...); ~IvlDirPath (); void Append (const char*); void Prepend (const char*); void AppendEnvPath (const char*, char sep = ':'); int Remove (const char*); inline void SetAlloc (alloc_mode alloc) { Alloc = alloc; } const char* FindFile (const char*, alloc_mode); inline const char* FindFile (const char* fn) { return FindFile (fn, Alloc); } }; #endif /* DirPath_H_ */