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

Method SetNodeStringProp

Source/OpenNI/XnPlayerImpl.cpp:600–622  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

598}
599
600XnStatus PlayerImpl::SetNodeStringProp(const XnChar* strNodeName, const XnChar* strPropName, const XnChar* strValue)
601{
602 XnStatus nRetVal = XN_STATUS_OK;
603
604 PlayedNodeInfo playedNode;
605 nRetVal = m_playedNodes.Get(strNodeName, playedNode);
606 XN_IS_STATUS_OK(nRetVal);
607
608 nRetVal = xnLockedNodeStartChanges(playedNode.hNode, playedNode.hLock);
609 XN_IS_STATUS_OK(nRetVal);
610
611 nRetVal = xnSetStringProperty(playedNode.hNode, strPropName, strValue);
612 if (nRetVal != XN_STATUS_OK)
613 {
614 xnLockedNodeEndChanges(playedNode.hNode, playedNode.hLock);
615 return (nRetVal);
616 }
617
618 nRetVal = xnLockedNodeEndChanges(playedNode.hNode, playedNode.hLock);
619 XN_IS_STATUS_OK(nRetVal);
620
621 return XN_STATUS_OK;
622}
623
624XnStatus PlayerImpl::SetNodeGeneralProp(const XnChar* strNodeName, const XnChar* strPropName, XnUInt32 nBufferSize, const void* pBuffer)
625{

Callers 1

Calls 4

xnLockedNodeStartChangesFunction · 0.85
xnSetStringPropertyFunction · 0.85
xnLockedNodeEndChangesFunction · 0.85
GetMethod · 0.45

Tested by

no test coverage detected