00001 /*************************************************************************** 00002 stockcontainer.h - description 00003 ------------------- 00004 begin : Fri Jan 14 2003 00005 copyright : (C) 2002 by Michael Otto 00006 email : Michael.Otto@saskathex.de 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 00018 00019 #ifndef _STOCKCONTAINER_H_ 00020 #define _STOCKCONTAINER_H_ 00021 00022 00023 #include "config.h" 00024 00025 #include <iostream> 00026 00027 using namespace std; 00028 00029 class Stock; 00030 00034 class StockContainer { 00035 00036 private: 00037 Stock *stock; 00038 00039 public: 00040 StockContainer(const Stock & stock); 00041 StockContainer(const StockContainer & stockContainer); 00042 ~StockContainer(); 00043 Stock * const getStock() const; 00044 00045 00046 00047 friend int operator!=(const StockContainer &x, const StockContainer &y); 00048 friend bool operator<(const StockContainer &x, const StockContainer &y); 00049 00050 }; 00051 00052 #endif 00053 00054