![]() |
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 documentation output producers. More...
#include <outputproducer.h>
Public Member Functions | |
| virtual | ~OutputProducer ()=default |
| virtual QString | format () const =0 |
| Returns the format identifier for this producer (e.g., "HTML", "DocBook", "template"). | |
| virtual void | prepare ()=0 |
| Prepares the producer for an output run. | |
| virtual void | produce ()=0 |
| Produces documentation output. | |
| virtual void | finalize ()=0 |
| Finalizes output production. | |
Interface for documentation output producers.
OutputProducer defines the minimal contract for classes that generate documentation output. This interface decouples the generation lifecycle from any particular implementation, enabling both stateful and stateless producers to participate in QDoc's output pipeline.
Implementations are selected using their format() identifier.
A producer instance owns exactly one output run: one format, one qdocconf, one QDoc pass. The driver constructs a fresh instance for each run and invokes the full prepare()/produce()/finalize() lifecycle only while Config::generating(). During the prepare pass (a dual-exec -prepare run, or the prepare half of a -single-exec run) the driver skips the lifecycle entirely, so an implementation must not rely on state carried across passes.
Definition at line 33 of file outputproducer.h.
|
virtualdefault |
|
pure virtual |
Finalizes output production.
Called once per format at the end of the run.
Implemented in Generator, and TemplateGenerator.
|
nodiscardpure virtual |
Returns the format identifier for this producer (e.g., "HTML", "DocBook", "template").
Used for format selection and matching. The identifier is case-sensitive and must match the value used in configuration files.
Implemented in DocBookGenerator, Generator, HtmlGenerator, TemplateGenerator, and WebXMLGenerator.
|
pure virtual |
Prepares the producer for an output run.
Called once per format after configuration is loaded.
Implemented in Generator, and TemplateGenerator.
|
pure virtual |
Produces documentation output.
Called after prepare() to create the actual documentation files.
Implemented in Generator, and TemplateGenerator.