Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
DataNode.hpp
Go to the documentation of this file.
1// -------------------------------------------------------//
2//
3// SHAMROCK code for hydrodynamics
4// Copyright (c) 2021-2026 Timothée David--Cléris <tim.shamrock@proton.me>
5// SPDX-License-Identifier: CeCILL Free Software License Agreement v2.1
6// Shamrock is licensed under the CeCILL 2.1 License, see LICENSE for more information
7//
8// -------------------------------------------------------//
9
10#pragma once
11
20#include <string>
21#include <vector>
22
24
26 struct DataNode {
27 std::string name;
28 std::vector<f64> data;
29
31 std::string serialize_json();
33 void serialize(std::basic_stringstream<byte> &stream);
35 static DataNode deserialize(std::basic_stringstream<byte> &reader);
36 };
37} // namespace shamtest::details
implementation details of the test library
Definition DataNode.hpp:23
Data node generated by the test.
Definition DataNode.hpp:26
std::string serialize_json()
Serialize the assertion in JSON.
std::string name
Name of the data node.
Definition DataNode.hpp:27
static DataNode deserialize(std::basic_stringstream< byte > &reader)
DeSerialize the assertion from binary format.
void serialize(std::basic_stringstream< byte > &stream)
Serialize the assertion in binary format.
std::vector< f64 > data
Held data.
Definition DataNode.hpp:28