Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef GDCMFILENAME_H
00016 #define GDCMFILENAME_H
00017
00018 #include "gdcmTypes.h"
00019
00020 #include <string>
00021
00022 namespace gdcm
00023 {
00028 class GDCM_EXPORT Filename
00029 {
00030 public:
00031 Filename(const char* filename = ""):FileName(filename ? filename : ""),Path(),Conversion() {}
00032
00034 const char *GetFileName() const { return FileName.c_str(); }
00036 const char *GetPath();
00038 const char *GetName();
00040 const char *GetExtension();
00042 const char *ToUnixSlashes();
00044 const char *ToWindowsSlashes();
00045
00048 static const char *Join(const char *path, const char *filename);
00049
00051 bool IsEmpty() const { return FileName.empty(); }
00052
00056 operator const char * () const { return GetFileName(); }
00057
00058
00059
00060
00061
00062 bool IsIdentical(Filename const &fn) const;
00063
00064 private:
00065 std::string FileName;
00066 std::string Path;
00067 std::string Conversion;
00068 };
00069
00070 }
00071
00072 #endif //GDCMFILENAME_H