SourcePro® API Reference Guide

 
Loading...
Searching...
No Matches
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 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];
Deprecated. Encapsulates arrays of characters stored in RWDBStringVector objects.
Definition dbvector.h:188
Deprecated. Transfers character arrays of width width between the application and the database.
Definition dbvector.h:434
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;
Offers powerful and convenient facilities for manipulating strings.
Definition stdcstring.h:826

Member Function Documentation

◆ data()

char * RWDBStringVectorElement::data ( ) const
inline

Returns the char* represented by self.

◆ operator char *()

RWDBStringVectorElement::operator char * ( )
inline

Conversion operator. Returns the char* represented by self.

◆ operator=()

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

Assigns the data held in s to self.

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