Mercurial > hg > svcore
comparison data/osc/OSCQueue.cpp @ 686:b4a8d8221eaf debug-output
Remove most toStdString calls (no longer needed, with debug header)
author | Chris Cannam |
---|---|
date | Thu, 12 May 2011 17:31:24 +0100 |
parents | d7f3dfe6f9a4 |
children | 06f13a3b9e9e |
comparison
equal
deleted
inserted
replaced
685:99222d4bfc78 | 686:b4a8d8221eaf |
---|---|
178 | 178 |
179 OSCMessage *mp = new OSCMessage(message); | 179 OSCMessage *mp = new OSCMessage(message); |
180 m_buffer.write(&mp, 1); | 180 m_buffer.write(&mp, 1); |
181 std::cerr << "OSCQueue::postMessage: Posted OSC message: target " | 181 std::cerr << "OSCQueue::postMessage: Posted OSC message: target " |
182 << message.getTarget() << ", target data " << message.getTargetData() | 182 << message.getTarget() << ", target data " << message.getTargetData() |
183 << ", method " << message.getMethod().toStdString() << std::endl; | 183 << ", method " << message.getMethod() << std::endl; |
184 emit messagesAvailable(); | 184 emit messagesAvailable(); |
185 } | 185 } |
186 | 186 |
187 bool | 187 bool |
188 OSCQueue::parseOSCPath(QString path, int &target, int &targetData, | 188 OSCQueue::parseOSCPath(QString path, int &target, int &targetData, |
211 | 211 |
212 method = path.section('/', i, -1); | 212 method = path.section('/', i, -1); |
213 | 213 |
214 if (method.contains('/')) { | 214 if (method.contains('/')) { |
215 std::cerr << "ERROR: OSCQueue::parseOSCPath: malformed path \"" | 215 std::cerr << "ERROR: OSCQueue::parseOSCPath: malformed path \"" |
216 << path.toStdString() << "\" (should be target/data/method or " | 216 << path << "\" (should be target/data/method or " |
217 << "target/method or method, where target and data " | 217 << "target/method or method, where target and data " |
218 << "are numeric)" << std::endl; | 218 << "are numeric)" << std::endl; |
219 return false; | 219 return false; |
220 } | 220 } |
221 | 221 |