ARTS 2.5.11 (git: 725533f0)
m_gridded_fields.h
Go to the documentation of this file.
1
11#ifndef m_gridded_fields_h
12#define m_gridded_fields_h
13
14#include "gridded_fields.h"
15#include "mystring.h"
16
17/* Workspace method: Doxygen documentation will be auto-generated */
18template <typename T>
19void GriddedFieldGetName( // WS Generic Output:
20 String& name,
21 // WS Generic Input:
22 const T& gf,
23 const Verbosity&) {
24 // Return the name of the given GriddedField.
25 name = gf.get_name();
26}
27
28/* Workspace method: Doxygen documentation will be auto-generated */
29template <typename T>
30void ArrayOfGriddedFieldGetNames( // WS Generic Output:
31 ArrayOfString& names,
32 // WS Generic Input:
33 const Array<T>& aogf,
34 const Verbosity&) {
35 // Return the name of the given GriddedField.
36 names.resize(aogf.nelem());
37 for (Index i = 0; i < aogf.nelem(); i++) {
38 names[i] = aogf[i].get_name();
39 }
40}
41
42#endif // m_gridded_fields_h
Index nelem() const ARTS_NOEXCEPT
Definition array.h:75
Implementation of gridded fields.
void ArrayOfGriddedFieldGetNames(ArrayOfString &names, const Array< T > &aogf, const Verbosity &)
void GriddedFieldGetName(String &name, const T &gf, const Verbosity &)
WORKSPACE METHOD: GriddedFieldGetName.
This file contains the definition of String, the ARTS string class.