rwlogo
SourcePro C++ 12.0

SourcePro® C++ API Reference Guide



   SourcePro C++
Documentation Home

RWDBDecimalVector Class Reference
[Bulk Operations]

Deprecated. Transfers decimal arrays of width width between the application and the database. width between the application and the database. More...

#include <rw/db/dbvector.h>

Inheritance diagram for RWDBDecimalVector:
RWDBTBuffer< T > RWDBAbstractBuffer

List of all members.

Public Member Functions

 RWDBDecimalVector (size_t width, size_t length)
RWDBDecimalVectorElement operator[] (size_t index)
size_t length () const

Detailed Description

Deprecated:
Classes RWDBDecimalVector and RWDBDecimalVectorElement are deprecated. Please use classes RWDecimalPortable and RWDBTBuffer<RWDecimalPortable>.

RWDBDecimalVector instances are used to transfer decimal arrays of width width between the application and the database via instances of RWDBBulkReader and RWDBBulkInserter. Note that it is the user's responsibility to ensure that the elements of the vectors are null terminated.

Synopsis

 #include <rw/db/dbvector.h>
 
 RWDBDecimalVector decVector(width, length);

Examples

In the following example, the ith element of an RWDBDecimalVector is set to the decimal 12.567:

 RWDBDecimalVector decVector(width, length);
 .
 .
 .
 decVector[i] = "12.567";

Constructor & Destructor Documentation

RWDBDecimalVector::RWDBDecimalVector ( size_t  width,
size_t  length 
) [inline]

Constructs an RWDBDecimalVector of length elements, each of whose elements is width wide.


Member Function Documentation

size_t RWDBDecimalVector::length (  )  const [inline]

Returns the number of elements in self.

RWDBDecimalVectorElement RWDBDecimalVector::operator[] ( size_t  index  )  [inline]

Returns an RWDBDecimalVectorElement instance holding a reference to the i th element of self.

Reimplemented from RWDBTBuffer< T >.

 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.