Files
slsDetectorPackage/slsDetectorSoftware/tests/master_file/Context.h
T
maliakal_d eb2554cf3e
Build on RHEL9 docker image / build (push) Successful in 4m51s
Build on RHEL8 docker image / build (push) Successful in 5m57s
Run Simulator Tests on local RHEL9 / build (push) Successful in 18m14s
Run Simulator Tests on local RHEL8 / build (push) Successful in 21m53s
refactored, yet to take out checkers
2026-05-19 17:10:03 +02:00

26 lines
512 B
C++

// SPDX-License-Identifier: LGPL-3.0-or-other
// Copyright (C) 2021 Contributors to the SLS Detector Package
#pragma once
#include <optional>
#include <rapidjson/document.h>
#include <string>
#ifdef HDF5C
#include "H5Cpp.h"
#endif
namespace sls::test::master_file {
struct JsonContext {
const rapidjson::Document &doc;
};
#ifdef HDF5C
struct H5Context {
H5::H5File file;
explicit H5Context(const std::string &path) : file(path, H5F_ACC_RDONLY) {}
};
#endif
} // namespace sls::test::master_file