deck::Card Class Reference

Card is an abstract representation of a card. More...

#include <Card.h>

Inheritance diagram for deck::Card:

deck::LetterCard deck::NumberCard

List of all members.

Public Types

enum  SuitType { CLUB = 1, DIAMOND, HEART, SPADE }
 Types of decks, standard 52-card deck is supported.

Public Member Functions

 Card (int rank, enum SuitType suit) throw (error::Exception)
 Card constructor.
virtual ~Card ()
 Card destructor.
virtual std::string view () const =0
 View the name of the card.

Protected Attributes

int rank_
 The rank of the card. Can be from 1 to 13.
enum SuitType suit_
 The suit of the card. Can be one of CLUB, DIAMOND, HEART, SPADE.


Detailed Description

Card is an abstract representation of a card.
The documentation for this class was generated from the following files:
Generated on Thu Mar 6 09:44:38 2008 for carddeck by  doxygen 1.5.3