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

« back to all changes in this revision

Viewing changes to ExpandTemplateGenerator/Components/InputParametersInternal.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 inputs then
 
2
for i = 1,#inputs do
 
3
  if (number_of_inputs > 0 or i > 1) then
 
4
    OUT = OUT .. ", "
 
5
  end
 
6
  if not inputs[i].type and inputs[i].enum then
 
7
    OUT = OUT .. name .. '::' .. inputs[i].name .. 'Type'
 
8
  elseif inputs[i].dim_vec and (inputs[i].dim_vec == 1) then
 
9
    OUT = OUT..'const std::vector<'..inputs[i].type..'> *'
 
10
  elseif inputs[i].point_vec and (inputs[i].point_vec == 1) then
 
11
    OUT = OUT..'const std::vector< std::vector<'..inputs[i].type..'> > *'
 
12
  else
 
13
    OUT = OUT .. 'const ' .. inputs[i].type .. ' *'
 
14
  end
 
15
  OUT = OUT .. ' ' .. inputs[i].name:sub(1,1):lower() .. inputs[i].name:sub(2,-1)
 
16
end
 
17
end)