00001 #pragma once
00002 #include "SimEvent.h"
00003 #include "SimModel.h"
00004
00005 class CSimEventList
00006 {
00007 private:
00008 multimap<__time, CSimEvent*>* events;
00009
00010 public:
00011 CSimEventList();
00012 CSimEventList(CSimModel* model);
00013 ~CSimEventList();
00014
00015 bool HasEvents();
00016 CSimEvent* GetEvent(__time &time);
00017 __uint32 Size();
00018
00019 void Add(__time time, CSimEvent* evt);
00020 void Cancel(__time time, CSimEvent* evt);
00021
00022 void Clean();
00023 };