Nektar++
|
Helper structure to construct C++ command line argc
and argv
variables from a Python list.
More...
#include <NekPyConfig.hpp>
Public Member Functions | |
CppCommandLine (py::list &py_argv) | |
Constructor. More... | |
~CppCommandLine () | |
Destructor. More... | |
char ** | GetArgv () |
Returns the constructed argv . More... | |
int | GetArgc () |
Returns the constructed argc . More... | |
Private Attributes | |
char ** | m_argv = nullptr |
Pointers for strings argv . More... | |
int | m_argc = 0 |
Number of arguments argc . More... | |
std::vector< char > | m_buf |
Buffer for storage of the argument strings. More... | |
Helper structure to construct C++ command line argc
and argv
variables from a Python list.
Definition at line 204 of file NekPyConfig.hpp.
|
inline |
Constructor.
py_argv | List of command line arguments from Python. |
Definition at line 211 of file NekPyConfig.hpp.
References CellMLToNektar.pycml::copy(), m_argc, m_argv, m_buf, and CellMLToNektar.cellml_metadata::p.
|
inline |
|
inline |
Returns the constructed argc
.
Definition at line 265 of file NekPyConfig.hpp.
References m_argc.
Referenced by Field_Init(), NewPartition(), and SessionReader_CreateInstance().
|
inline |
Returns the constructed argv
.
Definition at line 257 of file NekPyConfig.hpp.
References m_argv.
Referenced by Field_Init(), NewPartition(), and SessionReader_CreateInstance().
|
private |
Number of arguments argc
.
Definition at line 274 of file NekPyConfig.hpp.
Referenced by CppCommandLine(), and GetArgc().
|
private |
Pointers for strings argv
.
Definition at line 272 of file NekPyConfig.hpp.
Referenced by CppCommandLine(), GetArgv(), and ~CppCommandLine().
|
private |
Buffer for storage of the argument strings.
Definition at line 276 of file NekPyConfig.hpp.
Referenced by CppCommandLine().