#include <esmwriter.hpp>
|
| ESMWriter () |
|
unsigned int | getVersion () const |
|
void | setVersion (unsigned int ver=0x3fa66666) |
|
void | setType (int type) |
|
void | setEncoder (ToUTF8::Utf8Encoder *encoding) |
|
void | setAuthor (const std::string &author) |
|
void | setDescription (const std::string &desc) |
|
void | setRecordCount (int count) |
|
int | getRecordCount () |
|
void | setFormat (int format) |
|
void | clearMaster () |
|
void | addMaster (const std::string &name, uint64_t size) |
|
void | save (std::ostream &file) |
| Start saving a file by writing the TES3 header. More...
|
|
void | close () |
|
void | writeHNString (const std::string &name, const std::string &data) |
|
void | writeHNString (const std::string &name, const std::string &data, size_t size) |
|
void | writeHNCString (const std::string &name, const std::string &data) |
|
void | writeHNOString (const std::string &name, const std::string &data) |
|
void | writeHNOCString (const std::string &name, const std::string &data) |
|
template<typename T > |
void | writeHNT (const std::string &name, const T &data) |
|
template<typename T > |
void | writeHNT (const std::string &name, const T &data, int size) |
|
template<typename T > |
void | writeT (const T &data) |
|
template<typename T > |
void | writeT (const T &data, size_t size) |
|
void | startRecord (const std::string &name, uint32_t flags=0) |
|
void | startRecord (uint32_t name, uint32_t flags=0) |
|
void | startSubRecord (const std::string &name) |
|
void | endRecord (const std::string &name) |
|
void | endRecord (uint32_t name) |
|
void | writeFixedSizeString (const std::string &data, int size) |
|
void | writeHString (const std::string &data) |
|
void | writeHCString (const std::string &data) |
|
void | writeName (const std::string &data) |
|
void | write (const char *data, size_t size) |
|
|
void | writeHNT (const std::string &name, std::string data) |
|
void | writeT (const std::string &data) |
|
ESM::ESMWriter::ESMWriter |
( |
| ) |
|
void ESM::ESMWriter::addMaster |
( |
const std::string & |
name, |
|
|
uint64_t |
size |
|
) |
| |
void ESM::ESMWriter::clearMaster |
( |
| ) |
|
void ESM::ESMWriter::close |
( |
| ) |
|
- Note
- Does not close the stream.
void ESM::ESMWriter::endRecord |
( |
const std::string & |
name | ) |
|
void ESM::ESMWriter::endRecord |
( |
uint32_t |
name | ) |
|
- Todo:
- make endianess agnostic
int ESM::ESMWriter::getRecordCount |
( |
| ) |
|
|
inline |
unsigned int ESM::ESMWriter::getVersion |
( |
| ) |
const |
void ESM::ESMWriter::save |
( |
std::ostream & |
file | ) |
|
Start saving a file by writing the TES3 header.
void ESM::ESMWriter::setAuthor |
( |
const std::string & |
author | ) |
|
void ESM::ESMWriter::setDescription |
( |
const std::string & |
desc | ) |
|
void ESM::ESMWriter::setFormat |
( |
int |
format | ) |
|
void ESM::ESMWriter::setRecordCount |
( |
int |
count | ) |
|
void ESM::ESMWriter::setType |
( |
int |
type | ) |
|
void ESM::ESMWriter::setVersion |
( |
unsigned int |
ver = 0x3fa66666 | ) |
|
void ESM::ESMWriter::startRecord |
( |
const std::string & |
name, |
|
|
uint32_t |
flags = 0 |
|
) |
| |
void ESM::ESMWriter::startRecord |
( |
uint32_t |
name, |
|
|
uint32_t |
flags = 0 |
|
) |
| |
- Todo:
- make endianess agnostic
void ESM::ESMWriter::startSubRecord |
( |
const std::string & |
name | ) |
|
- Note
- Sub-record hierarchies are not properly supported in ESMReader. This should be fixed later.
void ESM::ESMWriter::write |
( |
const char * |
data, |
|
|
size_t |
size |
|
) |
| |
void ESM::ESMWriter::writeFixedSizeString |
( |
const std::string & |
data, |
|
|
int |
size |
|
) |
| |
void ESM::ESMWriter::writeHCString |
( |
const std::string & |
data | ) |
|
void ESM::ESMWriter::writeHNCString |
( |
const std::string & |
name, |
|
|
const std::string & |
data |
|
) |
| |
|
inline |
void ESM::ESMWriter::writeHNOCString |
( |
const std::string & |
name, |
|
|
const std::string & |
data |
|
) |
| |
|
inline |
void ESM::ESMWriter::writeHNOString |
( |
const std::string & |
name, |
|
|
const std::string & |
data |
|
) |
| |
|
inline |
void ESM::ESMWriter::writeHNString |
( |
const std::string & |
name, |
|
|
const std::string & |
data |
|
) |
| |
void ESM::ESMWriter::writeHNString |
( |
const std::string & |
name, |
|
|
const std::string & |
data, |
|
|
size_t |
size |
|
) |
| |
template<typename T >
void ESM::ESMWriter::writeHNT |
( |
const std::string & |
name, |
|
|
const T & |
data |
|
) |
| |
|
inline |
void ESM::ESMWriter::writeHNT |
( |
const std::string & |
name, |
|
|
std::string |
data |
|
) |
| |
|
inlineprivate |
template<typename T >
void ESM::ESMWriter::writeHNT |
( |
const std::string & |
name, |
|
|
const T & |
data, |
|
|
int |
size |
|
) |
| |
|
inline |
void ESM::ESMWriter::writeHString |
( |
const std::string & |
data | ) |
|
void ESM::ESMWriter::writeName |
( |
const std::string & |
data | ) |
|
void ESM::ESMWriter::writeT |
( |
const std::string & |
data | ) |
|
|
inlineprivate |
template<typename T >
void ESM::ESMWriter::writeT |
( |
const T & |
data | ) |
|
|
inline |
template<typename T >
void ESM::ESMWriter::writeT |
( |
const T & |
data, |
|
|
size_t |
size |
|
) |
| |
|
inline |
bool ESM::ESMWriter::mCounting |
|
private |
Header ESM::ESMWriter::mHeader |
|
private |
std::streampos ESM::ESMWriter::mHeaderPos |
|
private |
int ESM::ESMWriter::mRecordCount |
|
private |
std::ostream* ESM::ESMWriter::mStream |
|
private |
The documentation for this class was generated from the following files: