MCPcopy Create free account
hub / github.com/OpenNI/OpenNI / GetStringProperty

Method GetStringProperty

Source/Modules/nimMockNodes/MockProductionNode.cpp:166–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164}
165
166XnStatus 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
185XnStatus MockProductionNode::GetGeneralProperty(const XnChar* strName, XnUInt32 nBufferSize, void* pBuffer) const
186{

Callers 1

xnGetStringPropertyFunction · 0.45

Calls 1

GetMethod · 0.45

Tested by

no test coverage detected