MemoryContentProvider Class Reference

Inheritance diagram for MemoryContentProvider:
Inheritance graph
[legend]
Collaboration diagram for MemoryContentProvider:
Collaboration graph
[legend]

List of all members.

Public Types

enum  SeekMode { kSeekSet, kSeekCurrent, kSeekEnd }

Public Member Functions

 MemoryContentProvider (const void *data, int32_t dataSize)
int32_t readRawXmlData (int8_t *(parser->m_buffer), int32_t size)
void rewind ()
int32_t writeRaw (const void *buffer, int32_t size)
int32_t readRaw (void *buffer, int32_t size)
int64_t seek (int64_t pos, SeekMode mode)
 returns -1 if seek fails otherwise new position
int64_t tell () const
const int8_t * getBuffer () const
virtual bool operator<< (const std::string &str)
bool operator<< (const int8_t &input)
bool operator<< (const uint8_t &input)
bool operator<< (const int16_t &input)
bool operator<< (const uint16_t &input)
bool operator<< (const int32_t &input)
bool operator<< (const uint32_t &input)
bool operator<< (const int64_t &input)
bool operator<< (const uint64_t &input)
bool operator<< (const double &input)
virtual bool operator>> (std::string &string)
bool operator>> (int8_t &output)
bool operator>> (uint8_t &output)
bool operator>> (int16_t &output)
bool operator>> (uint16_t &output)
bool operator>> (int32_t &output)
bool operator>> (uint32_t &output)
bool operator>> (int64_t &output)
bool operator>> (uint64_t &output)
bool operator>> (double &output)
bool end ()
ByteOrder getByteOrder () const
ByteOrder getByteOrder () const
void setByteOrder (ByteOrder newByteOrder)
void setByteOrder (ByteOrder newByteOrder)
Reference Counting Methods



virtual void forget ()
 decrease refcount and delete object if refcount == 0
virtual void remember ()
 increase refcount
virtual int32_t getNbReference () const
 get refcount
Message Methods



virtual CMessageResult notify (CBaseObject *sender, IdStringPtr message)

Protected Member Functions

bool resize (int32_t newSize)

Protected Attributes

bool binaryMode
bool ownsBuffer
int8_t * buffer
int32_t size
int32_t pos
int32_t delta

Member Enumeration Documentation

enum SeekMode [inherited]
Enumerator:
kSeekSet 
kSeekCurrent 
kSeekEnd 

Constructor & Destructor Documentation

MemoryContentProvider ( const void *  data,
int32_t  dataSize 
)

Member Function Documentation

bool end (  )  [inherited]
virtual void forget (  )  [inline, virtual, inherited]

decrease refcount and delete object if refcount == 0

const int8_t* getBuffer (  )  const [inline, inherited]
ByteOrder getByteOrder (  )  const [inline, inherited]
ByteOrder getByteOrder (  )  const [inline, inherited]
virtual int32_t getNbReference (  )  const [inline, virtual, inherited]

get refcount

virtual CMessageResult notify ( CBaseObject sender,
IdStringPtr  message 
) [inline, virtual, inherited]
bool operator<< ( const double &  input  )  [inherited]
bool operator<< ( const uint64_t &  input  )  [inherited]
bool operator<< ( const int64_t &  input  )  [inherited]
bool operator<< ( const uint32_t &  input  )  [inherited]
bool operator<< ( const int32_t &  input  )  [inherited]
bool operator<< ( const uint16_t &  input  )  [inherited]
bool operator<< ( const int16_t &  input  )  [inherited]
bool operator<< ( const uint8_t &  input  )  [inherited]
bool operator<< ( const int8_t &  input  )  [inherited]
bool operator<< ( const std::string &  str  )  [virtual, inherited]

Implements OutputStream.

bool operator>> ( double &  output  )  [inherited]
bool operator>> ( uint64_t &  output  )  [inherited]
bool operator>> ( int64_t &  output  )  [inherited]
bool operator>> ( uint32_t &  output  )  [inherited]
bool operator>> ( int32_t &  output  )  [inherited]
bool operator>> ( uint16_t &  output  )  [inherited]
bool operator>> ( int16_t &  output  )  [inherited]
bool operator>> ( uint8_t &  output  )  [inherited]
bool operator>> ( int8_t &  output  )  [inherited]
bool operator>> ( std::string &  string  )  [virtual, inherited]

Implements InputStream.

int32_t readRaw ( void *  buffer,
int32_t  size 
) [virtual, inherited]

Implements InputStream.

int32_t readRawXmlData ( int8_t *  parser->m_buffer,
int32_t  size 
) [virtual]

Implements IContentProvider.

virtual void remember (  )  [inline, virtual, inherited]

increase refcount

bool resize ( int32_t  newSize  )  [protected, inherited]
void rewind (  )  [virtual]

Reimplemented from CMemoryStream.

int64_t seek ( int64_t  pos,
SeekMode  mode 
) [virtual, inherited]

returns -1 if seek fails otherwise new position

Implements SeekableStream.

void setByteOrder ( ByteOrder  newByteOrder  )  [inline, inherited]
void setByteOrder ( ByteOrder  newByteOrder  )  [inline, inherited]
int64_t tell (  )  const [inline, virtual, inherited]

Implements SeekableStream.

int32_t writeRaw ( const void *  buffer,
int32_t  size 
) [virtual, inherited]

Implements OutputStream.


Member Data Documentation

bool binaryMode [protected, inherited]
int8_t* buffer [protected, inherited]
int32_t delta [protected, inherited]
bool ownsBuffer [protected, inherited]
int32_t pos [protected, inherited]
int32_t size [protected, inherited]

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

Generated on Fri Nov 22 11:10:05 2013 for VSTGUI by  doxygen 1.6.1