22 #ifndef ULTIMA8_FILESYS_ARCHIVEFILE_H 23 #define ULTIMA8_FILESYS_ARCHIVEFILE_H 25 #include "ultima/shared/std/string.h" 43 virtual bool exists(uint32 index) = 0;
57 virtual uint8 *
getObject(uint32 index, uint32 *size = 0) = 0;
70 virtual uint32
getSize(uint32 index)
const = 0;
99 virtual bool isNamed()
const = 0;
102 static bool extractIndexFromName(
const Std::string &name, uint32 &index);
virtual uint32 getSize(uint32 index) const =0
virtual bool exists(uint32 index)=0
Common::SeekableReadStream * getDataSource(uint32 index, bool is_text=false)
Definition: archive_file.h:30
virtual uint32 getIndexCount() const =0
Definition: detection.h:27
virtual bool isIndexed() const =0
is archive indexed?
virtual uint32 getCount() const =0
virtual bool isNamed() const =0
is archive named?
virtual uint8 * getObject(uint32 index, uint32 *size=0)=0
virtual bool isValid() const
Check if constructed object is indeed a valid archive.
Definition: archive_file.h:35