Qt OPC UA 데이터 유형 생성기

Qt OPC UA Qt 6.7부터 qopcuaxmldatatypes2cpp 이라는 데이터 유형 생성기가 제공되어 .bsd 파일의 열거형과 구조화된 유형으로부터 Qt OPC UA 호환 가능한 C++ 열거형과 데이터 클래스를 생성합니다.

이 제너레이터는 다음 인수로 제어할 수 있는 명령줄 도구입니다:

LongShort목적
-input-i포함된 모든 열거형 및 구조체 유형이 생성될 .bsd 파일입니다. 여러 모델에 대한 코드를 생성하는 데 두 번 이상 사용할 수 있습니다.
-dependencyinput-d-input을 통해 전달된 입력 파일에서 구조체에 필요한 유형만 생성하는 종속성 입력 .bsd 파일입니다. 여러 다른 모델에 대한 종속성이 있는 모델을 수용하기 위해 두 번 이상 사용할 수 있습니다.
-output-o생성된 파일이 저장될 출력 디렉터리입니다.
-접두사-p생성된 파일, 열거형 및 클래스 이름의 접두사. 기본값은 GeneratedOpcUa 입니다.

각 실행에 대해 다음 파일이 생성됩니다:

  • 모든 열거형 유형이 포함된 네임스페이스가 포함된 .h 파일 1개
  • 각 구조화된 유형에 대해 .h 파일 1개 및 .cpp 파일 1개
  • 인코딩 및 디코딩 메서드가 포함된 .h 파일 1개와 .cpp 파일 1개

© 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.