comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » XML to Configure IDL Programs?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: XML to Configure IDL Programs? [message #88216 is a reply to message #88213] Fri, 28 March 2014 14:06 Go to previous messageGo to previous message
dg86 is currently offline  dg86
Messages: 118
Registered: September 2012
Senior Member
On Friday, March 28, 2014 3:45:38 PM UTC-4, David Fanning wrote:
> Folks,
>
>
>
> Has anyone ever used XML files to configure IDL programs, or create IDL
>
> menus for widget programs, that kind of thing? I'm looking for good
>
> advice and/or ideas for how to do this kind of thing. I'd like to make
>
> an application that can be built and/or modified by text (XML) files.
>
>
>
> Thanks,
>
>
>
> David
>
> --
>
> David Fanning, Ph.D.
>
> Fanning Software Consulting, Inc.
>
> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
>
> Sepore ma de ni thue. ("Perhaps thou speakest truth.")

Hi David,

I've used IDL's IDLffXMLSAX objects to write a very convenient
XML configuration parser. My object inherits IDLffXMLSAX and
parses configuration into a hash of configuration options and their
values. I then use the hash to set up my program.

Here's a configuration file for the camera component of the instrument,
just to give a sense of what's been working for me:

<camera object="fabcamera_opencv"
greyscale="1"
order="1"
dimensions="[640,480]">
</camera>

The parser object is on github at
https://github.com/davidgrier/nufab/blob/master/objects/misc /fab_configurationparser__define.pro

TTFN,

David
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: float function unexpectedly slow
Next Topic: Call builtin LAPACK on Windows

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 01:48:43 PDT 2025

Total time taken to generate the page: 0.16266 seconds