|
OpenTTD Source 20260206-master-g4d4e37dbf1
|
Temporarily store output. More...
Public Member Functions | |
| void | Clear () |
| Clear the temporary storage. | |
| void | Add (std::string_view text) |
| Add text to the output storage. | |
| void | Write (FILE *out_fp) const |
| Write all stored output to the output stream. | |
Private Types | |
| typedef std::vector< OutputBuffer > | OutputBufferVector |
| Vector type for output buffers. | |
Private Member Functions | |
| bool | BufferHasRoom () const |
| Does the buffer have room without adding a new OutputBuffer block? | |
Private Attributes | |
| OutputBufferVector | output_buffer |
| Vector of blocks containing the stored output. | |
Temporarily store output.
Definition at line 82 of file settingsgen.cpp.
|
private |
Vector type for output buffers.
Definition at line 135 of file settingsgen.cpp.
|
inline |
Definition at line 84 of file settingsgen.cpp.
|
inline |
Add text to the output storage.
| text | Text to store. |
Definition at line 99 of file settingsgen.cpp.
References OutputBuffer::Add(), OutputBuffer::Clear(), and output_buffer.
Referenced by DumpLine().
|
inlineprivate |
Does the buffer have room without adding a new OutputBuffer block?
true if room is available, else false. Definition at line 129 of file settingsgen.cpp.
References output_buffer.
|
inline |
Clear the temporary storage.
Definition at line 90 of file settingsgen.cpp.
References output_buffer.
|
inline |
Write all stored output to the output stream.
| out_fp | Stream to write the data to. |
Definition at line 117 of file settingsgen.cpp.
References output_buffer.
|
private |
Vector of blocks containing the stored output.
Definition at line 136 of file settingsgen.cpp.
Referenced by Add(), BufferHasRoom(), Clear(), and Write().