| 174 | } |
| 175 | |
| 176 | XnStatus RecorderNode::OnNodeRealPropChanged(const XnChar* strNodeName, const XnChar* strPropName, XnDouble dValue) |
| 177 | { |
| 178 | m_nConfigurationID++; |
| 179 | |
| 180 | XnUInt64 nUndoRecordPos = 0; |
| 181 | RecordedNodeInfo* pRecordedNodeInfo = NULL; |
| 182 | XnStatus nRetVal = UpdateNodePropInfo(strNodeName, strPropName, pRecordedNodeInfo, nUndoRecordPos); |
| 183 | XN_IS_STATUS_OK(nRetVal); |
| 184 | |
| 185 | RealPropRecord record(m_pRecordBuffer, RECORD_MAX_SIZE, FALSE); |
| 186 | record.SetNodeID(pRecordedNodeInfo->nNodeID); |
| 187 | record.SetPropName(strPropName); |
| 188 | record.SetValue(dValue); |
| 189 | record.SetUndoRecordPos(nUndoRecordPos); |
| 190 | nRetVal = record.Encode(); |
| 191 | if (nRetVal != XN_STATUS_OK) |
| 192 | { |
| 193 | xnLogWarning(XN_MASK_OPEN_NI, "Failed to encode Real Property record: %s", xnGetStatusString(nRetVal)); |
| 194 | XN_ASSERT(FALSE); |
| 195 | return nRetVal; |
| 196 | } |
| 197 | |
| 198 | nRetVal = WriteRecordToStream(strNodeName, record); |
| 199 | if (nRetVal != XN_STATUS_OK) |
| 200 | { |
| 201 | xnLogWarning(XN_MASK_OPEN_NI, "Failed to write Real Property record to file: %s", xnGetStatusString(nRetVal)); |
| 202 | XN_ASSERT(FALSE); |
| 203 | return nRetVal; |
| 204 | } |
| 205 | return XN_STATUS_OK; |
| 206 | } |
| 207 | |
| 208 | XnStatus RecorderNode::OnNodeStringPropChanged(const XnChar* strNodeName, const XnChar* strPropName, const XnChar* strValue) |
| 209 | { |
no test coverage detected