ARTS  2.0.49
m_copy.h
Go to the documentation of this file.
1 /* Copyright (C) 2002-2008 Stefan Buehler <sbuehler@ltu.se>
2 
3  This program is free software; you can redistribute it and/or modify it
4  under the terms of the GNU General Public License as published by the
5  Free Software Foundation; either version 2, or (at your option) any
6  later version.
7 
8  This program is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  GNU General Public License for more details.
12 
13  You should have received a copy of the GNU General Public License
14  along with this program; if not, write to the Free Software
15  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
16  USA. */
17 
29 #ifndef m_copy_h
30 #define m_copy_h
31 
32 #include "messages.h"
33 #include "mystring.h"
34 #include "workspace_ng.h"
35 #include "agenda_class.h"
36 
37 
38 /* Workspace method: Doxygen documentation will be auto-generated */
39 template< class T >
40 void Copy(// WS Generic Output:
41  T& out,
42  // WS Generic Input:
43  const T& in,
44  const Verbosity&)
45 {
46  // The use of CloneSize should not be necessary anymore, thanks to
47  // the new copy semantics.
48  // CloneSize( out, outname, in, inname );
49  out = in;
50 }
51 
52 /* Workspace method: Doxygen documentation will be auto-generated */
53 void Copy(Workspace& ws _U_,
54  // WS Generic Output:
55  Agenda& out,
56  // WS Generic Input:
57  const Agenda& in,
58  const Verbosity&)
59 {
60  // The use of CloneSize should not be necessary anymore, thanks to
61  // the new copy semantics.
62  // CloneSize( out, outname, in, inname );
63  out = in;
64 }
65 
66 #endif // m_copy_h
Copy
void Copy(T &out, const T &in, const Verbosity &)
WORKSPACE METHOD: Copy.
Definition: m_copy.h:40
Agenda
The Agenda class.
Definition: agenda_class.h:44
agenda_class.h
Declarations for agendas.
messages.h
Declarations having to do with the four output streams.
_U_
#define _U_
Definition: config.h:158
Verbosity
Definition: messages.h:50
workspace_ng.h
This file contains the declaration and partly the implementation of the workspace class.
Workspace
Workspace class.
Definition: workspace_ng.h:47
mystring.h
This file contains the definition of String, the ARTS string class.