Mercurial > hg > svcore
comparison 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 |
comparison
equal
deleted
inserted
replaced
1128:50210da3997c | 1129:1cc96e03a903 |
---|---|
40 virtual ~FeatureWriter() { } | 40 virtual ~FeatureWriter() { } |
41 | 41 |
42 virtual string getDescription() const = 0; | 42 virtual string getDescription() const = 0; |
43 | 43 |
44 struct Parameter { // parameter of the writer, not the plugin | 44 struct Parameter { // parameter of the writer, not the plugin |
45 Parameter() : hasArg(false), mandatory(false) { } | |
45 string name; | 46 string name; |
46 string description; | 47 string description; |
47 bool hasArg; | 48 bool hasArg; |
49 bool mandatory; | |
48 }; | 50 }; |
49 typedef vector<Parameter> ParameterList; | 51 typedef vector<Parameter> ParameterList; |
50 virtual ParameterList getSupportedParameters() const { | 52 virtual ParameterList getSupportedParameters() const { |
51 return ParameterList(); | 53 return ParameterList(); |
52 } | 54 } |