Kaspersky Neuromorphic Platform  1.0.0
API Reference
Loading...
Searching...
No Matches
data_storage_json.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
36// TODO: return and get iterators.
37
45KNP_DECLSPEC std::vector<core::messaging::SpikeMessage> load_messages_from_json(
46 const std::filesystem::path &path_to_json, const knp::core::UID &uid, bool strict_format = true);
47
48
55KNP_DECLSPEC void save_messages_to_json(
56 const std::vector<core::messaging::SpikeMessage> &messages, const std::filesystem::path &path_to_save);
57} // namespace knp::framework::io::storage::native
Common header for messaging.
KNP_DECLSPEC void save_messages_to_json(const std::vector< core::messaging::SpikeMessage > &messages, const std::filesystem::path &path_to_save)
Save a vector of spike messages to JSON file.
KNP_DECLSPEC std::vector< core::messaging::SpikeMessage > load_messages_from_json(const std::filesystem::path &path_to_json, const knp::core::UID &uid, bool strict_format=true)
Read spike messages from a JSON file.