ARTS 2.5.11 (git: 725533f0)
agenda_record.h
Go to the documentation of this file.
1
10#ifndef agenda_record_h
11#define agenda_record_h
12
13#include <iostream>
14#include "arts.h"
15#include "mystring.h"
16
18
26class AgRecord {
27 public:
29 AgRecord() : mname(""), mdescription(""), moutput(0), minput(0) {
30 // Nothing to do here.
31 }
32
33 // Initializing constructor. Implementation in .cc file.
34 AgRecord(const char* name,
35 const char* description,
36 const ArrayOfString& output,
37 const ArrayOfString& input);
38
39 AgRecord(const AgRecord&) = default;
40 AgRecord& operator=(const AgRecord&) = default;
41
42 [[nodiscard]] const String& Name() const { return mname; }
43 [[nodiscard]] const String& Description() const { return mdescription; }
44 [[nodiscard]] const ArrayOfIndex& Out() const { return moutput; }
45 [[nodiscard]] const ArrayOfIndex& In() const { return minput; }
46
47 friend ostream& operator<<(ostream& os, const AgRecord& agr);
48
49 private:
52
55
58
61};
62
64
66
68
69void write_agenda_wrapper_header(ofstream& ofs,
70 const AgRecord& agr,
71 bool is_agenda_array);
72
73#endif
void define_agenda_map()
bool check_agenda_data()
Check that agendas.cc and workspace.cc are consistent.
void write_agenda_wrapper_header(ofstream &ofs, const AgRecord &agr, bool is_agenda_array)
Write a agenda wrapper header.
void define_agenda_data()
Definition agendas.cc:27
The global header file for ARTS.
Lookup information for one agenda.
const ArrayOfIndex & Out() const
String mdescription
A text string describing this agenda.
ArrayOfIndex moutput
Workspace Output.
const ArrayOfIndex & In() const
AgRecord(const AgRecord &)=default
AgRecord()
Default constructor.
ArrayOfIndex minput
Workspace Input.
const String & Description() const
String mname
The name of this agenda.
friend ostream & operator<<(ostream &os, const AgRecord &agr)
Output operator for AgRecord.
const String & Name() const
AgRecord & operator=(const AgRecord &)=default
This file contains the definition of String, the ARTS string class.