Mercurial > hg > sonic-visualiser
comparison main/OSCHandler.cpp @ 2232:76b1c50f1f6d osc-script
Update command-line parsing; work toward running OSC script in batch
author | Chris Cannam |
---|---|
date | Mon, 25 Mar 2019 15:53:03 +0000 |
parents | 0b15f3b16776 |
children | e9c77a4c865e |
comparison
equal
deleted
inserted
replaced
2231:9ba15c8260f6 | 2232:76b1c50f1f6d |
---|---|
37 void | 37 void |
38 MainWindow::handleOSCMessage(const OSCMessage &message) | 38 MainWindow::handleOSCMessage(const OSCMessage &message) |
39 { | 39 { |
40 SVDEBUG << "OSCHandler: method = \"" | 40 SVDEBUG << "OSCHandler: method = \"" |
41 << message.getMethod() << "\"" << endl; | 41 << message.getMethod() << "\"" << endl; |
42 | |
43 // This large function should really be abstracted out. | |
44 | 42 |
45 if (message.getMethod() == "open") { | 43 if (message.getMethod() == "open") { |
46 | 44 |
47 if (message.getArgCount() == 1 && | 45 if (message.getArgCount() == 1 && |
48 message.getArg(0).canConvert(QVariant::String)) { | 46 message.getArg(0).canConvert(QVariant::String)) { |