moving code into aare:: namespace

This commit is contained in:
Erik Frojdh
2024-04-02 12:26:51 +02:00
parent 449c5119a4
commit 0a6030aa3e
35 changed files with 122 additions and 17 deletions

View File

@ -2,6 +2,9 @@
#include "aare/utils/logger.hpp"
#include <iostream>
#include <cassert>
namespace aare {
Frame::Frame(std::byte* bytes, ssize_t rows, ssize_t cols, ssize_t bitdepth):
m_rows(rows), m_cols(cols), m_bitdepth(bitdepth) {
m_data = new std::byte[rows*cols*bitdepth/8];
@ -48,4 +51,4 @@ template void Frame::set(int row, int col, uint32_t data);
// return array;
// }
} // namespace aare

View File

@ -1,5 +1,7 @@
#include "aare/defs.hpp"
namespace aare {
template <> std::string toString(DetectorType type) {
switch (type) {
case DetectorType::Jungfrau:
@ -45,4 +47,6 @@ template <> TimingMode StringTo(std::string mode) {
}
}
// template <> TimingMode StringTo<TimingMode>(std::string mode);
// template <> TimingMode StringTo<TimingMode>(std::string mode);
} // namespace aare