rwlogo
SourcePro C++ 12.0

SourcePro® C++ API Reference Guide



   SourcePro C++
Documentation Home

RWDBVendorDate Class Reference
[Bulk Operations]

Deprecated. Encapsulates vendor-specific date structures. More...

#include <rw/db/dbdatevec.h>

List of all members.

Public Member Functions

 RWDBVendorDate (const RWDBVendorDate &datetime)
RWDBVendorDateoperator= (const RWDBVendorDate &date)
RWDBVendorDateoperator= (const RWDBDateTime &dt)
 operator RWDBDateTime ()
RWCString asString () const

Detailed Description

Deprecated:
Classes RWDBVendorDate and RWDBDateVector are deprecated. Please use classes RWDateTime and RWDBTBuffer<RWDateTime>.

RWDBVendorDate is used to encapsulate vendor-specific date structures. RWDBDateVector is an array of RWDBVendorDate objects. Methods are provided to transfer date values between RWDBVendorDate and RWDBDateTime.

Synopsis

 #include <rw/db/dbdatevec.h>

 RWDBDateVector dateVector = db.dateVector(n);
 RWDBVendorDate date = dateVector[i];

Examples

In the following example, a vector dateVector is produced. The vector is initialized with the current date and the following four days:

 RWDBDateVector dateVector = aDB.dateVector(5);
 RWDBDateTime dt; // Today's date.

 for (int k = 0; k < 5; k++) {
    dateVector[k] = dt;
    dt.addDays(1);
 }

Constructor & Destructor Documentation

RWDBVendorDate::RWDBVendorDate ( const RWDBVendorDate datetime  )  [inline]

Copies the date held in datetime to self.


Member Function Documentation

RWCString RWDBVendorDate::asString (  )  const [inline]

Returns a string representation of the date held in self.

RWDBVendorDate::operator RWDBDateTime (  )  [inline]

Conversion operator. Returns an RWDBDateTime representation of self.

RWDBVendorDate& RWDBVendorDate::operator= ( const RWDBDateTime dt  )  [inline]

Assigns the date value held in dt to self.

RWDBVendorDate& RWDBVendorDate::operator= ( const RWDBVendorDate date  )  [inline]

Assigns the date value held in date to self.

 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.