QCanBusFactory Class
QCanBusFactory 클래스는 CAN 버스 플러그인의 플러그인 인터페이스로 사용되는 팩토리 클래스입니다. 더 보기...
| 헤더: | #include <QCanBusFactory> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS SerialBus) target_link_libraries(mytarget PRIVATE Qt6::SerialBus) |
| qmake: | QT += serialbus |
공개 함수
| virtual QList<QCanBusDeviceInfo> | availableDevices(QString *errorMessage) const = 0 |
| virtual QCanBusDevice * | createDevice(const QString &interfaceName, QString *errorMessage) const = 0 |
멤버 함수 문서
[pure virtual] QList<QCanBusDeviceInfo> QCanBusFactory::availableDevices(QString *errorMessage) const
QCanBusDevice 에 대해 사용 가능한 장치 목록과 해당 장치의 기능을 반환합니다.
errorMessage 실패 시 오류 설명이 포함됩니다.
[pure virtual] QCanBusDevice *QCanBusFactory::createDevice(const QString &interfaceName, QString *errorMessage) const
새로운 QCanBusDevice 객체를 생성합니다. 호출자는 반환된 포인터에 대한 소유권을 가져야 합니다.
interfaceName 는 CAN 인터페이스 이름이며, errorMessage 는 실패 시 오류 설명을 포함합니다.
팩토리가 플러그인을 생성할 수 없는 경우, ` nullptr`를 반환합니다.
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.