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