MCPcopy Create free account
hub / github.com/OpenNI/OpenNI / GetTypeByName

Method GetTypeByName

Source/OpenNI/XnTypeManager.cpp:136–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136XnStatus 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
155XnStatus TypeManager::IsTypeDerivedFrom(XnProductionNodeType type, XnProductionNodeType base, XnBool* pbIsDerived) const
156{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected