34 lines
673 B
C++
34 lines
673 B
C++
//
|
|
// particle_logger_base.h
|
|
// mc_electron
|
|
//
|
|
// Created by Christian Reiling on 18.05.19.
|
|
// Copyright © 2019 Christian Reiling. All rights reserved.
|
|
//
|
|
|
|
#ifndef particle_logger_base_h
|
|
#define particle_logger_base_h
|
|
|
|
#include "h5tb_particle_interface.hpp"
|
|
#include "process_base.h"
|
|
|
|
class Particle_Logger_Base : public Process_Base {
|
|
protected:
|
|
bool logging = true;
|
|
public:
|
|
Particle_Logger_Base(species this_species) : Process_Base(this_species) {};
|
|
virtual void log(const Particle &logPart, const vec3 &oldLoc_m) = 0;
|
|
virtual void flush() = 0;
|
|
void set_logging(const bool &logging) {
|
|
this->logging = logging;
|
|
}
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* particle_logger_base_h */
|
|
|
|
|