Serialbox  2.2.0
Data serialization library and tools for C/C++, Python and Fortran
NetCDFArchive.cpp File Reference
#include "serialbox/core/Compiler.h"
#include "serialbox/core/Logging.h"
#include "serialbox/core/STLExtras.h"
#include "serialbox/core/Unreachable.h"
#include "serialbox/core/Version.h"
#include "serialbox/core/archive/NetCDFArchive.h"
#include <boost/algorithm/string.hpp>
#include <fstream>
#include <memory>
#include <netcdf.h>
#include <netcdf_meta.h>
#include <unordered_map>
#include <vector>

Go to the source code of this file.

Namespaces

 serialbox
 Namespace of the serialbox library.
 

Macros

#define NETCDF_CHECK(functionCall)
 Check return type of NetCDF functions. More...
 

Detailed Description

This file implements the archive based on NetCDF.

Definition in file NetCDFArchive.cpp.

Macro Definition Documentation

◆ NETCDF_CHECK

#define NETCDF_CHECK (   functionCall)
Value:
if((errorCode = functionCall)) \
throw serialbox::Exception("NetCDFArchive: %s", nc_strerror(errorCode));
Exception class which stores a human-readable error description.
Definition: Exception.h:30

Check return type of NetCDF functions.

Assumes that there is a variable int errorCode in the current or a parent scope.

Definition at line 34 of file NetCDFArchive.cpp.