00001 /******************************************************************************* 00002 * arch-tag: Matthieu Moy February 10, 2004 (parser/include/scp-sc-interface-list-hook.h) 00003 *------------------------------------------------------------------------------ 00004 * Copyright (c) STMicroelectronics,Verimag 00005 * Pinapa is free software; you can redistribute it and/or 00006 * modify it under the terms of the GNU Lesser General Public 00007 * License as published by the Free Software Foundation; either 00008 * version 2 of the License, or (at your option) any later version. 00009 * 00010 * This library is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 * Library General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU Lesser General Public 00016 * License along with this library; if not, write to the Free 00017 * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, 00018 * MA 02111-1307, USA 00019 *------------------------------------------------------------------------------ 00020 * System Platform Group - HPC 00021 *******************************************************************************/ 00022 00030 #ifndef PINAPA_SC_INTERFACE_LIST_HOOK_H 00031 #define PINAPA_SC_INTERFACE_LIST_HOOK_H 00032 00033 #include "pinapa-parser-all.h" 00034 #include "pinapa-hooks.h" 00035 00036 #include "systemc.h" 00037 00038 #include <vector> 00039 00040 namespace pinapa { 00041 00042 class sc_interface_list_hook : public st_hooked_function { 00043 public: 00044 typedef vector<sc_interface *> list_if; 00045 virtual void operator() (st_hook_param * param); 00046 static list_if & get_list_interface() {return m_list_interface;} 00047 00048 private: 00049 static list_if m_list_interface; 00050 }; 00051 00052 } 00053 00054 #endif // PINAPA_SC_INTERFACE_LIST_HOOK_H 00055