SST
9.1.0
StructuralSimulationToolkit
|
Class to represent the code that needs to be added to create the python module struture for the library. More...
#include <element_python.h>
Public Member Functions | |
SSTElementPythonModuleCode * | addSubModule (const std::string &module_name, char *code=NULL, std::string filename="") |
Add a submodule to the module. More... | |
std::string | getFullModuleName () |
Get the full name of the module. More... | |
Friends | |
class | SSTElementPythonModule |
Class to represent the code that needs to be added to create the python module struture for the library.
SSTElementPythonModuleCode * SST::SSTElementPythonModuleCode::addSubModule | ( | const std::string & | module_name, |
char * | code = NULL , |
||
std::string | filename = "" |
||
) |
Add a submodule to the module.
Python files will need to be turned into a char array (code parameter). One way to do this is to use the following in your Makefile:
%.inc: %.py /// od -v -t x1 < $< | sed -e 's/^[^ ]*[ ]*//g' -e '/^\s*$$/d' -e 's/\([0-9a-f]*\)[ $$]*/0x\1,/g' > $@
module_name | simple name of the module |
code | code to be compiled |
filename | filname used when reporting errors |
std::string SST::SSTElementPythonModuleCode::getFullModuleName | ( | ) |
Get the full name of the module.
Get the full name of the module formatted as parent_full_name.module_name.
References getFullModuleName().
Referenced by getFullModuleName().