PanNDE
All Classes Namespaces Functions Pages
Public Member Functions | List of all members
Controller::Gateway Class Referenceabstract

#include "modules/Controller/include/Gateway.hpp"

Inheritance diagram for Controller::Gateway:
VTKIO::VTKGateway

Public Member Functions

virtual void open (std::string filename)=0
 
virtual void close ()
 
virtual std::shared_ptr< PanNDE::Array< double > > getArray (std::string keyname, std::shared_ptr< PanNDE::ArrayFactory< double >> maker)=0
 
virtual double getValue (std::string keyname)=0
 
virtual std::shared_ptr< PanNDE::MeshgetMesh (std::shared_ptr< PanNDE::MeshFactory > maker, int host_id=0)=0
 
virtual std::shared_ptr< PanNDE::FieldgetField (std::string keyname, std::shared_ptr< PanNDE::FieldFactory > maker, int host_id=0)=0
 
virtual void writeSolution (std::string filename_base, std::shared_ptr< PanNDE::FieldBundle > solution, int write_index)=0
 
virtual void writeSolution (std::string filename_base, std::shared_ptr< PanNDE::FieldBundle > solution, std::shared_ptr< PanNDE::DataBundle< double >> meta, int write_index)=0
 
virtual void writeSolution (std::string filename_base, std::shared_ptr< PanNDE::FieldBundle > solution, std::shared_ptr< PanNDE::DataBundle< double >> meta)=0
 
virtual void writeSolution (std::string filename_base, std::shared_ptr< PanNDE::FieldBundle > solution)=0
 

Detailed Description

Defines the methods required to describe the data for file I/O

Member Function Documentation

◆ close()

virtual void Controller::Gateway::close ( )
inlinevirtual

close files

◆ getArray()

virtual std::shared_ptr<PanNDE::Array<double> > Controller::Gateway::getArray ( std::string  keyname,
std::shared_ptr< PanNDE::ArrayFactory< double >>  maker 
)
pure virtual

get array by keyname from file

Parameters
keynamename of variable to be pulled from input file
makerarray factory

Implemented in VTKIO::VTKGateway.

◆ getField()

virtual std::shared_ptr<PanNDE::Field> Controller::Gateway::getField ( std::string  keyname,
std::shared_ptr< PanNDE::FieldFactory maker,
int  host_id = 0 
)
pure virtual

get field by keyname from file

Parameters
makerfield factory
host_idroot process to read mesh from file

Implemented in VTKIO::VTKGateway.

◆ getMesh()

virtual std::shared_ptr<PanNDE::Mesh> Controller::Gateway::getMesh ( std::shared_ptr< PanNDE::MeshFactory maker,
int  host_id = 0 
)
pure virtual

get mesh from file

Parameters
makermesh factory
host_idroot process to read mesh from file

Implemented in VTKIO::VTKGateway.

◆ getValue()

virtual double Controller::Gateway::getValue ( std::string  keyname)
pure virtual

get value by keyname from file

Parameters
keynamename of variable to be pulled from input file

Implemented in VTKIO::VTKGateway.

◆ open()

virtual void Controller::Gateway::open ( std::string  filename)
pure virtual

open file for read

Parameters
filenamethe name of the file (using relative addr)

Implemented in VTKIO::VTKGateway.

◆ writeSolution() [1/4]

virtual void Controller::Gateway::writeSolution ( std::string  filename_base,
std::shared_ptr< PanNDE::FieldBundle solution 
)
pure virtual

write solution variables to file

Parameters
filename_basebase name for file write
solutionbundled solution data

Implemented in VTKIO::VTKGateway.

◆ writeSolution() [2/4]

virtual void Controller::Gateway::writeSolution ( std::string  filename_base,
std::shared_ptr< PanNDE::FieldBundle solution,
int  write_index 
)
pure virtual

write solution variables to file

Parameters
filename_basebase name for file write
solutionbundled solution data
write_indextime index to be written

Implemented in VTKIO::VTKGateway.

◆ writeSolution() [3/4]

virtual void Controller::Gateway::writeSolution ( std::string  filename_base,
std::shared_ptr< PanNDE::FieldBundle solution,
std::shared_ptr< PanNDE::DataBundle< double >>  meta 
)
pure virtual

write solution variables to file

Parameters
filename_basebase name for file write
solutionbundled solution data
metaadditional metadata to be written to file

Implemented in VTKIO::VTKGateway.

◆ writeSolution() [4/4]

virtual void Controller::Gateway::writeSolution ( std::string  filename_base,
std::shared_ptr< PanNDE::FieldBundle solution,
std::shared_ptr< PanNDE::DataBundle< double >>  meta,
int  write_index 
)
pure virtual

write solution variables to file

Parameters
filename_basebase name for file write
solutionbundled solution data
metaadditional metadata to be written to file
write_indextime index to be written

Implemented in VTKIO::VTKGateway.


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