27#ifndef __RADAR_ODIMH5V21_HDF5_HPP__
28#define __RADAR_ODIMH5V21_HDF5_HPP__
73 static H5::H5File*
open (
const std::string& path,
int h5flags);
80 static H5::Group*
getRoot (H5::H5File* file);
105 static H5::Attribute*
get (H5::H5Object* obj,
const char* name,
bool mandatory);
114 static bool exists (H5::H5Object* obj,
const char* name);
123 static void remove (H5::H5Object* obj,
const char* name);
132 static std::string
getName (H5::Attribute* attr);
145 static void set (H5::H5Object* obj,
const char* name, int64_t value);
157 static void set (H5::H5Object* obj,
const char* name,
double value);
169 static void set (H5::H5Object* obj,
const char* name,
const char* value);
181 static void set (H5::H5Object* obj,
const char* name,
const std::string& value);
192 static int64_t
getLong (H5::H5Object* obj,
const char* name);
202 static int64_t
getLong (H5::H5Object* obj,
const char* name, int64_t defaultValue);
212 static double getDouble (H5::H5Object* obj,
const char* name);
223 static double getDouble (H5::H5Object* obj,
const char* name,
double defaultValue);
233 static std::string
getStr (H5::H5Object* obj,
const char* name);
244 static std::string
getStr (H5::H5Object* obj,
const char* name,
const std::string& defaultValue);
268 static int getChildCount (H5::Group* parent,
const char* prefix);
278 static H5::Group*
getChild (H5::Group* parent,
const char* name);
287 static void ensureChild (H5::Group* parent,
const char* name);
297 static H5::Group*
ensureGetChild (H5::Group* parent,
const char* name);
306 static void removeChild (H5::Group* parent,
const char* name);
316 static bool exists (H5::Group* parent,
const char* name);
325 static H5::DataSet*
getDataset (H5::Group* parent,
const char* name);
344 static void copyAttributes (H5::Group* src, H5::Group* dst,
const std::set<std::string>& names);
388 static H5::AtomType
fromDataType(
const H5::DataType& type);
HDF5Group class.
Definition odimh5v21_hdf5.hpp:377
static H5::AtomType fromDataType(const H5::DataType &type)
Try to cast a generic HDF5 DataType to a AtomType.
Definition odimh5v21_hdf5.cpp:806
HDF5Attribute class.
Definition odimh5v21_hdf5.hpp:93
static bool exists(H5::H5Object *obj, const char *name)
Check if an HDF5 attribute exists.
Definition odimh5v21_hdf5.cpp:137
static int64_t getLong(H5::H5Object *obj, const char *name)
Get the value of a 64 bit int signed attribute attribute.
Definition odimh5v21_hdf5.cpp:285
static void set(H5::H5Object *obj, const char *name, int64_t value)
Set the value of an attribute.
Definition odimh5v21_hdf5.cpp:170
static double getDouble(H5::H5Object *obj, const char *name)
Get the value of a 64 bit floating point attribute.
Definition odimh5v21_hdf5.cpp:324
static H5::Attribute * get(H5::H5Object *obj, const char *name, bool mandatory)
Get a HDF5 attribute.
Definition odimh5v21_hdf5.cpp:128
static std::string getStr(H5::H5Object *obj, const char *name)
Get the value of a string attribute.
Definition odimh5v21_hdf5.cpp:383
static std::string getName(H5::Attribute *attr)
Get the name of a given attribute.
Definition odimh5v21_hdf5.cpp:161
static void remove(H5::H5Object *obj, const char *name)
Delete an HDF5 attribute.
Definition odimh5v21_hdf5.cpp:155
HDF5File class.
Definition odimh5v21_hdf5.hpp:63
static H5::H5File * open(const std::string &path, int h5flags)
Open a HDF5 file.
Definition odimh5v21_hdf5.cpp:83
static H5::Group * getRoot(H5::H5File *file)
Get the HDF5 root group of a file Get the HDF5 root group of a given HDF5 file.
Definition odimh5v21_hdf5.cpp:97
HDF5Group class.
Definition odimh5v21_hdf5.hpp:258
static void copyAttributes(H5::Group *src, H5::Group *dst)
Copy all attributes from a HDF5 group to another.
Definition odimh5v21_hdf5.cpp:657
static H5::DataSet * getDataset(H5::Group *parent, const char *name)
Get a HDF5 dataset child of a given HDF5 group.
Definition odimh5v21_hdf5.cpp:624
static H5::Group * ensureGetChild(H5::Group *parent, const char *name)
Get (and automatically create) a child group.
Definition odimh5v21_hdf5.cpp:477
static void ensureChild(H5::Group *parent, const char *name)
Check or create a child group.
Definition odimh5v21_hdf5.cpp:448
static bool exists(H5::Group *parent, const char *name)
Check for child group existance.
Definition odimh5v21_hdf5.cpp:606
static H5::Group * getChild(H5::Group *parent, const char *name)
Get the a child group of a given HDF5 group.
Definition odimh5v21_hdf5.cpp:426
static void removeChild(H5::Group *parent, const char *name)
Delete a child group.
Definition odimh5v21_hdf5.cpp:550
static int getChildCount(H5::Group *parent, const char *prefix)
Get the number of children group of a given HDF5 group.
Definition odimh5v21_hdf5.cpp:530
Namespace related to ODIMH5 version 2.1.
Definition odimh5v21.hpp:46