function varargout = getIncludeFiles(h,concatenatePaths,replaceMatlabroot,varargin)
% GETINCLUDEFILES The getIncludeFiles function returns the names of include
% files stored in the model's build information. Use the concatenatePaths
% and replaceMatlabroot arguments to control whether the function includes
% paths and your MATLAB root definition in the output it returns. Using
% optional includeGroups and excludeGroups arguments, you can selectively
% include or exclude groups of include files the function returns.
%
% Argument description
% buildinfo Build information handle returned by RTW.Buildinfo.
%
% concatenatePaths if true concatenates and returns each filename with its
% corresponding path.
%
% replaceMatlabroot if true replaces the token $(MATLAB_ROOT) with the absolute
% path string for your MATLAB installation directory.
%
% includeGroups (optional) A character array or cell array of character
% arrays that specifies groups of include files you want
% the function to return.
%
% excludeGroups (optional) A character array or cell array of character
% array that specifies groups of include files you do not
% want the function to return.
%
% Return values
% the function returns the include files stored in the model's build
% information.
%
% example 1:
% myModelBuildInfo = RTW.BuildInfo;
% addIncludeFiles(myModelBuildInfo, {'etc.h' 'etc_private.h' 'mytypes.h'},...
% {'/etc/proj/etclib' '/proj/etc/etcbld' '/common/lib'},...
% {'etc' 'etc' 'shared'});
% incfiles=getIncludeFiles(myModelBuildInfo, true, false,'etc');
%
% resulting values:
% incfiles == {'/etc/proj/etclib/etc.h' '/proj/etc/etcbld/etc_private.h'}
%
% Please refer to the documentation for more information.
%

% Copyright 2005-2019 The MathWorks, Inc.

% redirect call to generic method
[varargin{:}] = convertStringsToChars(varargin{:});
[varargout{1:nargout}] = h.getFiles('include',concatenatePaths, replaceMatlabroot, varargin{:});