metaCommand

Hi all,
To manage arguments (input, output, parameters) I want to use the library <metaCommand>.


For scalars (dimension 1), I use the function GetValueAsFloat to get the values as follow:

1
2
3
float point;      
command.SetOption("Point","c",false,"Get point");
args.Point  = command.GetValueAsFloat("Point","floatval");


Now I want to use metaCommand for vectors (3 dimensions), I'm looking for the equivalent of GetValueAsFloat:

1
2
3
float point[3];      
command.SetOption("Point","c",false,"Get point");
args.Point  = command.Get????("Point","????");


Thanks for you help!
Any reason your posting the same post in numerous forums?

as far as: <metaCommand> goes, there seems to be NO reference anywhere on this site. So I'm guessing it's not part of the standard library, in which case you should probably provide a link.

Same deal goes for: "obj.GetValueAsFloat()"
It doesn't exist...

How to ask questions the smart way:
http://www.catb.org/esr/faqs/smart-questions.html

I don't see a single question mark in any of that above post.
Last edited on
hi gcampton,

I found this

http://www.paraview.org/Wiki/MetaIO/MetaCommand_Documentation

but it doesn't really help, I need more documentation ....remember I'm not smart :)

Why did you choose to use such a poorly documented library?

Does Boost Program Options do what you need?

http://www.boost.org/doc/libs/1_44_0/doc/html/program_options.html

hi PanCalactic,
you right it was a mistake to start with metaCommand ... I'm going to look for other options including Boost ...
thanks
Topic archived. No new replies allowed.