18 #ifndef __epath_h_included 19 #define __epath_h_included 74 static Void
combine(cpStr path1, cpStr path2, cpStr path3, cpStr path4,
EString &path);
80 static Void
combine(cpStr path1, cpStr path2, cpStr path3,
EString &path);
92 static EString combine(cpStr path1, cpStr path2, cpStr path3, cpStr path4);
108 static Void
verify(cpStr path, mode_t mode = 0777);
153 static Bool m_dirEqualsVolume;
155 static Void cleanPath(cpStr path,
EString &cleanPath);
156 static Void insecureFullPath(cpStr path,
EString &fullPath);
157 static Bool isDsc(cChar c);
158 static Bool isPathRooted(cpStr path);
159 static Int findExtension(cpStr path);
198 inline Bool EPath::isDsc(cChar c)
204 #endif // #define __epath_h_included static cChar getDirectorySeparatorChar()
Retrieves the directory separator character.
static Void getDirectoryName(cpStr path, EString &dirName)
Retrieves the directory name from a file name.
Definition: epath.cpp:178
Encapsulates and extends a std::string object.
#define DECLARE_ERROR_ADVANCED4(__e__)
Declares exception class derived from EError with an const char* as a constructor parameter and devel...
Definition: eerror.h:85
Macros for various standard C library functions and standard includes.
static Void getFileNameWithoutExtension(cpStr path, EString &fileName)
Retrieves the file name without any extension.
Definition: epath.cpp:247
static Void combine(cpStr path1, cpStr path2, cpStr path3, cpStr path4, EString &path)
Combines individual path names into a single path name.
Definition: epath.cpp:128
static EString getFileName(cpStr path)
Retrieves just the file name from a fully qualified file name.
Definition: epath.h:142
static Void verify(cpStr path, mode_t mode=0777)
Verifies that a path exists, creating directories as needed.
Definition: epath.cpp:155
static Void getExtension(cpStr path, EString &ext)
Retrieves the extension of a file name.
Definition: epath.cpp:202
static Void getPathRoot(cpStr path, EString &root)
Retrieves the path root.
Definition: epath.cpp:253
static EString getPathRoot(cpStr path)
Retrieves the path root.
Definition: epath.h:150
static EString getExtension(cpStr path)
Retrieves the extension of a file name.
Definition: epath.h:138
static Void changeExtension(cpStr path, cpStr extension, EString &newPath)
Changes the extension of an exist path name.
Definition: epath.cpp:51
#define DECLARE_ERROR_ADVANCED3(__e__)
Declares exception class derived from EError with an Int and a const char * as constructor parameters...
Definition: eerror.h:77
Defines base class for exceptions and declaration helper macros.
static cChar getAltDirectorySeparatorChar()
Retrieves the alternate directory separator character.
static cpStr getDirectorySeparatorString()
Retrieves the directory separator string.
static cpStr getInvalidFileNameChars()
Retrieves the invalid file name characters.
static cpStr getPathSeparatorChars()
Retrieves the path separator characters.
static EString getDirectoryName(cpStr path)
Retrieves the directory name from a file name.
Definition: epath.h:134
static cpStr getInvalidPathChars()
Retrieves the invalid path characters.
static cChar getVolumeSeparatorChar()
Retrieves the volume separator character.
static Void getFileName(cpStr path, EString &fileName)
Retrieves just the file name from a fully qualified file name.
Definition: epath.cpp:229
static EString getFileNameWithoutExtension(cpStr path)
Retrieves the file name without any extension.
Definition: epath.h:146
A path manipulation helper class.
Definition: epath.h:35
String class.
Definition: estring.h:31