MPS-Basic
Loading...
Searching...
No Matches
saver.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include "
common.hpp
"
4
#include "
mps.hpp
"
5
#include "
particles_exporter.hpp
"
6
7
#include <filesystem>
8
17
class
Saver
{
18
private
:
19
ParticlesExporter
exporter
;
20
int
fileNumber
= 0;
21
std::filesystem::path
dir
;
22
bool
outputVtkInBinary
=
false
;
23
24
public
:
25
Saver
() =
default
;
26
27
Saver
(
const
std::filesystem::path&
dir
,
const
bool
binaryFormat);
28
29
void
save
(
const
MPS
& mps,
const
double
time);
30
31
int
getFileNumber
()
const
;
32
};
MPS
MPS simulation class.
Definition
mps.hpp:25
ParticlesExporter
Definition
particles_exporter.hpp:19
Saver
Definition
saver.hpp:17
Saver::outputVtkInBinary
bool outputVtkInBinary
Definition
saver.hpp:22
Saver::dir
std::filesystem::path dir
Definition
saver.hpp:21
Saver::getFileNumber
int getFileNumber() const
Definition
saver.cpp:34
Saver::Saver
Saver()=default
Saver::fileNumber
int fileNumber
Definition
saver.hpp:20
Saver::save
void save(const MPS &mps, const double time)
Definition
saver.cpp:13
Saver::Saver
Saver(const std::filesystem::path &dir, const bool binaryFormat)
Saver::exporter
ParticlesExporter exporter
Definition
saver.hpp:19
common.hpp
mps.hpp
particles_exporter.hpp
src
saver.hpp
Generated by
1.12.0