OOPS
variables_f.h
Go to the documentation of this file.
1 /*
2  * (C) Copyright 2019 UCAR
3  *
4  * This software is licensed under the terms of the Apache Licence Version 2.0
5  * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
6  */
7 
8 #ifndef OOPS_BASE_VARIABLES_F_H_
9 #define OOPS_BASE_VARIABLES_F_H_
10 
11 #include <string>
12 
13 #include "oops/base/Variables.h"
14 
15 // ------------------------------------------------------------------------------
16 // These functions provide tools for interfacing Fortran and C++ string objects
17 // ------------------------------------------------------------------------------
18 
19 namespace oops {
20 
21 extern "C" {
24  void variables_push_back_f(oops::Variables &, const char *);
25  size_t variables_size_f(const oops::Variables &);
26  void variables_getvariablelength_f(const oops::Variables &, const size_t &, size_t &);
27  void variables_getvariable_f(const oops::Variables &, const size_t &, size_t &,
28  const size_t &, char *);
29  bool variables_has_f(const oops::Variables & vars, const char *);
30 }
31 
32 } // namespace oops
33 
34 #endif // OOPS_BASE_VARIABLES_F_H_
The namespace for the main oops code.
size_t variables_size_f(const oops::Variables &vars)
Definition: variables_f.cc:37
void variables_getvariablelength_f(const oops::Variables &vars, const size_t &jj, size_t &lcvarname)
Definition: variables_f.cc:42
void variables_getvariable_f(const oops::Variables &vars, const size_t &jj, size_t &lcvarname, const size_t &lfvarname, char *cvarname)
Definition: variables_f.cc:49
void variables_push_back_f(oops::Variables &vars, const char *vname)
Definition: variables_f.cc:32
oops::Variables * variables_empty_ctor_f()
Definition: variables_f.cc:20
void variables_destruct_f(oops::Variables *vars)
Definition: variables_f.cc:26
bool variables_has_f(const oops::Variables &vars, const char *vname)
Definition: variables_f.cc:67