OpenTTD Source 20241224-master-gee860a5c8e
|
A reader that simply reads using fopen. More...
Public Member Functions | |
StringListReader (StringData &data, const LanguageStrings &strings, bool master, bool translation) | |
Create the reader. | |
std::optional< std::string > | ReadLine () override |
Read a single line from the source of strings. | |
Public Member Functions inherited from StringReader | |
StringReader (StringData &data, const std::string &file, bool master, bool translation) | |
Prepare reading. | |
void | HandleString (char *str) |
virtual void | HandlePragma (char *str) |
Handle the pragma of the file. | |
virtual void | ParseFile () |
Start parsing the file. | |
Data Fields | |
StringList::const_iterator | p |
The current location of the iteration. | |
StringList::const_iterator | end |
The end of the iteration. | |
Data Fields inherited from StringReader | |
StringData & | data |
The data to fill during reading. | |
const std::string | 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 87 of file game_text.cpp.
|
inline |
Create the reader.
data | The data to fill during reading. |
strings | The language strings we are reading. |
master | Are we reading the master file? |
translation | Are we reading a translation? |
Definition at line 98 of file game_text.cpp.
|
inlineoverridevirtual |
Read a single line from the source of strings.
Implements StringReader.
Definition at line 103 of file game_text.cpp.
StringList::const_iterator StringListReader::end |
The end of the iteration.
Definition at line 89 of file game_text.cpp.
StringList::const_iterator StringListReader::p |
The current location of the iteration.
Definition at line 88 of file game_text.cpp.