PxSysInfoGetObjType()
Request the type of an object.
- APPLIES TO
-
8.2.0
- SYNOPSIS
-
_PxObjType_t PxSysInfoGetObjType (PxObj_t oId); - ARGUMENTS
|
- RETURN VALUES
-
-
The type of the object
-
_PXObjIllObjectifoIdis not a valid PXROS object
-
- DESCRIPTION
-
PxSysInfoGetObjTypereturns the object type of the given objectoId. IfoIdis not a valid PXROS object,_PxObjIllObjectis returned.
- IMPLEMENTATION GUIDELINES
-
- Before call
-
-
objidmust be a valid PXROS-HR object, which may be checked with one of the following macros:-
PxObjIdIsValid()must be true. -
PxObjIdGet()must not be_PXIllegalObjId. -
PxObjIdError()must bePXERR_NOERRORotherwise the returned error code has to be interpreted (C).
-
-
- After call
-
-
The function returns
_PXObjIllObjectif the given object is invalid (C).
-
- Best Practice
-
-
No restrictions
-
- USAGE
-
#include "pxdef.h" _PxObjType_t type = PxSysInfoGetObjType(oId); if (type != _PXObjMc) { // Report Error }