1 #ifndef CREPLACEMENTS_H
2 #define CREPLACEMENTS_H
3 
4 #ifdef HAVE_CONFIG_H
5 #include <config.h>
6 #endif
7 
8 #include <string>
9 
10 #ifndef NO_NAMESPACE
11 using namespace std;
12 #endif
13 
14 class pathname: public string
15 {
16 public:
pathname()17 	pathname() {}
18 	pathname(const char*);
19 	pathname(const string&);
20 	void uppercase();
21 	string path() const;
22 	string file() const;
23 	void file(const char*);
24 	string filename() const;
25 	string ext() const;
26 	void ext(const char*);
27 	bool exists() const;
28 	void seperate(string& path, string& filename, string& ext) const;
29 	string next_name(int digits = 3) const;
30 	void auto_name(int digits = 3);
31 private:
32 	string _convert_slash(const char *) const;
33 };
34 
35 #endif
36 
37