30 class PlaceholderModuleImporter :
public ModuleImporter {
32 static ModuleImporter
const *
get() {
33 static PlaceholderModuleImporter
const instance;
37 PlaceholderModuleImporter() {}
42 ModuleImporter
const * & getImporterSingleton() {
43 static ModuleImporter
const * instance = PlaceholderModuleImporter::get();
50 return getImporterSingleton()->_import(name);
54 getImporterSingleton() = importer;
Base class that defines an interface for importing Python modules.
A base class for image defects.
Mechanism for safely importing Python modules from C++; should not be included except by its own impl...
static bool import(std::string const &name)
Import the given Python module, and return true if successful.