echelon  0.8.0
utility.hpp
1 // Copyright (c) 2012-2014 Christopher Hinz
2 //
3 // Distributed under the Boost Software License, Version 1.0. (See accompanying
4 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5 
6 #ifndef ECHELON_HDF5_UTILITY_HPP
7 #define ECHELON_HDF5_UTILITY_HPP
8 
9 #include <echelon/hdf5/object.hpp>
10 
11 #include <string>
12 
13 #include <hdf5.h> //for hid_t
14 
15 namespace echelon
16 {
17 namespace hdf5
18 {
19 enum class object_type
20 {
21  group,
22  dataset,
23  scalar_dataset,
24  unknown
25 };
26 
27 object_type get_object_type(hid_t obj_id);
28 
29 object_type get_object_type_by_name(const object& loc, const std::string& name);
30 
31 bool exists(const object& loc, const std::string& name);
32 }
33 }
34 
35 #endif
echelon&#39;s core namespace
Definition: attribute.cpp:10