echelon  0.8.0
static_type_layout.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_STATIC_TYPE_LAYOUT_HPP
7 #define ECHELON_HDF5_STATIC_TYPE_LAYOUT_HPP
8 
9 namespace echelon
10 {
11 namespace hdf5
12 {
13 enum class static_type_layout_category
14 {
15  generic,
16  packed
17 };
18 
19 template <typename T>
20 struct static_type_layout;
21 
22 struct id_offset_pair
23 {
24  constexpr id_offset_pair(const char* id, std::size_t offset) : id(id), offset(offset)
25  {
26  }
27 
28  const char* id;
29  std::size_t offset;
30 };
31 
32 struct id_size_pair
33 {
34  constexpr id_size_pair(const char* id, std::size_t size) : id(id), size(size)
35  {
36  }
37 
38  const char* id;
39  std::size_t size;
40 };
41 }
42 }
43 
44 #endif
echelon&#39;s core namespace
Definition: attribute.cpp:10