diff options
author | Magnus Lundborg <lundborg.magnus@gmail.com> | 2013-12-05 15:29:47 (GMT) |
---|---|---|
committer | Magnus Lundborg <lundborg.magnus@gmail.com> | 2013-12-05 15:29:47 (GMT) |
commit | c6443b9491b17a09e82a9972c26418d52e187514 (patch) | |
tree | 345dbca93a893aa6d8a62d16df51a14e587cad58 /include | |
parent | 18fa4ccaba77d03647c46bb2036328bf340f8be3 (diff) |
New function for reading frame set, including particle mapping and data blocks.
Diffstat (limited to 'include')
-rw-r--r-- | include/tng_io.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/tng_io.h b/include/tng_io.h index 7b0cb53..292700f 100644 --- a/include/tng_io.h +++ b/include/tng_io.h @@ -2409,6 +2409,23 @@ tng_function_status DECLSPECDLLEXPORT tng_block_read_next (tng_trajectory_t tng_data, tng_gen_block_t block_data, const char hash_mode); + +/** + * @brief Read one frame set, including all particle mapping blocks and data + * blocks, starting from the current file position. + * @param tng_data is a trajectory data container. + * @param hash_mode is an option to decide whether to use the md5 hash or not. + * If hash_mode == TNG_USE_HASH the written md5 hash in the file will be + * compared to the md5 hash of the read contents to ensure valid data. + * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) + * must be initialised before using it. + * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error + * has occurred or TNG_CRITICAL (2) if a major error has occured. + */ +tng_function_status DECLSPECDLLEXPORT tng_frame_set_read + (tng_trajectory_t tng_data, + const char hash_mode); + /** * @brief Read data from the current frame set from the input_file. Only read * particle mapping and data blocks matching the specified block_id. |