Worldstone
|
Base class to use/build archives. More...
#include <Archive.h>
Public Member Functions | |
Archive (const Archive &)=delete | |
Archive & | operator= (const Archive &)=delete |
virtual bool | exists (const Path &filePath)=0 |
virtual StreamPtr | open (const Path &filePath)=0 |
virtual bool | isThreadSafe () |
Public Member Functions inherited from WorldStone::IOBase | |
operator bool () const | |
bool | operator! () const |
bool | good () const |
bool | eof () const |
bool | fail () const |
bool | bad () const |
Protected Member Functions | |
virtual bool | load ()=0 |
virtual bool | is_loaded ()=0 |
virtual bool | unload ()=0 |
Protected Member Functions inherited from WorldStone::IOBase | |
void | setstate (iostate state) |
Additional Inherited Members | |
Public Types inherited from WorldStone::IOBase | |
using | Path = std::string |
using | iostate = int |
Protected Attributes inherited from WorldStone::IOBase | |
iostate | _state = goodbit |
Static Protected Attributes inherited from WorldStone::IOBase | |
static constexpr iostate | goodbit = 0x0 |
static constexpr iostate | eofbit = 0x1 |
static constexpr iostate | failbit = 0x2 |
static constexpr iostate | badbit = 0x4 |
Base class to use/build archives.
Archives are file/resource containers that provide basic I/O support. It can be implemented as a basic filesystem to read disks, compressed archives, databases. You can view this as an abstraction in the form of a directory