Main Page   Class Hierarchy   Data Structures   File List   Data Fields  

stockmarketvector.h

00001 /***************************************************************************
00002                           stockmarketvector.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 _STOCKMARKETVECTOR_H_
00020 #define _STOCKMARKETVECTOR_H_
00021 
00022 #include <deque>
00023 #include <iostream>
00024 #include "config.h"
00025 #include "Subject.h"
00026 
00027 using namespace std;
00028 
00029 class StockMarket;
00030 
00034 class StockMarketVector : public Subject {
00035 
00036   private:
00037     bool lastSaveYesterday;
00038     deque <StockMarket *> stockMarkets;
00039     
00040   public:
00041     StockMarketVector();
00042     ~StockMarketVector();
00043     void addStockMarket(StockMarket *stockMarket);
00044     bool removeStockMarket(StockMarket *stockMarket);
00045     int getNumberOfStockMarkets() const;
00046     StockMarket *getStockMarket(int number) const;
00047     
00048     bool getLastSaveYesterday() const;
00049     void setLastSaveYesterday(bool lastSaveYesterday);
00050 
00051     void createInitialMarkets();
00052     void changeStockMarketPosition(StockMarket * stockMarket, int newPosition);
00053 
00054 
00055     void print_list();
00056 };
00057 
00058 
00059 #endif

Generated on Tue May 27 21:24:02 2003 for gstockcalc by doxygen1.3-rc3