27class SSTElementPythonModuleCode
 
   33    SSTElementPythonModuleCode* parent;
 
   37    std::string module_name;
 
   65    SSTElementPythonModuleCode(
 
   66        SSTElementPythonModuleCode* parent, 
const std::string& module_name, 
char* code, std::string filename) :
 
   68        module_name(module_name),
 
   73        if ( filename == 
"" ) {
 
   87    virtual void* load(
void* parent_module);
 
   90    std::vector<SSTElementPythonModuleCode*> sub_modules;
 
   92    friend class SSTElementPythonModule;
 
  107    SSTElementPythonModuleCode* 
addSubModule(
const std::string& module_name, 
char* code, 
const std::string& filename);
 
  114    SSTElementPythonModuleCode* 
addSubModule(
const std::string& module_name);
 
  123    virtual ~SSTElementPythonModuleCode() = 
default;
 
 
  132class SSTElementPythonModule
 
  137    std::string pylibrary;
 
  138    std::string sstlibrary;
 
  139    char*       primary_module;
 
  141    std::vector<std::pair<std::string, char*>> sub_modules;
 
  146    SSTElementPythonModule() {}
 
  149    SST_ELI_DECLARE_BASE(SSTElementPythonModule)
 
  150    SST_ELI_DECLARE_DEFAULT_INFO_EXTERN()
 
  151    SST_ELI_DECLARE_CTOR_EXTERN(
const std::string&)
 
  153    virtual ~SSTElementPythonModule() {}
 
  161    explicit SSTElementPythonModule(
const std::string& library);
 
  163    virtual void* load();
 
 
SSTElementPythonModuleCode * addSubModule(const std::string &module_name, char *code, const std::string &filename)
Add a submodule to the module.
Definition element_python.cc:97