37 enum Style { Local, Unix, Windows };
39 FilePath(
const char* fullinp=0);
40 FilePath(
const char* p1,
const char* p2,
const char* p3=0,
41 const char* p4=0,
const char* p5=0);
43 FilePath(
const FilePath&,
const char* p2,
44 const char* p3=0,
const char* p4=0,
47 FilePath& operator =(
const FilePath&);
48 FilePath& operator =(
const char* fullinp);
55 FilePath&
set(
const char* fullinp);
56 FilePath& add(
const char*);
57 FilePath& insert(
const char*);
58 void setFileName(
const char*);
59 void setPath(
const char*);
60 void setExtension(
const char*,
bool replace=
true);
64 bool isAbsolute()
const;
65 bool isSubDirOf(
const FilePath&,FilePath* reldir = 0)
const;
68 bool makeRelativeTo(
const FilePath&);
72 const char* prefix()
const;
74 const char* extension()
const;
89 static BufferString getTimeStampFileName(
const char*ext=0);
91 static const char* dirSep(
Style);
100 void addPart(
const char*);
101 void compress(
int sl=0);
102 void trueDirIfLink();
#define mExpClass(module)
Definition: commondefs.h:160
BufferString prefix_
Definition: filepath.h:97
bool operator==(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:53
bool isabs_
Definition: filepath.h:96
Style
Definition: filepath.h:37
Set of BufferString objects.
Definition: bufstringset.h:28
encapsulates the read-access-only part of strings in OD.
Definition: odstring.h:31
bool operator!=(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:62
static const char * sPrefSep
Definition: filepath.h:92
File pathname tools.
Definition: filepath.h:34
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
BufferStringSet lvls_
Definition: filepath.h:98
bool isEmpty(const NLAModel *mdl)
bool exists(const char *)
FilePath(const FilePath &fp)
Definition: filepath.h:42