function h = dataevent(hSrc,eventName,data)
%DATAEVENT  Subclass of EVENTDATA to handle mxArray-valued event data.

%   Author(s): P. Gahinet
%   Copyright 1986-2000 The MathWorks, Inc. 
%   $Revision: 1.2 $ $Date: 2000/06/14 20:18:07 $


if nargout==0
    % Register class 
    cEventData = findclass(findpackage('handle'),'EventData');
    c = schema.class(findpackage('sisodata'),'dataevent',cEventData);

    % Define properties
    schema.prop(c,'Data','mxArray');  % Stores user-defined event data 
    
else
    % Create class instance
    h = sisodata.dataevent(hSrc,eventName);
    h.Data = data;
    
end
