Filename.h
Go to the documentation of this file.00001 00011 #ifndef __Filename_H__ 00012 #define __Filename_H__ 00013 00014 // Includes 00015 #include "StringId.h" 00016 00017 // Forward declares 00018 00019 // Filename 00020 class Filename 00021 { 00022 public: 00026 Filename(); 00027 00031 Filename( 00032 const char* filename 00033 ); 00034 00038 Filename( 00039 const StringId& filename 00040 ); 00041 00045 Filename( 00046 const Filename& filename 00047 ); 00048 00052 ~Filename(); 00053 00057 const Filename& operator=( 00058 const Filename& filename 00059 ); 00060 00064 bool operator==( 00065 const Filename& filename 00066 ) const; 00067 00071 bool operator!=( 00072 const Filename& filename 00073 ) const; 00074 00075 00081 const char* GetString() const; 00082 00083 StringId GetStringId() const; 00084 00085 private: 00086 bool VerifyFilename(const char* filename); 00087 00088 char* CorrectFilename(const char* filename); 00089 00090 StringId CorrectFilename(StringId filename); 00091 00092 00093 private: 00094 mutable char* filenameString_; 00095 mutable StringId filenameId_; 00096 }; 00097 00098 00099 #endif /* __Filename_H__ */
Reproduction/republishing of any material on this site without permission is strictly prohibited.
