TuttleOFX
1
|
Output Stream for writing files. More...
#include <DPXStream.h>
Public Types | |
enum | Origin { kStart, kCurrent, kEnd } |
file pointing positioning offset More... | |
Public Member Functions | |
OutStream () | |
Constructor. | |
virtual | ~OutStream () |
Destructor. | |
virtual bool | Open (const char *fn) |
Open file. | |
virtual void | Close () |
Close file. | |
virtual size_t | Write (void *buf, const size_t size) |
Write data to file. | |
virtual bool | Seek (long offset, Origin origin) |
Seek to a position in the file. | |
virtual void | Flush () |
Flush any buffers. | |
Protected Attributes | |
FILE * | fp |
Output Stream for writing files.
Definition at line 135 of file DPXStream.h.
enum OutStream::Origin |
file pointing positioning offset
Definition at line 144 of file DPXStream.h.
OutStream::OutStream | ( | ) |
Constructor.
Definition at line 41 of file OutStream.cpp.
OutStream::~OutStream | ( | ) | [virtual] |
Destructor.
Definition at line 46 of file OutStream.cpp.
void OutStream::Close | ( | ) | [virtual] |
Close file.
Definition at line 62 of file OutStream.cpp.
References fp.
Referenced by Open(), and tuttle::plugin::dpx::writer::DPXWriterPlugin::render().
void OutStream::Flush | ( | ) | [virtual] |
bool OutStream::Open | ( | const char * | fn | ) | [virtual] |
Open file.
fn | File name |
Definition at line 51 of file OutStream.cpp.
Referenced by tuttle::plugin::dpx::writer::DPXWriterPlugin::render().
bool OutStream::Seek | ( | long | offset, |
Origin | origin | ||
) | [virtual] |
Seek to a position in the file.
offset | offset from originating position |
origin | originating position |
Definition at line 80 of file OutStream.cpp.
References fp, kCurrent, kEnd, and kStart.
Referenced by dpx::Header::WriteOffsetData().
size_t OutStream::Write | ( | void * | buf, |
const size_t | size | ||
) | [virtual] |
Write data to file.
buf | data buffer |
size | bytes to write |
Definition at line 72 of file OutStream.cpp.
References fp.
Referenced by dpx::Header::Write(), dpx::WriteBuffer(), dpx::WriteFloatBuffer(), and dpx::Header::WriteOffsetData().
FILE* OutStream::fp [protected] |