SQLiteXX  0.1.0
 All Classes Namespaces Files Functions Enumerations Enumerator
Public Member Functions | List of all members
sqlite::blob Class Reference

A "Binary Large OBject". More...

#include <Blob.h>

Public Member Functions

 blob (const void *data, const size_t size)
 Constructs a blob object with contents of data. More...
 
 blob (const blob &other)
 Copy constructor. More...
 
 blob (blob &&other)
 Move constructor. More...
 
bloboperator= (const blob &other)
 Copy assignment operator. More...
 
bloboperator= (blob &&other)
 Move assignment operator. More...
 
const void * data () const
 The raw data of the blob's contents. More...
 
size_t size () const
 Used to get the size of the contained 'blob'. More...
 

Detailed Description

A "Binary Large OBject".

A collection of binary data stored as a single entity in a database management system. blobs are typically images, audo or other multimedia object though they can be any form of data.

Definition at line 20 of file Blob.h.

Constructor & Destructor Documentation

sqlite::blob::blob ( const void *  data,
const size_t  size 
)

Constructs a blob object with contents of data.

Parameters
[in]datathe information you want the blob to contain
[in]sizethe size in bytes of the data

Definition at line 6 of file Blob.cpp.

sqlite::blob::blob ( const blob other)

Copy constructor.

Constructs a blob object with a copy of the contents of other

Parameters
[in]otheranother blob object to use as source to initialize object with

Definition at line 14 of file Blob.cpp.

sqlite::blob::blob ( blob &&  other)

Move constructor.

Constructs a blob object with a copy of the contents of other using move semantics

Parameters
[in]otheranother blob object to use as source to initialize object with

Definition at line 21 of file Blob.cpp.

Member Function Documentation

const void * sqlite::blob::data ( ) const

The raw data of the blob's contents.

Returns
The raw data that the blob object is storing.

Definition at line 44 of file Blob.cpp.

blob & sqlite::blob::operator= ( const blob other)

Copy assignment operator.

Replaces the contents with those of other

Parameters
[in]otheranother blob object to use as source to initialize object with
Returns
*this

Definition at line 26 of file Blob.cpp.

blob & sqlite::blob::operator= ( blob &&  other)

Move assignment operator.

Replaces the contents with those of other using move semantics

Parameters
[in]otheranother blob object to use as source to initialize object with
Returns
*this

Definition at line 37 of file Blob.cpp.

size_t sqlite::blob::size ( ) const

Used to get the size of the contained 'blob'.

Returns
The size in bytes of the contained 'blob'.

Definition at line 48 of file Blob.cpp.


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