rc_resettable.h

Go to the documentation of this file.
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  */
00038 #ifndef RC_RESETTABLE_H_
00039 #define RC_RESETTABLE_H_
00040 
00041 #include "ReChannel/core/rc_common_header.h"
00042 
00043 namespace ReChannel {
00044 
00045 class rc_reconfigurable;
00046 
00071 class rc_resettable
00072 {
00076     friend class rc_reconfigurable;
00077 
00078 protected:
00091     virtual void rc_on_reset() = 0;
00092 
00104     virtual void rc_on_init_resettable() = 0;
00105 
00109     virtual ~rc_resettable() {}
00110 };
00111 
00112 } // namespace ReChannel
00113 
00130 #define RC_ON_RESET() \
00131     virtual void rc_on_reset()
00132 
00149 #define RC_ON_INIT_RESETTABLE() \
00150     virtual void rc_on_init_resettable()
00151 
00152 #endif // RC_RESETTABLE_H_
00153 
00154 //
00155 // $Id: rc_resettable.h,v 1.10 2007/10/14 05:29:39 felke Exp $
00156 // $Source: /var/cvs/projekte/ReChannel-v2/src/ReChannel/core/rc_resettable.h,v $
00157 //

Generated on Tue Jan 1 23:13:42 2008 for ReChannel by  doxygen 1.5.3