diff options
Diffstat (limited to 'backends/fs/abstract-fs.h')
-rw-r--r-- | backends/fs/abstract-fs.h | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/backends/fs/abstract-fs.h b/backends/fs/abstract-fs.h index d81e7f36b0..73fae24373 100644 --- a/backends/fs/abstract-fs.h +++ b/backends/fs/abstract-fs.h @@ -162,9 +162,24 @@ public: */ virtual bool isWritable() const = 0; - /* TODO: - bool isFile(); - */ + + /** + * Creates a SeekableReadStream instance corresponding to the file + * referred by this node. This assumes that the node actually refers + * to a readable file. If this is not the case, 0 is returned. + * + * @return pointer to the stream object, 0 in case of a failure + */ + virtual Common::SeekableReadStream *openForReading(); + + /** + * Creates a WriteStream instance corresponding to the file + * referred by this node. This assumes that the node actually refers + * to a readable file. If this is not the case, 0 is returned. + * + * @return pointer to the stream object, 0 in case of a failure + */ + virtual Common::WriteStream *openForWriting(); }; |