You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
libiec61850/pyiec61850
Mikael Bourhis e47601a81e Python wrapper: about the wrapped callbacks, maintain a 'map' of subscribers
The 'callback' function is a part of the 'Subscriber' class.
Once the 'event' (or asynchronous message) is received, the 'Subscriber' object
forwards the data to the 'Handler' object.
With this approach, the 'event' processing algorithm can be defined
in a Python subclass by the user.

Each 'subscriber' class has a function that matches the C function pointer.
But this function is a static method, shared with all instances of the class.
In order to dispatch the message/data to the right instance,
we maintain a dictionary of instantiated objects.

Therfore, we have added the following internal services :
 * bool registerNewSubscriber(EventSubscriber*, id);
 * EventSubscriber* findSubscriber(id);
 * void unregisterSubscriber(id);
5 years ago
..
eventHandlers Python wrapper: about the wrapped callbacks, maintain a 'map' of subscribers 5 years ago
examples - renamed README to README.md and now using markdown syntax 9 years ago
CMakeLists.txt Fixed Python 3 bindings support 7 years ago
iec61850.i Python wrapper: about the wrapped callbacks, maintain a 'map' of subscribers 5 years ago
test_pyiec61850.py Forcing pythonInterp version to be the same that pythonLibs version 9 years ago
tutorial.md - renamed README to README.md and now using markdown syntax 9 years ago