Add open_group that works with std::string

This commit is contained in:
Paul Romano 2021-06-23 10:23:32 +07:00
parent 0963a3dce0
commit 94fc050fec
2 changed files with 6 additions and 1 deletions

View file

@ -51,7 +51,7 @@ inline hid_t create_group(hid_t parent_id, const std::stringstream& name)
hid_t file_open(const std::string& filename, char mode, bool parallel=false);
hid_t open_group(hid_t group_id, const std::string& name);
void write_string(hid_t group_id, const char* name, const std::string& buffer,
bool indep);

View file

@ -225,6 +225,11 @@ file_open(const std::string& filename, char mode, bool parallel)
return file_open(filename.c_str(), mode, parallel);
}
hid_t open_group(hid_t group_id, const std::string& name)
{
return open_group(group_id, name.c_str());
}
void file_close(hid_t file_id)
{
H5Fclose(file_id);