![]() |
stromx
0.8.0
|
Provides functions to deserialize data from strings and files. More...
#include <InputProvider.h>
Public Types | |
| enum | OpenMode { BINARY, TEXT } |
Public Member Functions | |
| virtual std::istream & | text ()=0 |
| virtual bool | hasFile () const =0 |
| virtual std::istream & | openFile (const OpenMode mode=BINARY)=0 |
| virtual std::istream & | file ()=0 |
Provides functions to deserialize data from strings and files.
|
pure virtual |
Returns the input stream with 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::ZipFileInput, and stromx::runtime::DirectoryFileInput.
|
pure virtual |
Returns true if a file representation of the data exists.
Implemented in stromx::runtime::ZipFileInput, and stromx::runtime::DirectoryFileInput.
|
pure virtual |
Opens the file representation of the data and returns the associated input stream.
| NoInputFile | If no file is provided. |
| 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::ZipFileInput, and stromx::runtime::DirectoryFileInput.
|
pure virtual |
Returns an input stream with the text representation of the data.
| WrongState | If the input provider has not been correctly initialized. |
Implemented in stromx::runtime::ZipFileInput, and stromx::runtime::DirectoryFileInput.
1.8.12