Page MenuHomec4science

dumper.h
No OneTemporary

File Metadata

Created
Sat, Oct 5, 20:19

dumper.h

//
// Created by Arnaud Pannatier on 06.05.18.
// Based on the code of :
// - Nicolas Richart <nicolas.richart@epfl.ch>
// - Vincent Keller <vincent.keller@epfl.ch>
// - Vittoria Rezzonico <vittoria.rezzonico@epfl.ch>
// See the files AUTHORS and COPYRIGHT for the concerning information
//
#ifndef PHPCTSUNAMIPROJECT_DUMPER_H
#define PHPCTSUNAMIPROJECT_DUMPER_H
/* -------------------------------------------------------------------------- */
class Grid;
/* -------------------------------------------------------------------------- */
class Dumper {
public:
explicit Dumper(const Grid & grid) : m_grid(grid), m_min(-1.), m_max(1.) {}
virtual void dump(int step) = 0;
void set_min(float min);
void set_max(float max);
float min() const;
float max() const;
protected:
const Grid & m_grid;
float m_min, m_max;
};
/* -------------------------------------------------------------------------- */
class DumperBinary : public Dumper {
public:
explicit DumperBinary(const Grid & grid) : Dumper(grid) {}
virtual void dump(int step);
};
#endif //PHPCTSUNAMIPROJECT_DUMPER_H

Event Timeline