Skip to content

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

Packages

Name
com.inscoper.api

Classes

Name
class com.inscoper.api.Config
Config class provides information for global configuration.

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 Config {
  private transient long swigCPtr;
  private transient boolean swigCMemOwn;

  protected Config(long cPtr, boolean cMemoryOwn) {
    swigCMemOwn = cMemoryOwn;
    swigCPtr = cPtr;
  }

  protected static long getCPtr(Config 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_Config(swigCPtr);
      }
      swigCPtr = 0;
    }
  }

  public Config() {
    this(InscoperJNI.new_Config(), true);
  }

  public void fromXML(XMLNode xml) throws com.inscoper.api.InscoperException {
    InscoperJNI.Config_fromXML(swigCPtr, this, XMLNode.getCPtr(xml), xml);
  }

  public void toXML(XMLNode xmlParent) throws com.inscoper.api.InscoperException {
    InscoperJNI.Config_toXML(swigCPtr, this, XMLNode.getCPtr(xmlParent), xmlParent);
  }

  public StringVector getLibraryPaths() {
    return new StringVector(InscoperJNI.Config_getLibraryPaths(swigCPtr, this), false);
  }

  public void setLibraryPaths(StringVector libraryPaths) {
    InscoperJNI.Config_setLibraryPaths(swigCPtr, this, StringVector.getCPtr(libraryPaths), libraryPaths);
  }

  public StringVector getDriverList() {
    return new StringVector(InscoperJNI.Config_getDriverList(swigCPtr, this), false);
  }

  public DeviceConfigVector getDeviceList() {
    return new DeviceConfigVector(InscoperJNI.Config_getDeviceList(swigCPtr, this), false);
  }

  public void setDeviceList(DeviceConfigVector deviceList) {
    InscoperJNI.Config_setDeviceList(swigCPtr, this, DeviceConfigVector.getCPtr(deviceList), deviceList);
  }

  public void addDeviceConfig(DeviceConfig device) {
    InscoperJNI.Config_addDeviceConfig(swigCPtr, this, DeviceConfig.getCPtr(device), device);
  }

  public String getConfigPath() {
    return InscoperJNI.Config_getConfigPath(swigCPtr, this);
  }

  public void setConfigPath(String configPath) {
    InscoperJNI.Config_setConfigPath(swigCPtr, this, configPath);
  }

}

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