diff transform/TransformFactory.cpp @ 690:1424aa29ae95

Seems to be a bad idea to use plain DEBUG symbol on OS/X (system wants it)
author Chris Cannam
date Tue, 14 Jun 2011 15:26:52 +0100
parents 06f13a3b9e9e
children b18f8c5fb4f5
line wrap: on
line diff
--- a/transform/TransformFactory.cpp	Tue Jun 14 14:47:59 2011 +0100
+++ b/transform/TransformFactory.cpp	Tue Jun 14 15:26:52 2011 +0100
@@ -52,7 +52,7 @@
 void
 TransformFactory::deleteInstance()
 {
-    DEBUG << "TransformFactory::deleteInstance called" << endl;
+    SVDEBUG << "TransformFactory::deleteInstance called" << endl;
     delete m_instance;
     m_instance = 0;
 }
@@ -70,12 +70,12 @@
     m_exiting = true;
     if (m_thread) {
 #ifdef DEBUG_TRANSFORM_FACTORY
-        DEBUG << "TransformFactory::~TransformFactory: waiting on thread" << endl;
+        SVDEBUG << "TransformFactory::~TransformFactory: waiting on thread" << endl;
 #endif
         m_thread->wait();
         delete m_thread;
 #ifdef DEBUG_TRANSFORM_FACTORY
-        DEBUG << "TransformFactory::~TransformFactory: waited and done" << endl;
+        SVDEBUG << "TransformFactory::~TransformFactory: waited and done" << endl;
 #endif
     }
 }
@@ -113,7 +113,7 @@
     for (TransformDescriptionMap::const_iterator i = m_transforms.begin();
 	 i != m_transforms.end(); ++i) {
 #ifdef DEBUG_TRANSFORM_FACTORY
-        DEBUG << "inserting transform into set: id = " << i->second.identifier << endl;
+        SVDEBUG << "inserting transform into set: id = " << i->second.identifier << endl;
 #endif
 	dset.insert(i->second);
     }
@@ -122,7 +122,7 @@
     for (std::set<TransformDescription>::const_iterator i = dset.begin();
 	 i != dset.end(); ++i) {
 #ifdef DEBUG_TRANSFORM_FACTORY
-        DEBUG << "inserting transform into list: id = " << i->identifier << endl;
+        SVDEBUG << "inserting transform into list: id = " << i->identifier << endl;
 #endif
 	list.push_back(*i);
     }
@@ -159,7 +159,7 @@
     for (TransformDescriptionMap::const_iterator i = m_uninstalledTransforms.begin();
 	 i != m_uninstalledTransforms.end(); ++i) {
 #ifdef DEBUG_TRANSFORM_FACTORY
-        DEBUG << "inserting transform into set: id = " << i->second.identifier << endl;
+        SVDEBUG << "inserting transform into set: id = " << i->second.identifier << endl;
 #endif
 	dset.insert(i->second);
     }
@@ -168,7 +168,7 @@
     for (std::set<TransformDescription>::const_iterator i = dset.begin();
 	 i != dset.end(); ++i) {
 #ifdef DEBUG_TRANSFORM_FACTORY
-        DEBUG << "inserting transform into uninstalled list: id = " << i->identifier << endl;
+        SVDEBUG << "inserting transform into uninstalled list: id = " << i->identifier << endl;
 #endif
 	list.push_back(*i);
     }
@@ -659,7 +659,7 @@
         QString name = desc.getPluginName();
 #ifdef DEBUG_TRANSFORM_FACTORY
         if (name == "") {
-            DEBUG << "TransformFactory::populateUninstalledTransforms: "
+            SVDEBUG << "TransformFactory::populateUninstalledTransforms: "
                       << "No name available for plugin " << i-                      << ", skipping" << endl;
             continue;
         }
@@ -677,7 +677,7 @@
             
             if (m_transforms.find(tid) != m_transforms.end()) {
 #ifdef DEBUG_TRANSFORM_FACTORY
-                DEBUG << "TransformFactory::populateUninstalledTransforms: "
+                SVDEBUG << "TransformFactory::populateUninstalledTransforms: "
                           << tid << " is installed; adding info url if appropriate, skipping rest" << endl;
 #endif
                 if (infoUrl != "") {
@@ -689,7 +689,7 @@
             }
 
 #ifdef DEBUG_TRANSFORM_FACTORY
-            DEBUG << "TransformFactory::populateUninstalledTransforms: "
+            SVDEBUG << "TransformFactory::populateUninstalledTransforms: "
                       << "adding " << tid << endl;
 #endif
 
@@ -952,7 +952,7 @@
     for (Vamp::PluginBase::ParameterList::const_iterator i = parameters.begin();
          i != parameters.end(); ++i) {
         pmap[i->identifier.c_str()] = plugin->getParameter(i->identifier);
-//        DEBUG << "TransformFactory::setParametersFromPlugin: parameter "
+//        SVDEBUG << "TransformFactory::setParametersFromPlugin: parameter "
 //                  << i->identifier << " -> value " <<
 //            pmap[i->identifier.c_str()] << endl;
     }
@@ -1067,7 +1067,7 @@
     Vamp::PluginBase *plugin = instantiateDefaultPluginFor
         (t.getIdentifier(), 0);
     if (!plugin) {
-        DEBUG << "TransformFactory::getPluginConfigurationXml: "
+        SVDEBUG << "TransformFactory::getPluginConfigurationXml: "
                   << "Unable to instantiate plugin for transform \""
                   << t.getIdentifier() << "\"" << endl;
         return xml;
@@ -1089,7 +1089,7 @@
     Vamp::PluginBase *plugin = instantiateDefaultPluginFor
         (t.getIdentifier(), 0);
     if (!plugin) {
-        DEBUG << "TransformFactory::setParametersFromPluginConfigurationXml: "
+        SVDEBUG << "TransformFactory::setParametersFromPluginConfigurationXml: "
                   << "Unable to instantiate plugin for transform \""
                   << t.getIdentifier() << "\"" << endl;
         return;
@@ -1145,7 +1145,7 @@
     if (!m_uninstalledTransformsMutex.tryLock()) {
         // uninstalled transforms are being populated; this may take some time,
         // and they aren't critical, but we will speed them up if necessary
-        DEBUG << "TransformFactory::search: Uninstalled transforms mutex is held, skipping" << endl;
+        SVDEBUG << "TransformFactory::search: Uninstalled transforms mutex is held, skipping" << endl;
         m_populatingSlowly = false;
         return results;
     }