OPAL (Object Oriented Parallel Accelerator Library) 2022.1
OPAL
Functions | Variables
PyOpal::PyParser Namespace Reference

Functions

int initialise_from_opal_file (std::string file_name)
 
boost::python::list list_objects ()
 
 BOOST_PYTHON_MODULE (parser)
 

Variables

std::string initialise_from_opal_file_docstring
 
std::string list_objects_docstring
 
std::string module_docstring
 

Function Documentation

◆ BOOST_PYTHON_MODULE()

PyOpal::PyParser::BOOST_PYTHON_MODULE ( parser  )

◆ initialise_from_opal_file()

int PyOpal::PyParser::initialise_from_opal_file ( std::string  file_name)

Definition at line 22 of file PyParser.cpp.

References opalMain().

Referenced by BOOST_PYTHON_MODULE().

Here is the call graph for this function:

◆ list_objects()

boost::python::list PyOpal::PyParser::list_objects ( )

Definition at line 40 of file PyParser.cpp.

References OpalData::getAllNames(), and OpalData::getInstance().

Referenced by BOOST_PYTHON_MODULE().

Here is the call graph for this function:

Variable Documentation

◆ initialise_from_opal_file_docstring

std::string PyOpal::PyParser::initialise_from_opal_file_docstring
Initial value:
=
"Initialise from opal file\n"
"- file_name: string corresponding to the file name of the OPAL\n"
" file.\n"
"Note that if file_name is not valid, OPAL may terminate the python script\n"
"execution abnormally (without the usual python exit semantics).\n"
"\n"
"Returns an integer; 0 for successful execution or non-zero if an error\n"
"occurred.\n"

Definition at line 12 of file PyParser.cpp.

Referenced by BOOST_PYTHON_MODULE().

◆ list_objects_docstring

std::string PyOpal::PyParser::list_objects_docstring
Initial value:
=
"List the objects that are known by the Opal parser, either through calls to\n"
"initialise_from_opal_file or through calls directly to the python API\n"
"\n"
"Returns a list of strings, each one corresponding to the name of a\n"
"particular object\n"

Definition at line 33 of file PyParser.cpp.

Referenced by BOOST_PYTHON_MODULE().

◆ module_docstring

std::string PyOpal::PyParser::module_docstring
Initial value:
=
"The parser module is used to load an OPAL input file from within python"

Definition at line 50 of file PyParser.cpp.

Referenced by BOOST_PYTHON_MODULE().