classdef (Hidden = true) RLSInterfaceArtifacts < coder.connectivity.ComponentInterfaceArtifacts
%RLSINTERFACEARTIFACTS Implements ComponentInterfaceArtifacts for 
% Reusable Library Subsystem builds
%
%   This is an undocumented class. Its methods and properties are likely to
%   change without warning from one release to the next.
    
%   Copyright 2020 The MathWorks, Inc.
      
    methods (Access = protected)            
        function initalizeInternalArtifactsLocation(this)
            % binfo is in STF/library/subsystem/VER/subsystem_context
            this.TMWInternalArtifactsPath = this.CodeDir;
            this.BinfoFullFileName = fullfile(this.CodeDir, this.BinfoTop);
            % extract the context name from the codeDir
            codeFolders = strsplit(this.CodeDir, filesep);
            % return the name of the hidden model 
            this.CodeName = rtw.pil.RLSUtils.getUniqueContextName(codeFolders{end});
        end
    end
end