HighFive 2.9.0
HighFive - Header-only C++ HDF5 interface
Loading...
Searching...
No Matches
H5Path_traits.hpp
Go to the documentation of this file.
1/*
2 * Copyright (c), 2020, EPFL - Blue Brain Project
3 *
4 * Distributed under the Boost Software License, Version 1.0.
5 * (See accompanying file LICENSE_1_0.txt or copy at
6 * http://www.boost.org/LICENSE_1_0.txt)
7 *
8 */
9#pragma once
10
11#include "H5_definitions.hpp"
12
13namespace HighFive {
14
15template <typename Derivate>
17 public:
18 PathTraits();
19
23 std::string getPath() const;
24
28 File& getFile() const noexcept;
29
30
31 protected:
32 std::shared_ptr<File> _file_obj; // keep a ref to file so we keep its ref count > 0
33};
34
35} // namespace HighFive
File class.
Definition H5File.hpp:24
Definition H5Path_traits.hpp:16
PathTraits()
Definition H5Path_traits_misc.hpp:19
std::shared_ptr< File > _file_obj
Definition H5Path_traits.hpp:32
File & getFile() const noexcept
Return a reference to the File object this object belongs.
Definition H5Path_traits_misc.hpp:38
std::string getPath() const
return the path to the current object
Definition H5Path_traits_misc.hpp:31
Definition H5_definitions.hpp:22