|
OpenTTD Source
1.10.0-RC1
|
Base class for writing the header, i.e. More...
#include <strgen.h>
Public Member Functions | |
| virtual void | WriteStringID (const char *name, int stringid)=0 |
| Write the string ID. More... | |
| virtual void | Finalise (const StringData &data)=0 |
| Finalise writing the file. More... | |
| virtual | ~HeaderWriter () |
| Especially destroy the subclasses. More... | |
| void | WriteHeader (const StringData &data) |
| Write the header information. More... | |
Base class for writing the header, i.e.
the STR_XXX to numeric value.
|
inlinevirtual |
|
pure virtual |
Finalise writing the file.
| data | The data about the string. |
Implemented in HeaderFileWriter, and StringNameWriter.
| void HeaderWriter::WriteHeader | ( | const StringData & | data | ) |
Write the header information.
| data | The data about the string. |
Definition at line 846 of file strgen_base.cpp.
References StringData::max_strings, LangString::name, and StringData::strings.
|
pure virtual |
Write the string ID.
| name | The name of the string. |
| stringid | The ID of the string. |
Implemented in HeaderFileWriter, and StringNameWriter.