示例#1
0
        public void VisitDataItem(DataItem dataItem)
        {
            NIParameterPassingRule inputParameterPassingRule =
                (dataItem.CallIndex != -1 &&
                 dataItem.CallDirection == ParameterCallDirection.Input || dataItem.CallDirection == ParameterCallDirection.Passthrough)
                ? NIParameterPassingRule.Required
                : NIParameterPassingRule.NotAllowed;
            NIParameterPassingRule outputParameterPassingRule =
                (dataItem.CallIndex != -1 &&
                 dataItem.CallDirection == ParameterCallDirection.Output || dataItem.CallDirection == ParameterCallDirection.Passthrough)
                ? NIParameterPassingRule.Optional
                : NIParameterPassingRule.NotAllowed;

            NationalInstruments.Dfir.DataItem dfirDataItem = CreatedDfirRoot.CreateDataItem(
                dataItem.Name,
                dataItem.DataType,
                null,
                inputParameterPassingRule,
                outputParameterPassingRule,
                dataItem.CallIndex);
            _map.AddMapping(dataItem, dfirDataItem);
        }
示例#2
0
 public void VisitDataItem(DataItem dataItem)
 {
     throw new NotImplementedException();
 }