#include <esmreader.hpp>
|
| ESMReader () |
|
int | getVer () const |
|
int | getRecordCount () const |
|
float | getFVer () const |
|
const std::string | getAuthor () const |
|
const std::string | getDesc () const |
|
const std::vector
< Header::MasterData > & | getGameFiles () const |
|
const Header & | getHeader () const |
|
int | getFormat () const |
|
const NAME & | retSubName () const |
|
uint32_t | getSubSize () const |
|
std::string | getName () const |
|
ESM_Context | getContext () |
|
void | restoreContext (const ESM_Context &rc) |
|
void | close () |
|
void | openRaw (Files::IStreamPtr _esm, const std::string &name) |
|
void | open (Files::IStreamPtr _esm, const std::string &name) |
|
void | open (const std::string &file) |
|
void | openRaw (const std::string &filename) |
|
size_t | getFileOffset () |
| Get the current position in the file. Make sure that the file has been opened! More...
|
|
void | setIndex (const int index) |
|
int | getIndex () |
|
void | setGlobalReaderList (std::vector< ESMReader > *list) |
|
std::vector< ESMReader > * | getGlobalReaderList () |
|
template<typename X > |
void | getHNT (X &x, const char *name) |
|
template<typename X > |
void | getHNOT (X &x, const char *name) |
|
template<typename X > |
void | getHNT (X &x, const char *name, int size) |
|
template<typename X > |
void | getHNOT (X &x, const char *name, int size) |
|
int64_t | getHNLong (const char *name) |
|
template<typename X > |
void | getHT (X &x) |
|
template<typename X > |
void | getHT (X &x, int size) |
|
std::string | getHNOString (const char *name) |
|
std::string | getHNString (const char *name) |
|
std::string | getHString () |
|
void | getHExact (void *p, int size) |
|
void | getHNExact (void *p, int size, const char *name) |
|
void | getSubNameIs (const char *name) |
|
bool | isNextSub (const char *name) |
|
bool | peekNextSub (const char *name) |
|
void | cacheSubName () |
|
void | getSubName () |
|
bool | isEmptyOrGetName () |
|
void | skipHSub () |
|
void | skipHSubSize (int size) |
|
void | skipHSubUntil (const char *name) |
|
void | getSubHeader () |
|
void | getSubHeaderIs (int size) |
|
NAME | getRecName () |
|
void | skipRecord () |
|
void | getRecHeader () |
|
void | getRecHeader (uint32_t &flags) |
|
bool | hasMoreRecs () const |
|
bool | hasMoreSubs () const |
|
template<typename X > |
void | getT (X &x) |
|
void | getExact (void *x, int size) |
|
void | getName (NAME &name) |
|
void | getUint (uint32_t &u) |
|
std::string | getString (int size) |
|
void | skip (int bytes) |
|
void | fail (const std::string &msg) |
| Used for error handling. More...
|
|
void | setEncoder (ToUTF8::Utf8Encoder *encoder) |
| Sets font encoder for ESM strings. More...
|
|
unsigned int | getRecordFlags () |
| Get record flags of last record. More...
|
|
size_t | getFileSize () const |
|
ESM::ESMReader::ESMReader |
( |
| ) |
|
void ESM::ESMReader::cacheSubName |
( |
| ) |
|
void ESM::ESMReader::close |
( |
| ) |
|
Close the file, resets all information. After calling close() the structure may be reused to load a new file.
void ESM::ESMReader::fail |
( |
const std::string & |
msg | ) |
|
const std::string ESM::ESMReader::getAuthor |
( |
| ) |
const |
|
inline |
Save the current file position and information in a ESM_Context struct
const std::string ESM::ESMReader::getDesc |
( |
| ) |
const |
|
inline |
void ESM::ESMReader::getExact |
( |
void * |
x, |
|
|
int |
size |
|
) |
| |
size_t ESM::ESMReader::getFileOffset |
( |
| ) |
|
Get the current position in the file. Make sure that the file has been opened!
size_t ESM::ESMReader::getFileSize |
( |
| ) |
const |
|
inline |
int ESM::ESMReader::getFormat |
( |
| ) |
const |
float ESM::ESMReader::getFVer |
( |
| ) |
const |
|
inline |
std::vector<ESMReader>* ESM::ESMReader::getGlobalReaderList |
( |
| ) |
|
|
inline |
const Header& ESM::ESMReader::getHeader |
( |
| ) |
const |
|
inline |
void ESM::ESMReader::getHExact |
( |
void * |
p, |
|
|
int |
size |
|
) |
| |
void ESM::ESMReader::getHNExact |
( |
void * |
p, |
|
|
int |
size, |
|
|
const char * |
name |
|
) |
| |
int64_t ESM::ESMReader::getHNLong |
( |
const char * |
name | ) |
|
std::string ESM::ESMReader::getHNOString |
( |
const char * |
name | ) |
|
template<typename X >
void ESM::ESMReader::getHNOT |
( |
X & |
x, |
|
|
const char * |
name |
|
) |
| |
|
inline |
template<typename X >
void ESM::ESMReader::getHNOT |
( |
X & |
x, |
|
|
const char * |
name, |
|
|
int |
size |
|
) |
| |
|
inline |
std::string ESM::ESMReader::getHNString |
( |
const char * |
name | ) |
|
template<typename X >
void ESM::ESMReader::getHNT |
( |
X & |
x, |
|
|
const char * |
name |
|
) |
| |
|
inline |
template<typename X >
void ESM::ESMReader::getHNT |
( |
X & |
x, |
|
|
const char * |
name, |
|
|
int |
size |
|
) |
| |
|
inline |
std::string ESM::ESMReader::getHString |
( |
| ) |
|
template<typename X >
void ESM::ESMReader::getHT |
( |
X & |
x | ) |
|
|
inline |
template<typename X >
void ESM::ESMReader::getHT |
( |
X & |
x, |
|
|
int |
size |
|
) |
| |
|
inline |
int ESM::ESMReader::getIndex |
( |
| ) |
|
|
inline |
std::string ESM::ESMReader::getName |
( |
| ) |
const |
void ESM::ESMReader::getName |
( |
NAME & |
name | ) |
|
|
inline |
void ESM::ESMReader::getRecHeader |
( |
| ) |
|
|
inline |
void ESM::ESMReader::getRecHeader |
( |
uint32_t & |
flags | ) |
|
NAME ESM::ESMReader::getRecName |
( |
| ) |
|
int ESM::ESMReader::getRecordCount |
( |
| ) |
const |
|
inline |
unsigned int ESM::ESMReader::getRecordFlags |
( |
| ) |
|
|
inline |
Get record flags of last record.
std::string ESM::ESMReader::getString |
( |
int |
size | ) |
|
void ESM::ESMReader::getSubHeader |
( |
| ) |
|
void ESM::ESMReader::getSubHeaderIs |
( |
int |
size | ) |
|
Get sub header and check the size
void ESM::ESMReader::getSubName |
( |
| ) |
|
void ESM::ESMReader::getSubNameIs |
( |
const char * |
name | ) |
|
uint32_t ESM::ESMReader::getSubSize |
( |
| ) |
const |
|
inline |
template<typename X >
void ESM::ESMReader::getT |
( |
X & |
x | ) |
|
|
inline |
void ESM::ESMReader::getUint |
( |
uint32_t & |
u | ) |
|
|
inline |
int ESM::ESMReader::getVer |
( |
| ) |
const |
|
inline |
bool ESM::ESMReader::hasMoreRecs |
( |
| ) |
const |
|
inline |
bool ESM::ESMReader::hasMoreSubs |
( |
| ) |
const |
|
inline |
bool ESM::ESMReader::isEmptyOrGetName |
( |
| ) |
|
bool ESM::ESMReader::isNextSub |
( |
const char * |
name | ) |
|
Load ES file from a new stream, parses the header. Closes the currently open file first, if any.
void ESM::ESMReader::open |
( |
const std::string & |
file | ) |
|
Raw opening. Opens the file and sets everything up but doesn't parse the header.
void ESM::ESMReader::openRaw |
( |
const std::string & |
filename | ) |
|
bool ESM::ESMReader::peekNextSub |
( |
const char * |
name | ) |
|
void ESM::ESMReader::restoreContext |
( |
const ESM_Context & |
rc | ) |
|
Restore a previously saved context
const NAME& ESM::ESMReader::retSubName |
( |
| ) |
const |
|
inline |
Sets font encoder for ESM strings.
void ESM::ESMReader::setGlobalReaderList |
( |
std::vector< ESMReader > * |
list | ) |
|
|
inline |
void ESM::ESMReader::setIndex |
( |
const int |
index | ) |
|
|
inline |
void ESM::ESMReader::skip |
( |
int |
bytes | ) |
|
void ESM::ESMReader::skipHSub |
( |
| ) |
|
void ESM::ESMReader::skipHSubSize |
( |
int |
size | ) |
|
void ESM::ESMReader::skipHSubUntil |
( |
const char * |
name | ) |
|
void ESM::ESMReader::skipRecord |
( |
| ) |
|
std::vector<char> ESM::ESMReader::mBuffer |
|
private |
size_t ESM::ESMReader::mFileSize |
|
private |
std::vector<ESMReader>* ESM::ESMReader::mGlobalReaderList |
|
private |
Header ESM::ESMReader::mHeader |
|
private |
unsigned int ESM::ESMReader::mRecordFlags |
|
private |
The documentation for this class was generated from the following files: