Cogs.Core
|
Represents a resource archive used to load resources at runtime. More...
#include <ResourceArchive.h>
Public Member Functions | |
ResourceArchive (class ResourceStore *context, std::string_view archiveName) | |
Construct a resource archive with the given archive file. | |
ResourceArchive (ResourceArchive &&other) | |
ResourceArchive & | operator= (ResourceArchive &&other) |
Move assign operator. | |
bool | hasResource (std::string_view path) const |
Cogs::Memory::MemoryBuffer | getResource (std::string_view path) const |
Private Attributes | |
std::unique_ptr< struct Archive > | storage |
Represents a resource archive used to load resources at runtime.
Definition at line 14 of file ResourceArchive.h.
Cogs::Core::ResourceArchive::ResourceArchive | ( | class ResourceStore * | context, |
std::string_view | archiveName | ||
) |
Construct a resource archive with the given archive file.
Definition at line 31 of file ResourceArchive.cpp.
References Cogs::Core::ResourceStore::getResourceContents().
Cogs::Core::ResourceArchive::~ResourceArchive | ( | ) |
Definition at line 94 of file ResourceArchive.cpp.
Cogs::Core::ResourceArchive::ResourceArchive | ( | ResourceArchive && | other | ) |
Definition at line 103 of file ResourceArchive.cpp.
Cogs::Memory::MemoryBuffer Cogs::Core::ResourceArchive::getResource | ( | std::string_view | path | ) | const |
Definition at line 124 of file ResourceArchive.cpp.
bool Cogs::Core::ResourceArchive::hasResource | ( | std::string_view | path | ) | const |
Definition at line 115 of file ResourceArchive.cpp.
Cogs::Core::ResourceArchive & Cogs::Core::ResourceArchive::operator= | ( | ResourceArchive && | other | ) |
Move assign operator.
Definition at line 108 of file ResourceArchive.cpp.
|
private |
Definition at line 32 of file ResourceArchive.h.