HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GA_AIFBlob::BlobBuffer Class Reference

Class which holds temporary references to blobs. More...

#include <GA_AIFBlob.h>

Public Member Functions

 BlobBuffer (GA_Attribute *attribute=NULL, const GA_AIFBlob *aif=NULL)
 
 BlobBuffer (const BlobBuffer &src)
 
 ~BlobBuffer ()
 
BlobBufferoperator= (const BlobBuffer &src)
 
GA_Size entries () const
 Return number of strings referenced in the string buffer. More...
 
GA_BlobIndex append (const GA_BlobRef &blob)
 
GA_BlobIndex getBlobIndex (exint i) const
 
GA_BlobRef getBlob (exint i) const
 
void clear ()
 Clear references to all strings contained in the buffer. More...
 

Detailed Description

Class which holds temporary references to blobs.

In some cases, it's expedient to add multiple blobs to the attribute and then assign the handle values after the fact. This class is similar to the GA_AIFBlob::StringBuffer class.

Definition at line 96 of file GA_AIFBlob.h.

Constructor & Destructor Documentation

GA_AIFBlob::BlobBuffer::BlobBuffer ( GA_Attribute attribute = NULL,
const GA_AIFBlob aif = NULL 
)
inline

Definition at line 99 of file GA_AIFBlob.h.

GA_AIFBlob::BlobBuffer::BlobBuffer ( const BlobBuffer src)
inline

Definition at line 105 of file GA_AIFBlob.h.

GA_AIFBlob::BlobBuffer::~BlobBuffer ( )
inline

Definition at line 111 of file GA_AIFBlob.h.

Member Function Documentation

GA_BlobIndex GA_AIFBlob::BlobBuffer::append ( const GA_BlobRef blob)

Add a string to the attribute. Returns the handle of the string in the attribute (not the string's index in the buffer).

void GA_AIFBlob::BlobBuffer::clear ( )

Clear references to all strings contained in the buffer.

GA_Size GA_AIFBlob::BlobBuffer::entries ( ) const
inline

Return number of strings referenced in the string buffer.

Definition at line 130 of file GA_AIFBlob.h.

GA_BlobRef GA_AIFBlob::BlobBuffer::getBlob ( exint  i) const

Return a string handle from the buffer. The index refers to the buffer index (not the blob handle).

GA_BlobIndex GA_AIFBlob::BlobBuffer::getBlobIndex ( exint  i) const
inline

Return the string index from the buffer. The index refers to the buffer index (not the blob handle).

Definition at line 138 of file GA_AIFBlob.h.

BlobBuffer& GA_AIFBlob::BlobBuffer::operator= ( const BlobBuffer src)
inline

Definition at line 116 of file GA_AIFBlob.h.


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