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