00001 /***************************************************************************** 00002 00003 The following code is derived, directly or indirectly, from the SystemC 00004 source code Copyright (c) 1996-2004 by all Contributors. 00005 All Rights reserved. 00006 00007 The contents of this file are subject to the restrictions and limitations 00008 set forth in the SystemC Open Source License Version 2.3 (the "License"); 00009 You may not use this file except in compliance with such restrictions and 00010 limitations. You may obtain instructions on how to receive a copy of the 00011 License at http://www.systemc.org/. Software distributed by Contributors 00012 under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF 00013 ANY KIND, either express or implied. See the License for the specific 00014 language governing rights and limitations under the License. 00015 00016 *****************************************************************************/ 00017 00018 /***************************************************************************** 00019 00020 sc_interface.cpp -- Abstract base class of all interface classes. 00021 00022 Original Author: Martin Janssen, Synopsys, Inc., 2001-05-21 00023 00024 *****************************************************************************/ 00025 00026 /***************************************************************************** 00027 00028 MODIFICATION LOG - modifiers, enter your name, affiliation, date and 00029 changes you are making here. 00030 00031 Name, Affiliation, Date: 00032 Description of Modification: 00033 00034 *****************************************************************************/ 00035 00036 00037 #include "systemc/communication/sc_interface.h" 00038 #include "systemc/communication/sc_communication_ids.h" 00039 #include "systemc/kernel/sc_event.h" 00040 00041 00042 // ---------------------------------------------------------------------------- 00043 // CLASS : sc_interface 00044 // 00045 // Abstract base class of all interface classes. 00046 // BEWARE: Direct inheritance from this class must be done virtual. 00047 // ---------------------------------------------------------------------------- 00048 00049 // register a port with this interface (does nothing by default) 00050 00051 void 00052 sc_interface::register_port( sc_port_base&, const char* ) 00053 {} 00054 00055 00056 // get the default event 00057 00058 const sc_event& 00059 sc_interface::default_event() const 00060 { 00061 SC_REPORT_WARNING( SC_ID_NO_DEFAULT_EVENT_, 0 ); 00062 return m_never_notified; 00063 } 00064 00065 00066 // destructor (does nothing) 00067 00068 sc_interface::~sc_interface() 00069 {} 00070 00071 00072 // constructor (does nothing) 00073 00074 sc_interface::sc_interface() 00075 {} 00076 00077 00078 sc_event sc_interface::m_never_notified; 00079 00080 00081 // Taf!
1.2.18