| 59 | } |
| 60 | |
| 61 | XnStatus MockProductionNode::SetIntProperty(const XnChar* strName, XnUInt64 nValue) |
| 62 | { |
| 63 | if (strcmp(strName, XN_CAPABILITY_EXTENDED_SERIALIZATION) == 0) |
| 64 | { |
| 65 | m_bExtendedSerializationCap = (XnBool)nValue; |
| 66 | } |
| 67 | else if (strcmp(strName, XN_PROP_STATE_READY) == 0) |
| 68 | { |
| 69 | return OnStateReady(); |
| 70 | } |
| 71 | else |
| 72 | { |
| 73 | XnStatus nRetVal = m_intProps.Set(strName, nValue); |
| 74 | XN_IS_STATUS_OK(nRetVal); |
| 75 | |
| 76 | if (m_pNotifications != NULL) |
| 77 | { |
| 78 | nRetVal = m_pNotifications->OnNodeIntPropChanged(m_pNotificationsCookie, m_strName, strName, nValue); |
| 79 | XN_IS_STATUS_OK(nRetVal); |
| 80 | } |
| 81 | } |
| 82 | |
| 83 | return XN_STATUS_OK; |
| 84 | } |
| 85 | |
| 86 | XnStatus MockProductionNode::SetRealProperty(const XnChar* strName, XnDouble dValue) |
| 87 | { |
nothing calls this directly
no test coverage detected