2 path.hh -- declare File_path
4 source file of the Flower Library
6 (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
16 search in directories for a file.
18 Abstraction of PATH variable. An interface for searching input files.
19 Search a number of dirs for a file.
21 TODO: add a unix style PATH interface
26 class File_path : private Array<String>
29 /// locate a file in the search path
30 String find (String nm)const;
32 /// add to end of path.
34 void add (String str) { push (str); }
37 /** split a path into its components.
42 String &drive, String &dirs, String &filebase, String &extension
44 void split_path (String path, String &drive, String &dirs, String &filebase, String &extension);