diff transform/TransformFactory.h @ 1227:5d886b7b4029 piper

Error reporting for Piper server startup
author Chris Cannam
date Fri, 21 Oct 2016 16:24:30 +0100
parents 6b1af0f05f06
children 9c14dee72329
line wrap: on
line diff
--- a/transform/TransformFactory.h	Fri Oct 21 14:51:22 2016 +0100
+++ b/transform/TransformFactory.h	Fri Oct 21 16:24:30 2016 +0100
@@ -196,6 +196,10 @@
     void setParametersFromPluginConfigurationXml(Transform &transform,
                                                  QString xml);
     
+    QString getStartupFailureReport() const {
+        return m_errorString;
+    }
+    
 protected:
     typedef std::map<TransformId, TransformDescription> TransformDescriptionMap;
 
@@ -205,6 +209,8 @@
     TransformDescriptionMap m_uninstalledTransforms;
     bool m_uninstalledTransformsPopulated;
 
+    QString m_errorString;
+    
     void populateTransforms();
     void populateUninstalledTransforms();
     void populateFeatureExtractionPlugins(TransformDescriptionMap &);