Cinder  0.9.1
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
cinder::DataSource Class Referenceabstract

#include <DataSource.h>

Inherited by cinder::DataSourceBuffer, cinder::DataSourcePath, and cinder::DataSourceUrl.

Public Member Functions

virtual bool isFilePath ()=0
 
virtual bool isUrl ()=0
 
const fs::path & getFilePath ()
 
const UrlgetUrl ()
 
const fs::path & getFilePathHint ()
 
BufferRef getBuffer ()
 
virtual IStreamRef createStream ()=0
 

Protected Member Functions

 DataSource (const fs::path &aFilePath, const Url &aUrl)
 
virtual ~DataSource ()
 
virtual void createBuffer ()=0
 
void setFilePathHint (const fs::path &aFilePathHint)
 

Protected Attributes

BufferRef mBuffer
 
fs::path mFilePath
 
fs::path mFilePathHint
 
Url mUrl
 

Constructor & Destructor Documentation

cinder::DataSource::DataSource ( const fs::path &  aFilePath,
const Url aUrl 
)
protected
virtual cinder::DataSource::~DataSource ( )
protectedvirtual

Member Function Documentation

virtual bool cinder::DataSource::isFilePath ( )
pure virtual
virtual bool cinder::DataSource::isUrl ( )
pure virtual
const fs::path & cinder::DataSource::getFilePath ( )
const Url & cinder::DataSource::getUrl ( )
const fs::path & cinder::DataSource::getFilePathHint ( )
BufferRef cinder::DataSource::getBuffer ( )
virtual IStreamRef cinder::DataSource::createStream ( )
pure virtual
virtual void cinder::DataSource::createBuffer ( )
protectedpure virtual
void cinder::DataSource::setFilePathHint ( const fs::path &  aFilePathHint)
protected

Member Data Documentation

BufferRef cinder::DataSource::mBuffer
protected
fs::path cinder::DataSource::mFilePath
protected
fs::path cinder::DataSource::mFilePathHint
protected
Url cinder::DataSource::mUrl
protected

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