![]() |
stromx
0.8.0
|
Provides functions to serialize data to strings and files. More...
#include <OutputProvider.h>
Public Types | |
| enum | OpenMode { BINARY, TEXT } |
Public Member Functions | |
| virtual std::ostream & | text ()=0 |
| virtual std::ostream & | openFile (const std::string &ext="", const OpenMode mode=BINARY)=0 |
| virtual std::ostream & | file ()=0 |
Provides functions to serialize data to strings and files.
|
pure virtual |
Returns the output stream which accepts the file representation of the data.
| WrongState | If the input provider has not been correctly initialized or if openFile() has not been called before calling this function. |
Implemented in stromx::runtime::ZipFileOutput, and stromx::runtime::DirectoryFileOutput.
|
pure virtual |
Opens the file representation of the data and returns the associated output stream.
| WrongState | If the input provider has not been correctly initialized or if this function has already been called. |
| FileAccessFailed | If the file could not be opened. |
Implemented in stromx::runtime::ZipFileOutput, and stromx::runtime::DirectoryFileOutput.
|
pure virtual |
Returns an output stream which accepts the text representation of the data.
| WrongState | If the input provider has not been correctly initialized. |
Implemented in stromx::runtime::ZipFileOutput, and stromx::runtime::DirectoryFileOutput.
1.8.12