Loading...
Searching...
No Matches
Namespaces | Typedefs | Functions
bbm_embed_module.h File Reference

Embed a static python module in the executable. More...

#include "bbm.h"
#include "python/python_macro.h"
#include "python/bbm_python_interpreter.h"
#include "export/bbm_python.h"
#include "bbm_bsdfmodels.h"
#include "export/clear_export.h"

Go to the source code of this file.

Namespaces

namespace  bbm
 
namespace  bbm::embed
 

Typedefs

using config = bbm::BBM_CONFIG
 Shorthand for the embedded config.
 
using interpreter = bbm::python::interpreter< config >
 Shorthand for the interpreter operating on the embedded config.
 

Functions

template<typename RET_TYPE >
RET_TYPE capture (const std::string &prog)
 Shorthand for the capture method on the embedded config.
 
void execute (const std::string &prog)
 Shorthand for the execute method on the embedded config.
 

Detailed Description

Embed a static python module in the executable.

Requires BBM_NAME and BBM_CONFIG to be set. The module is automatically embedded when included, and the bbm::embed namespace contains shorthand for accessing the embedded bbm python module.