Ets_Output_Value_Cache_Multi_Column_Index_Get()
Abstract
Gets the column index in the output table for a column number in a registered values multi-column list.
Syntax
Ets_Output_Value_Cache_Multi_Column_Index_Get (cache_ptr, col_num)
| Argument | Type | Description |
|---|---|---|
cache_ptr |
EtsT_Output_Value_Cache * |
Output cache of interest. |
col_num |
int |
Column number in the multi-column lookup list of the desired value. |
Return Type
int
Column index in the output table for accessing the desired value; -1 if unsuccessful (not a valid column).
Header
ets_api_output.h
Details
For example, assume a registered value that has two multi-columns—Interface Name and Queue Name. The column index for Interface Name can be obtained with:
Ets_Output_Value_Cache_Multi_Column_Index_Get (cache_ptr, 0)
and the column index for Queue Name with:
Ets_Output_Value_Cache_Multi_Column_Index_Get (cache_ptr, 1)