Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move StringPadding to own file. #794

Merged
merged 1 commit into from
Jul 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
};


}