Kaspersky Neuromorphic Platform  1.0.0
API Reference
Loading...
Searching...
No Matches
data_storage_json.h File Reference

Load data from file. More...

#include <knp/core/impexp.h>
#include <knp/core/messaging/messaging.h>
#include <filesystem>
#include <vector>
+ Include dependency graph for data_storage_json.h:

Go to the source code of this file.

Namespaces

namespace  knp
 General framework namespace.
 
namespace  knp::framework
 Framework namespace.
 
namespace  knp::framework::io
 Input and output channel namespace.
 
namespace  knp::framework::io::storage
 Storage namespace.
 
namespace  knp::framework::io::storage::native
 Data storage namespace.
 

Functions

KNP_DECLSPEC std::vector< core::messaging::SpikeMessageknp::framework::io::storage::native::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.
 
KNP_DECLSPEC void knp::framework::io::storage::native::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.
 

Detailed Description

Load data from file.

Developers: Vartenkov Andrey
Date
16.04.2024
License: Apache 2.0

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition in file data_storage_json.h.