Template Function ecl::lite::connect(Signal<Data, Capacity>&, void(*)(Data), GlobalClass&)

Function Documentation

template<typename Data, unsigned int Capacity, typename GlobalClass>
sigslots::Error ecl::lite::connect(Signal<Data, Capacity> &signal, void (*function)(Data), GlobalClass &g)

Convenience method to connect signal with global/static function.

This simply passes on the work to Signal’s connect method.

Valid return values:

  • NoError

  • OutOfResourcesError : when the capacity of the global slots manager or the signal is exceeded.

Parameters:
  • signal – : the signal for connection.

  • function – : the global/static function to slot.

Returns:

Error : the sigslots error