Typedefs | Functions
Enumeration Errors

Typedefs

typedef struct XnEnumerationErrors XnEnumerationErrors
typedef struct XnModuleError * XnEnumerationErrorsIterator

Functions

XN_C_API XnStatus xnEnumerationErrorsAdd (XnEnumerationErrors *pErrors, const XnProductionNodeDescription *pDesc, XnStatus nError)
XN_C_API XnStatus xnEnumerationErrorsAllocate (XnEnumerationErrors **ppErrors)
XN_C_API XnStatus xnEnumerationErrorsClear (XnEnumerationErrors *pErrors)
XN_C_API void xnEnumerationErrorsFree (const XnEnumerationErrors *pErrors)
XN_C_API const
XnProductionNodeDescription
xnEnumerationErrorsGetCurrentDescription (XnEnumerationErrorsIterator it)
XN_C_API XnStatus xnEnumerationErrorsGetCurrentError (XnEnumerationErrorsIterator it)
XN_C_API
XnEnumerationErrorsIterator 
xnEnumerationErrorsGetFirst (const XnEnumerationErrors *pErrors)
XN_C_API
XnEnumerationErrorsIterator 
xnEnumerationErrorsGetNext (XnEnumerationErrorsIterator it)
XN_C_API XnBool xnEnumerationErrorsIteratorIsValid (XnEnumerationErrorsIterator it)
XN_C_API XnStatus xnEnumerationErrorsToString (const XnEnumerationErrors *pErrors, XnChar *csBuffer, XnUInt32 nSize)

Detailed Description

This page details functions for managing an Enumeration Errors object.

Enumeration

The following code iterates over an enumeration errors object:

for (XnEnumerationErrorsIterator it = xnEnumerationErrorsGetFirst(pList); 
        xnEnumerationErrorsIteratorIsValid(it); 
        it = xnEnumerationErrorsGetNext(it))
{
        const XnProductionNodeDescription* pCurrDesc = xnEnumerationErrorsGetCurrentDescription(it);
        XnStatus nCurrError = xnEnumerationErrorsGetCurrentError(it);
        ...
}

Typedef Documentation

An object that holds errors during an enumeration process.

Definition at line 189 of file XnTypes.h.

typedef struct XnModuleError* XnEnumerationErrorsIterator

Represents an iterator for an XnEnumerationErrors object.

Definition at line 61 of file XnEnumerationErrors.h.


Function Documentation

Adds an error to the object.

Parameters:
pErrors[in] Enumeration Errors object.
pDesc[in] Description of the failing module.
nError[in] The enumeration error that occurred.

Allocates an enumeration errors object.

Parameters:
ppErrors[out] The allocated object

Clears an Enumeration Errors object from all errors in it.

Parameters:
pErrors[in] Enumeration Errors object.

Frees an enumeration errors object

Parameters:
pErrors[in] Parameter description

Gets the description of the node from current error.

Parameters:
it[in] The iterator to the error.

Gets the enumeration error caused when enumerating the node.

Parameters:
it[in] The iterator to the error.

Gets an iterator to the first error in the object.

Parameters:
pErrors[in] Enumeration Errors object.

Gets an iterator to the next error in the object.

Parameters:
it[in] An iterator to an error in the object.

Checks if an iterator is valid (i.e. points to a real error)

Parameters:
it[in] The iterator to check.
XN_C_API XnStatus xnEnumerationErrorsToString ( const XnEnumerationErrors pErrors,
XnChar csBuffer,
XnUInt32  nSize 
)

Returns a string representation of the Enumeration Errors object.

Parameters:
pErrors[in] Enumeration Errors object.
csBuffer[in] A char buffer to be filled.
nSize[in] Size of the char buffer.


nao_openni
Author(s): Bener SUAY
autogenerated on Mon Jan 6 2014 11:27:51