Skip to content

Commit

Permalink
Move StringPadding to own file. (#794)
Browse files Browse the repository at this point in the history
  • Loading branch information
1uc authored Jul 10, 2023
1 parent e38bb46 commit 59e6f41
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
7 changes: 1 addition & 6 deletions include/highfive/H5DataType.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include "H5Object.hpp"
#include "bits/H5Utils.hpp"

#include "bits/string_padding.hpp"
#include "H5PropertyList.hpp"

namespace HighFive {
Expand Down Expand Up @@ -115,12 +116,6 @@ class DataType: public Object {
};


enum class StringPadding : std::underlying_type<H5T_str_t>::type {
NullTerminated = H5T_STR_NULLTERM,
NullPadded = H5T_STR_NULLPAD,
SpacePadded = H5T_STR_SPACEPAD
};

enum class CharacterSet : std::underlying_type<H5T_cset_t>::type {
Ascii = H5T_CSET_ASCII,
Utf8 = H5T_CSET_UTF8,
Expand Down
3 changes: 3 additions & 0 deletions include/highfive/bits/H5Inspector_misc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
#include <numeric>

#include "../H5Reference.hpp"

#include "string_padding.hpp"

#ifdef H5_USE_BOOST
#include <boost/multi_array.hpp>
// starting Boost 1.64, serialization header must come before ublas
Expand Down
12 changes: 12 additions & 0 deletions include/highfive/bits/string_padding.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#pragma once

namespace HighFive {

enum class StringPadding : std::underlying_type<H5T_str_t>::type {
NullTerminated = H5T_STR_NULLTERM,
NullPadded = H5T_STR_NULLPAD,
SpacePadded = H5T_STR_SPACEPAD
};


}

0 comments on commit 59e6f41

Please sign in to comment.