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

Home » Public Forums » archive » Re: using Container object for Strings?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: using Container object for Strings? [message #52864] Thu, 08 March 2007 10:53
Laurens is currently offline  Laurens
Messages: 41
Registered: May 2006
Member
Matt wrote:
> David Fanning <news@dfanning.com> writes:
>
>> Laurens writes:
>> You are probably looking in the wrong place for wise thoughts,
>> but IDL_Containers are just for objects. Seems to me you
>> want to build some kind of hash object. I seem to recall someone
>> doing it before, but I can't find a reference.
>
> It's in Craig Markwart's library.
> hashtable__define.pro
>
>
> Direct link to library.
> http://cow.physics.wisc.edu/~craigm/idl/idl.html
>
>
> Newsgroup anouncement.
> http://tinyurl.com/2ou9k3
>
>
> I use it nearly every day.
>
> Matt
>
> --
> Matthew Savoie - Scientific Programmer
> National Snow and Ice Data Center
> (303) 735-0785 http://nsidc.org
>
Looks like that's just what I need :) Will test it tommorrow but i'm
sure it'll do the job. Thanks!

Laurens
Re: using Container object for Strings? [message #52869 is a reply to message #52864] Thu, 08 March 2007 10:25 Go to previous message
Matt[2] is currently offline  Matt[2]
Messages: 69
Registered: March 2007
Member
David Fanning <news@dfanning.com> writes:

> Laurens writes:
> You are probably looking in the wrong place for wise thoughts,
> but IDL_Containers are just for objects. Seems to me you
> want to build some kind of hash object. I seem to recall someone
> doing it before, but I can't find a reference.

It's in Craig Markwart's library.
hashtable__define.pro


Direct link to library.
http://cow.physics.wisc.edu/~craigm/idl/idl.html


Newsgroup anouncement.
http://tinyurl.com/2ou9k3


I use it nearly every day.

Matt

--
Matthew Savoie - Scientific Programmer
National Snow and Ice Data Center
(303) 735-0785 http://nsidc.org
Re: using Container object for Strings? [message #52874 is a reply to message #52869] Thu, 08 March 2007 09:52 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Laurens writes:

> It must be that i'm too sleepy or worked too much this day, but i'm
> missing something here...
>
> I want to load, get, set and save some settings into my program and i'm
> doing so using an xml-file. All good there, code looks good and looks
> like its workin allright.
>
> Now I want every setting I read being put into an IDL container, one
> container for the setting name, one container for the value. I like the
> idea of an container for that it manages its size automatically and - I
> though of it as a feature - that I could use isContained("name",
> POSITION=pos) to find elements.
>
> Now, appearantly I was wrong. First of all, it seems i can only put
> objects into that container as it doesn't accept a string. There flies
> the idea of searching in a fast way. Second, well there really is no
> second...if I can't store strings, I can't store any names nor any
> values (all settings are stored as string).
>
> Now, am I thinking to complicated, or is there a workaround to put
> strings into those containers and keep the nice "isContained" searching
> (which its function I probably just misunderstood)?
>
> Looking forward to some wise thoughts :)

You are probably looking in the wrong place for wise thoughts,
but IDL_Containers are just for objects. Seems to me you
want to build some kind of hash object. I seem to recall someone
doing it before, but I can't find a reference.

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: using Container object for Strings?
Next Topic: Re: Hello again, and iTools

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

Current Time: Fri Oct 10 00:16:53 PDT 2025

Total time taken to generate the page: 0.95816 seconds