netxsimdg
Loading...
Searching...
No Matches
IDevGridIO.hpp
Go to the documentation of this file.
1
8
#ifndef IDEVGRIDIO_HPP
9
#define IDEVGRIDIO_HPP
10
11
#include "
include/ModelMetadata.hpp
"
12
#include "
include/ModelState.hpp
"
13
14
namespace
Nextsim {
15
16
class
DevGrid;
26
class
IDevGridIO
{
27
public
:
28
IDevGridIO
(
DevGrid
& grid)
29
: grid(&grid)
30
{
31
}
32
virtual
~IDevGridIO
() =
default
;
33
39
virtual
ModelState
getModelState
(
const
std::string& filePath)
const
= 0;
40
49
virtual
void
dumpModelState
(
const
ModelState
& state,
const
ModelMetadata
& metadata,
50
const
std::string& filePath,
bool
isRestart)
const
= 0;
51
52
protected
:
53
DevGrid
* grid;
54
};
55
56
}
57
#endif
/* IDEVGRIDIO_HPP */
ModelMetadata.hpp
ModelState.hpp
Nextsim::DevGrid
A class to hold a grid of ElementData instances in a fixed sized square grid.
Definition
DevGrid.hpp:23
Nextsim::IDevGridIO
A class that deals with all the netCDF related parts of DevGrid.
Definition
IDevGridIO.hpp:26
Nextsim::IDevGridIO::getModelState
virtual ModelState getModelState(const std::string &filePath) const =0
Generates the ModelState based on the data in the given file.
Nextsim::IDevGridIO::dumpModelState
virtual void dumpModelState(const ModelState &state, const ModelMetadata &metadata, const std::string &filePath, bool isRestart) const =0
Dumps the given ModelState to the given file path.
Nextsim::ModelMetadata
Definition
ModelMetadata.hpp:24
Nextsim::ModelState
Definition
ModelState.hpp:20
core
src
include
IDevGridIO.hpp
Generated by
1.12.0