OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
PythonAPI.h
Go to the documentation of this file.
1#pragma once
2#include <optional>
3#include <list>
4#include "PythonWrapper.h"
5#include "EntityFile.h"
7#include "EntityInformation.h"
9
11{
12 friend class FixturePythonAPI;
13public:
14 PythonAPI();
15 ot::ReturnValues execute(std::list<std::string>& _scripts, std::list<std::list<ot::Variable>>& _parameterSet) noexcept(false);
16 ot::ReturnValues execute(const std::string& _command) noexcept(false);
17private:
18 std::map<std::string , std::string> m_moduleEntrypointByModuleName;
19 PythonWrapper m_wrapper;
20 std::list<ot::EntityInformation> ensureScriptsAreLoaded(const std::list<std::string>& _scripts);
21 void loadScipt(const ot::EntityInformation& _entityInformation);
22};
Entity that holds a binary representation of a file. Any type of file should be supported.
Builder to transfer typically used PyObjects to c++ types and vice versa.
Wrapper around python code execution.
Definition FixturePythonAPI.h:12
Definition PythonAPI.h:11
ot::ReturnValues execute(std::list< std::string > &_scripts, std::list< std::list< ot::Variable > > &_parameterSet) noexcept(false)
Definition PythonAPI.cpp:24
PythonAPI()
Definition PythonAPI.cpp:19
Definition PythonWrapper.h:19
Definition ReturnValues.h:11