System Global Function ConvertSafeArrayVariant
ConvertSafeArrayVariant( | const | iSafeArray, |
| | ioFloatArray, |
| | iSize | = 0) |
-
Converts a CATSafeArrayVariant into a C++ array of floats.
- Parameters:
-
- iSafeArray
- the array to convert
- ioFloatArray
- a pointer to a C++ array of floats large enough to
contain all the converted values.
Legal values:
- NULL
- The function will simply return the size of the
CATSafeArrayVariant without converting anything. This size
can later be used to allocate the C++ array to the proper size.
- valid non NULL pointer
- The function will convert the
CATSafeArrayVariant and put the results in the array.
- iSize
- the number of elements to convert.
Legal values:Must be smaller than or equal to the
size of iSafeArray.
- Returns:
- the number of converted elements if ioFloatArray is not NULL,
or the size of iSafeArray otherwise.
This object is included in the file: CATAutoConversions.h
Copyright © 1999-2015, Dassault Systèmes. All rights reserved.