Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
BufferedOutputCallback Struct Reference
Inheritance diagram for BufferedOutputCallback:
Collaboration diagram for BufferedOutputCallback:

Public Member Functions

 BufferedOutputCallback (OutputFn fn, void *cb_data)
 
 ~BufferedOutputCallback ()
 
virtual void operator() (const char *data, unsigned int length)
 
- Public Member Functions inherited from OutputCB
virtual ~OutputCB ()
 
virtual void operator() (const char *data, unsigned int length)=0
 

Public Attributes

char buffer [bufferSize]
 
unsigned int bufferUsed
 
OutputFn fn
 
void * cb_data
 

Static Public Attributes

static const unsigned int bufferSize = 4096
 

Constructor & Destructor Documentation

◆ BufferedOutputCallback()

BufferedOutputCallback::BufferedOutputCallback ( OutputFn  fn,
void *  cb_data 
)
inline

◆ ~BufferedOutputCallback()

BufferedOutputCallback::~BufferedOutputCallback ( )
inline

Member Function Documentation

◆ operator()()

virtual void BufferedOutputCallback::operator() ( const char *  data,
unsigned int  length 
)
inlinevirtual

Implements OutputCB.

Member Data Documentation

◆ buffer

char BufferedOutputCallback::buffer[bufferSize]

◆ bufferSize

const unsigned int BufferedOutputCallback::bufferSize = 4096
static

◆ bufferUsed

unsigned int BufferedOutputCallback::bufferUsed

◆ cb_data

void* BufferedOutputCallback::cb_data

◆ fn

OutputFn BufferedOutputCallback::fn

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