1#ifndef CYCLUS_SRC_PYHOOKS_H_
2#define CYCLUS_SRC_PYHOOKS_H_
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.
T OptionalQuery(InfileTree *tree, std::string query, T default_val)
a query method for optional parameters