39 os <<
"\n*-------------------------------------------------------------------*\n"
40 <<
"Workspace variable = " << wr.
Name()
41 <<
"\n---------------------------------------------------------------------\n"
46 std::ostringstream ostr;
48 if (ostr.str().empty()) ostr <<
"[]";
49 if (ostr.str().find(
'\n') != std::string::npos) os <<
"\n";
50 os << ostr.str() <<
"\n";
52 os <<
"\n---------------------------------------------------------------------\n"
53 <<
"Group = " << wsv_groups[wr.
Group()]
54 <<
"\n*-------------------------------------------------------------------*\n";
63 auto j = AgendaMap.find(wr.
Name());
68 cout << agenda_data[j->second] <<
"\n";
This class contains all static information for one workspace variable.
bool has_defaults() const
const String & Name() const
Name of this workspace variable.
const TokVal & default_value() const
const String & Description() const
A text describing this workspace variable.
Index Group() const
The wsv group to which this variable belongs.
#define ARTS_ASSERT(condition,...)
Index get_wsv_group_id(const String &name)
Returns the id of the given group.
const ArrayOfGroupRecord wsv_groups
The names associated with Wsv groups as Strings.
const Array< AgRecord > agenda_data
The lookup information for the agendas.
map< String, Index > AgendaMap
The map associated with agenda_data.
This file contains the Workspace class.
std::ostream & operator<<(std::ostream &os, const WsvRecord &wr)
Output operator for WsvRecord.