doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
idFile Class Reference

#include <File.h>

Inheritance diagram for idFile:
idCompressor idDemoFile idFile_BitMsg idFile_InZip idFile_Memory idFile_Permanent idCompressor_None idCompressor_BitStream idCompressor_Huffman idCompressor_Arithmetic idCompressor_LZSS idCompressor_LZW idCompressor_RunLength idCompressor_RunLength_ZeroBased idCompressor_LZSS_WordAligned

Public Member Functions

virtual ~idFile (void)
 
virtual const char * GetName (void)
 
virtual const char * GetFullPath (void)
 
virtual int Read (void *buffer, int len)
 
virtual int Write (const void *buffer, int len)
 
virtual int Length (void)
 
virtual ID_TIME_T Timestamp (void)
 
virtual int Tell (void)
 
virtual void ForceFlush (void)
 
virtual void Flush (void)
 
virtual int Seek (long offset, fsOrigin_t origin)
 
virtual void Rewind (void)
 
virtual int Printf (const char *fmt,...) id_attribute((format(printf
 
virtual int virtual int VPrintf (const char *fmt, va_list arg)
 
virtual int WriteFloatString (const char *fmt,...) id_attribute((format(printf
 
virtual int virtual int ReadInt (int &value)
 
virtual int ReadUnsignedInt (unsigned int &value)
 
virtual int ReadShort (short &value)
 
virtual int ReadUnsignedShort (unsigned short &value)
 
virtual int ReadChar (char &value)
 
virtual int ReadUnsignedChar (unsigned char &value)
 
virtual int ReadFloat (float &value)
 
virtual int ReadBool (bool &value)
 
virtual int ReadString (idStr &string)
 
virtual int ReadVec2 (idVec2 &vec)
 
virtual int ReadVec3 (idVec3 &vec)
 
virtual int ReadVec4 (idVec4 &vec)
 
virtual int ReadVec6 (idVec6 &vec)
 
virtual int ReadMat3 (idMat3 &mat)
 
virtual int WriteInt (const int value)
 
virtual int WriteUnsignedInt (const unsigned int value)
 
virtual int WriteShort (const short value)
 
virtual int WriteUnsignedShort (unsigned short value)
 
virtual int WriteChar (const char value)
 
virtual int WriteUnsignedChar (const unsigned char value)
 
virtual int WriteFloat (const float value)
 
virtual int WriteBool (const bool value)
 
virtual int WriteString (const char *string)
 
virtual int WriteVec2 (const idVec2 &vec)
 
virtual int WriteVec3 (const idVec3 &vec)
 
virtual int WriteVec4 (const idVec4 &vec)
 
virtual int WriteVec6 (const idVec6 &vec)
 
virtual int WriteMat3 (const idMat3 &mat)
 

Detailed Description

Definition at line 50 of file File.h.

Constructor & Destructor Documentation

virtual idFile::~idFile ( void  )
inlinevirtual

Definition at line 52 of file File.h.

Member Function Documentation

void idFile::Flush ( void  )
virtual

Reimplemented in idFile_InZip, idFile_Permanent, idFile_BitMsg, idFile_Memory, idCompressor, and idCompressor_None.

Definition at line 234 of file File.cpp.

void idFile::ForceFlush ( void  )
virtual

Reimplemented in idFile_InZip, idFile_Permanent, idFile_BitMsg, idFile_Memory, idCompressor, and idCompressor_None.

Definition at line 226 of file File.cpp.

const char * idFile::GetFullPath ( void  )
virtual
const char * idFile::GetName ( void  )
virtual
int idFile::Length ( void  )
virtual

Reimplemented in idFile_InZip, idFile_Permanent, idFile_BitMsg, idFile_Memory, idCompressor, and idCompressor_None.

Definition at line 199 of file File.cpp.

int idFile::Printf ( const char *  fmt,
  ... 
)
virtual

Definition at line 260 of file File.cpp.

int idFile::Read ( void buffer,
int  len 
)
virtual
int idFile::ReadBool ( bool value)
virtual

Definition at line 384 of file File.cpp.

int idFile::ReadChar ( char &  value)
virtual

Definition at line 355 of file File.cpp.

int idFile::ReadFloat ( float value)
virtual

Definition at line 373 of file File.cpp.

int idFile::ReadInt ( int value)
virtual

Definition at line 311 of file File.cpp.

int idFile::ReadMat3 ( idMat3 mat)
virtual

Definition at line 457 of file File.cpp.

int idFile::ReadShort ( short &  value)
virtual

Definition at line 333 of file File.cpp.

int idFile::ReadString ( idStr string)
virtual

Definition at line 396 of file File.cpp.

int idFile::ReadUnsignedChar ( unsigned char &  value)
virtual

Definition at line 364 of file File.cpp.

int idFile::ReadUnsignedInt ( unsigned int value)
virtual

Definition at line 322 of file File.cpp.

int idFile::ReadUnsignedShort ( unsigned short &  value)
virtual

Definition at line 344 of file File.cpp.

int idFile::ReadVec2 ( idVec2 vec)
virtual

Definition at line 413 of file File.cpp.

int idFile::ReadVec3 ( idVec3 vec)
virtual

Definition at line 424 of file File.cpp.

int idFile::ReadVec4 ( idVec4 vec)
virtual

Definition at line 435 of file File.cpp.

int idFile::ReadVec6 ( idVec6 vec)
virtual

Definition at line 446 of file File.cpp.

void idFile::Rewind ( void  )
virtual

Definition at line 251 of file File.cpp.

int idFile::Seek ( long  offset,
fsOrigin_t  origin 
)
virtual

Reimplemented in idFile_InZip, idFile_Permanent, idFile_BitMsg, idFile_Memory, idCompressor, and idCompressor_None.

Definition at line 242 of file File.cpp.

int idFile::Tell ( void  )
virtual

Reimplemented in idFile_InZip, idFile_Permanent, idFile_BitMsg, idFile_Memory, idCompressor, and idCompressor_None.

Definition at line 217 of file File.cpp.

ID_TIME_T idFile::Timestamp ( void  )
virtual

Reimplemented in idFile_InZip, idFile_Permanent, idFile_BitMsg, idFile_Memory, idCompressor, and idCompressor_None.

Definition at line 208 of file File.cpp.

int idFile::VPrintf ( const char *  fmt,
va_list  arg 
)
virtual

Definition at line 281 of file File.cpp.

int idFile::Write ( const void buffer,
int  len 
)
virtual
int idFile::WriteBool ( const bool  value)
virtual

Definition at line 536 of file File.cpp.

int idFile::WriteChar ( const char  value)
virtual

Definition at line 508 of file File.cpp.

int idFile::WriteFloat ( const float  value)
virtual

Definition at line 526 of file File.cpp.

int idFile::WriteFloatString ( const char *  fmt,
  ... 
)
virtual

Definition at line 294 of file File.cpp.

int idFile::WriteInt ( const int  value)
virtual

Definition at line 468 of file File.cpp.

int idFile::WriteMat3 ( const idMat3 mat)
virtual

Definition at line 603 of file File.cpp.

int idFile::WriteShort ( const short  value)
virtual

Definition at line 488 of file File.cpp.

int idFile::WriteString ( const char *  string)
virtual

Definition at line 546 of file File.cpp.

int idFile::WriteUnsignedChar ( const unsigned char  value)
virtual

Definition at line 517 of file File.cpp.

int idFile::WriteUnsignedInt ( const unsigned int  value)
virtual

Definition at line 478 of file File.cpp.

int idFile::WriteUnsignedShort ( unsigned short  value)
virtual

Definition at line 498 of file File.cpp.

int idFile::WriteVec2 ( const idVec2 vec)
virtual

Definition at line 559 of file File.cpp.

int idFile::WriteVec3 ( const idVec3 vec)
virtual

Definition at line 570 of file File.cpp.

int idFile::WriteVec4 ( const idVec4 vec)
virtual

Definition at line 581 of file File.cpp.

int idFile::WriteVec6 ( const idVec6 vec)
virtual

Definition at line 592 of file File.cpp.


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