InscoperAPI/Build/Java/com.inscoper.api/com/inscoper/api/ExternalDriverDescription.java¶
Packages¶
| Name |
|---|
| com.inscoper.api |
Classes¶
| Name | |
|---|---|
| class | com.inscoper.api.ExternalDriverDescription ExternalDriverDescription class for external device drivers. |
Source code¶
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (https://www.swig.org).
* Version 4.3.1
*
* Do not make changes to this file unless you know what you are doing - modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.inscoper.api;
import com.inscoper.api.logging.*;
public class ExternalDriverDescription extends DriverDescription {
private transient long swigCPtr;
private transient boolean swigCMemOwnDerived;
protected ExternalDriverDescription(long cPtr, boolean cMemoryOwn) {
super(InscoperJNI.ExternalDriverDescription_SWIGSmartPtrUpcast(cPtr), true);
swigCMemOwnDerived = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(ExternalDriverDescription obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
protected void swigSetCMemOwn(boolean own) {
swigCMemOwnDerived = own;
super.swigSetCMemOwn(own);
}
@SuppressWarnings({"deprecation", "removal"})
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwnDerived) {
swigCMemOwnDerived = false;
InscoperJNI.delete_ExternalDriverDescription(swigCPtr);
}
swigCPtr = 0;
}
super.delete();
}
public static ExternalDriverDescription createProxy(long cPtr, boolean cMemoryOwn) {
if (cPtr == 0) return null;
ExternalDriverDescription tmp = new ExternalDriverDescription(cPtr, false);
int type = tmp.getRealType();
switch(type) {
case 1: return new CustomDriverDescription(cPtr, cMemoryOwn); case 2: return new MicroManagerDriverDescription(cPtr, cMemoryOwn);
default: return new ExternalDriverDescription(cPtr, cMemoryOwn);
}
}
{ }
public EDriverType getDriverType() {
return EDriverType.swigToEnum(InscoperJNI.ExternalDriverDescription_getDriverType(swigCPtr, this));
}
public boolean isEqual(DriverDescription other) {
return InscoperJNI.ExternalDriverDescription_isEqual(swigCPtr, this, DriverDescription.getCPtr(other), other);
}
public EDeviceType getDeviceType() {
return EDeviceType.swigToEnum(InscoperJNI.ExternalDriverDescription_getDeviceType(swigCPtr, this));
}
public void setDeviceType(EDeviceType deviceType) {
InscoperJNI.ExternalDriverDescription_setDeviceType(swigCPtr, this, deviceType.swigValue());
}
public int getRealType() {
return InscoperJNI.ExternalDriverDescription_getRealType(swigCPtr, this);
}
}
Updated on 2026-09-03 at 12:14:19 +0200