| 136 | } |
| 137 | |
| 138 | XnStatus MockGenerator::SetGeneralProperty(const XnChar* strName, XnUInt32 nBufferSize, const void* pBuffer) |
| 139 | { |
| 140 | XnStatus nRetVal = XN_STATUS_OK; |
| 141 | if (strcmp(strName, XN_PROP_NEWDATA) == 0) |
| 142 | { |
| 143 | nRetVal = SetNextData(pBuffer, nBufferSize); |
| 144 | XN_IS_STATUS_OK(nRetVal); |
| 145 | } |
| 146 | else |
| 147 | { |
| 148 | nRetVal = MockProductionNode::SetGeneralProperty(strName, nBufferSize, pBuffer); |
| 149 | XN_IS_STATUS_OK(nRetVal); |
| 150 | } |
| 151 | return XN_STATUS_OK; |
| 152 | } |
| 153 | |
| 154 | XnStatus MockGenerator::SetNextData(const void *pData, XnUInt32 nSize) |
| 155 | { |
no outgoing calls
no test coverage detected