A concrete implementation of StreamFactory that instantiates MemoryInputStreams for a fixed collection of DataViews.
More...
#include <bond/io/memorystreamfactory.h>
A concrete implementation of StreamFactory that instantiates MemoryInputStreams for a fixed collection of DataViews.
◆ MemoryStreamFactory()
◆ ~MemoryStreamFactory()
virtual Bond::MemoryStreamFactory::~MemoryStreamFactory |
( |
| ) |
|
|
inlinevirtual |
◆ CreateInputStream()
virtual InputStreamHandle Bond::MemoryStreamFactory::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::MemoryStreamFactory::CreateOutputStream |
( |
const char * |
fileName, |
|
|
bool |
append |
|
) |
| |
|
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::MemoryStreamFactory::SetDelegateFactory |
( |
StreamFactory * |
delegateFactory | ) |
|
|
inline |
The documentation for this class was generated from the following file:
- include/bond/io/memorystreamfactory.h