11 bool interprete(std::shared_ptr<EntityFile> pythonScript);
13 const std::list<EntityPropertiesBase*>&
getAllProperties()
const {
return _allProperties; };
16 std::list<ot::JsonDocument *> _allConnectorsAsJSON;
17 std::list<ot::JsonDocument*> _allPropertiesAsJSON;
19 std::list<EntityPropertiesBase*> _allProperties;
20 std::list<ot::Connector> _allConnectors;
21 std::map<ot::JsonDocument *, int> _jsonEntryToScriptLine;
24 const std::string _entryTypeNameProperty =
"property";
25 const std::string _entryTypeNameConnector =
"port";
27 const std::string _connectorDefTypeIn =
"in";
28 const std::string _connectorDefTypeOut =
"out";
29 const std::string _connectorDefTypeInOptional =
"inopt";
30 const std::string _connectorDefName =
"name";
32 const std::string _defType =
"type";
33 const std::string _defTitle =
"label";
35 const std::string _propertyDefTypeSelection =
"selection";
36 const std::string _propertyDefTypeString =
"string";
37 const std::string _propertyDefTypeDouble =
"double";
38 const std::string _propertyDefTypeInteger =
"integer";
39 const std::string _propertyDefTypeBoolean =
"boolean";
41 const std::string _propertyDefOptions =
"options";
42 const std::string _propertyDefDefault =
"default";
44 const std::string _propertyGroupName =
"Script based";
48 const std::string extractType(
const std::string& lineContent);
49 bool ExtractOTHeader(
const std::string& scriptLine,
const int scriptLineNumber);
50 bool CreateObjectsFromJSON();
51 bool CreateConnectorsFromJSON();
52 bool CreatePropertiesFromJSON();
54 EntityPropertiesBase* createPropertyEntity(
ot::JsonDocument& jsonEntry, std::string& returnMessage);