39 enum Style { Local, Unix, Windows };
41 Path(
const char* fullinp=0);
42 Path(
const char* p1,
const char* p2,
const char* p3=0,
43 const char* p4=0,
const char* p5=0);
44 Path(
const Path& fp ) { *
this = fp; }
45 Path(
const Path&,
const char* p2,
46 const char* p3=0,
const char* p4=0,
49 Path& operator =(
const Path&);
50 Path& operator =(
const char* fullinp);
55 bool isEmpty()
const {
return lvls_.isEmpty(); }
57 Path&
set(
const char* fullinp);
58 Path& add(
const char*);
59 Path& insert(
const char*);
60 Path& setFileName(
const char*);
61 Path& setPath(
const char*);
62 Path& setExtension(
const char*,
bool replace=
true);
65 bool isAbsolute()
const;
66 bool isSubDirOf(
const Path&,Path* reldir = 0)
const;
69 bool makeRelativeTo(
const Path&);
73 const char* prefix()
const;
74 const char* postfix()
const;
76 const char* extension()
const;
91 static BufferString getTimeStampFileName(
const char*ext=0);
93 const char* dirSep()
const;
94 static const char* dirSep(
Style);
105 void addPart(
const char*);
106 void compress(
int sl=0);
107 void conv2TrueDirIfLink();
#define mExpClass(module)
Definition: commondefs.h:157
Interface for several file and directory related services.
Definition: file.h:29
Style
Definition: filepath.h:39
bool operator==(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:51
bool isabs_
Definition: filepath.h:100
File pathname tools.
Definition: filepath.h:35
Set of BufferString objects.
Definition: bufstringset.h:25
BufferString postfix_
after '?'
Definition: filepath.h:102
File::Path FilePath
Definition: filepath.h:113
bool isuri_
Definition: filepath.h:99
encapsulates the read-access-only part of strings in OD.
Definition: odstring.h:29
bool operator!=(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:60
#define mDeprecated
Definition: plfdefs.h:213
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:38
BufferString prefix_
Definition: filepath.h:101
bool isEmpty() const
Definition: filepath.h:55
Path(const Path &fp)
Definition: filepath.h:44
BufferStringSet lvls_
Definition: filepath.h:103
static const char * sPrefSep
Definition: filepath.h:95