// baseballMaster.h  P. Conrad for CISC220, 06J
// Class for Lahman Baseball Database (www.baseball1.com), version 5.3

// See license and copyright statement at bottom of file


#ifndef BASEBALLMASTER_H
#define BASEBALLMASTER_H


#include "date.h"
#include "event.h"

class BaseballMaster_C
{
 public:
  // construct one object from a line in the Master.csv file

  BaseballMaster_C( char * const inputLine);
  
  int getLahmanID() const {return lahmanID;}
  const char * const getPlayerID() const {return playerID;}
  const char * const getManagerID() const {return managerID;}
  const char * const getHofID() const {return hofID;}
  const Event_C * const getBirth() const {return birth;}
  const Event_C * const getDeath() const {return death;}
  const char * const getNameFirst() const {return nameFirst;}
  const char * const getNameLast() const {return nameLast;}
  const char * const getNameNote() const {return nameNote;}
  const char * const getNameGiven() const {return nameGiven;}
  const char * const getNameNick() const {return nameNick;}
  int getWeight() const {return weight;}
  int getHeight() const {return height;}
  char getBats() const {return bats;}
  char getThrows() const {return throws;}
  
  Date_C getDebut() const { return *debut; }
  Date_C getFinalGame() const { return *finalGame; }

  const char * const getCollege() const {return college;}
  const char * const getLahman40ID() const {return lahman40ID;}
  const char * const getLahman45ID() const {return lahman45ID;}
  const char * const getRetroID() const {return retroID;}
  const char * const getHoltzID() const {return holtzID;}
  const char * const getBbrefID() const {return bbrefID;}

  

  // print just a few key fields
  void print(std::ostream &out = std::cout) const; 

 private:
  int lahmanID;
  char * playerID;
  char * managerID;
  char * hofID;
  Event_C *birth;
  Event_C *death;
  char * nameFirst;
  char * nameLast;
  char * nameNote;
  char * nameGiven;
  char * nameNick;
  int weight;
  int height;
  char bats;
  char throws;
  Date_C *debut;
  Date_C *finalGame;
  char * college;
  char *lahman40ID;
  char *lahman45ID;
  char *retroID;
  char *holtzID;
  char *bbrefID;
  
};

#endif

// COPYRIGHT NOTICE:

// This code corresponds to the data layout of the Lahmann Database,
// which is copyrighted by Sean Lahmann.  The data and formats here
// are used by special permission of Sean Lahmann, granted to Phill 
// Conrad for use in Computer Science courses at the University of 
// Delaware.  You must obtain permission from Sean Lahmann to use this
// data and/or data format for any other purpose.  For more details,
// visit www.baseball1.com


