| 26 | using namespace scopy; |
| 27 | |
| 28 | DeviceImpl *DeviceFactory::build(QString param, QString category, QObject *parent) |
| 29 | { |
| 30 | QString cat = category.toLower(); |
| 31 | if(cat.compare("iio") == 0) { |
| 32 | return new IIODeviceImpl(param, parent); |
| 33 | } else { |
| 34 | return new DeviceImpl(param, category, parent); |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | #include "moc_devicefactory.cpp" |
no outgoing calls
no test coverage detected