4#ifdef CYCLUS_WITH_PYTHON 
   64std::string 
PyToJson(std::string infile) {
 
   69std::string 
JsonToPy(std::string infile) {
 
   74void PyCallListeners(std::string tstype, Agent* agent, 
void* cpp_ctx, 
int time,
 
   96  return std::string(
"");
 
 
  112      "Cannot convert from Python input files since " 
  113      "Cyclus was not built with Python bindings.");
 
 
  119      "Cannot convert to Python input files since " 
  120      "Cyclus was not built with Python bindings.");
 
 
 
The abstract base class used by all types of agents that live and interact in a simulation.
 
For validating files received via IO.
 
static int import_eventhooks(void)
 
basic_hold_any< char > hold_any
 
taken directly from OsiSolverInterface.cpp on 2/17/14 from https://projects.coin-or....
 
bool PY_INTERP_INIT
Whether or not the Python interpreter has been initilized.
 
void InitFromPyAgent(Agent *src, Agent *dst, void *ctx)
Initializes a Python agent fron another agent.
 
void ClearPyAgentRefs(void)
Removes all Python agents from the internal cache.
 
int PY_INTERP_COUNT
Because of NumPy #7595, we can only initialize & finalize the Python interpreter once.
 
void PyDelAgent(int i)
Removes a single Python agent from the reference cache.
 
std::string PyFindModule(std::string lib)
Finds a Python module and returns its filename.
 
void PyStop(void)
Closes the current Python session.
 
Agent * MakePyAgent(std::string lib, std::string agent, void *ctx)
Finds a Python module and returns an agent pointer from it.
 
void PyStart(void)
Initialize Python functionality, this is a no-op if Python was not installed along with Cyclus.
 
static int import_pyinfile(void)
 
#define clear_pyagent_refs
 
static int import_pymodule(void)
 
#define init_from_py_agent
 
#define py_call_listeners