source file of the Flower Library
- (c) 1997--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ (c) 1997--2008 Han-Wen Nienhuys <hanwen@xs4all.nl>
*/
#ifndef FILE_PATH_HH
#define FILE_PATH_HH
-#include "array.hh"
+#include "std-vector.hh"
#include "std-string.hh"
/**
class File_path
{
- Array<Std_string> dirs_;
+ vector<string> dirs_;
+
public:
- Array<Std_string> directories () const;
- Std_string find (Std_string name) const;
- Std_string find (Std_string name, char const *extensions[]);
- Std_string to_string () const;
- bool try_append (Std_string str);
- void append (Std_string str);
- void parse_path (Std_string);
- void prepend (Std_string str);
+ vector<string> directories () const;
+ string find (string name) const;
+ string find (string name, char const *extensions[]);
+ string to_string () const;
+ bool try_append (string str);
+ void append (string str);
+ void parse_path (string);
+ void prepend (string str);
};
-bool is_file (Std_string file_name);
-bool is_dir (Std_string file_name);
+bool is_file (string file_name);
+bool is_dir (string file_name);
#endif /* FILE_PATH */