/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version 2.0.11
 *
 * Do not make changes to this file unless you know what you are doing--modify
 * the SWIG interface file instead.
 * ----------------------------------------------------------------------------- */

package org.yqm.wapiti4j.wrapper;

public class fancy_raw_s {
  private long swigCPtr;
  protected boolean swigCMemOwn;

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

  protected static long getCPtr(fancy_raw_s obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if (swigCPtr != 0) {
      if (swigCMemOwn) {
        swigCMemOwn = false;
        pywapitiJNI.delete_fancy_raw_s(swigCPtr);
      }
      swigCPtr = 0;
    }
  }

  public void setMax(long value) {
    pywapitiJNI.fancy_raw_s_max_set(swigCPtr, this, value);
  }

  public long getMax() {
    return pywapitiJNI.fancy_raw_s_max_get(swigCPtr, this);
  }

  public void setLen(long value) {
    pywapitiJNI.fancy_raw_s_len_set(swigCPtr, this, value);
  }

  public long getLen() {
    return pywapitiJNI.fancy_raw_s_len_get(swigCPtr, this);
  }

  public SWIGTYPE_p_p_char getLines() {
    long cPtr = pywapitiJNI.fancy_raw_s_lines_get(swigCPtr, this);
    return (cPtr == 0) ? null : new SWIGTYPE_p_p_char(cPtr, false);
  }

  public fancy_raw_s() {
    this(pywapitiJNI.new_fancy_raw_s(), true);
  }

}
