Array Classes

Top  Previous  Next

Note:  You must be familiar with STL vector's to use the DTwain array classes properly.

 

The following array classes are used throughout the DTWAIN C++ interface:

 

DTWAIN::DTwainLongArray

DTWAIN::DTwainStringArray

DTWAIN::DTwainDoubleArray

DTWAIN::DTwainFrameArray

DTWAIN::DTwainImageDataArray

DTWAIN::DTwainAcquisitionArray

DTWAIN::DTwainSourceArray

 

These array types are actually STL vector containers.  The definition of these arrays are as follows:

 

Array Type

STL vector equivalent

 

DTWAIN::DTwainLongArray

std::vector<LONG>

DTWAIN::DTwainStringArray

DTwainString

DTWAIN::DTwainDoubleArray

std::vector<double>

DTWAIN::DTwainFrameArray

std::vector<DTWAIN::DTwainFrame>

DTWAIN::DTwainImageDataArray

std::vector<DTwainImageData>

DTWAIN::DTwainAcquisitionArray

std::vector<DTwainImageDataArray>

DTWAIN::DTwainSourceArray

std::vector<DTwainSource>

 

This allows you to use any std::vector functions on the DTwain array classes.  Therefore, the interface to using the array classes is exactly the same as the interface used for std::vector.