virtual bool CR2XML<T>::GetDataEx(ULONG nCol, void *pBuffer, DBTYPE nDBType, ULONG nSize=0, BYTE nPrecision=0, BYTE nScale=0);

Return Value

        true if successful; or false if failed.

Parameters

        [in] nCol:

                A column ordinal.

        [in] pBuffer:

                A pointer to a client allocated memory.

        [in] nDBType:

                A data type indicator.

        [in] nSize:

                The length of the buffer pBuffer in bytes. For a fixed-length type data, it is ignored. However, it is required for a variable-length type data.

        [in] nPrecision:

                The maximum precision to use when nDBType is DBTYPE_NUMERIC or DBTYPE_VARNUMERIC only.

        [in] nScale:

                The scale to use when nDBType is DBTYPE_NUMERIC, DBTYPE_VARNUMERIC, or DBTYPE_DECIMAL only.

Remark

        Similar to CRBase::GetDataEx, the function is used for getting a data by creating a temporary accessor no matter if the column is discarded. This function is designed for retrieving various data in different formats with great flexibility. It can be also used to retrieve a BLOB data as an in-memory data or a storage object. A CR2XML<T> based object uses this function to retrieve a data in particular string format for some of columns data.

CR2XML Class Overview & Class Members