[Ace-users] Re: [ciao-users] Error trying to return valuetype inheritedfromanother one

Jeff Parsons j.parsons at vanderbilt.edu
Wed Oct 3 11:48:16 CDT 2007


> -----Original Message-----
> From: ciao-users-bounces at cse.wustl.edu 
> [mailto:ciao-users-bounces at cse.wustl.edu] On Behalf Of Boris Kolpackov
> Sent: Wednesday, October 03, 2007 10:43 AM
> To: CIAO Users Mailing List
> Subject: Re: [ciao-users] Error trying to return valuetype 
> inheritedfromanother one
> Hi Jeff,
> Jeff Parsons <j.parsons at vanderbilt.edu> writes:
> > The CIAO CIDL compiler already registers data-only eventtypes
> > automatically, if they are used in an event port.
> Well, this approach won't work for cases like Santos' where
> the interface uses a base valuetype/eventtype but the actual
> instances passed are of derived types.

I thought the demarshaling call stack included a virtual
function that would give us the derived repo id, but I'd
have to recheck the source code to be sure.

> > I don't think it would be hard to extend this code generation
> > to cover all valuetypes included directly or indirectly in the
> > .cidl file.
> Why not do it in IDL instead of CIDL so that TAO users benefit
> as well?

Sure, if an appropriate place could be found to place the
generated macro. It would have to be someplace where we have
a reference to the ORB. If so, then IDL would be the place
to do it.


> Boris
> --
> Boris Kolpackov
> Code Synthesis Tools CC
> http://www.codesynthesis.com
> Open-Source, Cross-Platform C++ XML Data Binding
> _______________________________________________
> ciao-users mailing list
> ciao-users at mail.cse.wustl.edu
> http://mail.cse.wustl.edu/mailman/listinfo/ciao-users

More information about the Ace-users mailing list