SourcePro® API Reference Guide

 
Loading...
Searching...
No Matches
RWDBDecimalVectorElement Class Reference

Deprecated. Encapsulates arrays of decimals stored in RWDBDecimalVector objects. More...

#include <rw/db/dbvector.h>

Public Member Functions

 operator char * ()
 
RWDBDecimalVectorElementoperator= (const int val)
 
RWDBDecimalVectorElementoperator= (const long val)
 
RWDBDecimalVectorElementoperator= (const RWDecimalPortable &val)
 

Detailed Description

Deprecated
As of SourcePro 6, use RWDecimalPortable and RWDBTBuffer instead.

RWDBDecimalVectorElement objects are used to encapsulate arrays of decimals stored in RWDBDecimalVector objects. A method is provided for assigning the data held in instances of RWDecimalPortable.

Synopsis
#include <rw/db/dbvector.h>
RWDBDecimalVector decVector(width, length);
RWDBDecimalVectorElement element = decVector[i];
Deprecated. Encapsulates arrays of decimals stored in RWDBDecimalVector objects.
Definition dbvector.h:266
Deprecated. Transfers decimal arrays of width width between the application and the database....
Definition dbvector.h:493
Example

In the following example the ith element of vector decVector is assigned the data held in dec:

RWDBDecimalVector decVector(width, length);
RWDecimalPortable dec("3.1415926");
decVector[i] = dec;
Represents an arbitrary precision decimal fraction, providing maximum portability.
Definition tools/decport.h:103

Member Function Documentation

◆ operator char *()

RWDBDecimalVectorElement::operator char * ( )
inline

Conversion operator. Returns the char* represented by self.

◆ operator=() [1/3]

RWDBDecimalVectorElement & RWDBDecimalVectorElement::operator= ( const int val)
inline

Assigns the data held in val to self.

◆ operator=() [2/3]

RWDBDecimalVectorElement & RWDBDecimalVectorElement::operator= ( const long val)
inline

Assigns the data held in val to self.

◆ operator=() [3/3]

RWDBDecimalVectorElement & RWDBDecimalVectorElement::operator= ( const RWDecimalPortable & val)
inline

Assigns the data held in val to self.

Copyright © 2024 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved.