Skip to content

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

Packages

Name
com.inscoper.api

Classes

Name
class com.inscoper.api.FunctionDescription
FunctionDescription class provides function 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 FunctionDescription {
  private transient long swigCPtr;
  private transient boolean swigCMemOwn;

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

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

  public FunctionDescription() {
    this(InscoperJNI.new_FunctionDescription(), true);
  }

  public EFunctionType getType() {
    return EFunctionType.swigToEnum(InscoperJNI.FunctionDescription_getType(swigCPtr, this));
  }

  public void setType(EFunctionType type) {
    InscoperJNI.FunctionDescription_setType(swigCPtr, this, type.swigValue());
  }

  public String getName() {
    return InscoperJNI.FunctionDescription_getName(swigCPtr, this);
  }

  public void setName(String name) {
    InscoperJNI.FunctionDescription_setName(swigCPtr, this, name);
  }

  public void addInputParam(short pos, int tag) {
    InscoperJNI.FunctionDescription_addInputParam(swigCPtr, this, pos, tag);
  }

  public UShortUCharMap getInputParams() {
    return new UShortUCharMap(InscoperJNI.FunctionDescription_getInputParams(swigCPtr, this), false);
  }

  public void addOutputParam(short pos, int tag) {
    InscoperJNI.FunctionDescription_addOutputParam(swigCPtr, this, pos, tag);
  }

  public UShortUCharMap getOutputParams() {
    return new UShortUCharMap(InscoperJNI.FunctionDescription_getOutputParams(swigCPtr, this), false);
  }

  public void addConnection(int tag) {
    InscoperJNI.FunctionDescription_addConnection(swigCPtr, this, tag);
  }

  public UShortVector getConnections() {
    return new UShortVector(InscoperJNI.FunctionDescription_getConnections(swigCPtr, this), false);
  }

}

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