![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
Interface for writing documentation output. More...
#include <documentwriter.h>
Public Member Functions | |
| virtual | ~DocumentWriter ()=default |
| virtual void | write (QStringView content)=0 |
| Writes content to the output without a trailing newline. | |
| virtual void | writeLine (QStringView content={})=0 |
| Writes content to the output followed by a newline. | |
| virtual bool | isOpen () const =0 |
Returns true if a document is currently open for writing. | |
| virtual QString | currentFileName () const =0 |
| Returns the file name of the currently open document, or an empty string if no document is open. | |
Interface for writing documentation output.
DocumentWriter abstracts the output destination for documentation generators, enabling:
\list
This interface replaces Generator::out() which was coupled to a QTextStream stack managed by beginSubPage()/endSubPage().
Definition at line 42 of file documentwriter.h.
|
virtualdefault |
|
nodiscardpure virtual |
Returns the file name of the currently open document, or an empty string if no document is open.
Implemented in FileDocumentWriter.
|
nodiscardpure virtual |
Returns true if a document is currently open for writing.
Implemented in FileDocumentWriter.
|
pure virtual |
Writes content to the output without a trailing newline.
Implemented in FileDocumentWriter.
|
pure virtual |
Writes content to the output followed by a newline.
Implemented in FileDocumentWriter.