OpenNI 1.5.4: XnStatusRegister.h File Reference

OpenNI

XnStatusRegister.h File Reference
#include "XnStatus.h"

Go to the source code of this file.

Classes

struct  XnErrorCodeData

Defines

#define XN_STATUS_MESSAGE_MAP_START_FROM(group, first)
#define XN_STATUS_MESSAGE(csName, csMessage)   { 0, XN_STRINGIFY(csName), csMessage },
#define XN_STATUS_MESSAGE_MAP_END_FROM(group, first)
#define XN_STATUS_REGISTER

Typedefs

typedef struct XnErrorCodeData XnErrorCodeData

Functions

XN_C_API XnStatus XN_C_DECL xnRegisterErrorCodeMessages (XnUInt16 nGroup, XnUInt16 nFirst, XnUInt16 nCount, XnErrorCodeData *pErrorCodeData)

Define Documentation

#define XN_STATUS_MESSAGE (   csName,
  csMessage 
)    { 0, XN_STRINGIFY(csName), csMessage },

Adds an entry to the message map.

#define XN_STATUS_MESSAGE_MAP_END_FROM (   group,
  first 
)
Value:
};                                                  \
    static XnStatus s_##group##first##_result = xnRegisterErrorCodeMessages(group, first, sizeof(_XN_ERROR_GROUP_NAME(group, first)) / sizeof(XnErrorCodeData), _XN_ERROR_GROUP_NAME(group, first));

Marks the end of a message map.

#define XN_STATUS_MESSAGE_MAP_START_FROM (   group,
  first 
)
Value:
static XnErrorCodeData _XN_ERROR_GROUP_NAME(group, first)[] =       \
    {                                                                   \
        { first, XN_STRINGIFY(group) "_OK", XN_STRINGIFY(group) " OK" },
#define XN_STATUS_REGISTER

Typedef Documentation


Function Documentation

XN_C_API XnStatus XN_C_DECL xnRegisterErrorCodeMessages ( XnUInt16  nGroup,
XnUInt16  nFirst,
XnUInt16  nCount,
XnErrorCodeData pErrorCodeData 
)

This function registers error codes to the message map.

Parameters:
nGroup[in] The group for which these errors belong to.
nFirst[in] The first value.
nCount[in] The number of status messages to register.
pErrorCodeData[in] An array of status messages.
Generated on Wed May 16 2012 10:16:05 for OpenNI 1.5.4 by   doxygen 1.7.5.1