The features described in this topic are obsolete
and should not be used in new IDL code.
More Variable Manipulation Macros
The following macros can be used to get information from varinfo_t structures. Like the variable creation functions, these macros are defined in the file rpc_idl.h.
All of these macros accept a single argument v of varinfo_t type.
GetArrayData(v)
This macro returns a pointer to the array data described by the varinfo_t structure.
GetArrayDimensions(v)
This macro returns the dimensions of the array described by the varinfo_t structure. The dimensions are returned as long dimensions[].
GetArrayNumDims(v)
This macro returns the number of dimensions of the array.
GetVarByte(v)
This macro returns the value of a 1-byte, unsigned char variable.
GetVarComplex(v)
This macro returns the value (as a struct, not a pointer) of a complex variable.
GetVarDComplex(v)
This macro returns the value (as a struct, not a pointer) of a double-precision, complex variable.
GetVarDouble(v)
This macro returns the value of a double-precision, floating-point variable.
GetVarFloat(v)
This macro returns the value of a single-precision, floating point variable.
GetVarInt(v)
This macro returns the value of a 2-byte integer variable.
GetVarLong(v)
This macro returns the value of a 4-byte integer variable.
GetVarString(v)
This macro returns the value of a string variable (as a char*).
GetVarType(v)
This macro returns the type of the variable described by the varinfo_t structure. The type is returned as IDL_TYP_XXX as described under the documentation for the get_idl_variable function.
VarIsArray(v)
This macro returns non-zero if v is an array variable.