Kaspersky Neuromorphic Platform  1.0.0
API Reference
Loading...
Searching...
No Matches
data_storage_hdf5.h
Go to the documentation of this file.
1
21#pragma once
22
23#include <knp/core/impexp.h>
25
26#include <filesystem>
27#include <vector>
28
29
34{
35
39namespace native
40{
41
42// TODO: Return and get iterators.
43
54KNP_DECLSPEC std::vector<core::messaging::SpikeMessage> load_messages_from_h5(
55 const std::filesystem::path &path_to_h5, const knp::core::UID &uid, float time_per_step = 1.0f,
56 bool strict_format = true);
57
58
67KNP_DECLSPEC void save_messages_to_h5(
68 const std::vector<core::messaging::SpikeMessage> &messages, const std::filesystem::path &path_to_save,
69 float time_per_step = 1.0f);
70
71} // namespace native
72
73} // namespace knp::framework::io::storage
Common header for messaging.
KNP_DECLSPEC std::vector< core::messaging::SpikeMessage > load_messages_from_h5(const std::filesystem::path &path_to_h5, const knp::core::UID &uid, float time_per_step=1.0f, bool strict_format=true)
Read spike messages from an HDF5 file.
KNP_DECLSPEC void save_messages_to_h5(const std::vector< core::messaging::SpikeMessage > &messages, const std::filesystem::path &path_to_save, float time_per_step=1.0f)
Save a vector of spike messages to HDF5 file.