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_non_reconfigurable_H_ 00038 #define rc_non_reconfigurable_H_ 00039 00040 #include "ReChannel/core/rc_reconfigurable.h" 00041 #include "ReChannel/core/rc_control.h" 00042 00043 namespace ReChannel { 00044 00048 class rc_non_reconfigurable 00049 : private rc_control, public rc_reconfigurable 00050 { 00051 private: 00052 rc_non_reconfigurable() 00053 : rc_control("_rc_non_reconfigurable"), 00054 rc_reconfigurable(static_cast<sc_object*>(this)) 00055 { 00056 add(*this); 00057 activate(*this); 00058 } 00059 00060 public: 00061 static rc_non_reconfigurable& get_instance() 00062 { 00063 if (s_dyn_obj == NULL) { 00064 s_dyn_obj = new rc_non_reconfigurable(); 00065 } 00066 return *s_dyn_obj; 00067 } 00068 00069 private: 00070 static rc_non_reconfigurable* s_dyn_obj; 00071 }; 00072 00073 } // namespace ReChannel 00074 00075 #endif // rc_non_reconfigurable_H_ 00076 00077 // 00078 // $Id: rc_non_reconfigurable.h,v 1.4 2007/11/23 13:25:45 felke Exp $ 00079 // $Source: /var/cvs/projekte/ReChannel-v2/src/ReChannel/core/rc_non_reconfigurable.h,v $ 00080 // 00081