SourcePro C++ 12.0 |
SourcePro® C++ API Reference Guide |
SourcePro C++ Documentation Home |
Deprecated. Transfers character arrays of width width
between the application and the database.
More...
#include <rw/db/dbvector.h>
Public Member Functions | |
RWDBStringVector (size_t width, size_t length) | |
RWDBStringVectorElement | operator[] (size_t i) |
size_t | length () const |
RWDBStringVector instances are used to transfer character arrays of width width
between the application and the database via classes RWDBBulkReader and RWDBBulkInserter. Note that it is the user's responsibility to insure that the elements of the vectors are null terminated, and so the width of each element should be set to accommodate this additional character.
#include <rw/db/dbvector.h> RWDBStringVector stringVector(width, length);
In the following example, the ith
element of an RWDBStringVector is set to the string "Hello"
;
RWDBStringVector stringVector(width, length); . . . stringVector[i] = RWCString("Hello");
RWDBStringVector::RWDBStringVector | ( | size_t | width, | |
size_t | length | |||
) | [inline] |
Constructs an RWDBStringVector of length elements, each of whose elements is width wide.
size_t RWDBStringVector::length | ( | ) | const [inline] |
Returns the number of elements in self.
RWDBStringVectorElement RWDBStringVector::operator[] | ( | size_t | i | ) | [inline] |
Returns an RWDBStringVectorElement instance holding a reference to the i th element of self.
Reimplemented from RWDBTBuffer< T >.
© 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.