7template <
typename Derivate>
 
   10    const std::string& dset_name,
 
   16  return self.
createDataSet(dset_name, space, type, linkCreateProps, dsetCreateProps, dsetAccessProps);
 
   19template <
typename Derivate>
 
   22    const std::string& dset_name,
 
   23    const std::vector<size_t>& dims,
 
   28  return self.
createDataSet(dset_name, 
DataSpace(dims), type, linkCreateProps, dsetCreateProps, dsetAccessProps);
 
   31template <
typename Derivate>
 
   34    const std::string& dset_name,
 
   40  return self.
createDataSet(dset_name, 
DataSpace(dim), type, linkCreateProps, dsetCreateProps, dsetAccessProps);
 
   43template <
typename Derivate>
 
   46    const Group& obj, 
const std::string& objNewName,
 
   50  return self.
copy(obj, objNewName, copyProps, linkCreateProps, groupAccessProps);
 
   53template <
typename Derivate>
 
   56    const DataSet& obj, 
const std::string& objNewName,
 
   60  return self.
copy(obj, objNewName, copyProps, linkCreateProps, dsetAccessProps);
 
   63template <
typename Derivate>
 
   66    const DataType& obj, 
const std::string& objNewName,
 
   70  return self.
copy(obj, objNewName, copyProps, linkCreateProps, dtypeAccessProps);
 
   73template <
typename Derivate>
 
   77    const std::string& linkName,
 
   78    const LinkType& linkType,
 
   79    const std::string& targetPath = 
"",
 
   83  return self.createLink(target, linkName, linkType, targetPath, linkCreateProps, linkAccessProps, dsetAccessProps);
 
   86template <
typename Derivate>
 
   90    const std::string& linkName,
 
   91    const LinkType& linkType,
 
   92    const std::string& targetPath = 
"",
 
   96  return self.createLink(target, linkName, linkType, targetPath, linkCreateProps, linkAccessProps, dtypeAccessProps);
 
   99template <
typename Derivate>
 
  100std::tuple<std::string, std::string> unpackExternalLink(
 
  102    const std::string& objName){
 
  103  std::string fileName_out;
 
  105  return std::make_tuple(fileName_out, objName_out);
 
  112template <
typename Derivate>
 
  115      .def(
"createDataSet", &ext::createDataSet_wrap1<Derivate>,
 
  116           py::arg(
"dset_name"),
 
  122      .def(
"createDataSet", &ext::createDataSet_wrap2<Derivate>,
 
  123           py::arg(
"dset_name"),
 
  129      .def(
"createDataSet", &ext::createDataSet_wrap3<Derivate>,
 
  130           py::arg(
"dset_name"),
 
  137           py::arg(
"dtype_name"),
 
  140           py::arg(
"dset_name"),
 
  142           "Get an existing dataset in the current file")
 
  144           py::arg(
"group_name"),
 
  148           "Create a new group, and eventually intermediate groups")
 
  150           py::arg(
"group_name"),
 
  152           "return the number of leaf objects of the node / group")
 
  162           "Return target object name")
 
  163      .def(
"unpackExternalLink", &ext::unpackExternalLink<Derivate>,
 
  165           "Return target file name and object name")
 
  168           py::arg(
"dest_path"),
 
  171           "Moves an object and its content within an HDF5 file.")
 
  176           py::arg_v(
"raise_errors", 
false, 
"False"),
 
  177           "Check a dataset or group exists in the current node / group")
 
  181           py::arg_v(
"raise_errors", 
false, 
"False"),
 
  182           "Check a dataset or group in the current node / group may be resolved or not")
 
  186           py::arg_v(
"raise_errors", 
false, 
"False"),
 
  187           "Call 'exist()' with subsequent call to 'resolved()' if successful")
 
  190           py::arg(
"objectType"),
 
  192           py::arg_v(
"raise_errors", 
false, 
"False"),
 
  193           "Advanced version of `exist` that also checks the type of object")
 
  200           "Unlink the given dataset or group. NOTE: unlink doesn't frees memory. Use `h5repack` to free unused space")
 
  204           "A shorthand to get the kind of object pointed to (group, dataset, type...)")
 
  205      .def(
"copy", &ext::copy_wrap1<Derivate>,
 
  207           py::arg(
"objNewName"),
 
  211      .def(
"copy", &ext::copy_wrap2<Derivate>,
 
  213           py::arg(
"objNewName"),
 
  217      .def(
"copy", &ext::copy_wrap3<Derivate>,
 
  219           py::arg(
"objNewName"),
 
  223      .def(
"createLink", py::overload_cast<
 
  234           py::arg_v(
"targetPath", std::string(), 
"str()"),
 
  238           "Creates link to a `File`")
 
  239      .def(
"createLink", py::overload_cast<
 
  250           py::arg_v(
"targetPath", std::string(), 
"str()"),
 
  254           "Creates link to a `Group`")
 
  255      .def(
"createLink", &ext::createLink_wrap1<Derivate>,
 
  259           py::arg_v(
"targetPath", std::string(), 
"str()"),
 
  263           "Creates link to a `DataSet`")
 
  264      .def(
"createLink", &ext::createLink_wrap2<Derivate>,
 
  268           py::arg_v(
"targetPath", std::string(), 
"str()"),
 
  272           "Creates link to a `DataType`");
 
Definition H5PropertyList.hpp:255
Definition H5PropertyList.hpp:171
Class representing a dataset.
Definition H5DataSet.hpp:28
Class representing the space (dimensions) of a dataset.
Definition H5DataSpace.hpp:37
Definition H5PropertyList.hpp:295
HDF5 Data Type.
Definition H5DataType.hpp:48
File class.
Definition H5File.hpp:25
Definition H5PropertyList.hpp:162
Definition H5PropertyList.hpp:157
Represents an hdf5 group.
Definition H5Group.hpp:23
Definition H5PropertyList.hpp:138
Definition H5PropertyList.hpp:129
NodeTraits: Base class for Group and File.
Definition H5Node_traits.hpp:23
std::string unpackExternalLink(const std::string &objName, std::string &fileName_out)
unpackExternalLink retrieve target path object path and file path
Definition H5Node_traits_misc.hpp:194
DataSet createDataSet(const std::string &dataset_name, const DataSpace &space, const DataType &type, const LinkCreateProps &linkCreateProps=LinkCreateProps(), const DataSetCreateProps &dsetCreateProps=DataSetCreateProps(), const DataSetAccessProps &dsetAccessProps=DataSetAccessProps())
createDataSet Create a new dataset in the current file of datatype type and of size space
Definition H5Node_traits_misc.hpp:39
Group copy(const Group &obj, const std::string &objNewName, const ObjectCopyProps ©Props=ObjectCopyProps(), const LinkCreateProps &linkCreateProps=LinkCreateProps(), const GroupAccessProps &groupAccessProps=GroupAccessProps())
Copies specified object to the new destination (this File/Group) under new name. The destination must...
Definition H5Node_traits_misc.hpp:368
Definition H5PropertyList.hpp:305