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

@ -1,10 +1,9 @@
// Your First C++ Program
#include "aare/examples/defs.hpp"
#include "aare/file_io/File.hpp"
#include "aare/utils/logger.hpp"
#include <iostream>
#define AARE_ROOT_DIR_VAR "PROJECT_ROOT_DIR"
using aare::File;
using aare::Frame;
@ -18,7 +17,7 @@ void test(File &f, int frame_number) {
}
int main() {
auto PROJECT_ROOT_DIR = std::filesystem::path(getenv(AARE_ROOT_DIR_VAR));
auto PROJECT_ROOT_DIR = std::filesystem::path(getenv(AARE_ROOT_DIR));
std::filesystem::path const fpath(PROJECT_ROOT_DIR / "data" / "jungfrau" / "jungfrau_single_master_0.json");
std::cout << fpath << '\n';