103 : mName(name), mType(archType), mReadOnly(true) {}
113 virtual bool isCaseSensitive(
void)
const = 0;
122 virtual void load() = 0;
129 virtual void unload() = 0;
159 "This archive does not support creation of files.",
167 virtual void remove(
const String& filename)
const
171 "This archive does not support removal of files.",
195 virtual FileInfoListPtr listFileInfo(
bool recursive =
true,
bool dirs =
false) = 0;
210 bool dirs =
false) = 0;
213 virtual bool exists(
const String& filename) = 0;
216 virtual time_t getModifiedTime(
const String& filename) = 0;
230 bool recursive =
true,
bool dirs =
false)
const = 0;
size_t uncompressedSize
Uncompressed size.
String path
Path name; separated by '/' and ending with '/'.
SharedPtr< FileInfoList > FileInfoListPtr
const Archive * archive
The archive in which the file has been found (for info when performing multi-Archive searches...
String filename
The file's fully qualified name.
String basename
Base filename.
virtual ~Archive()
Default destructor.
const String & getType(void) const
Return the type code of this Archive.
Archive(const String &name, const String &archType)
Constructor - don't call direct, used by ArchiveFactory.
Superclass for all objects that wish to use custom memory allocators when their new / delete operator...
size_t compressedSize
Compressed size.
Information about a file/directory within the archive will be returned using a FileInfo struct...
#define OGRE_EXCEPT(code, desc, src)
vector< FileInfo >::type FileInfoList
Reference-counted shared pointer, used for objects where implicit destruction is required.
String mType
Archive type code.
const String & getName(void) const
Get the name of this archive.
String mName
Archive name.
virtual bool isReadOnly() const
Reports whether this Archive is read-only, or whether the contents can be updated.
virtual DataStreamPtr create(const String &filename) const
Create a new file (or overwrite one already there).
bool mReadOnly
Read-only flag.