00001 #ifndef FANDEST_HH 00002 #define FANDEST_HH 00003 00004 // Copyright (c) 2001-2005 Clifton Labs, Inc. All Rights Reserved. 00005 00006 // You may modify, distribute, and use the software contained in this package 00007 // under the terms of the "GNU LIBRARY GENERAL PUBLIC LICENSE" version 2, 00008 // June 1991. A copy of this license agreement can be found in the file 00009 // "LGPL", distributed with this archive. 00010 00011 #include "tyvis/VHDLKernel.hh" 00012 #include <iostream> 00013 00014 using std::ostream; 00015 class SigEvent; 00016 class SimulationObject; 00017 00021 class FanDest { 00022 public: 00023 FanDest( const FanDest &that ); 00024 00025 FanDest( const string &initProcessName, int initSigId ); 00026 00027 FanDest &operator=( const FanDest &fd ) { 00028 processName = fd.getProcessName(); 00029 return *this; 00030 } 00031 00036 ~FanDest(){} 00037 00038 00039 const string &getProcessName() const { 00040 return processName; 00041 } 00042 00043 int getDestSigId() const { 00044 return destSigId; 00045 } 00046 00047 void sendEvent( const SigEvent *toSend, 00048 SimulationObject *sourceProcess ); 00049 00050 FanDest *clone() const; 00051 00052 private: 00053 string processName; 00054 SimulationObject *processPtr; 00055 int destSigId; 00056 }; 00057 00058 #endif
1.4.6