27#ifndef __RADAR_ODIMH5V20_HDF5_HPP__
28#define __RADAR_ODIMH5V20_HDF5_HPP__
75 static H5::H5File*
open (
const std::string& path,
int h5flags);
82 static H5::Group*
getRoot (H5::H5File* file);
107 static H5::Attribute*
get (H5::H5Object* obj,
const char* name,
bool mandatory);
116 static bool exists (H5::H5Object* obj,
const char* name);
125 static void remove (H5::H5Object* obj,
const char* name);
134 static std::string
getName (H5::Attribute* attr);
147 static void set (H5::H5Object* obj,
const char* name, int64_t value);
159 static void set (H5::H5Object* obj,
const char* name,
double value);
171 static void set (H5::H5Object* obj,
const char* name,
const char* value);
183 static void set (H5::H5Object* obj,
const char* name,
const std::string& value);
194 static int64_t
getLong (H5::H5Object* obj,
const char* name);
204 static int64_t
getLong (H5::H5Object* obj,
const char* name, int64_t defaultValue);
214 static double getDouble (H5::H5Object* obj,
const char* name);
225 static double getDouble (H5::H5Object* obj,
const char* name,
double defaultValue);
235 static std::string
getStr (H5::H5Object* obj,
const char* name);
246 static std::string
getStr (H5::H5Object* obj,
const char* name,
const std::string& defaultValue);
270 static int getChildCount (H5::Group* parent,
const char* prefix);
280 static H5::Group*
getChild (H5::Group* parent,
const char* name);
289 static void ensureChild (H5::Group* parent,
const char* name);
299 static H5::Group*
ensureGetChild (H5::Group* parent,
const char* name);
308 static void removeChild (H5::Group* parent,
const char* name);
318 static bool exists (H5::Group* parent,
const char* name);
327 static H5::DataSet*
getDataset (H5::Group* parent,
const char* name);
346 static void copyAttributes (H5::Group* src, H5::Group* dst,
const std::set<std::string>& names);
370 static H5::AtomType
fromDataType(
const H5::DataType& type);
HDF5Group class.
Definition odimh5v20_hdf5.hpp:359
static H5::AtomType fromDataType(const H5::DataType &type)
Try to cast a generic HDF5 DataType to a AtomType.
Definition odimh5v20_hdf5.cpp:765
HDF5Attribute class.
Definition odimh5v20_hdf5.hpp:95
static bool exists(H5::H5Object *obj, const char *name)
Check if an HDF5 attribute exists.
Definition odimh5v20_hdf5.cpp:136
static std::string getStr(H5::H5Object *obj, const char *name)
Get the value of a string attribute.
Definition odimh5v20_hdf5.cpp:382
static double getDouble(H5::H5Object *obj, const char *name)
Get the value of a 64 bit floating point attribute.
Definition odimh5v20_hdf5.cpp:323
static int64_t getLong(H5::H5Object *obj, const char *name)
Get the value of a 64 bit int signed attribute attribute.
Definition odimh5v20_hdf5.cpp:284
static void set(H5::H5Object *obj, const char *name, int64_t value)
Set the value of an attribute.
Definition odimh5v20_hdf5.cpp:169
static std::string getName(H5::Attribute *attr)
Get the name of a given attribute.
Definition odimh5v20_hdf5.cpp:160
static H5::Attribute * get(H5::H5Object *obj, const char *name, bool mandatory)
Get a HDF5 attribute.
Definition odimh5v20_hdf5.cpp:127
static void remove(H5::H5Object *obj, const char *name)
Delete an HDF5 attribute.
Definition odimh5v20_hdf5.cpp:154
HDF5File class.
Definition odimh5v20_hdf5.hpp:65
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 odimh5v20_hdf5.cpp:96
static H5::H5File * open(const std::string &path, int h5flags)
Open a HDF5 file.
Definition odimh5v20_hdf5.cpp:82
HDF5Group class.
Definition odimh5v20_hdf5.hpp:260
static H5::DataSet * getDataset(H5::Group *parent, const char *name)
Get a HDF5 dataset child of a given HDF5 group.
Definition odimh5v20_hdf5.cpp:622
static H5::Group * getChild(H5::Group *parent, const char *name)
Get the a child group of a given HDF5 group.
Definition odimh5v20_hdf5.cpp:425
static int getChildCount(H5::Group *parent, const char *prefix)
Get the number of children group of a given HDF5 group.
Definition odimh5v20_hdf5.cpp:529
static void ensureChild(H5::Group *parent, const char *name)
Check or create a child group.
Definition odimh5v20_hdf5.cpp:447
static void copyAttributes(H5::Group *src, H5::Group *dst)
Copy all attributes from a HDF5 group to another.
Definition odimh5v20_hdf5.cpp:655
static bool exists(H5::Group *parent, const char *name)
Check for child group existance.
Definition odimh5v20_hdf5.cpp:604
static void removeChild(H5::Group *parent, const char *name)
Delete a child group.
Definition odimh5v20_hdf5.cpp:549
static H5::Group * ensureGetChild(H5::Group *parent, const char *name)
Get (and automatically create) a child group.
Definition odimh5v20_hdf5.cpp:476
Namespace related to ODIMH5 version 2.0.
Definition odimh5v20.hpp:46