LDMX Software
Python.cxx File Reference

Implementation of parameter extraction from Python interpreter. More...

#include "Framework/Configure/Python.h"
#include "Framework/Exception/Exception.h"
#include <any>
#include <cstring>
#include <iostream>
#include <memory>
#include <sstream>
#include <string>
#include <vector>

Go to the source code of this file.

Namespaces

namespace  framework
 All classes in the ldmx-sw project use this namespace.
 
namespace  framework::config
 python execution and parameter extraction
 

Functions

static std::string framework::config::getPyString (PyObject *pyObj)
 Turn the input python string object into a std::string.
 
std::string framework::config::repr (PyObject *obj)
 Get a C++ string representation of the input python object.
 
PyObject * framework::config::extractDictionary (PyObject *obj)
 extract the dictionary of attributes from the input python object
 
static Parameters framework::config::getMembers (PyObject *object)
 Extract members from a python object.
 
Parameters framework::config::run (const std::string &root_object, const std::string &pythonScript, char *args[], int nargs)
 run the python script and extract the parameters
 

Detailed Description

Implementation of parameter extraction from Python interpreter.

We need to define a documentation header for this file so that the functions defined within this file are also documented in doxygen.

Definition in file Python.cxx.