| 164 | } |
| 165 | |
| 166 | XnStatus MockProductionNode::GetStringProperty(const XnChar* strName, XnChar* csValue, XnUInt32 nBufSize) const |
| 167 | { |
| 168 | XnStatus nRetVal = XN_STATUS_OK; |
| 169 | |
| 170 | const XnChar* val; |
| 171 | |
| 172 | nRetVal = m_stringProps.Get(strName, val); |
| 173 | XN_IS_STATUS_OK(nRetVal); |
| 174 | |
| 175 | if (strlen(val) > nBufSize) |
| 176 | { |
| 177 | XN_LOG_ERROR_RETURN(XN_STATUS_OUTPUT_BUFFER_OVERFLOW, XN_MASK_OPEN_NI, "Can't get string property '%s' - destination buffer too small", strName); |
| 178 | } |
| 179 | |
| 180 | strcpy(csValue, val); |
| 181 | |
| 182 | return (XN_STATUS_OK); |
| 183 | } |
| 184 | |
| 185 | XnStatus MockProductionNode::GetGeneralProperty(const XnChar* strName, XnUInt32 nBufferSize, void* pBuffer) const |
| 186 | { |
no test coverage detected