OpenEnroth 73e68f7
|
#include <VidReader.h>
Classes | |
struct | VidRegion |
Public Member Functions | |
VidReader () | |
VidReader (std::string_view path) | |
VidReader (Blob blob) | |
~VidReader () | |
void | open (std::string_view path) |
void | open (Blob blob) |
void | close () |
bool | isOpen () const |
bool | exists (std::string_view filename) const |
Blob | read (std::string_view filename) const |
std::vector< std::string > | ls () const |
Private Attributes | |
Blob | _vid |
std::unordered_map< std::string, VidRegion > | _files |
Reader for Might&Magic VID files.
|
default |
|
explicit |
|
explicit |
|
default |
void VidReader::close | ( | ) |
Closes this VID reader & frees all associated resources.
bool VidReader::exists | ( | std::string_view | filename | ) | const |
filename | Name of the VID file entry. |
|
inline |
std::vector< std::string > VidReader::ls | ( | ) | const |
void VidReader::open | ( | Blob | blob | ) |
blob | VID data. |
Exception | If there are errors in the provided VID file. |
void VidReader::open | ( | std::string_view | path | ) |
path | Path to the VID file to open for reading. |
Exception | If the VID couldn't be opened - e.g., if the file doesn't exist, or if it's not in VID format. |
Blob VidReader::read | ( | std::string_view | filename | ) | const |
|
private |
|
private |