Rosetta  2020.37
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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>

Inheritance diagram for basic::resource_manager::ResourceStream:
Inheritance graph
[legend]

Public Member Functions

 ~ResourceStream () override
 
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::VirtualBase
 VirtualBase ()=default
 Default constructor. More...
 
virtual ~VirtualBase ()=default
 The virtual destructor is one of the main reasons for the VirtualBase class. More...
 
 VirtualBase (VirtualBase const &)=default
 
 VirtualBase (VirtualBase &&)=default
 
VirtualBaseoperator= (VirtualBase const &)=default
 
VirtualBaseoperator= (VirtualBase &&)=default
 

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 ( )
overridedefault

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: