Fix missing volta bracket edge when using new double repeats.
[lilypond.git] / flower / include / file-path.hh
blob9a35388c4c08a33686efb39007f5381b3833e768
1 /*
2 file-path.hh -- declare File_path
4 source file of the Flower Library
6 (c) 1997--2007 Han-Wen Nienhuys <hanwen@xs4all.nl>
7 */
9 #ifndef FILE_PATH_HH
10 #define FILE_PATH_HH
12 #include "std-vector.hh"
13 #include "std-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 vector<string> dirs_;
28 public:
29 vector<string> directories () const;
30 string find (string name) const;
31 string find (string name, char const *extensions[]);
32 string to_string () const;
33 bool try_append (string str);
34 void append (string str);
35 void parse_path (string);
36 void prepend (string str);
39 bool is_file (string file_name);
40 bool is_dir (string file_name);
42 #endif /* FILE_PATH */