File input which reads the input files from a zip file.
More...
#include <ZipFileInput.h>
File input which reads the input files from a zip file.
§ ZipFileInput()
| stromx::runtime::ZipFileInput::ZipFileInput |
( |
const std::string & |
archive | ) |
|
|
explicit |
Constructs a zip file input which reads files from a zip file.
- Parameters
-
| archive | The path to the zip file. |
- Exceptions
-
§ close()
| void stromx::runtime::ZipFileInput::close |
( |
| ) |
|
|
virtual |
Closes the file input. If this functions is not called the input is closed by the destructor.
Implements stromx::runtime::FileInput.
§ file()
| std::istream & stromx::runtime::ZipFileInput::file |
( |
| ) |
|
|
virtual |
Returns the input stream with the file representation of the data.
- Exceptions
-
| WrongState | If the input provider has not been correctly initialized or if openFile() has not been called before calling this function. |
Implements stromx::runtime::InputProvider.
§ hasFile()
| bool stromx::runtime::ZipFileInput::hasFile |
( |
| ) |
const |
|
virtual |
§ initialize()
| void stromx::runtime::ZipFileInput::initialize |
( |
const std::string & |
text, |
|
|
const std::string & |
filename |
|
) |
| |
|
virtual |
Initializes the file input to text and file data.
- Parameters
-
| text | The text data. |
| filename | The name of the file which contains the file data. Pass an empty string if no file should be provided. |
Implements stromx::runtime::FileInput.
§ openFile()
| std::istream & stromx::runtime::ZipFileInput::openFile |
( |
const OpenMode |
mode | ) |
|
|
virtual |
§ text()
| std::istream & stromx::runtime::ZipFileInput::text |
( |
| ) |
|
|
virtual |
The documentation for this class was generated from the following files: