From 92a7ab8866d1c3d5e975bc6e6a9827f01c306ae5 Mon Sep 17 00:00:00 2001
From: Emilio <Emilio.Meschi@cern.ch>
Date: Tue, 25 Oct 2022 18:35:36 +0200
Subject: [PATCH] moved most of the file handling to OutputFileHandler

---
 src/OutputByOrbit.h | 14 +++-----------
 1 file changed, 3 insertions(+), 11 deletions(-)

diff --git a/src/OutputByOrbit.h b/src/OutputByOrbit.h
index be633a39..c2c5031a 100644
--- a/src/OutputByOrbit.h
+++ b/src/OutputByOrbit.h
@@ -6,9 +6,9 @@
 #include <cstdio>
 #include <string>
 
+#include "OutputFileHandler.h"
 #include "tbb/pipeline.h"
 
-class OutputFileHandler;
 class ctrl;
 class config;
 
@@ -17,21 +17,13 @@ class OutputByOrbitStream : public tbb::filter {
  public:
   OutputByOrbitStream(ctrl &c, config &conf_);
   void *operator()(void *item) /*override*/;
-  void *OutputFixedOrbits(Slice &out);
+  void OutputFixedOrbits(Slice &out);
 
  private:
   // used for fixed N orbits per file approach
-  void close_and_move_file();
-  void open_file(uint32_t index_);
 
-  OutFile outFile;
-
-  std::string my_output_filename_base;
-  std::string my_output_filename_prefix;
-  uint32_t totcounts;
   uint64_t current_file_size;
-  int32_t file_count;
-  uint32_t current_run_number;
+  uint64_t totcounts;
   ctrl &control;
   config &conf;
   OutputFileHandler output_file_handler_;
-- 
GitLab