[gme-users] BON2: Getting FCOImpl from ConnectionEnd
Joe Hoffert
jhoffert at dre.vanderbilt.edu
Sat Nov 18 10:55:44 CST 2006
I'll give this a try.
Thanks, Zoli!
> -----Original Message-----
> From: gme-users-bounces at list.isis.vanderbilt.edu [mailto:gme-users-
> bounces at list.isis.vanderbilt.edu] On Behalf Of Zoltan Molnar
> Sent: Saturday, November 18, 2006 9:47 AM
> To: A list for GME users to share thoughts and discuss bugs and fixes.
> Subject: Re: [gme-users] BON2: Getting FCOImpl from ConnectionEnd
>
> Use it in this way:
> f( ConnectionEnd& ce)
> {
> FCO fco( ce);
> if( fco)
> {
> // the end is an fco
> }
> else
> {
> ReferencePort rp( ce);
> if( rp)
> {
> // the end is a port of a reference
> }
> }
> }
>
> Zoli
>
>
> Joe Hoffert wrote:
> >
> > Hi, all.
> >
> > I'm trying to get an FCO (more specifically an Atom) from a
> > ConnectionEnd. The only way I can see to do this is to explicitly call
> > the delegation operator (i.e., operator ->()) to get the
> > ConnectionEndImpl and then cast this to an FCOImpl. This appears to
> > work but it seems convoluted. I'd like to use the
> > ConnectionEndImpl::getFCOHelper() method but it's not public and so I
> > essentially have to replicate its functionality.
> >
> > It seems like this desired functionality would be so common that there
> > would be a quick and clean way to do this so I just wonder if I'm
> > missing something.
> >
> > Thanks.
> >
> > -Joe
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > gme-users mailing list
> > gme-users at list.isis.vanderbilt.edu
> > http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users
> >
>
> _______________________________________________
> gme-users mailing list
> gme-users at list.isis.vanderbilt.edu
> http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users
More information about the gme-users
mailing list