decBaseFileWriter Class Reference

File Writer Interface. More...

#include <decBaseFileWriter.h>

Inheritance diagram for decBaseFileWriter:
decDiscFileWriter decMemoryFileWriter

List of all members.

Public Member Functions

Constructors and Destructors
virtual ~decBaseFileWriter ()
Management
virtual const char * GetFilename ()=0
virtual void Write (void *buffer, int size)=0
 Writes 'size' bytes of 'buffer' to file and advances write pointer.
Helper Functions
void WriteChar (char Value)
 Writes one byte ( 1 byte ) to file and advances write pointer.
void WriteByte (unsigned char Value)
 Writes one unsigned byte ( 1 byte ) to file and advances write pointer.
void WriteShort (short Value)
 Writes one short ( 2 bytes ) to file and advances write pointer.
void WriteUShort (unsigned short Value)
 Writes one unsigned short ( 2 bytes ) to file and advances write pointer.
void WriteInt (int Value)
 Writes one int ( 4 bytes ) to file and advances write pointer.
void WriteUInt (unsigned int Value)
 Writes one unsigned int ( 4 bytes ) to file and advances write pointer.
void WriteFloat (float Value)
 Writes one float ( 4 bytes ) to file and advances write pointer.
void WriteString (const char *String)
 Writes string-length bytes of string to file without length field and advances write pointer.
void WriteString8 (const char *String)
 Writes string-length bytes of string to file with a 1-byte length field in front and advances write pointer.
void WriteString16 (const char *String)
 Writes string-length bytes of string to file with a 2-byte length field in front and advances write pointer.
void WriteVector (const decVector &v)
 Writes a 3-float vector to the file ( order x, y, z ) and advances write pointer.
void WriteVector2 (const decVector2 &v)
 Writes a 2-float vector to the file ( order x, y, z ) and advances write pointer.
void WriteTexel (const decTexel &t)
 Writes a 2-float texture position to the file ( order u, v ) and advances write pointer.

Detailed Description

File Writer Interface.

Author:
Plüss Roland
Version:
1.0
Date:
2008

Constructor & Destructor Documentation

virtual decBaseFileWriter::~decBaseFileWriter (  ) [virtual]

Member Function Documentation

virtual const char* decBaseFileWriter::GetFilename (  ) [pure virtual]

Implemented in decDiscFileWriter, and decMemoryFileWriter.

virtual void decBaseFileWriter::Write ( void *  buffer,
int  size 
) [pure virtual]

Writes 'size' bytes of 'buffer' to file and advances write pointer.

Implemented in decDiscFileWriter, and decMemoryFileWriter.

void decBaseFileWriter::WriteByte ( unsigned char  Value )

Writes one unsigned byte ( 1 byte ) to file and advances write pointer.

void decBaseFileWriter::WriteChar ( char  Value )

Writes one byte ( 1 byte ) to file and advances write pointer.

void decBaseFileWriter::WriteFloat ( float  Value )

Writes one float ( 4 bytes ) to file and advances write pointer.

void decBaseFileWriter::WriteInt ( int  Value )

Writes one int ( 4 bytes ) to file and advances write pointer.

void decBaseFileWriter::WriteShort ( short  Value )

Writes one short ( 2 bytes ) to file and advances write pointer.

void decBaseFileWriter::WriteString ( const char *  String )

Writes string-length bytes of string to file without length field and advances write pointer.

void decBaseFileWriter::WriteString16 ( const char *  String )

Writes string-length bytes of string to file with a 2-byte length field in front and advances write pointer.

void decBaseFileWriter::WriteString8 ( const char *  String )

Writes string-length bytes of string to file with a 1-byte length field in front and advances write pointer.

void decBaseFileWriter::WriteTexel ( const decTexel t )

Writes a 2-float texture position to the file ( order u, v ) and advances write pointer.

void decBaseFileWriter::WriteUInt ( unsigned int  Value )

Writes one unsigned int ( 4 bytes ) to file and advances write pointer.

void decBaseFileWriter::WriteUShort ( unsigned short  Value )

Writes one unsigned short ( 2 bytes ) to file and advances write pointer.

void decBaseFileWriter::WriteVector ( const decVector v )

Writes a 3-float vector to the file ( order x, y, z ) and advances write pointer.

void decBaseFileWriter::WriteVector2 ( const decVector2 v )

Writes a 2-float vector to the file ( order x, y, z ) and advances write pointer.


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