[omniORB] Streaming Any's

Renzo Tomaselli renzo.tomaselli@tecnotp.it
Thu, 9 Nov 2000 12:36:38 +0100


Kevin,
        I had exactly the same problem sometime ago, so I wrote a small
package to recurse over Any contents through DynAnys.
The final result is made up of two streams, one for type info, another on=
e
for values.
Stream source/destination is done through callback objects. This package =
is
ORB independent, it has been tested only up to some degree of complexity
contents (on OmniORB 2.8) and it compiles fine on several platforms.
Endianness is taken into account, off course.
I believe performance might be an issue for really complex typecodes and =
it
should depend on the underlying DynAny implem. efficiency; however I have=
 no
figures so far (nor documentation).
I'll be glad to send you its C++ sources if you are interested in.

                                             Renzo Tomaselli
-------------------------------------------------------------------------=
--
TecnoTP s.n.c. Special Information System Design
Maso Pelauchi I38050 Ronchi Valsugana,  Trento TN  ITALY
Tel. +39 0461 773164      Fax. +39 0461 771514
e-mail: renzo.tomaselli@tecnotp.it
-------------------------------------------------------------------------=
--

-----Original Message-----
From: Kevin Bailey <keraba@yahoo.com>
To: omniorb-list@uk.research.att.com <omniorb-list@uk.research.att.com>
Date: gioved=EC 9 novembre 2000 00:44
Subject: [omniORB] Streaming Any's


>I understand there's no way to convert an Any to a stream of
>bytes and back again portably (this side of CORBA 3.0). I was
>going to use it for a persistence store which didn't know
>anything about the things it was storing. It would need to store
>user-defined structs, arrays, sequences, and the like. Does
>omniORB have anything proprietary that can accomplish this ?
>
>If not, is my best bet to write something myself using
>DynAny's ? Or, since it seems like a very useful thing, has
>someone already done this ?
>
>Thanks,
>krb
>