A concrete implementation of StreamFactory that creates instances of StdioInputStream and StdioOutputStream.
More...
#include <bond/io/stdiostreamfactory.h>
A concrete implementation of StreamFactory that creates instances of StdioInputStream and StdioOutputStream.
◆ StdioStreamFactory()
Bond::StdioStreamFactory::StdioStreamFactory |
( |
Allocator & |
allocator, |
|
|
const char * |
rootPath = nullptr , |
|
|
StreamFactory * |
delegateFactory = nullptr , |
|
|
bool |
throwOnFailure = true |
|
) |
| |
|
inlineexplicit |
◆ ~StdioStreamFactory()
virtual Bond::StdioStreamFactory::~StdioStreamFactory |
( |
| ) |
|
|
inlinevirtual |
◆ CreateInputStream()
virtual InputStreamHandle Bond::StdioStreamFactory::CreateInputStream |
( |
const char * |
fileName | ) |
|
|
overridevirtual |
Returns an owning pointer to a dynamically allocated InputStream.
- Parameters
-
fileName | The name of the file for which an input stream is created. |
Implements Bond::StreamFactory.
◆ CreateOutputStream()
virtual OutputStreamHandle Bond::StdioStreamFactory::CreateOutputStream |
( |
const char * |
fileName, |
|
|
bool |
append = false |
|
) |
| |
|
overridevirtual |
Returns an owning pointer to a dynamically allocated OutputStream.
- Parameters
-
fileName | The name of the file for which an Output stream is created. |
append | Whether bytes are written to the end of an existing file. |
Implements Bond::StreamFactory.
◆ SetDelegateFactory()
void Bond::StdioStreamFactory::SetDelegateFactory |
( |
StreamFactory * |
delegateFactory | ) |
|
|
inline |
◆ SetRootPath()
void Bond::StdioStreamFactory::SetRootPath |
( |
const char * |
rootPath | ) |
|
|
inline |
The documentation for this class was generated from the following file:
- include/bond/io/stdiostreamfactory.h