SourcePro® API Reference Guide

 
Loading...
Searching...
No Matches
RWDBBinaryVectorElement Class Reference

Deprecated. Encapsulates arrays of unsigned characters stored in RWDBBinaryVector instances. More...

#include <rw/db/dbvector.h>

Public Member Functions

unsigned char * data () const
 
 operator unsigned char * ()
 
RWDBBinaryVectorElementoperator= (const RWDBBlob &blob)
 

Detailed Description

Deprecated
As of SourcePro 6, use RWDBBlob and RWDBTBuffer instead.

RWDBBinaryVectorElement is used to encapsulate arrays of unsigned characters stored in RWDBBinaryVector instances. A method is provided for assigning the data held in RWDBBlob instances.

Synopsis
#include <rw/db/dbvector.h>
RWDBBinaryVector binaryVector(width, length);
RWDBBinaryVectorElement element = binaryVector[i];
Deprecated. Encapsulates arrays of unsigned characters stored in RWDBBinaryVector instances.
Definition dbvector.h:108
Deprecated. Transfers binary arrays between the application and the database.
Definition dbvector.h:363
Example

In the following example, the ith element of vector binaryVector is assigned the data held in ablob:

RWDBBinaryVector binaryVector(width, length);
RWDBBlob ablob;
binaryVector[i] = ablob;
Stores Binary Large Objects (Blobs) and includes relevant accessors.
Definition blob.h:109

Member Function Documentation

◆ data()

unsigned char * RWDBBinaryVectorElement::data ( ) const
inline

Returns the unsigned char* represented by self.

◆ operator unsigned char *()

RWDBBinaryVectorElement::operator unsigned char * ( )
inline

Conversion operator. Returns the unsigned char* represented by self.

◆ operator=()

RWDBBinaryVectorElement & RWDBBinaryVectorElement::operator= ( const RWDBBlob & blob)
inline

Assignment operator. Assigns the data held in blob to self.

Copyright © 2024 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved.