#include <Python.hpp>

Public Types

enum class  Enable { ON , TRY , OFF }
 

Public Member Functions

 Python (Enable enable=Enable::TRY)
 
bool exec (const std::string &python_code) const
 
bool exec (const std::string &python_code, const Parser &parser, Deck &deck) const
 
bool exec (const Action::PyAction &py_action, EclipseState &ecl_state, Schedule &schedule, std::size_t report_step, SummaryState &st) const
 
bool enabled () const
 
bool run_module (const std::string &path)
 

Static Public Member Functions

static bool supported ()
 

Member Enumeration Documentation

◆ Enable

enum class Opm::Python::Enable
strong
Enumerator
ON 
TRY 
OFF 

Constructor & Destructor Documentation

◆ Python()

Opm::Python::Python ( Enable  enable = Enable::TRY)
explicit

Member Function Documentation

◆ enabled()

bool Opm::Python::enabled ( ) const

◆ exec() [1/3]

bool Opm::Python::exec ( const Action::PyAction py_action,
EclipseState ecl_state,
Schedule schedule,
std::size_t  report_step,
SummaryState st 
) const

◆ exec() [2/3]

bool Opm::Python::exec ( const std::string python_code) const

◆ exec() [3/3]

bool Opm::Python::exec ( const std::string python_code,
const Parser parser,
Deck deck 
) const

◆ run_module()

bool Opm::Python::run_module ( const std::string path)

◆ supported()

static bool Opm::Python::supported ( )
static

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