|
Urbi SDK Remote for Java
2.7.5
|
00001 /* ---------------------------------------------------------------------------- 00002 * This file was automatically generated by SWIG (http://www.swig.org). 00003 * Version 2.0.4 00004 * 00005 * Do not make changes to this file unless you know what you are doing--modify 00006 * the SWIG interface file instead. 00007 * ----------------------------------------------------------------------------- */ 00008 00009 package urbi; 00010 //used internaly 00011 00012 public class UCallbackInfo { 00013 private long swigCPtr; 00014 protected boolean swigCMemOwn; 00015 00016 public UCallbackInfo(long cPtr, boolean cMemoryOwn) { 00017 swigCMemOwn = cMemoryOwn; 00018 swigCPtr = cPtr; 00019 } 00020 00021 public static long getCPtr(UCallbackInfo obj) { 00022 return (obj == null) ? 0 : obj.swigCPtr; 00023 } 00024 00025 protected void finalize() { 00026 delete(); 00027 } 00028 00029 public synchronized void delete() { 00030 if (swigCPtr != 0) { 00031 if (swigCMemOwn) { 00032 swigCMemOwn = false; 00033 urbiJNI.delete_UCallbackInfo(swigCPtr); 00034 } 00035 swigCPtr = 0; 00036 } 00037 } 00038 00039 public UCallbackInfo(UCallbackWrapper w) { 00040 this(urbiJNI.new_UCallbackInfo(UCallbackWrapper.getCPtr(w), w), true); 00041 } 00042 00043 public boolean isEqual(long id) { 00044 return urbiJNI.UCallbackInfo_isEqual(swigCPtr, this, id); 00045 } 00046 00047 public void setTag(String value) { 00048 urbiJNI.UCallbackInfo_tag_set(swigCPtr, this, value); 00049 } 00050 00051 public String getTag() { 00052 return urbiJNI.UCallbackInfo_tag_get(swigCPtr, this); 00053 } 00054 00055 public void setCallback(UCallbackWrapper value) { 00056 urbiJNI.UCallbackInfo_callback_set(swigCPtr, this, UCallbackWrapper.getCPtr(value), value); 00057 } 00058 00059 public UCallbackWrapper getCallback() { 00060 return new UCallbackWrapper(urbiJNI.UCallbackInfo_callback_get(swigCPtr, this), false); 00061 } 00062 00063 public void setId(long value) { 00064 urbiJNI.UCallbackInfo_id_set(swigCPtr, this, value); 00065 } 00066 00067 public long getId() { 00068 return urbiJNI.UCallbackInfo_id_get(swigCPtr, this); 00069 } 00070 00071 }