Logo Search packages:      
Sourcecode: patchage version File versions  Download package

bool PatchBay::PatchBayArea::remove_connection ( const string &  mod1_name,
const string &  port1_name,
const string &  mod2_name,
const string &  port2_name 

Remove a connection.

Returns whether or not the connection was found (and removed).

Definition at line 248 of file PatchBayArea.cpp.

      Connection* c = get_connection(find_port(mod1_name, port1_name),
                                     find_port(mod2_name, port2_name));
      if (c == NULL) {
            std::cerr << "Couldn't find connection.\n";
            return false;
      } else {
            return true;

Generated by  Doxygen 1.6.0   Back to index