QProtobufJsonSerializer Class
QProtobufJsonSerializer クラスは、QProtobufMessage オブジェクトを JSON にシリアライズ/デシリアライズするための基本関数を表すインターフェイスです。詳細...
ヘッダー | #include <QProtobufJsonSerializer> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Protobuf) target_link_libraries(mytarget PRIVATE Qt6::Protobuf) |
以来: | Qt 6.7 |
継承: | QAbstractProtobufSerializer |
再実装パブリック関数
virtual QAbstractProtobufSerializer::Error | lastError() const override |
virtual QString | lastErrorString() const override |
詳細な説明
QProtobufJsonSerializer クラスは、QProtobufMessage を継承する protobuf メッセージを実装するクラスのシリアライザー/デシリアライザーを登録します。これらのクラスは、CMake 関数qt_add_protobufを使用するか、qtprotobufgenを直接実行して、.proto
ファイルに基づいて自動的に生成されます。
メンバ関数のドキュメント
[override virtual]
QAbstractProtobufSerializer::Error QProtobufJsonSerializer::lastError() const
再実装:QAbstractProtobufSerializer::lastError() const.
シリアライザインスタンスの最後のデシリアライズエラーを返します。
lastErrorString()も参照ください 。
[override virtual]
QString QProtobufJsonSerializer::lastErrorString() const
再実装:QAbstractProtobufSerializer::lastErrorString() const.
シリアライザーインスタンスの最後のデシリアライズエラー文字列を返します。
lastError()も参照ください 。
© 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.