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

Revision 5, 6.1 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_ReaderSet : PTEID_Object {
15  private HandleRef swigCPtr;
16
17  internal PTEID_ReaderSet(IntPtr cPtr, bool cMemoryOwn) : base(pteidlib_dotNetPINVOKE.PTEID_ReaderSetUpcast(cPtr), cMemoryOwn) {
18    swigCPtr = new HandleRef(this, cPtr);
19  }
20
21  internal static HandleRef getCPtr(PTEID_ReaderSet obj) {
22    return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
23  }
24
25  ~PTEID_ReaderSet() {
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_ReaderSet(swigCPtr);
34      }
35      swigCPtr = new HandleRef(null, IntPtr.Zero);
36      GC.SuppressFinalize(this);
37      base.Dispose();
38    }
39  }
40
41  public static PTEID_ReaderSet instance() {
42    PTEID_ReaderSet ret = new PTEID_ReaderSet(pteidlib_dotNetPINVOKE.PTEID_ReaderSet_instance(), false);
43    if (pteidlib_dotNetPINVOKE.SWIGPendingException.Pending) throw pteidlib_dotNetPINVOKE.SWIGPendingException.Retrieve();
44    return ret;
45  }
46
47  public static void initSDK(bool bManageTestCard) {
48    pteidlib_dotNetPINVOKE.PTEID_ReaderSet_initSDK__SWIG_0(bManageTestCard);
49    if (pteidlib_dotNetPINVOKE.SWIGPendingException.Pending) throw pteidlib_dotNetPINVOKE.SWIGPendingException.Retrieve();
50  }
51
52  public static void initSDK() {
53    pteidlib_dotNetPINVOKE.PTEID_ReaderSet_initSDK__SWIG_1();
54    if (pteidlib_dotNetPINVOKE.SWIGPendingException.Pending) throw pteidlib_dotNetPINVOKE.SWIGPendingException.Retrieve();
55  }
56
57  public static void releaseSDK() {
58    pteidlib_dotNetPINVOKE.PTEID_ReaderSet_releaseSDK();
59    if (pteidlib_dotNetPINVOKE.SWIGPendingException.Pending) throw pteidlib_dotNetPINVOKE.SWIGPendingException.Retrieve();
60  }
61
62  public void releaseReaders(bool bAllReference) {
63    pteidlib_dotNetPINVOKE.PTEID_ReaderSet_releaseReaders__SWIG_0(swigCPtr, bAllReference);
64    if (pteidlib_dotNetPINVOKE.SWIGPendingException.Pending) throw pteidlib_dotNetPINVOKE.SWIGPendingException.Retrieve();
65  }
66
67  public void releaseReaders() {
68    pteidlib_dotNetPINVOKE.PTEID_ReaderSet_releaseReaders__SWIG_1(swigCPtr);
69    if (pteidlib_dotNetPINVOKE.SWIGPendingException.Pending) throw pteidlib_dotNetPINVOKE.SWIGPendingException.Retrieve();
70  }
71
72  public bool isReadersChanged() {
73    bool ret = pteidlib_dotNetPINVOKE.PTEID_ReaderSet_isReadersChanged(swigCPtr);
74    if (pteidlib_dotNetPINVOKE.SWIGPendingException.Pending) throw pteidlib_dotNetPINVOKE.SWIGPendingException.Retrieve();
75    return ret;
76  }
77
78  public string[] readerList(bool bForceRefresh) { 
79        IntPtr p = pteidlib_dotNetPINVOKE.PTEID_ReaderSet_readerList__SWIG_0(swigCPtr, bForceRefresh);
80        if (pteidlib_dotNetPINVOKE.SWIGPendingException.Pending) throw pteidlib_dotNetPINVOKE.SWIGPendingException.Retrieve();
81        string[] rslt = pteidlib_dotNetPINVOKE.custom_StringArrayResult;
82        return rslt; 
83}
84
85  public string[] readerList() { 
86        IntPtr p = pteidlib_dotNetPINVOKE.PTEID_ReaderSet_readerList__SWIG_1(swigCPtr);
87        if (pteidlib_dotNetPINVOKE.SWIGPendingException.Pending) throw pteidlib_dotNetPINVOKE.SWIGPendingException.Retrieve();
88        string[] rslt = pteidlib_dotNetPINVOKE.custom_StringArrayResult;
89        return rslt; 
90}
91
92  public PTEID_ReaderContext getReader() {
93    PTEID_ReaderContext ret = new PTEID_ReaderContext(pteidlib_dotNetPINVOKE.PTEID_ReaderSet_getReader(swigCPtr), false);
94    if (pteidlib_dotNetPINVOKE.SWIGPendingException.Pending) throw pteidlib_dotNetPINVOKE.SWIGPendingException.Retrieve();
95    return ret;
96  }
97
98  public PTEID_ReaderContext getReaderByName(string readerName) {
99    PTEID_ReaderContext ret = new PTEID_ReaderContext(pteidlib_dotNetPINVOKE.PTEID_ReaderSet_getReaderByName(swigCPtr, readerName), false);
100    if (pteidlib_dotNetPINVOKE.SWIGPendingException.Pending) throw pteidlib_dotNetPINVOKE.SWIGPendingException.Retrieve();
101    return ret;
102  }
103
104  public uint readerCount(bool bForceRefresh) {
105    uint ret = pteidlib_dotNetPINVOKE.PTEID_ReaderSet_readerCount__SWIG_0(swigCPtr, bForceRefresh);
106    if (pteidlib_dotNetPINVOKE.SWIGPendingException.Pending) throw pteidlib_dotNetPINVOKE.SWIGPendingException.Retrieve();
107    return ret;
108  }
109
110  public uint readerCount() {
111    uint ret = pteidlib_dotNetPINVOKE.PTEID_ReaderSet_readerCount__SWIG_1(swigCPtr);
112    if (pteidlib_dotNetPINVOKE.SWIGPendingException.Pending) throw pteidlib_dotNetPINVOKE.SWIGPendingException.Retrieve();
113    return ret;
114  }
115
116  public string getReaderName(uint ulIndex) {
117    string ret = pteidlib_dotNetPINVOKE.PTEID_ReaderSet_getReaderName(swigCPtr, ulIndex);
118    if (pteidlib_dotNetPINVOKE.SWIGPendingException.Pending) throw pteidlib_dotNetPINVOKE.SWIGPendingException.Retrieve();
119    return ret;
120  }
121
122  public PTEID_ReaderContext getReaderByNum(uint ulIndex) {
123    PTEID_ReaderContext ret = new PTEID_ReaderContext(pteidlib_dotNetPINVOKE.PTEID_ReaderSet_getReaderByNum(swigCPtr, ulIndex), false);
124    if (pteidlib_dotNetPINVOKE.SWIGPendingException.Pending) throw pteidlib_dotNetPINVOKE.SWIGPendingException.Retrieve();
125    return ret;
126  }
127
128  public PTEID_ReaderContext getReaderByCardSerialNumber(string cardSerialNumber) {
129    PTEID_ReaderContext ret = new PTEID_ReaderContext(pteidlib_dotNetPINVOKE.PTEID_ReaderSet_getReaderByCardSerialNumber(swigCPtr, cardSerialNumber), false);
130    if (pteidlib_dotNetPINVOKE.SWIGPendingException.Pending) throw pteidlib_dotNetPINVOKE.SWIGPendingException.Retrieve();
131    return ret;
132  }
133
134  public bool flushCache() {
135    bool ret = pteidlib_dotNetPINVOKE.PTEID_ReaderSet_flushCache(swigCPtr);
136    if (pteidlib_dotNetPINVOKE.SWIGPendingException.Pending) throw pteidlib_dotNetPINVOKE.SWIGPendingException.Retrieve();
137    return ret;
138  }
139
140}
141
142}
Note: See TracBrowser for help on using the browser.