Re: pfb loader

New Message Reply Date view Thread view Subject view Author view

From: Yair Kurzion (yair++at++polygon.engr.sgi.com)
Date: 12/06/2000 15:03:42


Hello Peter !

You can use:

    int pfdUserDataSlot_pfb(int slot,
                            pfdDescendUserDataFuncType_pfb descend_func,
                            pfdStoreUserDataFuncType_pfb store_func,
                            pfdLoadUserDataFuncType_pfb load_func)

It's not in the man page (sorry). For reference, the function pfdUserData_pfb
does:

    int pfdUserData_pfb(pfdDescendUserDataFuncType_pfb descend_func,
                        pfdStoreUserDataFuncType_pfb store_func,
                        pfdLoadUserDataFuncType_pfb load_func)
    {
        return pfdUserDataSlot_pfb(0, descend_func, store_func, load_func);
    }

-yair

>
> Hello all,
>
> could somebody help me how to store simple userData struct attached to
> pfObject to the pfb file ?
> I have pfDCS nodes with user data and I like to save the values in it to the
> pfb file and restore it
> in the next reloadings .
> I define user callbacks with pfdUserData_pfb(descF,storeF,loadF) .
> But callbacks are automatically called during saving procedure only when the
> user data is attached
> to the slot = 0 like this dcs->setUserData(0,udata).
>
> When I try to use
> dcs->setUserData(dcs->getNamedUserDataSlot("slotNameA"),udata);
> udata was attached by the performer to the slot number 3 and during saving
> to the pfb file
> appears message :
> PF Debug/Internal : pfdStoreFile_pfb: Can't find user data 0x100d3680 in
> internal list,
> parent type = pfDCS,
> slot = 3,
> user data type = (unknown);
>
> And then I am not sure what exactly have to be written in descF,storeF,loadF
> callbacks.
>
>
> I am running on onyx2 with IRIX 6.5.5 and performer 2.2 . and pfpfb.c has
> revision 1.116
> I compiled with it my testProg.
>
> Help me please
> Thanks
>
> Peter Oslej
> VRM
>
>
>
>
>
>
>
>
> -----------------------------------------------------------------------
> List Archives, FAQ, FTP: http://www.sgi.com/software/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
>

-- 
\_________  \_____  \__    \__  \_____         Yair Kurzion
\_________  \_____   \__   \__  \_____         yair++at++sgi.com
       \__     \__   \____\__      \__   http://reality.sgi.com/yair
       \__          \__  \__                Work: (650) 933-6502
       \__          \__   \__               Home: (408) 226-9771
       \__          \__    \__             


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Dec 06 2000 - 15:03:47 PST

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