tests add to namespace sls (#464)

This commit is contained in:
Dhanya Thattil
2022-05-20 15:41:37 +02:00
committed by GitHub
parent c7ba79644a
commit f5745fcf18
44 changed files with 350 additions and 228 deletions

View File

@ -4,6 +4,8 @@
#include "sls/sls_detector_defs.h"
#include <string>
namespace sls {
struct SingleDetectorConfig {
slsDetectorDefs::detectorType type_enum =
slsDetectorDefs::detectorType::EIGER;
@ -11,3 +13,5 @@ struct SingleDetectorConfig {
const std::string type_string = "Eiger";
const std::string my_ip = "129.129.205.171";
};
} // namespace sls

View File

@ -2,6 +2,9 @@
// Copyright (C) 2021 Contributors to the SLS Detector Package
#pragma once
#include "sls/sls_detector_defs.h"
namespace sls {
using dt = slsDetectorDefs::detectorType;
using di = slsDetectorDefs::dacIndex;
using defs = slsDetectorDefs;
@ -15,3 +18,5 @@ extern decltype(defs::GET_ACTION) GET;
extern decltype(defs::PUT_ACTION) PUT;
} // namespace test
} // namespace sls

View File

@ -2,6 +2,11 @@
// Copyright (C) 2021 Contributors to the SLS Detector Package
#pragma once
#include <cstdint>
namespace sls {
enum class func_id { read_data, read_int, read_half_data, combined };
constexpr size_t MB = 1048576;
constexpr size_t DATA_SIZE = 50 * MB;
constexpr size_t DATA_SIZE = 50 * MB;
} // namespace sls