VSTGUI  4.3
Graphical User Interface Framework not only for VST plugins
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Groups Pages
MemoryContentProvider Class Reference
+ Inheritance diagram for MemoryContentProvider:
+ Collaboration diagram for MemoryContentProvider:

Public Types

enum  SeekMode { kSeekSet, kSeekCurrent, kSeekEnd }
 

Public Member Functions

 MemoryContentProvider (const void *data, uint32_t dataSize)
 
uint32_t readRawXmlData (int8_t *buffer, uint32_t size)
 
void rewind ()
 
uint32_t writeRaw (const void *buffer, uint32_t size)
 
uint32_t readRaw (void *buffer, uint32_t size)
 
int64_t seek (int64_t pos, SeekMode mode)
 returns -1 if seek fails otherwise new position More...
 
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)
 
virtual void beforeDelete ()
 
Reference Counting Methods
virtual void forget ()
 decrease refcount and delete object if refcount == 0 More...
 
virtual void remember ()
 increase refcount More...
 
virtual int32_t getNbReference () const
 get refcount More...
 
Message Methods
virtual CMessageResult notify (CBaseObject *sender, IdStringPtr message)
 

Protected Member Functions

bool resize (uint32_t newSize)
 

Protected Attributes

bool binaryMode
 
bool ownsBuffer
 
int8_t * buffer
 
uint32_t bufferSize
 
uint32_t size
 
uint32_t pos
 
uint32_t delta
 

Member Enumeration Documentation

enum SeekMode
inherited
Enumerator
kSeekSet 
kSeekCurrent 
kSeekEnd 

Constructor & Destructor Documentation

MemoryContentProvider ( const void *  data,
uint32_t  dataSize 
)

Member Function Documentation

virtual void beforeDelete ( )
inlinevirtualinherited

Reimplemented in CView.

+ Here is the caller graph for this function:

bool end ( )
inherited

+ Here is the call graph for this function:

virtual void forget ( )
inlinevirtualinherited

decrease refcount and delete object if refcount == 0

+ Here is the call graph for this function:

const int8_t* getBuffer ( ) const
inlineinherited
ByteOrder getByteOrder ( ) const
inlineinherited
ByteOrder getByteOrder ( ) const
inlineinherited
virtual int32_t getNbReference ( ) const
inlinevirtualinherited

get refcount

bool operator<< ( const int8_t &  input)
inherited

+ Here is the call graph for this function:

bool operator<< ( const uint8_t &  input)
inherited

+ Here is the call graph for this function:

bool operator<< ( const int16_t &  input)
inherited

+ Here is the call graph for this function:

bool operator<< ( const uint16_t &  input)
inherited

+ Here is the call graph for this function:

bool operator<< ( const int32_t &  input)
inherited

+ Here is the call graph for this function:

bool operator<< ( const uint32_t &  input)
inherited

+ Here is the call graph for this function:

bool operator<< ( const int64_t &  input)
inherited

+ Here is the call graph for this function:

bool operator<< ( const uint64_t &  input)
inherited

+ Here is the call graph for this function:

bool operator<< ( const double &  input)
inherited

+ Here is the call graph for this function:

bool operator<< ( const std::string &  str)
virtualinherited

Implements OutputStream.

+ Here is the call graph for this function:

bool operator>> ( int8_t &  output)
inherited

+ Here is the call graph for this function:

bool operator>> ( uint8_t &  output)
inherited

+ Here is the call graph for this function:

bool operator>> ( int16_t &  output)
inherited

+ Here is the call graph for this function:

bool operator>> ( uint16_t &  output)
inherited

+ Here is the call graph for this function:

bool operator>> ( int32_t &  output)
inherited

+ Here is the call graph for this function:

bool operator>> ( uint32_t &  output)
inherited

+ Here is the call graph for this function:

bool operator>> ( int64_t &  output)
inherited

+ Here is the call graph for this function:

bool operator>> ( uint64_t &  output)
inherited

+ Here is the call graph for this function:

bool operator>> ( double &  output)
inherited

+ Here is the call graph for this function:

bool operator>> ( std::string &  string)
virtualinherited

Implements InputStream.

+ Here is the call graph for this function:

uint32_t readRaw ( void *  buffer,
uint32_t  size 
)
virtualinherited

Implements InputStream.

+ Here is the caller graph for this function:

uint32_t readRawXmlData ( int8_t *  buffer,
uint32_t  size 
)
virtual

Implements IContentProvider.

virtual void remember ( )
inlinevirtualinherited

increase refcount

+ Here is the caller graph for this function:

bool resize ( uint32_t  newSize)
protectedinherited

+ Here is the caller graph for this function:

void rewind ( )
virtual

Reimplemented from CMemoryStream.

int64_t seek ( int64_t  pos,
SeekMode  mode 
)
virtualinherited

returns -1 if seek fails otherwise new position

Implements SeekableStream.

void setByteOrder ( ByteOrder  newByteOrder)
inlineinherited

+ Here is the caller graph for this function:

void setByteOrder ( ByteOrder  newByteOrder)
inlineinherited

+ Here is the caller graph for this function:

int64_t tell ( ) const
inlinevirtualinherited

Implements SeekableStream.

uint32_t writeRaw ( const void *  buffer,
uint32_t  size 
)
virtualinherited

Implements OutputStream.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

bool binaryMode
protectedinherited
int8_t* buffer
protectedinherited
uint32_t bufferSize
protectedinherited
uint32_t delta
protectedinherited
bool ownsBuffer
protectedinherited
uint32_t pos
protectedinherited
uint32_t size
protectedinherited

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