In my application I always want that my components check their input port
connectivity. But not their output port. (the reason of this is that you
don't care when you publish, you need input to be well connected unless you
can't do your job).
I would like to do it automatically in the configureHook when calling my
My problem is that I can't determine the port "gender" when I get it from
the port list. Here is my code example which is checking all port connection
(in and out), what should I use to test the gender ?
bool res = true;
DataFlowInterface::Ports portsVector = ports()->getPorts();
for(it = portsVector.begin(); it != portsVector.end(); it++)
if( (*it)->connected() == false )
LOG(Error) << "checkInputsPorts : " << (*it)->getName() << " is
not connected !" << endlog();
res &= false;