netxsimdg
Loading...
Searching...
No Matches
Nextsim::StructureFactory Class Reference
Collaboration diagram for Nextsim::StructureFactory:
Collaboration graph

Static Public Member Functions

static ModelState stateFromFile (const std::string &filePath)
 Returns the ModelState of the named restart file.
 
static void fileFromState (const ModelState &state, const ModelMetadata &meta, const std::string &filePath, bool isRestart=false)
 Takes a ModelState and a template file name to write the state out to a target file path.
 
static void finaliseAllFiles ()
 

Detailed Description

Definition at line 20 of file StructureFactory.hpp.

Member Function Documentation

◆ fileFromState()

void Nextsim::StructureFactory::fileFromState ( const ModelState & state,
const ModelMetadata & meta,
const std::string & filePath,
bool isRestart = false )
static

Takes a ModelState and a template file name to write the state out to a target file path.

Parameters
statethe ModelState to be written.
filePaththe path for the file to be written to.

Definition at line 72 of file StructureFactory.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ stateFromFile()

ModelState Nextsim::StructureFactory::stateFromFile ( const std::string & filePath)
static

Returns the ModelState of the named restart file.

Parameters
filePaththe name of the file to be read.

Definition at line 44 of file StructureFactory.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following files: