QScxmlError Class
QScxmlError クラスは、SCXML ファイルのパース時にQt SCXML ステートマシンが返すエラーを記述します。詳細...
ヘッダ | #include <QScxmlError> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Scxml) target_link_libraries(mytarget PRIVATE Qt6::Scxml) |
qmake: | QT += scxml |
プロパティ
|
パブリック機能
QScxmlError() | |
QScxmlError(const QString &fileName, int line, int column, const QString &description) | |
QScxmlError(const QScxmlError &other) | |
~QScxmlError() | |
int | column() const |
QString | description() const |
QString | fileName() const |
bool | isValid() const |
int | line() const |
QString | toString() const |
QScxmlError & | operator=(const QScxmlError &other) |
QScxmlStateMachine およびQScxmlCompilerも参照してください 。
プロパティ・ドキュメンテーション
[read-only]
column : const int
このプロパティは SCXML エラーが発生した列番号を保持します。
アクセス関数:
int | column() const |
[read-only]
description : const QString
このプロパティは SCXML エラーの説明を保持します。
アクセス関数:
QString | description() const |
[read-only]
fileName : const QString
このプロパティは、SCXML エラーが発生したファイルの名前を保持します。
アクセス関数:
QString | fileName() const |
[read-only]
line : const int
このプロパティは SCXML エラーが発生した行番号を保持します。
アクセス関数:
int | line() const |
[read-only]
valid : const bool
このプロパティは SCXML エラーが有効かどうかを保持します。
関数にアクセスします:
bool | isValid() const |
メンバ関数ドキュメント
QScxmlError::QScxmlError()
新しい無効な SCXML エラーを作成します。
QScxmlError::QScxmlError(const QString &fileName, int line, int column, const QString &description)
エラーメッセージdescription と、エラーが発生したfileName 、line 、column を含む有効な SCXML エラーを新たに作成します。
QScxmlError::QScxmlError(const QScxmlError &other)
other のコピーを作成する。
[noexcept]
QScxmlError::~QScxmlError()
SCXML エラーを破棄します。
int QScxmlError::column() const
エラーが発生したカラムを返します。
注: プロパティ・カラムのゲッター関数です。
QString QScxmlError::description() const
エラーメッセージを返す。
注: プロパティ記述のゲッター関数。
QString QScxmlError::fileName() const
エラーが発生したファイル名を返す。
注: プロパティ fileName のゲッター関数です。
bool QScxmlError::isValid() const
エラーが有効な場合はtrue
を、そうでない場合はfalse
を返します。無効なエラーは、デフォルトのコンストラクタを呼び出すか、無効なエラーを代入することによってのみ作成できます。
注: プロパティのゲッター関数valid 。
int QScxmlError::line() const
エラーが発生した行を返す。
注: プロパティ行のゲッター関数です。
QString QScxmlError::toString() const
この便利なメソッドは、エラーを文字列に変換する。フォーマットされたエラーメッセージを返します:"ファイル名:行:列:エラー:説明"
QScxmlError &QScxmlError::operator=(const QScxmlError &other)
この SCXML エラーにother を代入し、この SCXML エラーへの参照を返します。
© 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.