Skip to content

Commit

Permalink
add io handle support to hdf5 read/write with offset
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Huy-Khoa Huynh committed Feb 22, 2021
1 parent f73a8b4 commit 31b0d81
Show file tree
Hide file tree
Showing 8 changed files with 510 additions and 155 deletions.
149 changes: 99 additions & 50 deletions src/libs/relay/conduit_relay_io.cpp

Large diffs are not rendered by default.

31 changes: 28 additions & 3 deletions src/libs/relay/conduit_relay_io.hpp
Expand Up @@ -13,7 +13,7 @@
#define CONDUIT_RELAY_IO_HPP

//-----------------------------------------------------------------------------
// conduit lib include
// conduit lib include
//-----------------------------------------------------------------------------
#include "conduit.hpp"
#include "conduit_relay_exports.h"
Expand Down Expand Up @@ -59,6 +59,11 @@ void CONDUIT_RELAY_API finalize();
void CONDUIT_RELAY_API save(const Node &node,
const std::string &path);

//-----------------------------------------------------------------------------
void CONDUIT_RELAY_API save(const Node &node,
const std::string &path,
const Node &options);

//-----------------------------------------------------------------------------
void CONDUIT_RELAY_API save(const Node &node,
const std::string &path,
Expand All @@ -78,6 +83,11 @@ void CONDUIT_RELAY_API save(const Node &node,
void CONDUIT_RELAY_API save_merged(const Node &node,
const std::string &path);

//-----------------------------------------------------------------------------
void CONDUIT_RELAY_API save_merged(const Node &node,
const std::string &path,
const Node &options);

//-----------------------------------------------------------------------------
void CONDUIT_RELAY_API save_merged(const Node &node,
const std::string &path,
Expand Down Expand Up @@ -118,6 +128,11 @@ void CONDUIT_RELAY_API add_step(const Node &node,
void CONDUIT_RELAY_API load(const std::string &path,
Node &node);

//-----------------------------------------------------------------------------
void CONDUIT_RELAY_API load(const std::string &path,
const Node &options,
Node &node);

//-----------------------------------------------------------------------------
void CONDUIT_RELAY_API load(const std::string &path,
const std::string &protocol,
Expand Down Expand Up @@ -146,19 +161,30 @@ void CONDUIT_RELAY_API load(const std::string &path,

///
/// ``load_merged`` works like an update, for the object case, entries are read
/// into the node. If the node is already in the OBJECT_T role, children are
/// into the node. If the node is already in the OBJECT_T role, children are
/// added
///

//-----------------------------------------------------------------------------
void CONDUIT_RELAY_API load_merged(const std::string &path,
Node &node);

//-----------------------------------------------------------------------------
void CONDUIT_RELAY_API load_merged(const std::string &path,
const Node &options,
Node &node);

//-----------------------------------------------------------------------------
void CONDUIT_RELAY_API load_merged(const std::string &path,
const std::string &protocol,
Node &node);

//-----------------------------------------------------------------------------
void CONDUIT_RELAY_API load_merged(const std::string &path,
const std::string &protocol,
const Node &options,
Node &node);

///
/// ``query_number_of_steps`` return the number of steps.
///
Expand Down Expand Up @@ -189,4 +215,3 @@ int CONDUIT_RELAY_API query_number_of_domains(const std::string &path);


#endif

0 comments on commit 31b0d81

Please sign in to comment.