Rosetta Utilities  2014.35
Public Member Functions | List of all members
basic::resource_manager::ResourceStream Class Referenceabstract

The ResourceStream represents an abstract class for packaging up a standard istream so that data that the ResourceLocator needs to deliver to a ResourceLoader can come from arbitrary sources (e.g. from either a file or from a database). More...

#include <ResourceLocator.hh>

Public Member Functions

virtual ~ResourceStream ()
 
virtual std::istream & stream ()=0
 Return an istream reference so that the ResourceLoader can access arbitrary data returned by the ResourceLocator. More...
 
- Public Member Functions inherited from utility::pointer::ReferenceCount
void ctor ()
 
virtual ~ReferenceCount ()
 Destructor. More...
 
Size ref_count () const
 Reference count. More...
 

Additional Inherited Members

- Public Types inherited from utility::pointer::ReferenceCount
typedef platform::Size Size
 
typedef platform::Size size_type
 
- Protected Member Functions inherited from utility::pointer::ReferenceCount
 ReferenceCount ()
 Default constructor. More...
 
 ReferenceCount (ReferenceCount const &)
 Copy constructor. More...
 
ReferenceCountoperator= (ReferenceCount const &)
 Copy assignment. More...
 

Detailed Description

The ResourceStream represents an abstract class for packaging up a standard istream so that data that the ResourceLocator needs to deliver to a ResourceLoader can come from arbitrary sources (e.g. from either a file or from a database).

Constructor & Destructor Documentation

basic::resource_manager::ResourceStream::~ResourceStream ( )
virtual

Member Function Documentation

virtual std::istream& basic::resource_manager::ResourceStream::stream ( )
pure virtual

Return an istream reference so that the ResourceLoader can access arbitrary data returned by the ResourceLocator.

Implemented in basic::resource_manager::locator::StringResourceStream, basic::resource_manager::locator::FileStream, and basic::resource_manager::locator::NullStream.


The documentation for this class was generated from the following files: