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

Method SetStringProperty

Source/Modules/nimMockNodes/MockProductionNode.cpp:100–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100XnStatus MockProductionNode::SetStringProperty(const XnChar* strName, const XnChar* strValue)
101{
102 const XnChar* strOldVal = NULL;
103 if (m_stringProps.Get(strName, strOldVal) == XN_STATUS_OK)
104 {
105 xnOSFree(strOldVal);
106 }
107
108 XnStatus nRetVal = m_stringProps.Set(strName, xnOSStrDup(strValue));
109 XN_IS_STATUS_OK(nRetVal);
110
111 if (m_pNotifications != NULL)
112 {
113 nRetVal = m_pNotifications->OnNodeStringPropChanged(m_pNotificationsCookie, m_strName, strName, strValue);
114 XN_IS_STATUS_OK(nRetVal);
115 }
116
117 return (XN_STATUS_OK);
118}
119
120XnStatus MockProductionNode::SetGeneralProperty(const XnChar* strName, XnUInt32 nBufferSize, const void* pBuffer)
121{

Callers

nothing calls this directly

Calls 5

xnOSStrDupFunction · 0.85
xnOSFreeFunction · 0.50
GetMethod · 0.45
SetMethod · 0.45

Tested by

no test coverage detected