ICP  1
Classes | Functions
variant_utils.cpp File Reference
#include "stdafx.h"
#include "variant_utils.h"

Go to the source code of this file.

Classes

struct  CPPType< vt >
 
struct  CPPType< VT_I4 >
 
struct  CPPType< VT_R4 >
 

Functions

int allocateArrayVariant (VARIANT *v, VARTYPE v_type, int *dims_array, int ndims)
 
static int accessArrayVariant (VARIANT *v, void **values, VARTYPE vt)
 
int accessArrayVariant (VARIANT *v, float **values)
 
int accessArrayVariant (VARIANT *v, double **values)
 
int accessArrayVariant (VARIANT *v, long **values)
 
int accessArrayVariant (VARIANT *v, BSTR **values)
 
int accessArrayVariant (VARIANT *v, VARIANT **values)
 
int unaccessArrayVariant (VARIANT *v)
 
int arrayVariantLength (VARIANT *v)
 
int arrayVariantDimensions (VARIANT *v, int dims_array[], int &ndims)
 
template<typename T >
int makeVariantFromArray (VARIANT *v, const std::vector< T > &the_array)
 
template<>
int makeVariantFromArray (VARIANT *v, const std::vector< std::string > &the_array)
 
template<typename T >
int makeVariantFromArray (VARIANT *v, const T *the_array, int n)
 
template<>
int makeVariantFromArray (VARIANT *v, const char *the_array, int n)
 
template int makeVariantFromArray (VARIANT *v, const std::vector< float > &the_array)
 

Function Documentation

static int accessArrayVariant ( VARIANT *  v,
void **  values,
VARTYPE  vt 
)
static

Definition at line 40 of file variant_utils.cpp.

int accessArrayVariant ( VARIANT *  v,
float **  values 
)

Definition at line 59 of file variant_utils.cpp.

References accessArrayVariant().

int accessArrayVariant ( VARIANT *  v,
double **  values 
)

Definition at line 64 of file variant_utils.cpp.

References accessArrayVariant().

int accessArrayVariant ( VARIANT *  v,
long **  values 
)

Definition at line 69 of file variant_utils.cpp.

References accessArrayVariant().

int accessArrayVariant ( VARIANT *  v,
BSTR **  values 
)

Definition at line 74 of file variant_utils.cpp.

References accessArrayVariant().

int accessArrayVariant ( VARIANT *  v,
VARIANT **  values 
)

Definition at line 79 of file variant_utils.cpp.

References accessArrayVariant().

int allocateArrayVariant ( VARIANT *  v,
VARTYPE  v_type,
int *  dims_array,
int  ndims 
)

Definition at line 15 of file variant_utils.cpp.

int arrayVariantDimensions ( VARIANT *  v,
int  dims_array[],
int &  ndims 
)

Definition at line 124 of file variant_utils.cpp.

int arrayVariantLength ( VARIANT *  v)

Definition at line 95 of file variant_utils.cpp.

template<typename T >
int makeVariantFromArray ( VARIANT *  v,
const std::vector< T > &  the_array 
)

Definition at line 150 of file variant_utils.cpp.

References makeVariantFromArray().

template<>
int makeVariantFromArray ( VARIANT *  v,
const std::vector< std::string > &  the_array 
)
template<typename T >
int makeVariantFromArray ( VARIANT *  v,
const T *  the_array,
int  n 
)
template<>
int makeVariantFromArray ( VARIANT *  v,
const char *  the_array,
int  n 
)

Definition at line 206 of file variant_utils.cpp.

template int makeVariantFromArray ( VARIANT *  v,
const std::vector< float > &  the_array 
)
int unaccessArrayVariant ( VARIANT *  v)

Definition at line 84 of file variant_utils.cpp.