30 Filename(
const char* filename =
""):FileName(filename ? filename :
""),Path(),Conversion() {}
47 static const char *
Join(
const char *path,
const char *filename);
50 bool IsEmpty()
const {
return FileName.empty(); }
55 operator const char * ()
const {
return GetFileName(); }
69 std::string Conversion;
Class to manipulate file name's.
Definition gdcmFilename.h:28
Filename(const char *filename="")
Definition gdcmFilename.h:30
static const char * Join(const char *path, const char *filename)
bool IsIdentical(Filename const &fn) const
bool IsEmpty() const
return whether the filename is empty
Definition gdcmFilename.h:50
bool EndWith(const char ending[]) const
Does the filename ends with a particular string ?
const char * GetName()
return only the name part of a filename
const char * ToUnixSlashes()
Convert backslash (windows style) to UNIX style slash.
const char * ToWindowsSlashes()
Convert forward slash (UNIX style) to windows style slash.
const char * GetPath()
Return only the path component of a filename.
const char * GetExtension()
return only the extension part of a filename
const char * GetFileName() const
Return the full filename.
Definition gdcmFilename.h:33
#define GDCM_EXPORT
Definition gdcmWin32.h:34