OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
PythonModuleAPI.h
Go to the documentation of this file.
1
3
4#pragma once
5#include <string>
6#include "CPythonObject.h"
8{
9public:
10 static const PythonModuleAPI& instance(void);
11
12 std::string getModuleEntryPoint(const std::string& _moduleName) const;
13 std::string getModuleEntryPoint(CPythonObject& _module) const;
14
15public:
16 PythonModuleAPI() = default;
17 std::string m_defaultEntryPoint = "__main__";
18
19 bool hasScriptHasEntryPoint(const CPythonObject& _module) const;
20};
21
Definition CPythonObject.h:13
Functions that investigate an existing module for the starting function. If the module contains only ...
Definition PythonModuleAPI.h:8
std::string getModuleEntryPoint(const std::string &_moduleName) const
Definition PythonModuleAPI.cpp:10
bool hasScriptHasEntryPoint(const CPythonObject &_module) const
Definition PythonModuleAPI.cpp:71
PythonModuleAPI()=default
std::string m_defaultEntryPoint
Definition PythonModuleAPI.h:17
static const PythonModuleAPI & instance(void)
Definition PythonModuleAPI.cpp:5