/**************************************************************************************************/
/*                                                                                                */
/*  Name:  DarC KonQuesT                                                                          */
/*  Program:  #5                                                                                  */
/*  Date:  2005.5.2                                                                               */
/*  Purpose:                                                                                      */
/*  stockListType class declaration, functions, and friend declarations.                          */
/*                                                                                                */  
/*                                                                                                */
/*                                                                                                */
/**************************************************************************************************/
#ifndef H_stockListType
#define H_stockListType


#include <iostream>
#include <string>
#include <cassert>
#include <fstream>
#include "stockType.h"
#include "bst.h"


class stockListType: public BinSearchTree<stockType> {

  //  operator overloading and friend declaration
	friend istream& operator >>(istream&, stockListType&);
  friend ostream& operator <<(ostream&, stockListType&);	
	
  public:
	stockListType(); //  constructor
  void print_head();  //print header
  void print_foot();  //print footer and assets
	private:
	stockType stock_in;  //stockType object
  BinSearchTree<stockType> tree;
  BinSearchTree<stockType>::Iterator itr1;
  float total_assets;

};

#endif

