Un valor de CCI_TRACE_TYPE que indica el nivel de rastreo que
está activo actualmente. El tipo de CCI_TRACE_TYPE tiene los siguientes
valores posibles:
- CCI_USER_NORMAL_TRACE
- CCI_USER_DEBUG_TRACE
- CCI_ SERVICE_NORMAL_TRACE
- CCI_SERVICE_DEBUG_TRACE
- CCI_TRACE_NONE
Estos valores de retorno son valores a nivel de bit. También
son posibles las combinaciones de estos valores, por ejemplo:
- CCI_USER_NORMAL_TRACE + CCI_ SERVICE_NORMAL_TRACE
- CCI_USER_NORMAL_TRACE + CCI_SERVICE_DEBUG_TRACE
- CCI_USER_DEBUG_TRACE + CCI_ SERVICE_NORMAL_TRACE
- CCI_USER_DEBUG_TRACE + CCI_SERVICE_DEBUG_TRACE
CCI_TRACE_NONE tiene el valor cero y todos los demás valores son
distintos de cero.
Se pueden utilizar dos valores más como máscaras
de bits al consultar el nivel al cual está activo el rastreo.
Son:
- CCI_USER_TRACE
- CCI_SERVICE_TRACE
Por ejemplo, la expresión
(traceLevel &
CCI_USER_TRACE) dará un valor distinto de cero para
traceLevel, para los valores de retorno siguiente:
- CCI_USER_NORMAL_TRACE + CCI_ SERVICE_NORMAL_TRACE
- CCI_USER_NORMAL_TRACE + CCI_SERVICE_DEBUG_TRACE
- CCI_USER_DEBUG_TRACE + CCI_ SERVICE_NORMAL_TRACE
- CCI_USER_DEBUG_TRACE + CCI_SERVICE_DEBUG_TRACE
- CCI_USER_NORMAL_TRACE
- CCI_USER_DEBUG_TRACE
La expresión
(traceLevel &
CCI_USER_TRACE) dará el valor cero para
traceLevel, para los valores de retorno
siguiente:
- CCI_SERVICE_NORMAL_TRACE
- CCI_SERVICE_DEBUG_TRACE
- CCI_TRACE_NONE