rwlogo
SourcePro C++ 12.0

SourcePro® C++ API Reference Guide



   SourcePro C++
Documentation Home

RWDBStringVectorElement Class Reference
[Bulk Operations]

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

#include <rw/db/dbvector.h>

List of all members.

Public Member Functions

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

Detailed Description

Deprecated:
Please use classes RWCString and RWDBTBuffer<RWCString>.

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];

Examples

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.

 All Classes Functions Variables Typedefs Enumerations Enumerator Friends

© Copyright 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.
Contact Rogue Wave about documentation or support issues.