Public Member Functions | Static Public Member Functions
zorba::StreamResource Class Reference

Concrete Resource subclass representing access to an entity via a stream. More...

#include <zorba/uri_resolvers.h>

Inheritance diagram for zorba::StreamResource:
Inheritance graph
[legend]
Collaboration diagram for zorba::StreamResource:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual std::istream * getStream ()=0
 Retrieve the istream associated with this Resource.
virtual StreamReleaser getStreamReleaser ()=0
 Retrieve the stream-releaser function.
virtual ~StreamResource ()=0

Static Public Member Functions

static StreamResourcecreate (std::istream *aStream, StreamReleaser aStreamReleaser)
 Public factory method from istream.

Detailed Description

Concrete Resource subclass representing access to an entity via a stream.


Constructor & Destructor Documentation

virtual zorba::StreamResource::~StreamResource ( ) [pure virtual]

Member Function Documentation

static StreamResource* zorba::StreamResource::create ( std::istream *  aStream,
StreamReleaser  aStreamReleaser 
) [static]

Public factory method from istream.

The Resource object will take memory ownership of the istream. Zorba will pass it to aStreamReleaser when it is no longer needed, so that the original client may delete it.

Parameters:
aStreamAn istream whence to read the string's content.
aStreamReleaserA function pointer which is invoked once the StreamResource is destroyed. Normally this function will delete the std::istream object passed to it.
Examples:
context.cpp, and external_functions.cpp.
virtual std::istream* zorba::StreamResource::getStream ( ) [pure virtual]

Retrieve the istream associated with this Resource.

virtual StreamReleaser zorba::StreamResource::getStreamReleaser ( ) [pure virtual]

Retrieve the stream-releaser function.


The documentation for this class was generated from the following file:
blog comments powered by Disqus