GW2RegisterReportFile
Ang GW2RegisterReportFile function ay nagrerehistro ng file path kung saan ilalagay ang engineering log file. Ang API na ito ay bumubuo ng report file para lamang sa mga debug build ng Glasswall Engine.
- C++
- C#
- Java
- Python
- JavaScript
Buod
Para sa session na session, ang GW2RegisterReportFile function ay nagrerehistro ng pangalan ng file kung saan ilalagay ang engineering log file. Ang pangalan ay ang string na itinuturo ng reportFilePathName.
#include "glasswall.core2.api.h"
int GW2RegisterReportFile(Session session, const char *reportFilePathName);
Ibinabalik
Nagbabalik ng integer na GW2_RetStatus enum value. Ang mga negatibong numero ay nagpapahiwatig ng pagkabigo.
Buod
public int RegisterReportFile(
int session,
string reportFilePathName)
Ibinabalik
Nagbabalik ng integer na GW2_RetStatus enum value. Ang mga negatibong numero ay nagpapahiwatig ng pagkabigo.
Buod
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
Paglalarawan
Ang mga parameter ng GW2RegisterReportFile function ay na-update upang gumamit ng String kapalit ng byte[]. Ang orihinal na function ay deprecated na.
Ibinabalik
Ang GW2RegisterReportFile function ay nagbabalik ng isang GW2_RetStatus enumeration na kino-convert sa int. Magiging negatibo ang value kung may naganap na error. Ang 0 ay nagpapahiwatig ng tagumpay. Sumangguni sa API Overview/Return types para sa mga detalye.
Isang NullPointerException exception ang ita-throw kung ang reportFilePath ay null o walang laman.
Isang GlasswallException exception ang ita-throw kung invalid ang session, kung hindi makuha ang reportFilePath, o kung hindi ma-convert sa UTF-8 ang reportFilePath.
Buod
Nagrerehistro ng pangalan ng file kung saan ilalagay ang engineering log file.
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'.
"""
Ibinabalik
gw_return_object (glasswall.GwReturnObj): Isang instance ng GwReturnObj na may mga attribute na 'session', 'output_file', 'status'.
Buod
Ang function na ito ay nagrerehistro ng pangalan ng file kung saan ilalagay ang engineering log file.
/**
* @param {number} session The ID of the session.
* @param {string} reportFilePathName The path of the file to be registered.
*/
GW2RegisterReportFile(session, reportFilePathName)
Ibinabalik
Nagbabalik ng integer na GW2_RetStatus enum value. Ang mga negatibong numero ay nagpapahiwatig ng pagkabigo.