/** A wrapper for h5cpp calls
 */

#define WIRECELLPYTORCH_IH5CPPSERVICE
#ifndef WIRECELLPYTORCH_IH5CPPSERVICE
#define WIRECELLPYTORCH_IH5CPPSERVICE

#include "WireCellUtil/IComponent.h"

#include <h5cpp/all>

namespace WireCell {
namespace Hio {
class IH5cppService : public IComponent<IH5cppService> {
public:
  virtual ~IH5cppService() {}

  /// Return the ident number
  virtual int ident() const = 0;

  ///
  virtual h5::fd_t create(const std::string &path, unsigned flags,
                  const h5::fcpl_t &fcpl = h5::default_fcpl,
                  const h5::fapl_t &fapl = h5::default_fapl) const = 0;

  ///
  // virtual h5::fd_t open(const std::string &path, unsigned flags,
  //                       const h5::fapl_t &fapl = h5::default_fapl) const = 0;
};
} // namespace Hio
} // namespace WireCell

#endif // WIRECELLPYTORCH_IH5CPPSERVICE