DDraceNetwork Docs
CGhostRecorder Class Reference

#include <ghost.h>

Inheritance diagram for CGhostRecorder:
[legend]
Collaboration diagram for CGhostRecorder:
[legend]

Public Member Functions

 CGhostRecorder ()
 
void Init ()
 
int Start (const char *pFilename, const char *pMap, const SHA256_DIGEST &MapSha256, const char *pName) override
 
void Stop (int Ticks, int Time) override
 
void WriteData (int Type, const void *pData, size_t Size) override
 
bool IsRecording () const override
 
- Public Member Functions inherited from IGhostRecorder
virtual ~IGhostRecorder ()
 
virtual int Start (const char *pFilename, const char *pMap, const SHA256_DIGEST &MapSha256, const char *pName)=0
 
virtual void Stop (int Ticks, int Time)=0
 
virtual void WriteData (int Type, const void *pData, size_t Size)=0
 
virtual bool IsRecording () const =0
 
- Public Member Functions inherited from IInterface
 IInterface ()
 
virtual void Shutdown ()
 
virtual ~IInterface ()
 

Private Member Functions

void ResetBuffer ()
 
void FlushChunk ()
 

Private Attributes

IOHANDLE m_File
 
char m_aFilename [IO_MAX_PATH_LENGTH]
 
class IStoragem_pStorage
 
char m_aBuffer [MAX_CHUNK_SIZE]
 
char m_aBufferTemp [MAX_CHUNK_SIZE]
 
char * m_pBufferPos
 
const char * m_pBufferEnd
 
int m_BufferNumItems
 
CGhostItem m_LastItem
 

Additional Inherited Members

- Static Public Member Functions inherited from IGhostRecorder
static const char * InterfaceName ()
 
- Protected Member Functions inherited from IInterface
IKernelKernel ()
 

Constructor & Destructor Documentation

◆ CGhostRecorder()

CGhostRecorder::CGhostRecorder ( )

Member Function Documentation

◆ FlushChunk()

void CGhostRecorder::FlushChunk ( )
private

◆ Init()

void CGhostRecorder::Init ( )

◆ IsRecording()

bool CGhostRecorder::IsRecording ( ) const
inlineoverridevirtual

Implements IGhostRecorder.

◆ ResetBuffer()

void CGhostRecorder::ResetBuffer ( )
private

◆ Start()

int CGhostRecorder::Start ( const char *  pFilename,
const char *  pMap,
const SHA256_DIGEST MapSha256,
const char *  pName 
)
overridevirtual

Implements IGhostRecorder.

◆ Stop()

void CGhostRecorder::Stop ( int  Ticks,
int  Time 
)
overridevirtual

Implements IGhostRecorder.

◆ WriteData()

void CGhostRecorder::WriteData ( int  Type,
const void *  pData,
size_t  Size 
)
overridevirtual

Implements IGhostRecorder.

Member Data Documentation

◆ m_aBuffer

char CGhostRecorder::m_aBuffer[MAX_CHUNK_SIZE]
private

◆ m_aBufferTemp

char CGhostRecorder::m_aBufferTemp[MAX_CHUNK_SIZE]
private

◆ m_aFilename

char CGhostRecorder::m_aFilename[IO_MAX_PATH_LENGTH]
private

◆ m_BufferNumItems

int CGhostRecorder::m_BufferNumItems
private

◆ m_File

IOHANDLE CGhostRecorder::m_File
private

◆ m_LastItem

CGhostItem CGhostRecorder::m_LastItem
private

◆ m_pBufferEnd

const char* CGhostRecorder::m_pBufferEnd
private

◆ m_pBufferPos

char* CGhostRecorder::m_pBufferPos
private

◆ m_pStorage

class IStorage* CGhostRecorder::m_pStorage
private

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