src/utils/action_router.cpp
/**
 * Invokes the given action name on the passed module pointer.
 *
 * The action must exist.
 */
Invokes the given action name on the passed module pointer.
The action must exist.
Invokes the given action name on the passed module pointer . The action must exist .
void action_router::invoke(const string& name, const string& data) {
  auto it = callbacks.find(name);
  assert(it != callbacks.end());
  auto& e = it->second;
  if (e.with_data) {
    e.with(data);
  } else {
    e.without();
  }
}
void action_router :: invoke ( const string & name , const string & data ) { auto it = callbacks . find ( name ) ; assert ( it != callbacks . end ( ) ) ; auto & e = it -> second ; if ( e . with_data ) { e . with ( data ) ; } else { e . without ( ) ; } }
Invokes the given action name on the passed module pointer.
Invokes the given action name on the passed module pointer .