Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

ctkvkcard.h

Go to the documentation of this file.
00001 /*************************************************************************** 00002 $RCSfile: ctkvkcard.h,v $ 00003 ------------------- 00004 cvs : $Id: ctkvkcard.h,v 1.4 2003/04/24 01:43:29 aquamaniac Exp $ 00005 begin : Tue Aug 28 2001 00006 copyright : (C) 2001 by Martin Preuss 00007 email : martin@libchipcard.de 00008 00009 *************************************************************************** 00010 * * 00011 * This library is free software; you can redistribute it and/or * 00012 * modify it under the terms of the GNU Lesser General Public * 00013 * License as published by the Free Software Foundation; either * 00014 * version 2.1 of the License, or (at your option) any later version. * 00015 * * 00016 * This library is distributed in the hope that it will be useful, * 00017 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * 00019 * Lesser General Public License for more details. * 00020 * * 00021 * You should have received a copy of the GNU Lesser General Public * 00022 * License along with this library; if not, write to the Free Software * 00023 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, * 00024 * MA 02111-1307 USA * 00025 * * 00026 ***************************************************************************/ 00027 00028 /* 00029 Changes 00030 00031 */ 00032 00033 00034 #ifndef CTKVKCARD_H 00035 #define CTKVKCARD_H 00036 00037 struct insuranceData; 00038 class CTKVKCard; 00039 00040 // used to convert german "Umlaute" 00041 #define k_KVK_AE 0x5b 00042 #define k_KVK_OE 0x5c 00043 #define k_KVK_UE 0x5d 00044 #define k_KVK_ae 0x7b 00045 #define k_KVK_oe 0x7c 00046 #define k_KVK_ue 0x7d 00047 #define k_KVK_ss 0x7e 00048 00049 00050 #include <string> 00051 00052 #include <chipcard/cterror.h> 00053 #include <chipcard/ctcard.h> 00054 #include <chipcard/ctmemorycard.h> 00055 00056 00062 struct insuranceData { 00064 string insuranceCompanyName; 00066 string insuranceCompanyCode; 00068 string insuranceNumber; 00070 string insuranceState; 00072 string title; 00074 string forename; 00076 string nameSuffix; 00078 string name; 00080 string dateOfBirth; 00082 string addrStreet; 00084 string addrState; 00086 string addrPostalCode; 00088 string addrCity; 00090 string bestBefore; 00092 string eastOrWest; 00094 string cardNumber; 00096 bool isValid; 00097 }; 00098 00099 00106 class CHIPCARD_API CTKVKCard : public CTMemoryCard { 00107 private: 00108 bool _fromString(string s, insuranceData &data); 00109 00110 public: 00126 CTKVKCard(const CTCard &c); 00127 00128 ~CTKVKCard(); 00130 00149 virtual CTError reopenCard(); 00151 00162 virtual string cardType(); 00163 00172 virtual string cardTypes(); 00174 00190 CTError readCardData(insuranceData &data); 00192 00193 }; 00194 00195 00196 #endif 00197 00198 00199 00200 00201 00202

Generated on Wed Jul 28 14:56:49 2004 for libchipcard by doxygen 1.3.7