argv is an array of \0 terminated char arrays from the commandline -> i.e. or an array of strings. E.g. "rtksimulatedgeometry -n 180 -o geometry.xml" would give *argv = "rtksimulatedgeometry\0-n\0180\0-o\0geometry.xml\0" such that argv[2] = "180" and argv[4] = "geometry.xml" argc is the number of strings in the array.
Gengetopt (GGO) handles the arguments for you and binds them to the args_info struct based on the *.ggo file. I hope this makes it somewhat understandable. /Andreas __________________________________ Andreas Gravgaard Andersen Danish Center for Particle Therapy, Aarhus University Hospital Palle Juul-Jensens Blvd. 99, 8200, Aarhus Mail: [email protected] Cell: +45 3165 8140 On Mon, 18 May 2020 at 08:43, 나윤호 <[email protected]> wrote: > Hi, rtk-users. > > first I'm not really a C++ user > > I'm looking on this link > <http://wiki.openrtk.org/index.php/RTK/Scripts/FDK> and I'm curious about > argv for dimension and spacing. > > where does the spacing and dimension value go? > > in the rtkprojectgeometricphantom.cxx, I don't see any variables related > to spacing and dimension argv. > > I think there should be something like args_info.spacing or > args_info.dimension. > > where does argv for spacing and dimension goes to? > _______________________________________________ > Rtk-users mailing list > [email protected] > https://public.kitware.com/mailman/listinfo/rtk-users >
_______________________________________________ Rtk-users mailing list [email protected] https://public.kitware.com/mailman/listinfo/rtk-users
