Re: [osg-users] dumping command line args/inputs

2013-02-22 Thread Conan Doyle
Well... I _could_ but I am already using the arg parser/app usage stuff to 
process inputs so why not try to use it to record the users inputs this way too 
if possible?  I thought maybe there was already a way to do this but apparently 
not.  To clarify, all I wanted to do was take user input... run app... dump the 
user inputs to a file along with run date/time, and some other stuff... just a 
way to capture a snapshot of all inputs to be recorded with my outputs in one 
location... 



GordonTomlinson wrote:
 Can't you do the old fashion way and us ARGV/ARGC 
 
 
 _
 Gordon Tomlinson 
 
 US Cell: 571-265-2612
 UK Cell: 07806-571994
 Skype:  gordon-tomlinson
 
 www.photographybyGordon.com
 www.vis-sim.com 
 LinkedIn www.linkedin.com/in/gordontomlinson
 Self defence is not a function of learning tricks but is a function of how
 quickly and  intensely one can arouse one's instinct for survival 
 -Master Tambo Tetsura 
 
 -Original Message-
 From: 
 [mailto:] On Behalf Of Conan Doyle
 Sent: Wednesday, February 20, 2013 1:00 PM
 To: 
 Subject: Re:  dumping command line args/inputs
 
 Don't think so... it appears that write dumps the equivalent of --help...
 what I want to do is dump what the user actually passed in at run time...
 
 S
 
 
 robertosfield wrote:
 
  Hi Conan,
  
  On 18 February 2013 20:22, Conan Doyle  wrote:
  
  
   is there a quick/simple way to dump all the command line options added
   
  
 via  osg::ArgumentParser::getApplicationUsage()-addCommandLineOption,
 addEnvironmentalVariable etc.?  I simply want to dump all my input args to a
 file as I run my app.
 
  
  Have another look at the include/osg/ApplicaticationUsage header, you 
  should spot:
  
  void write(std::ostream output,const UsageMap um,unsigned int 
  widthOfOutput=80,bool showDefaults=false,const UsageMap 
  ud=UsageMap());
  
  void write(std::ostream output,unsigned int type=COMMAND_LINE_OPTION, 
  unsigned int widthOfOutput=80,bool showDefaults=false);
  
  
  Might this be what you are looking for?
  
  Robert.
  ___
  osg-users mailing list
  
  http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.
  org
  
  --
  Post generated by Mail2Forum
  
 
 
 --
 Read this topic online here:
 http://forum.openscenegraph.org/viewtopic.php?p=52792#52792
 
 
 
 
 
 ___
 osg-users mailing list
 
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
 
 
 ___
 osg-users mailing list
 
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
 
  --
 Post generated by Mail2Forum


--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=52821#52821





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] dumping command line args/inputs

2013-02-20 Thread Conan Doyle
Don't think so... it appears that write dumps the equivalent of --help... 
what I want to do is dump what the user actually passed in at run time...

S


robertosfield wrote:
 Hi Conan,
 
 On 18 February 2013 20:22, Conan Doyle  wrote:
 
  is there a quick/simple way to dump all the command line options added via  
  osg::ArgumentParser::getApplicationUsage()-addCommandLineOption, 
  addEnvironmentalVariable etc.?  I simply want to dump all my input args to 
  a file as I run my app.
  
 
 Have another look at the include/osg/ApplicaticationUsage header, you
 should spot:
 
 void write(std::ostream output,const UsageMap um,unsigned
 int widthOfOutput=80,bool showDefaults=false,const UsageMap
 ud=UsageMap());
 
 void write(std::ostream output,unsigned int
 type=COMMAND_LINE_OPTION, unsigned int widthOfOutput=80,bool
 showDefaults=false);
 
 
 Might this be what you are looking for?
 
 Robert.
 ___
 osg-users mailing list
 
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
 
  --
 Post generated by Mail2Forum


--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=52792#52792





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] dumping command line args/inputs

2013-02-20 Thread Gordon Tomlinson
Can't you do the old fashion way and us ARGV/ARGC 


_
Gordon Tomlinson 

US Cell: 571-265-2612
UK Cell: 07806-571994
Skype:  gordon-tomlinson

www.photographybyGordon.com
www.vis-sim.com 
LinkedIn www.linkedin.com/in/gordontomlinson
Self defence is not a function of learning tricks but is a function of how
quickly and  intensely one can arouse one's instinct for survival 
-Master Tambo Tetsura 

-Original Message-
From: osg-users-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Conan Doyle
Sent: Wednesday, February 20, 2013 1:00 PM
To: osg-users@lists.openscenegraph.org
Subject: Re: [osg-users] dumping command line args/inputs

Don't think so... it appears that write dumps the equivalent of --help...
what I want to do is dump what the user actually passed in at run time...

S


robertosfield wrote:
 Hi Conan,
 
 On 18 February 2013 20:22, Conan Doyle  wrote:
 
  is there a quick/simple way to dump all the command line options added
via  osg::ArgumentParser::getApplicationUsage()-addCommandLineOption,
addEnvironmentalVariable etc.?  I simply want to dump all my input args to a
file as I run my app.
  
 
 Have another look at the include/osg/ApplicaticationUsage header, you 
 should spot:
 
 void write(std::ostream output,const UsageMap um,unsigned int 
 widthOfOutput=80,bool showDefaults=false,const UsageMap 
 ud=UsageMap());
 
 void write(std::ostream output,unsigned int type=COMMAND_LINE_OPTION, 
 unsigned int widthOfOutput=80,bool showDefaults=false);
 
 
 Might this be what you are looking for?
 
 Robert.
 ___
 osg-users mailing list
 
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.
 org
 
  --
 Post generated by Mail2Forum


--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=52792#52792





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] dumping command line args/inputs

2013-02-19 Thread Robert Osfield
Hi Conan,

On 18 February 2013 20:22, Conan Doyle o...@celticblues.com wrote:
 is there a quick/simple way to dump all the command line options added via  
 osg::ArgumentParser::getApplicationUsage()-addCommandLineOption, 
 addEnvironmentalVariable etc.?  I simply want to dump all my input args to a 
 file as I run my app.

Have another look at the include/osg/ApplicaticationUsage header, you
should spot:

void write(std::ostream output,const UsageMap um,unsigned
int widthOfOutput=80,bool showDefaults=false,const UsageMap
ud=UsageMap());

void write(std::ostream output,unsigned int
type=COMMAND_LINE_OPTION, unsigned int widthOfOutput=80,bool
showDefaults=false);


Might this be what you are looking for?

Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] dumping command line args/inputs

2013-02-18 Thread Conan Doyle
Hi,

is there a quick/simple way to dump all the command line options added via  
osg::ArgumentParser::getApplicationUsage()-addCommandLineOption, 
addEnvironmentalVariable etc.?  I simply want to dump all my input args to a 
file as I run my app.

... 

Thank you!

Cheers,
Conan

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=52740#52740





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org