#include <iostream>
#include <fstream>
#include <string>
#include <sstream>
#include <stdexcept>
#include "json/json.h"
Go to the source code of this file.
|
namespace | dg |
|
namespace | dg::file |
| Namespace for Json and NetCDF I/O related classes and functions.
|
|
|
JsonType | dg::file::file2Json (std::string filename, enum comments comm=file::comments::are_discarded, enum error err=file::error::is_throw) |
| Convenience wrapper to open a file and parse it into a JsonType.
|
|
void | dg::file::file2Json (std::string filename, JsonType &js, enum comments comm=file::comments::are_discarded, enum error err=file::error::is_throw) |
| Same as js = dg::file::file2Json( filename, comm, err)
|
|
JsonType | dg::file::string2Json (std::string input, enum comments comm=file::comments::are_discarded, enum error err=file::error::is_throw) |
| Convenience wrapper to parse a string into a JsonType.
|
|
void | dg::file::string2Json (std::string input, JsonType &js, enum comments comm=file::comments::are_discarded, enum error err=file::error::is_throw) |
| Same as js = string2Json( input, comm, err)
|
|
template<class ContainerType > |
dg::file::JsonType | dg::file::vec2json (const ContainerType &shared) |
| convert a vector to a json arrray
|
|
template<class T > |
dg::file::JsonType | dg::file::vec2json (std::initializer_list< T > shared) |
| Specialization for intitializer list.
|
|