Cortex  10.0.0-a4
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
IECore::StreamIndexedIO::StreamFile Class Reference

Class that provides access to the stream file. More...

#include <StreamIndexedIO.h>

+ Inheritance diagram for IECore::StreamIndexedIO::StreamFile:

Public Types

typedef tbb::recursive_mutex Mutex
 
typedef Mutex::scoped_lock MutexLock
 
- Public Types inherited from IECore::RefCounted
typedef size_t RefCount
 

Public Member Functions

void seekg (size_t pos, std::ios_base::seekdir dir)
 
void seekp (size_t pos, std::ios_base::seekdir dir)
 
void read (char *buffer, size_t size)
 
void write (const char *buffer, size_t size)
 
Imf::Int64 tellg ()
 
Imf::Int64 tellp ()
 
IndexedIO::OpenMode openMode () const
 
Mutex & mutex ()
 
char * ioBuffer (unsigned long size)
 
virtual void flush (size_t endPosition)
 called after the main index is saved to disk, ready to close the file.
 
- Public Member Functions inherited from IECore::RefCounted
 IE_CORE_DECLAREMEMBERPTR (RefCounted)
 
void addRef () const
 Add a reference to the current object.
 
void removeRef () const
 Remove a reference from the current object.
 
RefCount refCount () const
 Returns the current reference count.
 

Static Public Member Functions

static bool canRead (std::iostream &stream)
 

Protected Member Functions

 StreamFile (IndexedIO::OpenMode mode)
 
void setStream (std::iostream *stream, bool emptyFile)
 called once after construction. Assigns a stream and tells if the stream is empty.
 

Protected Attributes

IndexedIO::OpenMode m_openmode
 
std::iostream * m_stream
 
Mutex m_mutex
 
unsigned long m_ioBufferLen
 
char * m_ioBuffer
 

Detailed Description

Class that provides access to the stream file.


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