예제 #1
0
        public static EDTComponent Create(string name, uint offset, ExtendedDataType type)
        {
            IntPtr       cPtr = GdalPINVOKE.EDTComponent_Create(name, offset, ExtendedDataType.getCPtr(type));
            EDTComponent ret  = (cPtr == IntPtr.Zero) ? null : new EDTComponent(cPtr, true, ThisOwn_true());

            if (GdalPINVOKE.SWIGPendingException.Pending)
            {
                throw GdalPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
예제 #2
0
 public static HandleRef getCPtrAndSetReference(EDTComponent obj, object parent)
 {
     if (obj != null)
     {
         obj.swigParentRef = parent;
         return(obj.swigCPtr);
     }
     else
     {
         return(new HandleRef(null, IntPtr.Zero));
     }
 }
예제 #3
0
 public static HandleRef getCPtrAndDisown(EDTComponent obj, object parent)
 {
     if (obj != null)
     {
         obj.swigCMemOwn   = false;
         obj.swigParentRef = parent;
         return(obj.swigCPtr);
     }
     else
     {
         return(new HandleRef(null, IntPtr.Zero));
     }
 }
예제 #4
0
 public static HandleRef getCPtr(EDTComponent obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }