|
Extension: Json and NetCDF utilities
#include "dg/file/file.h"
|
Classes | |
| struct | dg::file::NC_Error |
| Class thrown by the NC_Error_Handle. More... | |
| struct | dg::file::NcHyperslab |
A NetCDF Hyperslab for SerialNcFile. More... | |
| struct | dg::file::MPINcHyperslab |
A NetCDF Hyperslab for MPINcFile. More... | |
| struct | dg::file::LongNameAttribute |
| Facilitate construction of CF attribute "long_name" in records lists. More... | |
| struct | dg::file::Record< SignatureType, Attributes > |
| A realisation of the Record concept. Helper to generate NetCDF variables. More... | |
Typedefs | |
| using | dg::file::nc_att_t |
| Utility type to simplify dealing with heterogeneous attribute types. | |
| template<class Signature > | |
| using | dg::file::get_first_argument_type_t = std::decay_t<typename detail::get_first_argument_type<Signature>::type> |
| template<class Signature > | |
| using | dg::file::get_result_type_t = typename std::function<Signature>::result_type |
Enumerations | |
| enum | dg::file::NcFileMode { dg::file::nc_nowrite , dg::file::nc_write , dg::file::nc_clobber , dg::file::nc_noclobber } |
| NetCDF file format. More... | |
Functions | |
| std::string | dg::file::timestamp (int argc, char *argv[]) |
| Generate one line entry for the history global attribute. | |
Variables | |
| const std::map< std::string, std::string > | dg::file::version_flags |
| Version compile time constants available as a map. | |
| using dg::file::get_first_argument_type_t = std::decay_t<typename detail::get_first_argument_type<Signature>::type> |
If Signature = R(Arg1, A...) return Arg1
| using dg::file::get_result_type_t = typename std::function<Signature>::result_type |
If Signature = R(Arg1, A...) return R
| using dg::file::nc_att_t |
Utility type to simplify dealing with heterogeneous attribute types.
| enum dg::file::NcFileMode |
NetCDF file format.
All Files are opened/ created in Netcdf-4 data format
|
inline |
Generate one line entry for the history global attribute.
This will generate a string containing a whitespace seperated list of
Y-m-dTH:M:SZ| argc | from main function |
| argv | from main function |
|
inline |
Version compile time constants available as a map.
Is intended to be used as NetCDF file attributes
The entries in the map are filled only if the corresponding MACROs are defined at compile time. Use -DVERSION_FLAGS during compilation to define all otherwise it remains empty. This is the corresponding entry in feltor/config/version.mk