ARTS 2.5.11 (git: 725533f0)
m_copy.h
Go to the documentation of this file.
1
12#ifndef m_copy_h
13#define m_copy_h
14
15#include "agenda_class.h"
16#include "debug.h"
17#include "messages.h"
18#include "mystring.h"
19#include "workspace_ng.h"
20
21/* Workspace method: Doxygen documentation will be auto-generated */
22template <class T>
23void Copy( // WS Generic Output:
24 T& out,
25 const String& /* out_name */,
26 // WS Generic Input:
27 const T& in,
28 const String& /* in_name */,
29 const Verbosity&) {
30 out = in;
31}
32
33/* Workspace method: Doxygen documentation will be auto-generated */
34inline void Copy(Workspace& ws,
35 // WS Generic Output:
36 Agenda& out,
37 const String& out_name,
38 // WS Generic Input:
39 const Agenda& in,
40 const String& /* in_name */,
41 const Verbosity& verbosity) {
42 out = in;
43 out.set_name(out_name);
44 out.check(ws, verbosity);
45}
46
47/* Workspace method: Doxygen documentation will be auto-generated */
48inline void Copy(Workspace& ws,
49 // WS Generic Output:
50 ArrayOfAgenda& out,
51 const String& out_name,
52 // WS Generic Input:
53 const ArrayOfAgenda& in,
54 const String& /* in_name */,
55 const Verbosity& verbosity) {
56 out = in;
57 for (auto & it : out) {
58 it.set_name(out_name);
59 it.check(ws, verbosity);
60 }
61}
62
63#endif // m_copy_h
Declarations for agendas.
The Agenda class.
void check(Workspace &ws_in, const Verbosity &verbosity)
Checks consistency of an agenda.
void set_name(const String &nname)
Set agenda name.
This can be used to make arrays out of anything.
Definition array.h:31
Workspace class.
Helper macros for debugging.
void Copy(T &out, const String &, const T &in, const String &, const Verbosity &)
WORKSPACE METHOD: Copy.
Definition m_copy.h:23
Declarations having to do with the four output streams.
This file contains the definition of String, the ARTS string class.
This file contains the Workspace class.