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

#include <DemoFile.h>

Inheritance diagram for idDemoFile:
idFile

Public Member Functions

 idDemoFile ()
 
 ~idDemoFile ()
 
const char * GetName (void)
 
const char * GetFullPath (void)
 
void SetLog (bool b, const char *p)
 
void Log (const char *p)
 
bool OpenForReading (const char *fileName)
 
bool OpenForWriting (const char *fileName)
 
void Close ()
 
const char * ReadHashString ()
 
void WriteHashString (const char *str)
 
void ReadDict (idDict &dict)
 
void WriteDict (const idDict &dict)
 
int Read (void *buffer, int len)
 
int Write (const void *buffer, int len)
 
- Public Member Functions inherited from idFile
virtual ~idFile (void)
 
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)
 

Static Private Member Functions

static idCompressorAllocCompressor (int type)
 

Private Attributes

bool writing
 
bytefileImage
 
idFilef
 
idCompressorcompressor
 
idList< idStr * > demoStrings
 
idFilefLog
 
bool log
 
idStr logStr
 

Static Private Attributes

static idCVar com_logDemos
 
static idCVar com_compressDemos
 
static idCVar com_preloadDemos
 

Detailed Description

Definition at line 47 of file DemoFile.h.

Constructor & Destructor Documentation

idDemoFile::idDemoFile ( )

Definition at line 43 of file DemoFile.cpp.

idDemoFile::~idDemoFile ( )

Definition at line 57 of file DemoFile.cpp.

Member Function Documentation

idCompressor * idDemoFile::AllocCompressor ( int  type)
staticprivate

Definition at line 66 of file DemoFile.cpp.

void idDemoFile::Close ( void  )

Definition at line 182 of file DemoFile.cpp.

const char* idDemoFile::GetFullPath ( void  )
inlinevirtual

Reimplemented from idFile.

Definition at line 53 of file DemoFile.h.

const char* idDemoFile::GetName ( void  )
inlinevirtual

Reimplemented from idFile.

Definition at line 52 of file DemoFile.h.

void idDemoFile::Log ( const char *  p)

Definition at line 142 of file DemoFile.cpp.

bool idDemoFile::OpenForReading ( const char *  fileName)

Definition at line 81 of file DemoFile.cpp.

bool idDemoFile::OpenForWriting ( const char *  fileName)

Definition at line 153 of file DemoFile.cpp.

int idDemoFile::Read ( void buffer,
int  len 
)
virtual

Reimplemented from idFile.

Definition at line 309 of file DemoFile.cpp.

void idDemoFile::ReadDict ( idDict dict)

Definition at line 275 of file DemoFile.cpp.

const char * idDemoFile::ReadHashString ( )

Definition at line 212 of file DemoFile.cpp.

void idDemoFile::SetLog ( bool  b,
const char *  p 
)

Definition at line 130 of file DemoFile.cpp.

int idDemoFile::Write ( const void buffer,
int  len 
)
virtual

Reimplemented from idFile.

Definition at line 322 of file DemoFile.cpp.

void idDemoFile::WriteDict ( const idDict dict)

Definition at line 293 of file DemoFile.cpp.

void idDemoFile::WriteHashString ( const char *  str)

Definition at line 248 of file DemoFile.cpp.

Member Data Documentation

idCVar idDemoFile::com_compressDemos
staticprivate

Definition at line 84 of file DemoFile.h.

idCVar idDemoFile::com_logDemos
staticprivate

Definition at line 83 of file DemoFile.h.

idCVar idDemoFile::com_preloadDemos
staticprivate

Definition at line 85 of file DemoFile.h.

idCompressor* idDemoFile::compressor
private

Definition at line 76 of file DemoFile.h.

idList<idStr*> idDemoFile::demoStrings
private

Definition at line 78 of file DemoFile.h.

idFile* idDemoFile::f
private

Definition at line 75 of file DemoFile.h.

byte* idDemoFile::fileImage
private

Definition at line 74 of file DemoFile.h.

idFile* idDemoFile::fLog
private

Definition at line 79 of file DemoFile.h.

bool idDemoFile::log
private

Definition at line 80 of file DemoFile.h.

idStr idDemoFile::logStr
private

Definition at line 81 of file DemoFile.h.

bool idDemoFile::writing
private

Definition at line 73 of file DemoFile.h.


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