changeset 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 50210da3997c
children 98898331dc2a 6d550a16f7d6 a2dbedc0cfee
files transform/FeatureWriter.h
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
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 {