XnStatus XnDeviceBase::GetModulesList(XnDeviceModuleHolderList& list) { list.Clear(); for (XnStringsHash::Iterator it = m_Modules.begin(); it != m_Modules.end(); ++it) { list.AddLast((XnDeviceModuleHolder*)it.Value()); } return (XN_STATUS_OK); }
XnStatus XnDeviceBase::GetModulesList(XnDeviceModuleHolderList& list) { list.Clear(); for (ModuleHoldersHash::Iterator it = m_Modules.Begin(); it != m_Modules.End(); ++it) { list.AddLast(it->Value()); } return (XN_STATUS_OK); }
XnStatus XnDeviceBase::GetStreamsList(XnDeviceModuleHolderList& list) { list.Clear(); for (XnStringsHash::Iterator it = m_Modules.begin(); it != m_Modules.end(); ++it) { XnDeviceModuleHolder* pModuleHolder = (XnDeviceModuleHolder*)it.Value(); if (IsStream(pModuleHolder->GetModule())) { list.AddLast(pModuleHolder); } } return (XN_STATUS_OK); }