/*---------------------------------------------------------------------- | PLT_DeviceData::FindEmbeddedDeviceByType +---------------------------------------------------------------------*/ NPT_Result PLT_DeviceData::FindEmbeddedDeviceByType(const char* type, PLT_DeviceDataReference& device) { return NPT_ContainerFind(m_EmbeddedDevices, PLT_DeviceDataFinderByType(type), device); }
/*---------------------------------------------------------------------- | PLT_DeviceData::FindEmbeddedDeviceByType +---------------------------------------------------------------------*/ NPT_Result PLT_DeviceData::FindEmbeddedDeviceByType(const char* type, PLT_DeviceDataReference& device) { NPT_Result res = NPT_ContainerFind(m_EmbeddedDevices, PLT_DeviceDataFinderByType(type), device); if (NPT_SUCCEEDED(res)) return res; for (int i=0; i<(int)m_EmbeddedDevices.GetItemCount(); i++) { res = m_EmbeddedDevices[i]->FindEmbeddedDeviceByType( type, device); if (NPT_SUCCEEDED(res)) return res; } return NPT_FAILURE; }