| 47 | } |
| 48 | |
| 49 | XnStatus ExportedSampleDepth::Create( xn::Context& /*context*/, const XnChar* /*strInstanceName*/, const XnChar* /*strCreationInfo*/, xn::NodeInfoList* /*pNeededTrees*/, const XnChar* /*strConfigurationDir*/, xn::ModuleProductionNode** ppInstance ) |
| 50 | { |
| 51 | XnStatus nRetVal = XN_STATUS_OK; |
| 52 | |
| 53 | SampleDepth* pDepth = new SampleDepth(); |
| 54 | |
| 55 | nRetVal = pDepth->Init(); |
| 56 | if (nRetVal != XN_STATUS_OK) |
| 57 | { |
| 58 | delete pDepth; |
| 59 | return (nRetVal); |
| 60 | } |
| 61 | |
| 62 | *ppInstance = pDepth; |
| 63 | |
| 64 | return (XN_STATUS_OK); |
| 65 | } |
| 66 | |
| 67 | void ExportedSampleDepth::Destroy( xn::ModuleProductionNode* pInstance ) |
| 68 | { |