mirror of
https://github.com/openbabel/openbabel.git
synced 2026-08-02 01:27:55 -05:00
125 lines
4.0 KiB
Java
125 lines
4.0 KiB
Java
/* ----------------------------------------------------------------------------
|
|||
|
|
* This file was automatically generated by SWIG (http://www.swig.org).
|
||
|
|
* Version 1.3.29
|
||
|
|
*
|
||
|
|
* Do not make changes to this file unless you know what you are doing--modify
|
||
|
|
* the SWIG interface file instead.
|
||
|
|
* ----------------------------------------------------------------------------- */
|
||
|
|
|
||
|
|
|
||
|
|
public class OBMessageHandler {
|
||
|
|
private long swigCPtr;
|
||
|
|
protected boolean swigCMemOwn;
|
||
|
|
|
||
|
|
protected OBMessageHandler(long cPtr, boolean cMemoryOwn) {
|
||
|
|
swigCMemOwn = cMemoryOwn;
|
||
|
|
swigCPtr = cPtr;
|
||
|
|
}
|
||
|
|
|
||
|
|
protected static long getCPtr(OBMessageHandler obj) {
|
||
|
|
return (obj == null) ? 0 : obj.swigCPtr;
|
||
|
|
}
|
||
|
|
|
||
|
|
protected void finalize() {
|
||
|
|
delete();
|
||
|
|
}
|
||
|
|
|
||
|
|
public void delete() {
|
||
|
|
if(swigCPtr != 0 && swigCMemOwn) {
|
||
|
|
swigCMemOwn = false;
|
||
|
|
net.sourceforge.openbabelJNI.delete_OBMessageHandler(swigCPtr);
|
||
|
|
}
|
||
|
|
swigCPtr = 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
public OBMessageHandler() {
|
||
|
|
this(net.sourceforge.openbabelJNI.new_OBMessageHandler(), true);
|
||
|
|
}
|
||
|
|
|
||
|
|
public void ThrowError(OBError err) {
|
||
|
|
net.sourceforge.openbabelJNI.OBMessageHandler_ThrowError__SWIG_0(swigCPtr, OBError.getCPtr(err));
|
||
|
|
}
|
||
|
|
|
||
|
|
public void ThrowError(String method, String errorMsg, obMessageLevel level) {
|
||
|
|
net.sourceforge.openbabelJNI.OBMessageHandler_ThrowError__SWIG_1(swigCPtr, method, errorMsg, level.swigValue());
|
||
|
|
}
|
||
|
|
|
||
|
|
public void ThrowError(String method, String errorMsg) {
|
||
|
|
net.sourceforge.openbabelJNI.OBMessageHandler_ThrowError__SWIG_2(swigCPtr, method, errorMsg);
|
||
|
|
}
|
||
|
|
|
||
|
|
public SWIGTYPE_p_std__vectorTstd__string_t GetMessagesOfLevel(obMessageLevel arg0) {
|
||
|
|
return new SWIGTYPE_p_std__vectorTstd__string_t(net.sourceforge.openbabelJNI.OBMessageHandler_GetMessagesOfLevel(swigCPtr, arg0.swigValue()), true);
|
||
|
|
}
|
||
|
|
|
||
|
|
public void StartLogging() {
|
||
|
|
net.sourceforge.openbabelJNI.OBMessageHandler_StartLogging(swigCPtr);
|
||
|
|
}
|
||
|
|
|
||
|
|
public void StopLogging() {
|
||
|
|
net.sourceforge.openbabelJNI.OBMessageHandler_StopLogging(swigCPtr);
|
||
|
|
}
|
||
|
|
|
||
|
|
public void SetMaxLogEntries(long max) {
|
||
|
|
net.sourceforge.openbabelJNI.OBMessageHandler_SetMaxLogEntries(swigCPtr, max);
|
||
|
|
}
|
||
|
|
|
||
|
|
public long GetMaxLogEntries() {
|
||
|
|
return net.sourceforge.openbabelJNI.OBMessageHandler_GetMaxLogEntries(swigCPtr);
|
||
|
|
}
|
||
|
|
|
||
|
|
public void ClearLog() {
|
||
|
|
net.sourceforge.openbabelJNI.OBMessageHandler_ClearLog(swigCPtr);
|
||
|
|
}
|
||
|
|
|
||
|
|
public void SetOutputLevel(obMessageLevel level) {
|
||
|
|
net.sourceforge.openbabelJNI.OBMessageHandler_SetOutputLevel(swigCPtr, level.swigValue());
|
||
|
|
}
|
||
|
|
|
||
|
|
public obMessageLevel GetOutputLevel() {
|
||
|
|
return obMessageLevel.swigToEnum(net.sourceforge.openbabelJNI.OBMessageHandler_GetOutputLevel(swigCPtr));
|
||
|
|
}
|
||
|
|
|
||
|
|
public void SetOutputStream(SWIGTYPE_p_std__ostream os) {
|
||
|
|
net.sourceforge.openbabelJNI.OBMessageHandler_SetOutputStream(swigCPtr, SWIGTYPE_p_std__ostream.getCPtr(os));
|
||
|
|
}
|
||
|
|
|
||
|
|
public SWIGTYPE_p_std__ostream GetOutputStream() {
|
||
|
|
long cPtr = net.sourceforge.openbabelJNI.OBMessageHandler_GetOutputStream(swigCPtr);
|
||
|
|
return (cPtr == 0) ? null : new SWIGTYPE_p_std__ostream(cPtr, false);
|
||
|
|
}
|
||
|
|
|
||
|
|
public boolean StartErrorWrap() {
|
||
|
|
return net.sourceforge.openbabelJNI.OBMessageHandler_StartErrorWrap(swigCPtr);
|
||
|
|
}
|
||
|
|
|
||
|
|
public boolean StopErrorWrap() {
|
||
|
|
return net.sourceforge.openbabelJNI.OBMessageHandler_StopErrorWrap(swigCPtr);
|
||
|
|
}
|
||
|
|
|
||
|
|
public long GetErrorMessageCount() {
|
||
|
|
return net.sourceforge.openbabelJNI.OBMessageHandler_GetErrorMessageCount(swigCPtr);
|
||
|
|
}
|
||
|
|
|
||
|
|
public long GetWarningMessageCount() {
|
||
|
|
return net.sourceforge.openbabelJNI.OBMessageHandler_GetWarningMessageCount(swigCPtr);
|
||
|
|
}
|
||
|
|
|
||
|
|
public long GetInfoMessageCount() {
|
||
|
|
return net.sourceforge.openbabelJNI.OBMessageHandler_GetInfoMessageCount(swigCPtr);
|
||
|
|
}
|
||
|
|
|
||
|
|
public long GetAuditMessageCount() {
|
||
|
|
return net.sourceforge.openbabelJNI.OBMessageHandler_GetAuditMessageCount(swigCPtr);
|
||
|
|
}
|
||
|
|
|
||
|
|
public long GetDebugMessageCount() {
|
||
|
|
return net.sourceforge.openbabelJNI.OBMessageHandler_GetDebugMessageCount(swigCPtr);
|
||
|
|
}
|
||
|
|
|
||
|
|
public String GetMessageSummary() {
|
||
|
|
return net.sourceforge.openbabelJNI.OBMessageHandler_GetMessageSummary(swigCPtr);
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|