EventDataWrapper

Convenience class for attaching custom data to MATLAB events.
93 Downloads
Aktualisiert 20. Feb 2015

Lizenz anzeigen

This class implements the Mathworks suggestion for adding custom data to events (see http://www.mathworks.com/help/matlab/matlab_oop/events-and-listeners--syntax-and-techniques.html#brb6i_k). It is intended to make custom event data more convenient. User-defined fields and values are provided as key-value pairs to the class constructor.
Example:
>> evt = Utilities.EventDataWrapper('key1',val1,'key2',val2,...);
>> notify(obj,'EventName',evt);

The download files include a complete example of an event with custom data.

Zitieren als

Spencer Kellis (2024). EventDataWrapper (https://www.mathworks.com/matlabcentral/fileexchange/49769-eventdatawrapper), MATLAB Central File Exchange. Abgerufen .

Kompatibilität der MATLAB-Version
Erstellt mit R2014b
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu Structures finden Sie in Help Center und MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

EventDataWrapper/

EventDataWrapper/Example/

Version Veröffentlicht Versionshinweise
1.0.0.0