00001 // vim:set et sts=4 ts=4 tw=75 sw=4 ai ci cin cino=g0,t0: 00002 /* 00003 * Copyright (C) 2007, Technical Computer Science Group, 00004 * University of Bonn 00005 * 00006 * This file is part of the ReChannel library. 00007 * 00008 * The ReChannel library is free software; you can redistribute it and/or 00009 * modify it under the terms of the GNU General Public License as 00010 * published by the Free Software Foundation; either version 2 of the 00011 * License, or (at your option) any later version. 00012 * 00013 * This library is distributed in the hope that it will be 00014 * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00016 * General Public License for more details. 00017 * 00018 * You should have received a copy of the GNU General Public License 00019 * along with this library; see the file COPYING. If not, write to the 00020 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, 00021 * Boston, MA 02110-1301, USA. 00022 * 00023 * Authors: Andreas Raabe and Armin Felke. Implementation by Armin Felke. 00024 * {raabe, felke}@cs.uni-bonn.de 00025 */ 00037 #ifndef RC_EVENT_FILTER_H_ 00038 #define RC_EVENT_FILTER_H_ 00039 00040 #include "ReChannel/core/rc_common_header.h" 00041 00042 namespace ReChannel { 00043 00044 // forward declaration 00045 class rc_event_trigger; 00046 00050 class rc_event_filter 00051 : virtual public sc_interface 00052 { 00053 public: 00054 virtual bool rc_on_event(const sc_event& e) = 0; 00055 00056 virtual void rc_set_event_trigger( 00057 const sc_event& e, rc_event_trigger& t) = 0; 00058 00059 virtual void rc_clear_event_trigger(const sc_event& e) = 0; 00060 00061 protected: 00062 virtual ~rc_event_filter() {} 00063 }; 00064 00068 class rc_event_trigger 00069 { 00070 public: 00071 virtual void rc_trigger_event(const sc_event& e) = 0; 00072 00073 protected: 00074 virtual ~rc_event_trigger() {} 00075 }; 00076 00077 } // namespace ReChannel 00078 00079 #endif //RC_INTERFACE_FILTER_H_ 00080 00081 // 00082 // $Id: rc_event_filter.h,v 1.3 2007/12/27 00:26:13 felke Exp $ 00083 // $Source: /var/cvs/projekte/ReChannel-v2/src/ReChannel/core/rc_event_filter.h,v $ 00084 //