]> git.donarmstrong.com Git - lilypond.git/blob - flower/include/file-name.hh
Run `make grand-replace'.
[lilypond.git] / flower / include / file-name.hh
1 /*
2   file-name.hh -- declare File_name
3
4   source file of the Flower Library
5
6   (c) 1997--2008 Han-Wen Nienhuys <hanwen@xs4all.nl>
7 */
8
9 #ifndef FILE_NAME_HH
10 #define FILE_NAME_HH
11
12 #include "std-vector.hh"
13 #include "std-string.hh"
14
15 std::string dir_name (std::string const file_name);
16 std::string get_working_directory ();
17
18 class File_name
19 {
20 public:
21   string root_;
22   string dir_;
23   string base_;
24   string ext_;
25
26   File_name (string="");
27
28   bool is_absolute () const;
29   string to_string () const;
30   File_name canonicalized () const;
31   string dir_part () const;
32   string file_part () const;
33 };
34
35 #endif /* FILE_NAME */