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

CTKVKCard Class Reference
[Special Card Classes]

Special class for German medical cards. More...

#include <ctkvkcard.h>

Inheritance diagram for CTKVKCard:

CTMemoryCard CTCard CTCardBase List of all members.

Public Member Functions

Constructors/Destructor
Methods to retrieve the private members of this class.

 CTKVKCard (const CTCard &c)
 ~CTKVKCard ()
Opening and closing operations
Methods to connect and disconnect the card. Most other methods only work if the card is open.

virtual CTError reopenCard ()
Informational methods
These methods tell you about the type and the status of the card.

virtual string cardType ()
virtual string cardTypes ()
Commands
These methods allow you to send a command to the card. Of course the card needs to be already open.

CTError readCardData (insuranceData &data)

Detailed Description

Special class for German medical cards.

This class provides basic access to german health insureance cards.

Author:
Martin Preuss <martin@libchipcard.de>


Constructor & Destructor Documentation

CTKVKCard::CTKVKCard const CTCard c  ) 
 

This constructor is mainly used by derived classes to transform a basic CTCard object to a more special one. This allows opening a card as a CTCard object and then create e.g. a CTMemoryCard from this one. The source card will be immidiately closed. The only thing you should do with it is to delete it. You should NOT use it any longer !!

Parameters:
c reference to the CTCard object to be transformed
Author:
Martin Preuss<martin@libchipcard.de>

CTKVKCard::~CTKVKCard  ) 
 


Member Function Documentation

virtual string CTKVKCard::cardType  )  [virtual]
 

This method returns a short name of the class which handles this card. A HBCI card for example returns "HBCICard". So you can use this method to check for the type of the card.

Reimplemented from CTMemoryCard.

virtual string CTKVKCard::cardTypes  )  [virtual]
 

This method returns a comma separated list of all card types this card inherits including the type of this card, e.g. a HBCI card would return "CTProcessorCard, HBCICard". If you overload this method in your own class (you SHOULD) you simply have to call this method of the class it directly inherits. That class will then do the same, so that there is a list upon return.

Reimplemented from CTMemoryCard.

CTError CTKVKCard::readCardData insuranceData data  ) 
 

Reads the cards data into the insuranceData struct. The content of this struct is only valid, if it's "isValid" flag is set. Otherwise the card may be corrupted.

Author:
Martin Preuss <martin@libchipcard.de>
Parameters:
data reference to the struct to fill
Returns:
CTError object that holds the result (call isOk() to see if there was an error)

virtual CTError CTKVKCard::reopenCard  )  [virtual]
 

When this method is called normally the card is already opened by means of openCard(). However, it is likely that openCard() has been called assuming this card is only a CTCard() object, nothing special. You may then call THIS method here on all known card classes to check for the type of this card. This method must assume that any file on the card is already selected, so it is in most cases a good idea to select the MF as the first action of this method. If the executing class finds that the card inserted is not of a type it can handle then it MUST return an error.

Reimplemented from CTMemoryCard.


The documentation for this class was generated from the following file:
Generated on Sat Feb 11 15:20:28 2006 for libchipcard by  doxygen 1.4.2