26 #include <boost/scoped_array.hpp>
27 #include <boost/scoped_ptr.hpp>
45 boost::scoped_ptr<RawData> input (vfs->
open(datfile));
46 input->setIndex(info.
offset);
54 throw InvalidFormat(
"failed to decompress " + info.
name +
" (inside: " + datfile +
")");
The needed information for the extraction.
RawDataDAT2(VFS *vfs, const std::string &datfile, const s_info &info)
Constructor.
Simpe RawDataSource that reads data from raw memory.
RawData * open(const std::string &path)
Open a file.
uint8_t * getRawData() const
Get a Pointer to the data You need to use this function to fill the class with meaningfull data...
the main VFS (virtual file system) class