~ubuntu-branches/debian/sid/simpleitk/sid

« back to all changes in this revision

Viewing changes to ExpandTemplateGenerator/Components/ExecuteInternalTypedefs.cxx.in

  • Committer: Package Import Robot
  • Author(s): Ghislain Antony Vaillant
  • Date: 2017-11-02 08:49:18 UTC
  • Revision ID: package-import@ubuntu.com-20171102084918-7hs09ih668xq87ej
Tags: upstream-1.0.1
ImportĀ upstreamĀ versionĀ 1.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
$(if (number_of_inputs) > 0 or (inputs and #inputs > 0 ) then
 
2
OUT=[[
 
3
  // Define the input and output image types
 
4
  typedef TImageType     InputImageType;
 
5
        ]] end)
 
6
$(for nimg=2,number_of_inputs do
 
7
OUT=OUT .. '  typedef TImageType     InputImageType' .. nimg .. ';\n'
 
8
  end)
 
9
  $(if output_image_type then
 
10
  OUT=[[//Define output image type
 
11
  typedef ${output_image_type} OutputImageType;]]
 
12
  elseif output_pixel_type then
 
13
  OUT=[[// Define output image type
 
14
  typedef itk::Image< ${output_pixel_type}, InputImageType::ImageDimension > OutputImageType;]]
 
15
  else
 
16
  OUT=[[typedef InputImageType OutputImageType;]]
 
17
  end)