SourcePro® API Reference Guide

 
List of all members | Public Member Functions
RWDBStringVectorElement Class Reference

Deprecated. Encapsulates arrays of characters stored in RWDBStringVector objects. More...

#include <rw/db/dbvector.h>

Public Member Functions

char * data () const
 
 operator char * ()
 
RWDBStringVectorElementoperator= (const RWCString &s)
 

Detailed Description

Deprecated:
As of SourcePro 6, use RWCString and RWDBTBuffer<RWCString> instead.

RWDBStringVectorElement objects are used to encapsulate arrays of characters stored in RWDBStringVector objects. A method is provided for assigning the data held in instances of RWCString.

Synopsis
#include <rw/db/dbvector.h>
RWDBStringVector stringVector(width, length);
RWDBStringVectorElement element = stringVector[i];
Example

In the following example the ith element of vector stringVector is assigned the data held in astring:

RWDBStringVector stringVector(width,length);
RWCString astring;
stringVector[i] = astring;

Member Function Documentation

char* RWDBStringVectorElement::data ( ) const
inline

Returns the char* represented by self.

RWDBStringVectorElement::operator char * ( )
inline

Conversion operator. Returns the char* represented by self.

RWDBStringVectorElement& RWDBStringVectorElement::operator= ( const RWCString s)
inline

Assigns the data held in s to self.

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