SourcePro® C++ API Reference Guide

Product Documentation:
   SourcePro C++
Documentation Home
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 along with 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 © 2016 Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Provide feedback to Rogue Wave about its documentation.