
%   Copyright 2015-2018 The MathWorks, Inc.

classdef Utils
    %UTILS Utility class containing helper methods.
    
    methods (Static)
        
        % Retrieves the default template make file for a given system
        % target file.
        function defaultTMF = getDefaultTMF(stf)
            
            % ERT Derived STF's that use ert_default_tmf as a default TMF
            ertDefault = { 'ert_shrlib.tlc' 'autosar.tlc' 'autosar_adaptive.tlc' };
            
            if any(strcmpi(stf, ertDefault))
                defaultTMF  = 'ert_default_tmf';
            else
                defaultTMF  = [strrep(stf, '.tlc', '') '_default_tmf'];
            end
        end
    end
    
end

