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

#include <File.h>

Inheritance diagram for idFile_Memory:
idFile

Public Member Functions

 idFile_Memory (void)
 
 idFile_Memory (const char *name)
 
 idFile_Memory (const char *name, char *data, int length)
 
 idFile_Memory (const char *name, const char *data, int length)
 
virtual ~idFile_Memory (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 MakeReadOnly (void)
 
virtual void Clear (bool freeMemory=true)
 
void SetData (const char *data, int length)
 
const char * GetDataPtr (void) const
 
void SetGranularity (int g)
 
- Public Member Functions inherited from idFile
virtual ~idFile (void)
 
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)
 

Private Attributes

idStr name
 
int mode
 
int maxSize
 
int fileSize
 
int allocated
 
int granularity
 
char * filePtr
 
char * curPtr
 

Friends

class idFileSystemLocal
 

Detailed Description

Definition at line 116 of file File.h.

Constructor & Destructor Documentation

idFile_Memory::idFile_Memory ( void  )

Definition at line 623 of file File.cpp.

idFile_Memory::idFile_Memory ( const char *  name)

Definition at line 640 of file File.cpp.

idFile_Memory::idFile_Memory ( const char *  name,
char *  data,
int  length 
)

Definition at line 657 of file File.cpp.

idFile_Memory::idFile_Memory ( const char *  name,
const char *  data,
int  length 
)

Definition at line 674 of file File.cpp.

idFile_Memory::~idFile_Memory ( void  )
virtual

Definition at line 691 of file File.cpp.

Member Function Documentation

void idFile_Memory::Clear ( bool  freeMemory = true)
virtual

Definition at line 850 of file File.cpp.

void idFile_Memory::Flush ( void  )
virtual

Reimplemented from idFile.

Definition at line 794 of file File.cpp.

void idFile_Memory::ForceFlush ( void  )
virtual

Reimplemented from idFile.

Definition at line 786 of file File.cpp.

const char* idFile_Memory::GetDataPtr ( void  ) const
inline

Definition at line 144 of file File.h.

virtual const char* idFile_Memory::GetFullPath ( void  )
inlinevirtual

Reimplemented from idFile.

Definition at line 127 of file File.h.

virtual const char* idFile_Memory::GetName ( void  )
inlinevirtual

Reimplemented from idFile.

Definition at line 126 of file File.h.

int idFile_Memory::Length ( void  )
virtual

Reimplemented from idFile.

Definition at line 759 of file File.cpp.

void idFile_Memory::MakeReadOnly ( void  )
virtual

Definition at line 840 of file File.cpp.

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

Reimplemented from idFile.

Definition at line 702 of file File.cpp.

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

Reimplemented from idFile.

Definition at line 804 of file File.cpp.

void idFile_Memory::SetData ( const char *  data,
int  length 
)

Definition at line 868 of file File.cpp.

void idFile_Memory::SetGranularity ( int  g)
inline

Definition at line 146 of file File.h.

int idFile_Memory::Tell ( void  )
virtual

Reimplemented from idFile.

Definition at line 777 of file File.cpp.

ID_TIME_T idFile_Memory::Timestamp ( void  )
virtual

Reimplemented from idFile.

Definition at line 768 of file File.cpp.

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

Reimplemented from idFile.

Definition at line 722 of file File.cpp.

Friends And Related Function Documentation

friend class idFileSystemLocal
friend

Definition at line 117 of file File.h.

Member Data Documentation

int idFile_Memory::allocated
private

Definition at line 153 of file File.h.

char* idFile_Memory::curPtr
private

Definition at line 156 of file File.h.

char* idFile_Memory::filePtr
private

Definition at line 155 of file File.h.

int idFile_Memory::fileSize
private

Definition at line 152 of file File.h.

int idFile_Memory::granularity
private

Definition at line 154 of file File.h.

int idFile_Memory::maxSize
private

Definition at line 151 of file File.h.

int idFile_Memory::mode
private

Definition at line 150 of file File.h.

idStr idFile_Memory::name
private

Definition at line 149 of file File.h.


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