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

CTGeldKarte Class Reference
[Special Card Classes]

#include <ctgeldkarte.h>

Inheritance diagram for CTGeldKarte:

CTProcessorCard CTCard CTCardBase List of all members.

Public Member Functions

const CardDatacardData () const
double readLoadedValue ()
double readMaxLoadedValue ()
double readMaxTransactionValue ()
Constructors/Destructor
 CTGeldKarte (const CTCard &c)
virtual ~CTGeldKarte ()
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 ()
Opening and closing operations
Methods to connect and disconnect the card. Most other methods only work if the card is open.

virtual CTError openCard ()

Constructor & Destructor Documentation

CTGeldKarte::CTGeldKarte const CTCard c  ) 
 

virtual CTGeldKarte::~CTGeldKarte  )  [virtual]
 


Member Function Documentation

const CardData& CTGeldKarte::cardData  )  const [inline]
 

virtual string CTGeldKarte::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 CTProcessorCard.

virtual string CTGeldKarte::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 CTProcessorCard.

virtual CTError CTGeldKarte::openCard  )  [virtual]
 

Opens the card for usage. This way the card is powered on. This method does some basic checks and retrieves basic information about the card (whether it is a memory card or a processor card, the size of the memory etc). When this method successfully returns the card may be used.

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

Reimplemented from CTCard.

double CTGeldKarte::readLoadedValue  ) 
 

Returns the amount of money loaded onto the card. This value is adapted according to the setting in EF_ID, so you may use this value returned directly. The currency is stored in the CardData object which you can get via cardData().

double CTGeldKarte::readMaxLoadedValue  ) 
 

Returns the maximum amount of money which can be stored on this card. Please see readLoadedValue() for details.

double CTGeldKarte::readMaxTransactionValue  ) 
 

Returns the maximum amount of money which can be transfered in one setting with this card. Please see readLoadedValue() for details.

virtual CTError CTGeldKarte::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 CTProcessorCard.


The documentation for this class was generated from the following file:
Generated on Fri Dec 3 23:10:25 2004 for libchipcard by  doxygen 1.3.9.1