File: template_for_executableTestWrapper.cxx.in

package info (click to toggle)
ants 2.5.4%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 11,672 kB
  • sloc: cpp: 85,685; sh: 15,850; perl: 863; xml: 115; python: 111; makefile: 68
file content (13 lines) | stat: -rw-r--r-- 393 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <iostream>
#include <vector>
#include <string>
#include "include/ants.h"

int @ANTS_FUNCTION_NAME@Test(int argc, char* argv[])
{
  const char * const * const ptr = &argv[1];

  const std::vector<std::string> command_line_args( ptr, ptr + argc - 1 );
  const bool                     return_value = ants::@ANTS_FUNCTION_NAME@( command_line_args, &std::cout );
  return return_value;
}