Adding ports issue.

>From the component builders manual (section 3.3.2):

// These ports do not wake up our task
this->ports()->addPort( "inPort", inPort ).doc( "Input Port that does
*not* raise an event." );
this->ports()->addPort( "outPort", outPort ).doc( "Output Port, here
write our data to." );

This does not work in my code, replacing it with the following fixes the issue:

// These ports do not wake up our task
this->addPort( "inPort", inPort ).doc( "Input Port that does *not*
raise an event." );
this->addPort( "outPort", outPort ).doc( "Output Port, here write our
data to." );

Should the former work, (and is there a bug in RTT?), or should the
documentation be changed to the latter?

Ruben

Adding ports issue.

On Wednesday 06 October 2010 13:44:37 Ruben Smits wrote:
> >From the component builders manual (section 3.3.2):
> // These ports do not wake up our task
> this->ports()->addPort( "inPort", inPort ).doc( "Input Port that
> does *not* raise an event." );
> this->ports()->addPort( "outPort", outPort ).doc( "Output Port, here
> write our data to." );
>
> This does not work in my code, replacing it with the following fixes the
> issue:
>
> // These ports do not wake up our task
> this->addPort( "inPort", inPort ).doc( "Input Port that does *not*
> raise an event." );
> this->addPort( "outPort", outPort ).doc( "Output Port, here write
> our data to." );
>
> Should the former work, (and is there a bug in RTT?), or should the
> documentation be changed to the latter?

I have added this function to the DataFlowInterface on master. It will be in
the toolchain-2.1 release.

Peter