wxSQLite3Blob Class Reference

Represents a SQLite BLOB handle. More...

#include <wxsqlite3.h>

List of all members.

Public Member Functions

 wxSQLite3Blob ()
 Constructor.
 wxSQLite3Blob (const wxSQLite3Blob &blob)
 Copy constructor.
wxSQLite3Bloboperator= (const wxSQLite3Blob &blob)
 Assignement constructor.
 wxSQLite3Blob (void *m_db, void *blobHandle, bool writable)
 Constructor (internal use only).
virtual ~wxSQLite3Blob ()
 Destructor.
wxMemoryBuffer & Read (wxMemoryBuffer &blobValue, int length, int offset)
 Read partial BLOB value.
void Write (const wxMemoryBuffer &blobValue, int offset)
 Write partial BLOB value.
bool IsOk ()
 Check whether the BLOB handle is correctly initialized.
bool IsReadOnly ()
 Check whether the BLOB handle is read only.
int GetSize ()
 Get the size of the associated BLOB.
void Finalize ()
 Finalize the BLOB.


Detailed Description

Represents a SQLite BLOB handle.

Constructor & Destructor Documentation

wxSQLite3Blob::wxSQLite3Blob (  ) 

Constructor.

wxSQLite3Blob::wxSQLite3Blob ( const wxSQLite3Blob blob  ) 

Copy constructor.

wxSQLite3Blob::wxSQLite3Blob ( void *  m_db,
void *  blobHandle,
bool  writable 
)

Constructor (internal use only).

wxSQLite3Blob::~wxSQLite3Blob (  )  [virtual]

Destructor.


Member Function Documentation

wxSQLite3Blob & wxSQLite3Blob::operator= ( const wxSQLite3Blob blob  ) 

Assignement constructor.

wxMemoryBuffer & wxSQLite3Blob::Read ( wxMemoryBuffer &  blobValue,
int  length,
int  offset 
)

Read partial BLOB value.

Parameters:
blobValue memory buffer receiving the partial content of the BLOB
length length of BLOB content to be read
offset offset within BLOB where the read starts
Returns:
the address of the memory buffer

void wxSQLite3Blob::Write ( const wxMemoryBuffer &  blobValue,
int  offset 
)

Write partial BLOB value.

Parameters:
blobValue memory buffer receiving the partial content of the BLOB
offset offset within BLOB where the read starts

bool wxSQLite3Blob::IsOk (  ) 

Check whether the BLOB handle is correctly initialized.

Returns:
TRUE if the BLOB handle is correctly initialized, FALSE otherweis

bool wxSQLite3Blob::IsReadOnly (  ) 

Check whether the BLOB handle is read only.

Returns:
TRUE if the BLOB handle is readonly, FALSE otherweis

int wxSQLite3Blob::GetSize (  ) 

Get the size of the associated BLOB.

Returns:
the BLOB size

void wxSQLite3Blob::Finalize (  ) 

Finalize the BLOB.


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

Generated on Thu Jan 15 19:47:00 2009 for wxSQLite3 by  doxygen 1.5.6