Worldstone
 All Classes Files Functions Variables Enumerations Enumerator Macros Pages
WorldStone::IOBase Class Reference

This class reuses the parts of std::ios API but doesn't provide heavy stream functionnality (ie. More...

#include <IOBase.h>

Inheritance diagram for WorldStone::IOBase:
WorldStone::Archive WorldStone::BitStreamView WorldStone::IStream WorldStone::MpqArchive WorldStone::FileStream WorldStone::MpqFileStream

Public Types

using Path = std::string
 
using iostate = int
 

Public Member Functions

 operator bool () const
 
bool operator! () const
 
bool good () const
 
bool eof () const
 
bool fail () const
 
bool bad () const
 

Protected Member Functions

void setstate (iostate state)
 

Protected Attributes

iostate _state = goodbit
 

Static Protected Attributes

static constexpr iostate goodbit = 0x0
 
static constexpr iostate eofbit = 0x1
 
static constexpr iostate failbit = 0x2
 
static constexpr iostate badbit = 0x4
 

Detailed Description

This class reuses the parts of std::ios API but doesn't provide heavy stream functionnality (ie.

no << and >> ) Derived classes must have RAII behaviour.

Definition at line 16 of file IOBase.h.


The documentation for this class was generated from the following file: