26 #include <fvutils/system/camargp.h> 34 main(
int argc,
char **argv)
36 const char *s =
"firewire:funny ID:mode=xy:test=test2:blub";
43 cout <<
"Camera Type: " << argp->
cam_type() << endl;
44 cout <<
"Camera ID: " << argp->
cam_id() << endl;
46 map<string, string> values = argp->
parameters();
47 map<string, string>::iterator i;
48 for (i = values.begin(); i != values.end(); ++i) {
49 cout <<
"values[" << (*i).first <<
"] = " << (*i).second << endl;
53 vector<string>::iterator j;
54 for (j = args.begin(); j != args.end(); ++j) {
55 cout <<
"arg: " << (*j) << endl;
std::string cam_id() const
Get camera ID.
std::vector< std::string > arguments() const
Get the arguments.
std::string cam_type() const
Get camera type.
std::map< std::string, std::string > parameters() const
Get a map of parameters.