Pyro higlevel network API
Public Member Functions | List of all members
net::Datafactory Class Reference

Public Member Functions

 Datafactory ()
 
 ~Datafactory ()
 
os::SeekableIO * CreateStream (Url &cUrl)
 

Constructor & Destructor Documentation

Datafactory::Datafactory ( )
Datafactory::~Datafactory ( )

Member Function Documentation

os::SeekableIO * Datafactory::CreateStream ( Url cUrl)
Description:
Creates a SeekableIO stream of the appropriate type specified by the protocol part of the cUrl. E.g. the URL "http://www.example.com/file.html" will cause an HTTPstream to be created, whilst "file:///home/user/file.txt" will cause an os::File object to be created. Currently only http:// and file:// are understood.
Parameters
cUrlThe URL of the file. The protocol must be valid and one of either http:// or file:// The SeekableIO object returned by this method is owned by the caller and should be deleted when the stream is no longer required.
Author
Kristian Van Der Vliet (vande.nosp@m.rs@l.nosp@m.iqwyd.nosp@m..com)