Rogue Wave banner
Previous fileTop of DocumentContentsIndexNext file

RWDBStringVector


RWDBStringVector RWDBTBuffer<char>

Data Type and Member Function Indexes
(exclusive of constructors and destructors)

Synopsis

#include <rw/db/dbvector.h>

RWDBStringVector stringVector(width, length);

Description

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.

Example

In the following example, the ith element of an RWDBStringVector is set to the string "Hello";

Public Constructor

RWDBStringVector(size_t width, size_t length);

Public Operator

RWDBStringVectorElement
operator[](size_t i);

Public Member Functions

RWBoolean
isNull(size_t index) const;
size_t
length() const;
void 
setNull(size_t index);
void 
unsetNull(size_t index);
size_t
width() const;


Previous fileTop of DocumentContentsIndexNext file

©Copyright 1999, Rogue Wave Software, Inc.
Contact Rogue Wave about documentation or support issues.