function [paramPrfxStr paramNameStr] = udtGetPrmPrefixFromFixptDTRowStruct(thisRowStruct)
%udtGetPrmPrefixFromFixptDTRowStruct returns the SPC mask parameter
%   Prefix and Name strings corresponding to the Data Type Row support
%   description supplied in the structure thisRowStruct.
%
%   [paramPrfxStr paramNameStr] = udtGetPrmPrefixFromFixptDTRowStruct(thisRowStruct)
%
%   REQUIRED fields for the thisRowStruct structure:
%
%     thisRowStruct.name - if STANDARD: the STANDARD MASK PARAM str prefix
%                          (i.e. 'output','accum','prodOutput','state')
%
%                          else: the PROMPT string to appear in the dialog,
%                          (NOTE ALSO that thisRowStruct.prefix must be
%                           provided to specify the Mode/WL/FL mask param
%                           variable string prefix for these cases.)

% Copyright 2008-2012 The MathWorks, Inc.

switch(thisRowStruct.name)
    case 'output'
        paramNameStr = DAStudio.message('dspshared:FixptDialog:outputPrompt');
        if ( ~isempty(thisRowStruct.builtinTypes) || ...
                (isfield(thisRowStruct, 'inheritBackProp') && thisRowStruct.inheritBackProp ~= 0) )
            % Special case: independent output data type parameter
            paramPrfxStr = 'Out';
        else
            % Standard "floating-point trumps" data type parameter
            paramPrfxStr = 'output';
        end
        
    case 'accum'
        paramNameStr = DAStudio.message('dspshared:FixptDialog:accumulatorPrompt');
        paramPrfxStr = 'accum';
        
    case 'prodOutput'
        paramNameStr = DAStudio.message('dspshared:FixptDialog:productPrompt');
        paramPrfxStr = 'prodOutput';
        
    case 'state'
        paramNameStr = DAStudio.message('dspshared:FixptDialog:statePrompt');
        paramPrfxStr = 'memory';
        
    otherwise
        % custom data type row name
        paramNameStr = thisRowStruct.name;
        paramPrfxStr = thisRowStruct.prefix;
end


% [EOF]
