Re: Is there no routine to find Geode under constructed tree?

New Message Reply Date view Thread view Subject view Author view

Jim Helman (jimh++at++surreal)
Wed, 19 Jan 94 12:01:45 -0800


Hmmm... there appears to be code for pfFindGeode routine in
every release of Performer so far. The pfFind<blah> routines
retur the first node of the specified type (not subclass
types) with the specified name.

If you want a more general search, examine the code in
1.0/1.1: sample/pguide/trav.c or 1.2: libpfutil/trav.c.
trav.c provides a general traversal that can be adapted to
any purpose.

The routine in the mail message has two problems.

        1) It only returns the first geode it encounters.

        2) It ANDs a PFTYPE_ token. To test for
        is-a-subclass, you want to AND with PFCLASS_ tokens.
        PFTYPE_ tokens should only be used to test for
        equality.

rgds,

-jim helman

jimh++at++surreal.asd.sgi.com
415/390-1151


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:50:09 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.