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

Method SetGeneralProperty

Source/Modules/nimMockNodes/MockGenerator.cpp:138–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138XnStatus 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
154XnStatus MockGenerator::SetNextData(const void *pData, XnUInt32 nSize)
155{

Callers 3

xnSetGeneralPropertyFunction · 0.45
mainFunction · 0.45
UserTrackerMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected