| 123456789101112131415161718192021222324252627282930 |
- #include "serialbasehandle.h"
- #include "logserialport.h"
- #include "assictscalet2000.h"
- SerialBaseHandle::SerialBaseHandle()
- {
- }
- SerialBaseHandle::~SerialBaseHandle()
- {
- }
- SerialBaseHandle * SerialBaseHandle::getHandler(int type, const QString & result)
- {
- SerialBaseHandle *ret = nullptr;
- switch (type) {
- case 0:
- ret = new LogSerialPort();
- break;
- case 1:
- ret = new AssicTScaleT2000();
- break;
- default:
- break;
- }
- return ret;
- }
|