[gme-users] BON2: Getting FCOImpl from ConnectionEnd

Zoltan Molnar zoltan.molnar at vanderbilt.edu
Sat Nov 18 09:46:32 CST 2006


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
>   



More information about the gme-users mailing list