| 134 | } |
| 135 | |
| 136 | XnStatus TypeManager::GetTypeByName(const XnChar* strName, XnProductionNodeType* pType) const |
| 137 | { |
| 138 | // take current count (for thread safety reasons) |
| 139 | XnUInt32 nCount = m_nNextExtendedNodeType; |
| 140 | |
| 141 | // now search the array |
| 142 | for (XnUInt32 i = 1; i < nCount; ++i) |
| 143 | { |
| 144 | if (strcmp(m_pTypesArray[i]->strName, strName) == 0) |
| 145 | { |
| 146 | *pType = m_pTypesArray[i]->type; |
| 147 | return (XN_STATUS_OK); |
| 148 | } |
| 149 | } |
| 150 | |
| 151 | // not found |
| 152 | return (XN_STATUS_NO_MATCH); |
| 153 | } |
| 154 | |
| 155 | XnStatus TypeManager::IsTypeDerivedFrom(XnProductionNodeType type, XnProductionNodeType base, XnBool* pbIsDerived) const |
| 156 | { |
no outgoing calls
no test coverage detected