Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

sc_event_finder.cpp

Go to the documentation of this file.
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_event_finder.cpp --
00021 
00022   Original Author: Martin Janssen, Synopsys, Inc.
00023                    Stan Y. Liao, Synopsys, Inc., 2001-05-21
00024 
00025  *****************************************************************************/
00026 
00027 /*****************************************************************************
00028 
00029   MODIFICATION LOG - modifiers, enter your name, affiliation, date and
00030   changes you are making here.
00031 
00032       Name, Affiliation, Date:
00033   Description of Modification:
00034     
00035  *****************************************************************************/
00036 
00037 
00038 #include "systemc/communication/sc_event_finder.h"
00039 
00040 
00041 // ----------------------------------------------------------------------------
00042 //  CLASS : sc_event_finder
00043 //
00044 //  Event finder base class.
00045 // ----------------------------------------------------------------------------
00046 
00047 // error reporting
00048 
00049 void
00050 sc_event_finder::report_error( const char* id, const char* add_msg ) const
00051 {
00052     char msg[BUFSIZ];
00053     if( add_msg != 0 ) {
00054   sprintf( msg, "%s: port '%s' (%s)",
00055      add_msg, m_port.name(), m_port.kind() );
00056     } else {
00057   sprintf( msg, "port '%s' (%s)", m_port.name(), m_port.kind() );
00058     }
00059     SC_REPORT_ERROR( id, msg );
00060 }
00061 
00062 
00063 // constructor
00064 
00065 sc_event_finder::sc_event_finder( const sc_port_base& port_ )
00066 : m_port( port_ )
00067 {}
00068 
00069 
00070 // destructor (does nothing)
00071 
00072 sc_event_finder::~sc_event_finder()
00073 {}
00074 
00075 
00076 // Taf!

Generated on Fri Jan 14 08:29:01 2005 for SystemC2.1beta11(excludingMSLib)(IncludingSCV)\nProvidedby:www.openverificationfoundation.org by doxygen1.2.18