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
을 반환합니다.
© 2025 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.