OpenTTD Source
20241108-master-g80f628063a
|
Temporarily store output. More...
Public Member Functions | |
void | Clear () |
Clear the temporary storage. | |
void | Add (const char *text, size_t length=0) |
Add text to the output storage. More... | |
void | Write (FILE *out_fp) const |
Write all stored output to the output stream. More... | |
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? More... | |
Private Attributes | |
OutputBufferVector | output_buffer |
Vector of blocks containing the stored output. | |
Temporarily store output.
Definition at line 84 of file settingsgen.cpp.
|
inline |
Add text to the output storage.
text | Text to store. |
length | Length of the text in bytes, 0 means 'length of the string'. |
Definition at line 102 of file settingsgen.cpp.
References OutputBuffer::Add(), BufferHasRoom(), OutputBuffer::Clear(), and output_buffer.
Referenced by DumpGroup(), and DumpLine().
|
inlineprivate |
Does the buffer have room without adding a new OutputBuffer block?
true
if room is available, else false
. Definition at line 136 of file settingsgen.cpp.
References output_buffer.
Referenced by Add().
|
inline |
Write all stored output to the output stream.
out_fp | Stream to write the data to. |
Definition at line 124 of file settingsgen.cpp.
References output_buffer.
Referenced by main().