LSSTApplications
10.0-2-g4f67435,11.0.rc2+1,11.0.rc2+12,11.0.rc2+3,11.0.rc2+4,11.0.rc2+5,11.0.rc2+6,11.0.rc2+7,11.0.rc2+8
LSSTDataManagementBasePackage
|
Base class that defines an interface for importing Python modules. More...
#include <ModuleImporter.h>
Static Public Member Functions | |
static bool | import (std::string const &name) |
Import the given Python module, and return true if successful. More... | |
Protected Member Functions | |
ModuleImporter () | |
virtual bool | _import (std::string const &name) const =0 |
virtual | ~ModuleImporter () |
Static Private Member Functions | |
static void | install (ModuleImporter const *importer) |
Friends | |
void | installPythonModuleImporter () |
Base class that defines an interface for importing Python modules.
The default implementation (defined in the source file) simply returns false, indicating that it can't import the given module. The functional implementation is in the ioLib Swig module, which is installed when that module is imported. That machinery keeps us from calling Python C-API functions from standalone C++ binaries that aren't linked with Python.
Definition at line 48 of file ModuleImporter.h.
|
inlineprotected |
Definition at line 56 of file ModuleImporter.h.
|
inlineprotectedvirtual |
Definition at line 60 of file ModuleImporter.h.
|
protectedpure virtual |
|
static |
Import the given Python module, and return true if successful.
Definition at line 49 of file ModuleImporter.cc.
|
staticprivate |
Definition at line 53 of file ModuleImporter.cc.
|
friend |