00001 #ifndef SIMRINGREPORT_INCLUDED
00002 #define SIMRINGREPORT_INCLUDED
00003
00004 #include <odem.h>
00005 #include <fstream>
00006
00007 #include "Listener.h"
00008
00009 class SimringReport {
00010 std::ofstream reportFile;
00011 Buff_head* pInputBuffer;
00012
00013
00014 public:
00015
00016 SimringReport(std::string strFileName, Buff_head* pBuff);
00017 virtual ~SimringReport();
00018 void update();
00019
00020
00021 void putPallet();
00022 void takePallet();
00023 int waiting() { return waitingPallets; }
00024
00025 private:
00026 virtual void report_head();
00027 virtual void report();
00028 virtual void report_tail();
00029
00030
00031 int waitingPallets;
00032 int maxWaitingPallets;
00033 int rMaxWaitingPallets;
00034 };
00035
00036 #endif
00037