333 lines
10 KiB
C++
333 lines
10 KiB
C++
/**
|
|
* @file KglResult.h
|
|
*
|
|
* Copyright (c) 2019 Keyence Corporation.
|
|
* All rights reserved.
|
|
*
|
|
*/
|
|
#pragma once
|
|
|
|
#include <windows.h>
|
|
|
|
namespace Keyence{
|
|
|
|
//------------------------------------------------------------
|
|
/**
|
|
* \~English @brief Defines the type of a result.
|
|
* \~Japanese @brief 結果種別を定義します。
|
|
*/
|
|
enum KglResult{
|
|
|
|
//------------------------------------------------------------
|
|
/**
|
|
* \~English @brief Successfully completed.
|
|
* \~Japanese @brief 正常終了しました。
|
|
*/
|
|
KGL_SUCCESS = 0,
|
|
|
|
//------------------------------------------------------------
|
|
/**
|
|
* \~English @brief Failure not defined in any other error code.
|
|
* \~Japanese @brief 他のエラーコードに該当しない失敗でした。
|
|
*/
|
|
KGL_GENERIC_ERROR,
|
|
|
|
//------------------------------------------------------------
|
|
/**
|
|
* \~English @brief Not initialized.
|
|
* \~Japanese @brief 初期化されていませんでした。
|
|
*/
|
|
KGL_ERR_NOT_INITIALIZED,
|
|
|
|
//------------------------------------------------------------
|
|
/**
|
|
* \~English @brief Not implemented.
|
|
* \~Japanese @brief インプリメントされていませんでした。
|
|
*/
|
|
KGL_ERR_NOT_IMPLEMENTED,
|
|
|
|
//------------------------------------------------------------
|
|
/**
|
|
* \~English @brief An invalid parameter.
|
|
* \~Japanese @brief 不正なパラメータでした。
|
|
*/
|
|
KGL_ERR_INVALID_PARAMETER,
|
|
|
|
//------------------------------------------------------------
|
|
/**
|
|
* \~English @brief An invalid access to the feature. (The requested operation is invalid regarding the Available attribute, access type, or range of the feature.)
|
|
* \~Japanese @brief 無効なFeatureアクセスでした。(要求された操作はFeatureのAvailable属性、アクセスタイプ、Featureの範囲に違反します。)
|
|
*/
|
|
KGL_ERR_INVALID_FEATURE_ACCESS,
|
|
|
|
//------------------------------------------------------------
|
|
/**
|
|
* \~English @brief A timeout has occurred.
|
|
* \~Japanese @brief タイムアウトが発生しました。
|
|
*/
|
|
KGL_ERR_TIMEOUT,
|
|
|
|
//------------------------------------------------------------
|
|
/**
|
|
* \~English @brief The target cannot be found.
|
|
* \~Japanese @brief 対象が見つかりませんでした。
|
|
*/
|
|
KGL_NOT_FOUND,
|
|
|
|
//------------------------------------------------------------
|
|
/**
|
|
* \~English @brief The camera device or stream is not connected.
|
|
* \~Japanese @brief カメラデバイスまたはストリームが接続されていませんでした。
|
|
*/
|
|
KGL_DEVICE_NOT_CONNECTED,
|
|
|
|
//------------------------------------------------------------
|
|
/**
|
|
* \~English @brief The file cannot be opened.
|
|
* \~Japanese @brief ファイルがOpenできませんでした。
|
|
*/
|
|
KGL_CANNOT_OPEN_FILE,
|
|
|
|
//------------------------------------------------------------
|
|
/**
|
|
* \~English @brief The requested target no longer exists.
|
|
* \~Japanese @brief 要求されているものは現在存在しませんでした。
|
|
*/
|
|
KGL_NO_MORE_ITEM,
|
|
|
|
//------------------------------------------------------------
|
|
/**
|
|
* \~English @brief The requested operation cannot be executed under the current condition.
|
|
* \~Japanese @brief 要求は現在の状態では実行できませんでした。
|
|
*/
|
|
KGL_STATE_ERROR,
|
|
|
|
//------------------------------------------------------------
|
|
/**
|
|
* \~English @brief An error occurred during a thread-related operation such as starting, stopping, or changing priority of a thread.
|
|
* \~Japanese @brief スレッド開始、停止、優先度変更などのスレッド操作でエラーが発生しました。
|
|
*/
|
|
KGL_THREAD_ERROR,
|
|
|
|
//------------------------------------------------------------
|
|
/**
|
|
* \~English @brief Unsupported data.
|
|
* \~Japanese @brief サポートしていないデータでした。
|
|
*/
|
|
KGL_INVALID_DATA_FORMAT,
|
|
|
|
//------------------------------------------------------------
|
|
/**
|
|
* \~English @brief Memory is insufficient.
|
|
* \~Japanese @brief メモリ不足でした。
|
|
*/
|
|
KGL_NOT_ENOUGH_MEMORY,
|
|
|
|
//------------------------------------------------------------
|
|
/**
|
|
* \~English @brief On-hold (data has not been received).
|
|
* \~Japanese @brief 保留中(データが未受信)でした。
|
|
*/
|
|
KGL_PENDING,
|
|
|
|
//------------------------------------------------------------
|
|
/**
|
|
* \~English @brief Failed to load a GenICam file.
|
|
* \~Japanese @brief GenICamファイルの読み込みに失敗しました。
|
|
*/
|
|
KGL_GENICAM_XML_ERROR,
|
|
|
|
//------------------------------------------------------------
|
|
/**
|
|
* \~English @brief A device was detected but the manifest table could not be read.
|
|
* \~Japanese @brief デバイスが検出されましたが、マニフェストテーブルを読み取れませんでした。
|
|
*/
|
|
KGL_CANNOT_READ_MANIFEST,
|
|
|
|
//------------------------------------------------------------
|
|
/**
|
|
* \~English @brief The function is not supported.
|
|
* \~Japanese @brief その機能はサポートしていない機能でした。
|
|
*/
|
|
KGL_NOT_SUPPORTED,
|
|
|
|
//------------------------------------------------------------
|
|
/**
|
|
* \~English @brief File operation error.
|
|
* \~Japanese @brief ファイル操作エラーが発生しました。
|
|
*/
|
|
KGL_FILE_ERROR,
|
|
|
|
//------------------------------------------------------------
|
|
/**
|
|
* \~English @brief An overflow has occurred.
|
|
* \~Japanese @brief オーバーフローが発生しました。
|
|
*/
|
|
KGL_ERR_OVERFLOW,
|
|
|
|
//------------------------------------------------------------
|
|
/**
|
|
* \~English @brief An image-related error.
|
|
* \~Japanese @brief 画像エラーが発生しました。
|
|
*/
|
|
KGL_IMAGE_ERROR,
|
|
|
|
//------------------------------------------------------------
|
|
/**
|
|
* \~English @brief Some packets are missing in the buffer.
|
|
* \~Japanese @brief 一部のパケットがバッファにありませんでした。
|
|
*/
|
|
KGL_MISSING_PACKETS,
|
|
|
|
//------------------------------------------------------------
|
|
/**
|
|
* \~English @brief Buffer required for receiving the data is not available.
|
|
* \~Japanese @brief データ受信するために必要なバッファがありませんでした。
|
|
*/
|
|
KGL_BUFFER_TOO_SMALL,
|
|
|
|
//------------------------------------------------------------
|
|
/**
|
|
* \~English @brief Failed to acquire the buffer due to too many request resend packets.
|
|
* \~Japanese @brief 要求再送パケットが多すぎるためバッファ獲得失敗しました。
|
|
*/
|
|
KGL_TOO_MANY_RESENDS,
|
|
|
|
//------------------------------------------------------------
|
|
/**
|
|
* \~English @brief Failed to receive the request resend packets.
|
|
* \~Japanese @brief 要求再送パケットの受信に失敗しました。
|
|
*/
|
|
KGL_RESENDS_FAILURE,
|
|
|
|
//------------------------------------------------------------
|
|
/**
|
|
* \~English @brief Failed to receive the buffer.
|
|
* \~Japanese @brief バッファの受信に失敗しました。
|
|
*/
|
|
KGL_TOO_MANY_CONSECUTIVE_RESENDS,
|
|
|
|
//------------------------------------------------------------
|
|
/**
|
|
* \~English @brief The operation has been canceled.
|
|
* \~Japanese @brief 操作が中止されました。
|
|
*/
|
|
KGL_AUTO_ABORTED,
|
|
|
|
//------------------------------------------------------------
|
|
/**
|
|
* \~English @brief The versions do not match.
|
|
* \~Japanese @brief バージョンが合いませんでした。
|
|
*/
|
|
KGL_BAD_VERSION,
|
|
|
|
//------------------------------------------------------------
|
|
/**
|
|
* \~English @brief There is no valid data.
|
|
* \~Japanese @brief 有効なデータがありませんでした。
|
|
*/
|
|
KGL_NO_AVAILABLE_DATA,
|
|
|
|
//------------------------------------------------------------
|
|
/**
|
|
* \~English @brief Network error.
|
|
* \~Japanese @brief ネットワークエラーが発生しました。
|
|
*/
|
|
KGL_NETWORK_ERROR,
|
|
|
|
//------------------------------------------------------------
|
|
/**
|
|
* \~English @brief The status is busy.
|
|
* \~Japanese @brief ビジー状態でした。
|
|
*/
|
|
KGL_ERR_BUSY,
|
|
|
|
//------------------------------------------------------------
|
|
/**
|
|
* \~English @brief The data is corrupt.
|
|
* \~Japanese @brief データが破損していました。
|
|
*/
|
|
KGL_CORRUPTED_DATA,
|
|
|
|
//------------------------------------------------------------
|
|
/**
|
|
* \~English @brief The operation has been canceled.
|
|
* \~Japanese @brief 操作が中止されました。
|
|
*/
|
|
KGL_ABORTED,
|
|
|
|
//------------------------------------------------------------
|
|
/**
|
|
* \~English @brief The operation has been canceled due to a cause attributable to the user.
|
|
* \~Japanese @brief 操作がユーザー起因でキャンセルされました。
|
|
*/
|
|
KGL_CANCEL,
|
|
|
|
//------------------------------------------------------------
|
|
/**
|
|
* \~English @brief The operation is not available because there is no license.
|
|
* \~Japanese @brief ライセンスがないため実行できませんでした。
|
|
*/
|
|
KGL_NO_LICENSE,
|
|
|
|
//------------------------------------------------------------
|
|
/**
|
|
* \~English @brief There is no entry.
|
|
* \~Japanese @brief エントリーがありませんでした。
|
|
*/
|
|
KGL_NO_MORE_ENTRY,
|
|
|
|
//------------------------------------------------------------
|
|
/**
|
|
* \~English @brief Failed due to forced resynchronization.
|
|
* \~Japanese @brief 強制再同期のために失敗しました。
|
|
*/
|
|
KGL_RESYNC,
|
|
|
|
//------------------------------------------------------------
|
|
/**
|
|
* \~English @brief The feature types do not match.
|
|
* \~Japanese @brief Featureの型が合っていませんでした。
|
|
*/
|
|
KGL_TYPE_COMPATIBILITY_ERROR,
|
|
|
|
//------------------------------------------------------------
|
|
/**
|
|
* \~English @brief The processing is in progress.
|
|
* \~Japanese @brief 処理実行中でした。
|
|
*/
|
|
KGL_FUNC_PROGRESS,
|
|
|
|
//------------------------------------------------------------
|
|
/**
|
|
* \~English @brief The target already exists.
|
|
* \~Japanese @brief 既に存在しました。
|
|
*/
|
|
KGL_ALREADY_EXISTS,
|
|
|
|
//------------------------------------------------------------
|
|
/**
|
|
* \~English @brief A model-image-related error.
|
|
* \~Japanese @brief モデル画像のエラーが発生しました。
|
|
*/
|
|
KGL_MODEL_IMAGE_FILE_ERROR,
|
|
|
|
//------------------------------------------------------------
|
|
/**
|
|
* \~English @brief A calibration-related error.
|
|
* \~Japanese @brief キャリブレ―ションファイルのエラーが発生しました。
|
|
*/
|
|
KGL_CALIBRATION_FILE_ERROR,
|
|
|
|
//------------------------------------------------------------
|
|
/**
|
|
* \~English @brief Number of enum elements of KglResult.
|
|
* \~Japanese @brief KglResultのenum要素数です。
|
|
*/
|
|
KGL_RESULT_NUM
|
|
};
|
|
|
|
}; //end of namespace Keyence
|
|
|
|
|