GW2RegisterReportFile
GW2RegisterReportFile 関数は、エンジニアリングログファイルを配置するファイルパスを登録します。この API は、Glasswall Engine のデバッグビルドでのみレポートファイルを生成します。
- C++
- C#
- Java
- Python
- JavaScript
概要
セッション session に対して、GW2RegisterReportFile 関数は、エンジニアリングログファイルを配置するファイル名を登録します。名前は、reportFilePathName が指す文字列です。
#include "glasswall.core2.api.h"
int GW2RegisterReportFile(Session session, const char *reportFilePathName);
戻り値
整数の GW2_RetStatus 列挙値を返します。負の数は失敗を示します。
概要
public int RegisterReportFile(
int session,
string reportFilePathName)
戻り値
整数の GW2_RetStatus 列挙値を返します。負の数は失敗を示します。
概要
import com.glasswall.core2javabridge.*;
public int GW2RegisterReportFile(int session, String reportFilePath) throws GlasswallException, NullPointerException
(Deprecated)
public int GW2RegisterReportFile(int session, byte[] reportFilePath) throws GlasswallException, NullPointerException
説明
The GW2RegisterReportFile function parameters have been updated to use String in place of byte[]. The original function has been deprecated.
戻り値
GW2RegisterReportFile 関数は、GW2_RetStatus 列挙型を int に変換して返します。エラーが発生した場合、値は負になります。0 は成功を示します。詳細については、API Overview/Return types を参照してください。
NullPointerException 例外は、reportFilePath が null または空の場合にスローされます。
A GlasswallException exception will be thrown if session is invalid, if the reportFilePath could not be retrieved, or if the reportFilePath could not be converted to UTF-8.
概要
エンジニアリングログファイルを配置するファイル名を登録します。
def register_report_file(self, session: int, output_file: str):
""" Register the report file path for the given session.
Args:
session (int): The session integer.
output_file (str): The file path of the report file.
Returns:
gw_return_object (glasswall.GwReturnObj): A GwReturnObj instance with the attributes 'session', 'output_file', 'status'.
"""
戻り値
gw_return_object (glasswall.GwReturnObj): 'session'、'output_file'、'status' の属性を持つ GwReturnObj インスタンス。
概要
この関数は、エンジニアリングログファイルを配置するファイル名を登録します。
/**
* @param {number} session The ID of the session.
* @param {string} reportFilePathName The path of the file to be registered.
*/
GW2RegisterReportFile(session, reportFilePathName)
戻り値
整数の GW2_RetStatus 列挙値を返します。負の数は失敗を示します。