mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 15:15:50 +08:00
Ref T111, added utility functions used for swift plugin (dummy driver)
* new reader functions * plugin info
This commit is contained in:
committed by
Mathew Sutcliffe
parent
29e1d54e05
commit
b1295cd457
@@ -38,5 +38,14 @@ namespace BlackMisc
|
||||
{
|
||||
return this->findFirstByOrDefault(&CSimulatorPluginInfo::getIdentifier, identifier);
|
||||
}
|
||||
|
||||
CSimulatorPluginInfo CSimulatorPluginInfoList::findBySimulator(const CSimulatorInfo &simulator) const
|
||||
{
|
||||
for (const CSimulatorPluginInfo &info : *this)
|
||||
{
|
||||
if (info.getSimulatorInfo() == simulator) { return info; }
|
||||
}
|
||||
return CSimulatorPluginInfo();
|
||||
}
|
||||
} // namespace
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user