lilypond-0.0.39
[lilypond.git] / flower / path.hh
blobbc4d9f3776c58abde644f69a0ebea7ab9cbe342c
1 #ifndef PATH_HH
2 #define PATH_HH
3 #include "string.hh"
4 #include "varray.hh"
7 /** searching directory for file.
9 Abstraction of PATH variable. An interface for searching input files.
10 Search a number of dirs for a file.
12 Should use kpathsea?
16 class File_path : private Array<String>
18 public:
19 /// locate a file in the search path
20 String find(String nm);
22 /// construct using prefix. Normally argv[0].
23 File_path(String);
25 /// add to end of path.
26 Array<String>::push;
27 void add(String str) { push(str); }
29 /// split path into its components
30 void split_path(String path, String &drive, String &dirs, String &filebase, String &extension);
32 #endif