s11n::io::file_stream_factory Class Reference

This factory creates streams for URLs in the following format:. More...

#include <url.hpp>

Inheritance diagram for s11n::io::file_stream_factory:

Inheritance graph
[legend]
Collaboration diagram for s11n::io::file_stream_factory:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 file_stream_factory ()
virtual ~file_stream_factory ()

Protected Member Functions

virtual std::ostream * do_get_ostream (url_parser const &url) const
 Creates an ostream for a file:// URL.
virtual std::istream * do_get_istream (url_parser const &url) const
 Creates an istream for a file:// URL.


Detailed Description

This factory creates streams for URLs in the following format:.

file:[//]/path/to/file

It works for input and output.

If your libs11n is configured/built with s11n_CONFIG_HAVE_ZFSTREAM set to true then the zfstream library is used to support bzip2/gzip files.

Definition at line 268 of file url.hpp.


Constructor & Destructor Documentation

s11n::io::file_stream_factory::file_stream_factory (  ) 

virtual s11n::io::file_stream_factory::~file_stream_factory (  )  [virtual]


Member Function Documentation

virtual std::ostream* s11n::io::file_stream_factory::do_get_ostream ( url_parser const &  url  )  const [protected, virtual]

Creates an ostream for a file:// URL.

If your s11n is built with zfstream support, then the compressors supported by that library are supported here.

The caller owns the returned pointer, which may be 0.

Reimplemented from s11n::io::url_stream_factory.

virtual std::istream* s11n::io::file_stream_factory::do_get_istream ( url_parser const &  url  )  const [protected, virtual]

Creates an istream for a file:// URL.

If your s11n is built with zfstream support, then the compressors supported by that library are supported here.

The caller owns the returned pointer, which may be 0.

Reimplemented from s11n::io::url_stream_factory.


The documentation for this class was generated from the following file:
Generated on Wed Jun 4 21:47:46 2008 for libs11n by  doxygen 1.5.3