File: InputParametersInternal.in

package info (click to toggle)
simpleitk 1.0.1-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 75,056 kB
  • sloc: cpp: 25,403; python: 3,060; sh: 1,131; ansic: 369; java: 260; cs: 215; makefile: 51; ruby: 47; tcl: 22
file content (17 lines) | stat: -rw-r--r-- 629 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$(if inputs then
for i = 1,#inputs do
  if (number_of_inputs > 0 or i > 1) then
    OUT = OUT .. ", "
  end
  if not inputs[i].type and inputs[i].enum then
    OUT = OUT .. name .. '::' .. inputs[i].name .. 'Type'
  elseif inputs[i].dim_vec and (inputs[i].dim_vec == 1) then
    OUT = OUT..'const std::vector<'..inputs[i].type..'> *'
  elseif inputs[i].point_vec and (inputs[i].point_vec == 1) then
    OUT = OUT..'const std::vector< std::vector<'..inputs[i].type..'> > *'
  else
    OUT = OUT .. 'const ' .. inputs[i].type .. ' *'
  end
  OUT = OUT .. ' ' .. inputs[i].name:sub(1,1):lower() .. inputs[i].name:sub(2,-1)
end
end)