Csound Csound-dev Csound-tekno Search About

[Cs-dev] Accessing the parsed command line arguments

Date2008-03-18 16:22
FromAlex Weiss
Subject[Cs-dev] Accessing the parsed command line arguments
Hi,

I'd like some radio buttons in my application to reflect the arguments in
. From what I've gathered, most of the arguments (the ones I'm
interesting in, anyway) are saved in the OPARMS structure when compiling,
but since host applications shouldn't include csoundCore.h, I was wondering
if there is another way. Another option would be to write a custom parser
(probably based on decode_long and argdecode), but that's rather
cumbersome...

Thanks,
Alex
-- 
View this message in context: http://www.nabble.com/Accessing-the-parsed-command-line-arguments-tp16124858p16124858.html
Sent from the Csound - Dev mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2008-03-18 17:09
Frommatt ingalls
SubjectRe: [Cs-dev] Accessing the parsed command line arguments
> Another option would be to write a custom parser
> (probably based on decode_long and argdecode), but that's rather
> cumbersome...

i have a c++ class that does this, if you are interested


matt ingalls
development@gvox.com




-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2008-03-18 18:04
FromAlex Weiss
SubjectRe: [Cs-dev] Accessing the parsed command line arguments
Hey Matt,

thanks, that'd be great! I'm using Objective-C, though, but it shouldn't be
too difficult to port your code.

I assume access to the arguments is something other developers might be
interested in as well. Maybe a possible API extension? Something similar to
Istvan's cfgvar.h springs to mind... Do you think people could use that?

Alex


matt ingalls-2 wrote:
> 
>> Another option would be to write a custom parser
>> (probably based on decode_long and argdecode), but that's rather
>> cumbersome...
> 
> i have a c++ class that does this, if you are interested
> 

-- 
View this message in context: http://www.nabble.com/Accessing-the-parsed-command-line-arguments-tp16124858p16127165.html
Sent from the Csound - Dev mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2008-03-18 22:07
Frommatt ingalls
SubjectRe: [Cs-dev] Accessing the parsed command line arguments
assuming you are using apple's obj-c,
  it's easy enough to mix c++ & obj-c...

i'll send you the files directly..


On Mar 18, 2008, at 11:04 AM, Alex Weiss wrote:

> thanks, that'd be great! I'm using Objective-C, though, but it  
> shouldn't be
> too difficult to port your code.

matt ingalls
development@gvox.com




-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2008-03-18 22:18
FromAlex Weiss
SubjectRe: [Cs-dev] Accessing the parsed command line arguments

matt ingalls-2 wrote:
> 
> assuming you are using apple's obj-c,
>   it's easy enough to mix c++ & obj-c...
> 
> i'll send you the files directly..
> 
Yes I know, a simple .mm does the trick ;) But the whole idea of mixing two
OOP languages seems strange to me, which is why I try to avoid it.

Anyway, I'm looking forward to your code. Thank you.

Alex

-- 
View this message in context: http://www.nabble.com/Accessing-the-parsed-command-line-arguments-tp16124858p16132010.html
Sent from the Csound - Dev mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2008-03-23 14:06
From"Dr. Richard Boulanger"
SubjectRe: [Cs-dev] Accessing the parsed command line arguments
Would some aspect of this code be useful to adapt to the current API?
If so, maybe you could share it with all the developers Matt?

Hope you are well.

Rick

On Mar 18, 2008, at 1:09 PM, matt ingalls wrote:

>
>> Another option would be to write a custom parser
>> (probably based on decode_long and argdecode), but that's rather
>> cumbersome...
>
> i have a c++ class that does this, if you are interested
>
>
> matt ingalls
> development@gvox.com
>
>
>
>
> ---------------------------------------------------------------------- 
> ---
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net