strigi/src/streams
Strigi::StreamOpener Class Reference
Abstract class that defines an interface for opening streams and statting files. More...
#include <archivereader.h>

Public Member Functions | |
| virtual | ~StreamOpener () |
| virtual InputStream * | openStream (const std::string &url)=0 |
| virtual int | stat (const std::string &url, EntryInfo &e)=0 |
Detailed Description
Abstract class that defines an interface for opening streams and statting files.
Definition at line 33 of file archivereader.h.
Constructor & Destructor Documentation
| virtual Strigi::StreamOpener::~StreamOpener | ( | ) | [inline, virtual] |
Default constructor: doesn't do anything.
Definition at line 36 of file archivereader.h.
Member Function Documentation
| virtual InputStream* Strigi::StreamOpener::openStream | ( | const std::string & | url | ) | [pure virtual] |
Opens a stream for the given url.
What is meant by url will depend on context. In the context of an archive with a file system-like directory stucture, it will be the path to the file relative the root of the archive (eg: /foo/bar).
- Parameters:
-
url unique name of or path to an item
- Returns:
- a stream representing the item given by
url
Implemented in Strigi::ArchiveReader, and Strigi::FileStreamOpener.
| virtual int Strigi::StreamOpener::stat | ( | const std::string & | url, | |
| EntryInfo & | e | |||
| ) | [pure virtual] |
Gets information about a given url.
What is meant by url will depend on context. In the context of an archive with a file system-like directory stucture, it will be the path to the file relative the root of the archive (eg: /foo/bar).
- Parameters:
-
url unique name of or path to an item e an EntryInfo object to populate with information about the item given by url
- Returns:
- 0 if information about the item was found, -1 on error
Implemented in Strigi::ArchiveReader, and Strigi::FileStreamOpener.
The documentation for this class was generated from the following file:
KDE 4.4 API Reference