00001 #include "Headers.h"
00002 #include "SimCalls.h"
00003
00004 void CSimCalls::Add(ICall* call)
00005 {
00006 this->calls.push(call);
00007 }
00008
00009 void CSimCalls::Execute()
00010 {
00011 while(!this->calls.empty())
00012 {
00013 ICall* call = this->calls.front();
00014
00015 (*call)();
00016
00017 delete call;
00018
00019 this->calls.pop();
00020 }
00021 }
00022
00023 void CSimCalls::Clean()
00024 {
00025 while(!this->calls.empty())
00026 {
00027 delete this->calls.front();
00028 this->calls.pop();
00029 }
00030 }