(parse_symbol_list): Bugfix.
[lilypond/patrick.git] / flower / include / file-path.hh
blob780b74c0dd3f80c5070675af5a9cbdf033ed5970
1 /*
2 file-path.hh -- declare File_path
4 source file of the Flower Library
6 (c) 1997--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 */
9 #ifndef FILE_PATH_HH
10 #define FILE_PATH_HH
12 #include "array.hh"
13 #include "string.hh"
15 /**
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
24 class File_path
26 Array<String> dirs_;
27 public:
28 Array<String> directories () const;
29 String find (String name) const;
30 String find (String name, char const *extensions[]);
31 String to_string () const;
32 bool try_append (String str);
33 void append (String str);
34 void parse_path (String);
35 void prepend (String str);
38 bool is_file (String file_name);
39 bool is_dir (String file_name);
41 #endif /* FILE_PATH */