RWDBStringVector RWDBTBuffer<char>
Member Functions | |||
isNull() length() |
operator[]() setNull() |
unsetNull() width() |
#include <rw/db/dbvector.h> RWDBStringVector stringVector(width, length);
RWDBStringVectors are used to transfer character arrays of width width between the application and the database via RWDBBulkReaders and RWDBBulkInserters. 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 accomodate this additional character.
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(size_t width, size_t length);
Constructs an RWDBStringVector of length elements, each of whose elements is width-wide.
RWDBStringVectorElement operator[](size_t i);
Returns an RWDBStringVectorElement holding a reference to the ith element of self.
RWBoolean isNull(size_t index) const;
Returns true if the indexth element of self is null, otherwise returns false. Inherited from RWDBTBuffer<char>.
size_t length() const;
Returns the number of elements in self.
void setNull(size_t index);
Sets the indexth element of self to null. Inherited from RWDBTBuffer<char>.
void unsetNull(size_t index);
Sets the indexth element of self to not null. Inherited from RWDBTBuffer<char>.
size_t width() const;
Returns the width of the elements in self. Inherited from RWDBTBuffer<char>.
©Copyright 1999, Rogue Wave Software, Inc.
Contact Rogue Wave about documentation or support issues.