Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F86326468
dumper.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Oct 5, 20:19
Size
1 KB
Mime Type
text/x-c++
Expires
Mon, Oct 7, 20:19 (2 d)
Engine
blob
Format
Raw Data
Handle
21398532
Attached To
rTSUNAMIPROJECT PHPC-TSUNAMI-PROJECT
dumper.h
View Options
//
// 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
Log In to Comment