Owner-facing creator object for standard I/O-oriented streams. More...
#include <stream_io_creator.h>
Data Fields | |
| stream_status_t(* | create )(const void *ud, stream_io_kind_t kind, stream_t **out) |
| Create a standard I/O-oriented stream. | |
| void * | ud |
Opaque context bound to create. | |
A stream_io_creator_t packages:
Such an object is typically prepared by the Composition Root and then injected into owner-side runtime code that needs to create standard input/output/error stream_t instances without depending directly on factory wiring details.
Definition at line 51 of file stream_io_creator.h.
| stream_status_t(* stream_io_creator_t::create) (const void *ud, stream_io_kind_t kind, stream_t **out) |
| [in] | ud | Opaque creator-owned context. |
| [in] | kind | Requested standard I/O kind. |
| [out] | out | Receives the created stream handle. |
stream_status_t describing the creation result. Definition at line 67 of file stream_io_creator.h.
| void* stream_io_creator_t::ud |
This pointer typically hides Composition Root wiring details such as a factory reference and the associated adapter key.
Definition at line 79 of file stream_io_creator.h.