InscoperAPI/Build/Java/com.inscoper.api/com/inscoper/api/SubDeviceDescription.java¶
Packages¶
| Name |
|---|
| com.inscoper.api |
Classes¶
| Name | |
|---|---|
| class | com.inscoper.api.SubDeviceDescription SubDeviceDescription class provides sub-device information coming from 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 SubDeviceDescription {
private transient long swigCPtr;
private transient boolean swigCMemOwn;
protected SubDeviceDescription(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(SubDeviceDescription obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
protected void swigSetCMemOwn(boolean own) {
swigCMemOwn = own;
}
@SuppressWarnings({"deprecation", "removal"})
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
InscoperJNI.delete_SubDeviceDescription(swigCPtr);
}
swigCPtr = 0;
}
}
public SubDeviceDescription() {
this(InscoperJNI.new_SubDeviceDescription(), true);
}
public String getName() {
return InscoperJNI.SubDeviceDescription_getName(swigCPtr, this);
}
public void setName(String name) {
InscoperJNI.SubDeviceDescription_setName(swigCPtr, this, name);
}
public FunctionDescriptionVector getFunctions() {
return new FunctionDescriptionVector(InscoperJNI.SubDeviceDescription_getFunctions(swigCPtr, this), true);
}
public FunctionDescription getFunction(EFunctionType type) {
long cPtr = InscoperJNI.SubDeviceDescription_getFunction(swigCPtr, this, type.swigValue());
return (cPtr == 0) ? null : new FunctionDescription(cPtr, true);
}
public void setFunction(EFunctionType type, FunctionDescription function) {
InscoperJNI.SubDeviceDescription_setFunction(swigCPtr, this, type.swigValue(), FunctionDescription.getCPtr(function), function);
}
public int getTag() {
return InscoperJNI.SubDeviceDescription_getTag(swigCPtr, this);
}
public void setTag(int tag) {
InscoperJNI.SubDeviceDescription_setTag(swigCPtr, this, tag);
}
public ESubDeviceLabelVector getLabelList() {
return new ESubDeviceLabelVector(InscoperJNI.SubDeviceDescription_getLabelList(swigCPtr, this), false);
}
public void addLabel(ESubDeviceLabel label) {
InscoperJNI.SubDeviceDescription_addLabel(swigCPtr, this, label.swigValue());
}
public boolean hasLabel(ESubDeviceLabel label) {
return InscoperJNI.SubDeviceDescription_hasLabel(swigCPtr, this, label.swigValue());
}
public UShortVector getParams() {
return new UShortVector(InscoperJNI.SubDeviceDescription_getParams(swigCPtr, this), true);
}
public boolean isPostInit() {
return InscoperJNI.SubDeviceDescription_isPostInit(swigCPtr, this);
}
public void setPostInit(boolean postInit) {
InscoperJNI.SubDeviceDescription_setPostInit(swigCPtr, this, postInit);
}
}
Updated on 2026-09-03 at 12:14:19 +0200