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

Home » Public Forums » archive » Re: object newbie
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: object newbie [message #21139 is a reply to message #21126] Fri, 11 August 2000 00:00 Go to previous messageGo to previous message
Mark Hadfield is currently offline  Mark Hadfield
Messages: 783
Registered: May 1995
Senior Member
"David Fanning" <davidf@dfanning.com> wrote in message
news:MPG.13fd20f4e909bd8c989bba@news.frii.com...
> Chip Sample (sample@idcomm.com) writes:
>
>> I eventually came on a work around to write a "proto_object" with a
method
>> allowing you to pass a string containing a tag name which returns the
>> contents of the field with that tag name. This "proto_object" is
inherited
>> by all other objects I create just so I can use this method. Along the
way
>> I found that the TAG_NAMES function in IDL doesn't work for objects so I
had
>> to create one. It basically copies the object structure into a regular
>> structure so the TAG_NAMES can be used.
>>
>> Am I making this too hard?
>
> No. You are becoming a righteous IDL programmer! :-)

I don't quite agree with David. There is a conventional way of accessing
object properties, i.e. via keywords to the SetProperty and GetProperty
methods. I suggest you explore this convention and get a feel for its
strengths and weaknesses before you try anything else. It's similar to what
you've developed, but it uses keywords rather than strings. This means that
it can take advantage of keyword inheritance and allows abbreviation of
property names. Also object properties are not strictly tied to the class
structure: GetProperty/SetProperty keywords can represent tags in the class
structure or they can be dynamically interpreted, thus hiding the
implementation details.

---
Mark Hadfield
m.hadfield@niwa.cri.nz http://katipo.niwa.cri.nz/~hadfield/
National Institute for Water and Atmospheric Research
PO Box 14-901, Wellington, New Zealand
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: STANDARD DEVIATON
Next Topic: Re: Dear Santa: PVWAVE Style Date/Time Axes in IDL

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

Current Time: Sun Oct 12 07:29:50 PDT 2025

Total time taken to generate the page: 2.24288 seconds