OpenTTD
|
A reader that simply reads using fopen. More...
Public Member Functions | |
StringListReader (StringData &data, const LanguageStrings *strings, bool master, bool translation) | |
Create the reader. | |
char * | ReadLine (char *buffer, const char *last) |
Read a single line from the source of strings. | |
![]() | |
StringReader (StringData &data, const char *file, bool master, bool translation) | |
Prepare reading. | |
virtual | ~StringReader () |
Make sure the right reader gets freed. | |
void | HandleString (char *str) |
virtual void | HandlePragma (char *str) |
Handle the pragma of the file. | |
virtual void | ParseFile () |
Start parsing the file. |
Data Fields | |
const char *const * | p |
The current location of the iteration. | |
const char *const * | end |
The end of the iteration. | |
![]() | |
StringData & | data |
The data to fill during reading. | |
const char * | file |
The file we are reading. | |
bool | master |
Are we reading the master file? | |
bool | translation |
Are we reading a translation, implies !master. However, the base translation will have this false. |
A reader that simply reads using fopen.
Definition at line 138 of file game_text.cpp.
|
inline |
Create the reader.
data | The data to fill during reading. |
file | The file we are reading. |
master | Are we reading the master file? |
translation | Are we reading a translation? |
Definition at line 149 of file game_text.cpp.
|
inlinevirtual |
Read a single line from the source of strings.
buffer | The buffer to read the data in to. |
last | The last element in the buffer. |
Implements StringReader.
Definition at line 154 of file game_text.cpp.