| 98 | } |
| 99 | |
| 100 | XnStatus 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 | |
| 120 | XnStatus MockProductionNode::SetGeneralProperty(const XnChar* strName, XnUInt32 nBufferSize, const void* pBuffer) |
| 121 | { |
nothing calls this directly
no test coverage detected