GW2RegisterReportFile
GW2RegisterReportFile फ़ंक्शन उस फ़ाइल पथ को रजिस्टर करता है जहाँ engineering log file रखा जाना है। यह API report file केवल Glasswall Engine के debug builds के लिए जनरेट करता है।
- C++
- C#
- Java
- Python
- JavaScript
सारांश
session session के लिए, GW2RegisterReportFile फ़ंक्शन उस फ़ाइल का नाम रजिस्टर करता है जहाँ engineering log file रखा जाना है। यह नाम वह string है जिसकी ओर reportFilePathName संकेत करता है।
#include "glasswall.core2.api.h"
int GW2RegisterReportFile(Session session, const char *reportFilePathName);
रिटर्न
एक पूर्णांक GW2_RetStatus enum मान लौटाता है। नकारात्मक संख्याएँ विफलता को दर्शाती हैं।
सारांश
public int RegisterReportFile(
int session,
string reportFilePathName)
रिटर्न
एक पूर्णांक GW2_RetStatus enum मान लौटाता है। नकारात्मक संख्याएँ विफलता को दर्शाती हैं।
सारांश
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 enumeration को int में परिवर्तित करके लौटाता है। यदि कोई त्रुटि हुई हो, तो मान नकारात्मक होगा। 0 सफलता को दर्शाता है। विवरण के लिए API Overview/Return types देखें।
A NullPointerException exception will be thrown if reportFilePath is null or empty.
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.
सारांश
उस फ़ाइल का नाम रजिस्टर करता है जहाँ 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'.
"""
रिटर्न
gw_return_object (glasswall.GwReturnObj): 'session', 'output_file', 'status' attributes के साथ एक GwReturnObj instance.
सारांश
यह फ़ंक्शन उस फ़ाइल का नाम रजिस्टर करता है जहाँ 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)
रिटर्न
एक पूर्णांक GW2_RetStatus enum मान लौटाता है। नकारात्मक संख्याएँ विफलता को दर्शाती हैं।