Mercurial > hg > orthanc
comparison Plugins/Engine/OrthancPlugins.cpp @ 1330:7227b096a6dc
removal of test code
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 11 Mar 2015 16:57:01 +0100 |
parents | 272cb2019a4c |
children | feaf2840917c |
comparison
equal
deleted
inserted
replaced
1329:272cb2019a4c | 1330:7227b096a6dc |
---|---|
319 // Loop over the callbacks registered by the plugins | 319 // Loop over the callbacks registered by the plugins |
320 bool found = false; | 320 bool found = false; |
321 for (PImpl::RestCallbacks::const_iterator it = pimpl_->restCallbacks_.begin(); | 321 for (PImpl::RestCallbacks::const_iterator it = pimpl_->restCallbacks_.begin(); |
322 it != pimpl_->restCallbacks_.end() && !found; ++it) | 322 it != pimpl_->restCallbacks_.end() && !found; ++it) |
323 { | 323 { |
324 printf(">> [%s]\n", flatUri.c_str()); | |
325 std::cout << " [" << *(it->first) << "]" << std::endl; | |
326 | |
327 // Check whether the regular expression associated to this | 324 // Check whether the regular expression associated to this |
328 // callback matches the URI | 325 // callback matches the URI |
329 boost::cmatch what; | 326 boost::cmatch what; |
330 if (boost::regex_match(flatUri.c_str(), what, *(it->first))) | 327 if (boost::regex_match(flatUri.c_str(), what, *(it->first))) |
331 { | 328 { |
332 printf("ICI\n"); | |
333 callback = it->second; | 329 callback = it->second; |
334 | 330 |
335 // Extract the value of the free parameters of the regular expression | 331 // Extract the value of the free parameters of the regular expression |
336 if (what.size() > 1) | 332 if (what.size() > 1) |
337 { | 333 { |