IBufferDataSource Class Reference

#include <IDataSource.h>

Inheritance diagram for IBufferDataSource:

IDataSource List of all members.

Public Member Functions

 IBufferDataSource (const void *data, unsigned int len, bool is_text=false, bool delete_data=false)
virtual void load (const void *data, unsigned int len, bool is_text=false, bool delete_data=false)
virtual ~IBufferDataSource ()
virtual uint8 read1 ()
virtual uint16 read2 ()
virtual uint16 read2high ()
virtual uint32 read3 ()
virtual uint32 read4 ()
virtual uint32 read4high ()
virtual sint32 read (void *str, sint32 num_bytes)
virtual void seek (uint32 pos)
virtual void skip (sint32 delta)
virtual uint32 getSize ()
virtual uint32 getPos ()
virtual bool eof ()

Protected Member Functions

void ConvertTextBuffer ()

Protected Attributes

const uint8buf
const uint8buf_ptr
bool free_buffer
uint32 size

Detailed Description

Definition at line 279 of file IDataSource.h.


Constructor & Destructor Documentation

IBufferDataSource::IBufferDataSource ( const void *  data,
unsigned int  len,
bool  is_text = false,
bool  delete_data = false 
) [inline]

Definition at line 326 of file IDataSource.h.

References buf, buf_ptr, ConvertTextBuffer(), free_buffer, and size.

virtual IBufferDataSource::~IBufferDataSource (  )  [inline, virtual]

Definition at line 350 of file IDataSource.h.

References buf, buf_ptr, and free_buffer.


Member Function Documentation

void IBufferDataSource::ConvertTextBuffer (  )  [inline, protected]

Definition at line 287 of file IDataSource.h.

References buf, buf_ptr, free_buffer, and size.

Referenced by IBufferDataSource(), and load().

virtual bool IBufferDataSource::eof (  )  [inline, virtual]

Implements IDataSource.

Definition at line 428 of file IDataSource.h.

References buf, buf_ptr, and size.

virtual uint32 IBufferDataSource::getPos (  )  [inline, virtual]

Implements IDataSource.

Definition at line 424 of file IDataSource.h.

References buf, and buf_ptr.

virtual uint32 IBufferDataSource::getSize (  )  [inline, virtual]

Implements IDataSource.

Definition at line 420 of file IDataSource.h.

References size.

virtual void IBufferDataSource::load ( const void *  data,
unsigned int  len,
bool  is_text = false,
bool  delete_data = false 
) [inline, virtual]

Definition at line 336 of file IDataSource.h.

References buf, buf_ptr, ConvertTextBuffer(), free_buffer, and size.

virtual sint32 IBufferDataSource::read ( void *  str,
sint32  num_bytes 
) [inline, virtual]

Implements IDataSource.

Definition at line 402 of file IDataSource.h.

References buf, buf_ptr, and size.

Referenced by Shape::LoadGenericFormat().

virtual uint8 IBufferDataSource::read1 (  )  [inline, virtual]

Implements IDataSource.

Definition at line 356 of file IDataSource.h.

References buf_ptr.

Referenced by Shape::LoadGenericFormat().

virtual uint16 IBufferDataSource::read2 (  )  [inline, virtual]

Implements IDataSource.

Definition at line 362 of file IDataSource.h.

References buf_ptr.

virtual uint16 IBufferDataSource::read2high (  )  [inline, virtual]

Implements IDataSource.

Definition at line 369 of file IDataSource.h.

References buf_ptr.

virtual uint32 IBufferDataSource::read3 (  )  [inline, virtual]

Implements IDataSource.

Definition at line 376 of file IDataSource.h.

References buf_ptr.

virtual uint32 IBufferDataSource::read4 (  )  [inline, virtual]

Implements IDataSource.

Definition at line 384 of file IDataSource.h.

References buf_ptr.

virtual uint32 IBufferDataSource::read4high (  )  [inline, virtual]

Implements IDataSource.

Definition at line 393 of file IDataSource.h.

References buf_ptr.

virtual void IBufferDataSource::seek ( uint32  pos  )  [inline, virtual]

Implements IDataSource.

Definition at line 412 of file IDataSource.h.

References buf, and buf_ptr.

virtual void IBufferDataSource::skip ( sint32  delta  )  [inline, virtual]

Implements IDataSource.

Definition at line 416 of file IDataSource.h.

References buf_ptr.

Referenced by ShapeFrame::LoadGenericFormat(), and Shape::LoadGenericFormat().


Member Data Documentation

const uint8* IBufferDataSource::buf [protected]

Definition at line 282 of file IDataSource.h.

Referenced by ConvertTextBuffer(), eof(), getPos(), IBufferDataSource(), load(), read(), seek(), and ~IBufferDataSource().

const uint8* IBufferDataSource::buf_ptr [protected]

Definition at line 283 of file IDataSource.h.

Referenced by ConvertTextBuffer(), eof(), getPos(), IBufferDataSource(), load(), read(), read1(), read2(), read2high(), read3(), read4(), read4high(), seek(), skip(), and ~IBufferDataSource().

bool IBufferDataSource::free_buffer [protected]

Definition at line 284 of file IDataSource.h.

Referenced by ConvertTextBuffer(), IBufferDataSource(), load(), and ~IBufferDataSource().

uint32 IBufferDataSource::size [protected]

Definition at line 285 of file IDataSource.h.

Referenced by ConvertTextBuffer(), eof(), getSize(), IBufferDataSource(), load(), and read().


The documentation for this class was generated from the following file:
Generated on Fri Jul 27 22:29:21 2007 for pentagram by  doxygen 1.4.7