EventDataWrapper

版本 1.0.0.0 (4.5 KB) 作者: Spencer Kellis
Convenience class for attaching custom data to MATLAB events.
93.0 次下载
更新时间 2015/2/20

查看许可证

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.

引用格式

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

MATLAB 版本兼容性
创建方式 R2014b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Structures 的更多信息

Community Treasure Hunt

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

Start Hunting!

EventDataWrapper/

EventDataWrapper/Example/

版本 已发布 发行说明
1.0.0.0