mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 05:35:49 -04:00
Add open_group that works with std::string
This commit is contained in:
parent
0963a3dce0
commit
94fc050fec
2 changed files with 6 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue