1 #ifndef OPENMW_ESM_WRITER_H
2 #define OPENMW_ESM_WRITER_H
34 void setVersion(
unsigned int ver = 0x3fa66666);
37 void setAuthor(
const std::string& author);
52 void save(std::ostream& file);
59 void writeHNString(
const std::string&
name,
const std::string& data,
size_t size);
108 write((
char*)&data,
sizeof(T));
114 write((
char*)&data, size);
127 void write(
const char* data,
size_t size);
void startSubRecord(const std::string &name)
Definition: esmwriter.cpp:116
void writeT(const T &data)
Definition: esmwriter.hpp:106
std::streampos position
Definition: esmwriter.hpp:22
void writeHNT(const std::string &name, const T &data)
Definition: esmwriter.hpp:78
void writeHNOString(const std::string &name, const std::string &data)
Definition: esmwriter.hpp:66
void startRecord(const std::string &name, uint32_t flags=0)
Definition: esmwriter.cpp:89
std::ostream * mStream
Definition: esmwriter.hpp:131
void clearMaster()
Definition: esmwriter.cpp:56
void writeName(const std::string &data)
Definition: esmwriter.cpp:209
void setAuthor(const std::string &author)
Definition: esmwriter.cpp:36
void writeHNString(const std::string &name, const std::string &data)
Definition: esmwriter.cpp:158
void writeHCString(const std::string &data)
Definition: esmwriter.cpp:202
uint32_t size
Definition: esmwriter.hpp:23
std::streampos mHeaderPos
Definition: esmwriter.hpp:132
void write(const char *data, size_t size)
Definition: esmwriter.cpp:215
void setDescription(const std::string &desc)
Definition: esmwriter.cpp:41
void writeHString(const std::string &data)
Definition: esmwriter.cpp:189
void setVersion(unsigned int ver=0x3fa66666)
Definition: esmwriter.cpp:26
ToUTF8::Utf8Encoder * mEncoder
Definition: esmwriter.hpp:133
void writeHNT(const std::string &name, const T &data, int size)
Definition: esmwriter.hpp:98
Definition: esmwriter.hpp:17
void setFormat(int format)
Definition: esmwriter.cpp:51
int mRecordCount
Definition: esmwriter.hpp:134
bool mCounting
Definition: esmwriter.hpp:135
Header mHeader
Definition: esmwriter.hpp:137
void setRecordCount(int count)
Definition: esmwriter.cpp:46
unsigned int getVersion() const
Definition: esmwriter.cpp:21
void addMaster(const std::string &name, uint64_t size)
Definition: esmwriter.cpp:61
void save(std::ostream &file)
Start saving a file by writing the TES3 header.
Definition: esmwriter.cpp:69
void writeFixedSizeString(const std::string &data, int size)
Definition: esmwriter.cpp:180
void writeHNT(const std::string &name, std::string data)
Definition: esmwriter.hpp:89
void setType(int type)
Definition: esmwriter.cpp:31
void setEncoder(ToUTF8::Utf8Encoder *encoding)
Definition: esmwriter.cpp:226
ESMWriter()
Definition: esmwriter.cpp:11
void close()
Definition: esmwriter.cpp:83
void writeHNOCString(const std::string &name, const std::string &data)
Definition: esmwriter.hpp:71
void endRecord(const std::string &name)
Definition: esmwriter.cpp:132
std::list< RecordData > mRecords
Definition: esmwriter.hpp:130
Definition: esmwriter.hpp:19
void writeT(const std::string &data)
Definition: esmwriter.hpp:92
Definition: to_utf8.hpp:25
int getRecordCount()
Definition: esmwriter.hpp:45
std::string name
Definition: esmwriter.hpp:21
void writeHNCString(const std::string &name, const std::string &data)
Definition: esmwriter.hpp:60
void writeT(const T &data, size_t size)
Definition: esmwriter.hpp:112
const char * name
Definition: crashcatcher.cpp:59