It seems that metaCommand can also do that, I started to see some examples, they use the function <br><br>GetValueAsFloat to get the values as follow: <br>float Point; <br>args.Point =command.GetValueAsFloat("Point","floatval")<br>
<br><pre><code><kbd></kbd><kbd></kbd></code></pre>I want to use this for vectors (float Point[3]), I'm looking to solve this problem and a good tutorial for metaCommand<br><br>Thanks for your help!<br>
<br><br><div class="gmail_quote">On Fri, Oct 1, 2010 at 11:20 AM, elhadj meljane <span dir="ltr"><<a href="mailto:elhadj.meljane@gmail.com">elhadj.meljane@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi all, <br>Thanks a lot for all these information, I'm going to look ...<div><div></div><div class="h5"><br><br><div class="gmail_quote">On Thu, Sep 30, 2010 at 10:33 PM, Bill Lorensen <span dir="ltr"><<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">We have used tclap as part of the Slicer3 execution model. We found it<br>
to be an excellent command line parser.<br>
<font color="#888888"><br>
Bill<br>
</font><div><div></div><div><br>
On Thu, Sep 30, 2010 at 1:44 PM, Michael Jackson<br>
<<a href="mailto:mike.jackson@bluequartz.net" target="_blank">mike.jackson@bluequartz.net</a>> wrote:<br>
> You might want to try the TCLAP project also. Pretty clean implementation<br>
> and easy to understand and use. If you look at<br>
> "<a href="http://www.bluequartz.net/projects/ElectronicImaging/SoftwareDevelopment/html/index.html" target="_blank">http://www.bluequartz.net/projects/ElectronicImaging/SoftwareDevelopment/html/index.html</a>"<br>
> under the "Getting values into the Computation Engine" there is a section<br>
> that compares the use of TCLAP with Boost::program_options which is another<br>
> option you could try.<br>
><br>
> <a href="http://tclap.sourceforge.net/" target="_blank">http://tclap.sourceforge.net/</a><br>
> ___________________________________________________________<br>
> Mike Jackson <a href="http://www.bluequartz.net" target="_blank">www.bluequartz.net</a><br>
> Principal Software Engineer <a href="mailto:mike.jackson@bluequartz.net" target="_blank">mike.jackson@bluequartz.net</a><br>
> BlueQuartz Software Dayton, Ohio<br>
><br>
><br>
><br>
> On Sep 30, 2010, at 1:03 PM, elhadj meljane wrote:<br>
><br>
>> Hi all,<br>
>> I have a program that use too many arguments: input, output parameters,<br>
>> the program work with<br>
>><br>
>> >./runProgram ImageInput ImageOutput Parameter1 .... ParameterN<br>
>><br>
>> Sometimes, just 1 prameter is needed.<br>
>><br>
>> I want to make the program easy to use, for example :<br>
>><br>
>> >./runProgram -I ImageInput -O ImageOutput -o option1 -p Parameter (in<br>
>> > this case I dont need to give the rest of the parameters)<br>
>> >./runProgram -I ImageInput -O ImageOutput -o option2 -p1 Parameter1 ...<br>
>> > -pN parameterN<br>
>><br>
>><br>
>> Do I need to implement method for this with "If" ....<br>
>> or there exist itk methods that help to do that ?<br>
>><br>
>> Thanks<br>
>> _____________________________________<br>
>> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>><br>
>> Visit other Kitware open-source projects at<br>
>> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>><br>
>> Kitware offers ITK Training Courses, for more information visit:<br>
>> <a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
>><br>
>> Please keep messages on-topic and check the ITK FAQ at:<br>
>> <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
>><br>
>> Follow this link to subscribe/unsubscribe:<br>
>> <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
><br>
> _____________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Kitware offers ITK Training Courses, for more information visit:<br>
> <a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
><br>
> Please keep messages on-topic and check the ITK FAQ at:<br>
> <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
><br>
_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>