OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
PythonLoadedModules.h
Go to the documentation of this file.
1/*****************************************************************/
8#pragma once
9#include <string>
10#include <set>
11#include <map>
12#include <optional>
13
14#include "EntityInformation.h"
15#include "OTCore/Logger.h"
16
18{
19public:
20 static PythonLoadedModules& instance(void);
21
22 std::optional<std::string> getModuleName(const ot::EntityInformation& _scriptEntityInfos);
23 std::string addModuleForEntity(const ot::EntityInformation& _scriptEntityInfo);
24 std::string createUniqueModuleName(const ot::EntityInformation& _entityInfo);
25
26 std::string getEntityName(const std::string& _moduleName);
27private:
28
30 std::set<std::string> m_moduleNames;
31 std::map<std::string, std::string> m_entityNameByModuleName;
32};
OpenTwin Logging system.
Definition PythonLoadedModules.h:18
std::optional< std::string > getModuleName(const ot::EntityInformation &_scriptEntityInfos)
Definition PythonLoadedModules.cpp:8
std::string addModuleForEntity(const ot::EntityInformation &_scriptEntityInfo)
Definition PythonLoadedModules.cpp:24
static PythonLoadedModules & instance(void)
Definition PythonLoadedModules.cpp:3
std::string getEntityName(const std::string &_moduleName)
Definition PythonLoadedModules.cpp:44
std::string createUniqueModuleName(const ot::EntityInformation &_entityInfo)
Definition PythonLoadedModules.cpp:36