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