From: Tripp, B. <Bry...@uh...> - 2003-11-10 20:34:00
|
Hi Keith, Thanks for pointing out these problems. They are easy to fix for future versions of HAPI -- there is actually a hook that deals with OBX-5 in the same manner, so it can just be expanded to handle MFE and RDT. I've put it on the to-do list for version 0.5. In the mean time, your decorator approach sounds perfectly reasonable to me. Another option is to set the datatype of each Varies object manually, using setData(). You would parse the message, and then whatever code was using it would check (for example) MFE-4, call setData() with the appropriate datatype, and then getData() would return that type. Doing this in a decorator sounds better though. Bryan > How should I work around the problem? I could wrap your > parser and post > process the message to "fix-up" the datatypes, but I was > hoping for a better > solution. Any suggestions would be appreciated. This e-mail may contain confidential and/or privileged information for the sole use of the intended recipient. Any review or distribution by anyone other than the person for whom it was originally intended is strictly prohibited. If you have received this e-mail in error, please contact the sender and delete all copies. Opinions, conclusions or other information contained in this e-mail may not be that of the organization. |