include/cinder/Stream.h File Reference

Go to the source code of this file.

Classes

class  cinder::StreamBase
class  cinder::OStream
class  cinder::IStream
class  cinder::IoStream
class  cinder::IStreamFile
class  cinder::OStreamFile
class  cinder::IoStreamFile
class  cinder::IStreamMem
class  cinder::OStreamMem
class  cinder::IStreamStateRestore
class  cinder::StreamExc
class  cinder::StreamExcOutOfMemory
class  cinder::cinder_stream_source
class  cinder::cinder_stream_sink
class  cinder::cinder_stream_bidirectional_device

Namespaces

namespace  cinder

Typedefs

typedef shared_ptr< class OStream > cinder::OStreamRef
typedef shared_ptr< IStream > cinder::IStreamRef
typedef shared_ptr< IoStream > cinder::IoStreamRef
typedef shared_ptr< class
IStreamFile > 
cinder::IStreamFileRef
typedef shared_ptr< class
OStreamFile > 
cinder::OStreamFileRef
typedef shared_ptr< class
IoStreamFile > 
cinder::IoStreamFileRef
typedef shared_ptr< class
IStreamMem > 
cinder::IStreamMemRef
typedef shared_ptr< OStreamMem > cinder::OStreamMemRef
typedef
boost::iostreams::stream
< cinder_stream_source > 
cinder::cinder_istream
typedef
boost::iostreams::stream
< cinder_stream_sink > 
cinder::cinder_ostream
typedef
boost::iostreams::stream
< cinder_stream_bidirectional_device > 
cinder::cinder_iostream

Functions

IStreamFileRef cinder::loadFileStream (const std::string &path)
 Opens the file lcoated at path for read access as a stream.
OStreamFileRef cinder::writeFileStream (const std::string &path, bool createParents=true)
 Opens the file located at path for write access as a stream, and creates it if it does not exist. Optionally creates any intermediate directories when createParents is true.
IoStreamFileRef cinder::readWriteFileStream (const std::string &path)
 Opens a path for read-write access as a stream.
void cinder::loadStreamMemory (IStreamRef is, shared_ptr< uint8_t > *resultData, size_t *resultDataSize)
 Loads the contents of a stream into a contiguous block of memory, pointed to by resultData. The size of this block is stored in resultDataSize.
Buffer cinder::loadStreamBuffer (IStreamRef is)
 Loads the contents of a stream into a Buffer.