00001 /** 00002 * @file Platform/Aperios1.3.2/Sender.cpp 00003 * This file implements classes related to senders for Aperios. 00004 * @author Thomas Röfer 00005 */ 00006 #include "ProcessFramework.h" 00007 00008 SenderList::SenderList(PlatformProcess* p,const char* senderName,bool blocking) 00009 { 00010 // copy the sender's name. The name of the process is still missing. 00011 process = p; 00012 strcpy(this->name,senderName); 00013 if(getFirst()) 00014 { 00015 SenderList* p = getFirst(); 00016 while(p->next) 00017 p = p->next; 00018 p->next = this; 00019 } 00020 else 00021 getFirst() = this; 00022 next = 0; 00023 this->blocking = blocking; 00024 } 00025 00026 SenderList*& SenderList::getFirst() 00027 { 00028 return process->getFirstSender(); 00029 } 00030 00031 void SenderList::finishFrame() 00032 { 00033 for(SenderList* p = getFirst(); p; p = p->getNext()) 00034 p->sendPackage(); 00035 } 00036 00037 void SenderList::setBlockingId(int id,bool block) 00038 { 00039 ProcessBase::setBlockingId(id,block); 00040 } 00041 00042 void SenderList::setEventId(int id) 00043 { 00044 ProcessBase::setEventId(id); 00045 }
1.3.6