diff transform/FeatureWriter.h @ 1129:1cc96e03a903

Add mandatory option --json-format to JSON feature writer, in preparation for supporting multiple JSON formats (perhaps) in future
author Chris Cannam
date Tue, 01 Sep 2015 17:05:32 +0100
parents 6b2a8b34e9d3
children d649818fc249
line wrap: on
line diff
--- a/transform/FeatureWriter.h	Tue Sep 01 15:51:07 2015 +0100
+++ b/transform/FeatureWriter.h	Tue Sep 01 17:05:32 2015 +0100
@@ -42,9 +42,11 @@
     virtual string getDescription() const = 0;
 
     struct Parameter { // parameter of the writer, not the plugin
+        Parameter() : hasArg(false), mandatory(false) { }
         string name;
         string description;
         bool hasArg;
+        bool mandatory;
     };
     typedef vector<Parameter> ParameterList;
     virtual ParameterList getSupportedParameters() const {