00001 /***************************************************************************** 00002 00003 The following code is derived, directly or indirectly, from the SystemC 00004 source code Copyright (c) 1996-2006 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.4 (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 // $Log: sc_interface.cpp,v $ 00038 // Revision 1.1.1.1 2006/12/15 20:31:35 acg 00039 // SystemC 2.2 00040 // 00041 // Revision 1.3 2006/01/13 18:47:42 acg 00042 // Added $Log command so that CVS comments are reproduced in the source. 00043 // 00044 00045 #include "sysc/communication/sc_interface.h" 00046 #include "sysc/communication/sc_communication_ids.h" 00047 #include "sysc/kernel/sc_event.h" 00048 00049 00050 namespace sc_core { 00051 00052 // ---------------------------------------------------------------------------- 00053 // CLASS : sc_interface 00054 // 00055 // Abstract base class of all interface classes. 00056 // BEWARE: Direct inheritance from this class must be done virtual. 00057 // ---------------------------------------------------------------------------- 00058 00059 // register a port with this interface (does nothing by default) 00060 00061 void 00062 sc_interface::register_port( sc_port_base&, const char* ) 00063 {} 00064 00065 00066 // get the default event 00067 00068 const sc_event& 00069 sc_interface::default_event() const 00070 { 00071 SC_REPORT_WARNING( SC_ID_NO_DEFAULT_EVENT_, 0 ); 00072 return m_never_notified; 00073 } 00074 00075 00076 // destructor (does nothing) 00077 00078 sc_interface::~sc_interface() 00079 {} 00080 00081 00082 // constructor (does nothing) 00083 00084 sc_interface::sc_interface() 00085 {} 00086 00087 00088 sc_event sc_interface::m_never_notified; 00089 00090 } // namespace sc_core 00091 00092 // Taf!