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
......@@ -67,6 +67,10 @@ class Entity (object) :
"""
obj = None
"""
Store list of entities created via python
"""
entities = dict ()
def __init__(self, className, instanceName):
"""
......@@ -74,6 +78,7 @@ class Entity (object) :
to a C++ Entity object.
"""
object.__setattr__(self, 'obj', wrap.create_entity(className, instanceName) )
Entity.entities [instanceName] = self
@staticmethod
def initEntity(self, name):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment