23 #ifndef __ccxx_FileName_hxx 24 #define __ccxx_FileName_hxx 81 FileName& operator=(
const char* path);
91 {
return(getPathName()); }
94 String getPathName()
const;
97 void setPathName(
const String& path);
110 void setVolume(
const String& volume);
117 void setDirectory(
const String& dir);
135 {
return(_basename); }
138 void setBaseName(
const String& name);
145 void setExtension(
const String& ext);
148 String getFileName()
const;
159 void setFileName(
const String& name);
166 bool isAbsolute()
const;
177 void _rebuildPathName()
const;
178 void _rebuildFileName()
const;
186 mutable bool _filenameDirty;
187 mutable bool _pathnameDirty;
192 #endif // __ccxx_FileName_hxx
String getDirectory() const
Get the directory for this FileName.
Definition: FileName.h++:113
String getExtension() const
Get the extension for the FileName.
Definition: FileName.h++:141
String getVolume() const
Get the volume for this FileName.
Definition: FileName.h++:103
#define COMMONCPP_API
Definition: Common.h++:126
A flexible, reference counted, copy-on-write, thread-safe, nullable string.
Definition: String.h++:50
A class representing a filename.
Definition: FileName.h++:55
String toString() const
Get a String representation of the FileName.
Definition: FileName.h++:90
String getBaseName() const
Get the base name from the FileName.
Definition: FileName.h++:134
Definition: AllocationMap.c++:25