You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be incredibly helpful for developers to have access to an autocoded function in each component's base class that invokes all connected input and output ports. I think the function could look like the following for output ports:
void ComponentBase::invokeAll<port>()
{
// Loop through all connected output ports and invoke them
for (unsigned int ii= 0; port < NUM_<port>_OUTPUT_PORTS; ii++)
{
if (true == this->isConnected_<port>_OutputPort(ii))
{
this-><port>_out(ii);
}
}
}
Rationale
This would streamline a developer's code and reduce the amount of copy-pasting of code templates that is needed with the current version of Fprime. This seems like a very simple thing that could be developed.
The text was updated successfully, but these errors were encountered:
Feature Description
It would be incredibly helpful for developers to have access to an autocoded function in each component's base class that invokes all connected input and output ports. I think the function could look like the following for output ports:
Rationale
This would streamline a developer's code and reduce the amount of copy-pasting of code templates that is needed with the current version of Fprime. This seems like a very simple thing that could be developed.
The text was updated successfully, but these errors were encountered: