Skip to content

InscoperAPI/Build/Java/com.inscoper.api/com/inscoper/api/CustomDriverConfig.java

Packages

Name
com.inscoper.api

Classes

Name
class com.inscoper.api.CustomDriverConfig
CustomDriverConfig class provides information for custom devices.

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 CustomDriverConfig extends DriverConfig {
  private transient long swigCPtr;
  private transient boolean swigCMemOwnDerived;

  protected CustomDriverConfig(long cPtr, boolean cMemoryOwn) {
    super(InscoperJNI.CustomDriverConfig_SWIGSmartPtrUpcast(cPtr), true);
    swigCMemOwnDerived = cMemoryOwn;
    swigCPtr = cPtr;
  }

  protected static long getCPtr(CustomDriverConfig 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_CustomDriverConfig(swigCPtr);
      }
      swigCPtr = 0;
    }
    super.delete();
  }

  public CustomDriverConfig() {
    this(InscoperJNI.new_CustomDriverConfig(), true);
  }

  public EDriverType getDriverType() {
    return EDriverType.swigToEnum(InscoperJNI.CustomDriverConfig_getDriverType(swigCPtr, this));
  }

  public String getDriverName() {
    return InscoperJNI.CustomDriverConfig_getDriverName(swigCPtr, this);
  }

  public void setDriverName(String driverName) {
    InscoperJNI.CustomDriverConfig_setDriverName(swigCPtr, this, driverName);
  }

  public String getIdentifier() {
    return InscoperJNI.CustomDriverConfig_getIdentifier(swigCPtr, this);
  }

  public void setIdentifier(String identifier) {
    InscoperJNI.CustomDriverConfig_setIdentifier(swigCPtr, this, identifier);
  }

  public long getIndex() {
    return InscoperJNI.CustomDriverConfig_getIndex(swigCPtr, this);
  }

  public void setIndex(long index) {
    InscoperJNI.CustomDriverConfig_setIndex(swigCPtr, this, index);
  }

}

Updated on 2026-09-03 at 12:14:19 +0200