A format-bound byte writer that can only be invoked by run_export. More...
#include <export_plan.hpp>
Public Types | |
| using | Function |
Public Member Functions | |
| FormatBoundExportWriter ()=default | |
| FormatBoundExportWriter (Format format, Function function) | |
| operator bool () const noexcept | |
| Format | format () const noexcept |
Friends | |
| runtime::Result< ExportArtifacts, ExportError > | run_export (const ExportPlan &plan, const ExportOptions &options, const FormatBoundExportWriter &writer) |
| Execute through a format-bound writer. | |
A format-bound byte writer that can only be invoked by run_export.
Binding the format prevents a plan for one format from authorizing bytes produced by another. Keeping invocation private preserves the plan -> consent -> write sequence mechanically: callers can choose or pass a writer, but cannot execute its callable directly.
|
default |
|
inline |
|
inlinenoexcept |
|
inlineexplicitnoexcept |
|
friend |
Execute through a format-bound writer.
New adapters should expose this overload so a plan for one format cannot authorize another format's bytes.