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>
24
#include <
knp/core/messaging/messaging.h
>
25
26
#include <filesystem>
27
#include <vector>
28
29
33
namespace
knp::framework::io::storage
34
{
35
39
namespace
native
40
{
41
42
// TODO: Return and get iterators.
43
54
KNP_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
67
KNP_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
messaging.h
Common header for messaging.
knp::framework::io::storage::native
Data storage namespace.
Definition
data_storage_hdf5.h:40
knp::framework::io::storage::native::load_messages_from_h5
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::framework::io::storage::native::save_messages_to_h5
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.
knp::framework::io::storage
Storage namespace.
Definition
data_storage_hdf5.h:34