Skip to content
Snippets Groups Projects
Commit 92a7ab88 authored by Emilio Meschi's avatar Emilio Meschi :bicyclist_tone1: Committed by Thomas Owen James
Browse files

moved most of the file handling to OutputFileHandler

parent a845fd10
No related branches found
No related tags found
No related merge requests found
......@@ -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_;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment