classdef ExecTimeReport < handle
    %

    %   Copyright 2013-2015 The MathWorks, Inc.
        
    methods(Access=public)
        
        function reportObj = getReportObject(this, htmlFile, lCodeDir)
        % Factory method to return a report object needed to create the html report
            
            if isa(this, 'coder.internal.SLCExecTimeReport')
                reportObj = coder.internal.SLCExecTime_Report(htmlFile, lCodeDir);
            else
                assert(isa(this, 'coder.internal.MLCExecTimeReport'), ...
                'Unexpected object type %s', class(this));
                reportObj = coder.internal.MLCExecTime_Report(htmlFile, lCodeDir);
            end
            
        end
    end
end
