00001 /* Copyright (C) 2002-2008 Stefan Buehler <sbuehler@ltu.se> 00002 00003 This program is free software; you can redistribute it and/or modify it 00004 under the terms of the GNU General Public License as published by the 00005 Free Software Foundation; either version 2, or (at your option) any 00006 later version. 00007 00008 This program is distributed in the hope that it will be useful, 00009 but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00011 GNU General Public License for more details. 00012 00013 You should have received a copy of the GNU General Public License 00014 along with this program; if not, write to the Free Software 00015 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, 00016 USA. */ 00017 00029 #ifndef m_ignore_h 00030 #define m_ignore_h 00031 00032 #include "exceptions.h" 00033 #include "messages.h" 00034 #include "mystring.h" 00035 #include "workspace_ng.h" 00036 #include "agenda_class.h" 00037 00038 /* Workspace method: Doxygen documentation will be auto-generated */ 00039 void Ignore(Workspace& ws _U_, 00040 // WS Generic Input: 00041 const Agenda& in _U_) 00042 { 00043 } 00044 00045 00046 /* Workspace method: Doxygen documentation will be auto-generated */ 00047 template< class T > 00048 void Ignore(// WS Generic Input: 00049 const T& in _U_) 00050 { 00051 } 00052 00053 00054 /* Workspace method: Doxygen documentation will be auto-generated */ 00055 void DoNothing(Workspace& ws _U_, 00056 // WS Generic Output: 00057 Agenda& out, 00058 // WS Generic Input: 00059 Agenda& in) 00060 { 00061 if( &out != &in ) 00062 throw runtime_error( 00063 "*DoNothing* requires that input and output is same WSV." ); 00064 } 00065 00066 /* Workspace method: Doxygen documentation will be auto-generated */ 00067 template< class T > 00068 void DoNothing( 00069 // WS Generic Output: 00070 T& out, 00071 // WS Generic Input: 00072 T& in) 00073 { 00074 if( &out != &in ) 00075 throw runtime_error( 00076 "*DoNothing* requires that input and output is same WSV." ); 00077 } 00078 00079 #endif // m_ignore_h