root/middleware-offline/trunk/_src/eidmw/eidlibCS_Wrapper/GeneratedFiles/PTEID_Sod.cs @ 5

Revision 5, 1.8 KB (checked in by vsilva, 9 years ago)

Initial comit

Line 
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.35
4 *
5 * Do not make changes to this file unless you know what you are doing--modify
6 * the SWIG interface file instead.
7 * ----------------------------------------------------------------------------- */
8
9namespace be.portugal.eid {
10
11using System;
12using System.Runtime.InteropServices;
13
14public class PTEID_Sod : PTEID_Biometric {
15  private HandleRef swigCPtr;
16
17  internal PTEID_Sod(IntPtr cPtr, bool cMemoryOwn) : base(pteidlib_dotNetPINVOKE.PTEID_SodUpcast(cPtr), cMemoryOwn) {
18    swigCPtr = new HandleRef(this, cPtr);
19  }
20
21  internal static HandleRef getCPtr(PTEID_Sod obj) {
22    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
23  }
24
25  ~PTEID_Sod() {
26    Dispose();
27  }
28
29  public override void Dispose() {
30    lock(this) {
31      if(swigCPtr.Handle != IntPtr.Zero && swigCMemOwn) {
32        swigCMemOwn = false;
33        pteidlib_dotNetPINVOKE.delete_PTEID_Sod(swigCPtr);
34      }
35      swigCPtr = new HandleRef(null, IntPtr.Zero);
36      GC.SuppressFinalize(this);
37      base.Dispose();
38    }
39  }
40
41  public PTEID_ByteArray getData() {
42    PTEID_ByteArray ret = new PTEID_ByteArray(pteidlib_dotNetPINVOKE.PTEID_Sod_getData(swigCPtr), false);
43    if (pteidlib_dotNetPINVOKE.SWIGPendingException.Pending) throw pteidlib_dotNetPINVOKE.SWIGPendingException.Retrieve();
44    return ret;
45  }
46
47  public PTEID_ByteArray getHash() {
48    PTEID_ByteArray ret = new PTEID_ByteArray(pteidlib_dotNetPINVOKE.PTEID_Sod_getHash(swigCPtr), false);
49    if (pteidlib_dotNetPINVOKE.SWIGPendingException.Pending) throw pteidlib_dotNetPINVOKE.SWIGPendingException.Retrieve();
50    return ret;
51  }
52
53}
54
55}
Note: See TracBrowser for help on using the browser.