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_copy_h 00030 #define m_copy_h 00031 00032 #include "messages.h" 00033 #include "mystring.h" 00034 #include "workspace_ng.h" 00035 #include "agenda_class.h" 00036 00037 00038 /* Workspace method: Doxygen documentation will be auto-generated */ 00039 template< class T > 00040 void Copy(// WS Generic Output: 00041 T& out, 00042 // WS Generic Input: 00043 const T& in) 00044 { 00045 // The use of CloneSize should not be necessary anymore, thanks to 00046 // the new copy semantics. 00047 // CloneSize( out, outname, in, inname ); 00048 out = in; 00049 } 00050 00051 /* Workspace method: Doxygen documentation will be auto-generated */ 00052 void Copy(Workspace& ws _U_, 00053 // WS Generic Output: 00054 Agenda& out, 00055 // WS Generic Input: 00056 const Agenda& in) 00057 { 00058 // The use of CloneSize should not be necessary anymore, thanks to 00059 // the new copy semantics. 00060 // CloneSize( out, outname, in, inname ); 00061 out = in; 00062 } 00063 00064 #endif // m_copy_h