Skip to content
Snippets Groups Projects
Commit a9147013 authored by Florent Lamiraux's avatar Florent Lamiraux Committed by Florent Lamiraux florent@laas.fr
Browse files

Keep track of entities created via python.

parent 516eb712
No related branches found
No related tags found
No related merge requests found
...@@ -67,6 +67,10 @@ class Entity (object) : ...@@ -67,6 +67,10 @@ class Entity (object) :
""" """
obj = None obj = None
"""
Store list of entities created via python
"""
entities = dict ()
def __init__(self, className, instanceName): def __init__(self, className, instanceName):
""" """
...@@ -74,6 +78,7 @@ class Entity (object) : ...@@ -74,6 +78,7 @@ class Entity (object) :
to a C++ Entity object. to a C++ Entity object.
""" """
object.__setattr__(self, 'obj', wrap.create_entity(className, instanceName) ) object.__setattr__(self, 'obj', wrap.create_entity(className, instanceName) )
Entity.entities [instanceName] = self
@staticmethod @staticmethod
def initEntity(self, name): def initEntity(self, name):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment