Page MenuHomec4science

io_hdf5_database.cpp
No OneTemporary

File Metadata

Created
Fri, Nov 22, 07:07

io_hdf5_database.cpp

#include "catch.hpp"
#include "database/yaml_reader.hpp"
#include "database/switch_basis.hpp"
#include "str_database.hpp"
#include <H5Cpp.h>
#include "utils/io/specmicp_hdf5.hpp"
#include "database/io/hdf5_database.hpp"
#include <iostream>
#include <sstream>
using namespace specmicp;
using namespace specmicp::database;
using namespace specmicp::io;
TEST_CASE("HDF5 saver", "[hdf5],[io]")
{
std::istringstream input(good_test_database);
DataReaderYaml reader(input);
auto data = reader.get_database();
SECTION("labels output") {
HDF5File file("test_database_labels.hf5", HDF5_OpenMode::CreateTruncate);
save_database_labels(file, "database", "/", data);
}
}

Event Timeline