File input which reads the input files from a common directory.
More...
#include <DirectoryFileInput.h>
File input which reads the input files from a common directory.
§ DirectoryFileInput()
| stromx::runtime::DirectoryFileInput::DirectoryFileInput |
( |
const std::string & |
directory | ) |
|
|
inlineexplicit |
Constructs a directory file input which reads files from a directory.
- Parameters
-
| directory | The path to the directory. |
§ close()
| void stromx::runtime::DirectoryFileInput::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::DirectoryFileInput::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::DirectoryFileInput::hasFile |
( |
| ) |
const |
|
virtual |
§ initialize()
| void stromx::runtime::DirectoryFileInput::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::DirectoryFileInput::openFile |
( |
const OpenMode |
mode | ) |
|
|
virtual |
§ text()
| std::istream & stromx::runtime::DirectoryFileInput::text |
( |
| ) |
|
|
virtual |
The documentation for this class was generated from the following files: