read write cluster file (#60)

* Read and write cluster files (save work)

* add reading test

* use define for examples env variable and fix ci

* read and write cluster files (working)

* fix cluster CI
This commit is contained in:
Bechir Braham
2024-04-16 13:14:41 +02:00
committed by GitHub
parent 9dfd388927
commit 28d7e8c07a
28 changed files with 554 additions and 28 deletions

View File

@@ -11,6 +11,20 @@
namespace aare {
struct Cluster {
int16_t x;
int16_t y;
std::array<int32_t, 9> data;
std::string to_string() const {
std::string s = "x: " + std::to_string(x) + " y: " + std::to_string(y) + "\ndata: [";
for (auto d : data) {
s += std::to_string(d) + " ";
}
s += "]";
return s;
}
};
/**
* @brief header contained in parts of frames
*/