PISM, A Parallel Ice Sheet Model  stable v2.1-1-g6902d5502 committed by Ed Bueler on 2023-12-20 08:38:27 -0800
Namespaces | Functions
ConfigJSON.cc File Reference
#include <vector>
#include <cstdlib>
#include "pism/util/ConfigJSON.hh"
#include "pism/util/error_handling.hh"
#include "pism/util/pism_utilities.hh"
#include "pism/util/io/File.hh"

Go to the source code of this file.

Namespaces

 pism
 

Functions

static json_t * pism::find_json_value (json_t *root, const std::string &name)
 
static json_t * pism::pack_json_array (const std::vector< double > &data)
 
std::vector< double > pism::unpack_json_array (const char *name, const json_t *input)
 
template<typename PISMType , typename TMPType >
static void pism::get_all_values (json_t *root, const std::string &path, int type, const char *fmt, std::map< std::string, PISMType > &accum)
 
static void pism::get_all_arrays (json_t *root, const std::string &path, std::map< std::string, std::vector< double > > &accum)
 
template<typename PISMType , typename TMPType >
static PISMType pism::get_value (json_t *object, const std::string &name, const char *fmt, const char *type_name)
 
static void pism::set_value (json_t *data, const std::string &name, json_t *value)