From 30b04c079ead6e28a61c63ee49dafe341fac1a85 Mon Sep 17 00:00:00 2001 From: "Marcel M. Otte" Date: Sun, 4 Oct 2015 17:11:59 +0200 Subject: [PATCH] working on the structure --- cpp/CmdLineOptions.h | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/cpp/CmdLineOptions.h b/cpp/CmdLineOptions.h index a9d5379..5f51ec2 100644 --- a/cpp/CmdLineOptions.h +++ b/cpp/CmdLineOptions.h @@ -23,10 +23,11 @@ private: std::string name; std::string description; bool set; - // lists + // lists for attributes of an option std::unique_ptr> options; std::unique_ptr> possibleParameters; std::unique_ptr> defaultParameters; + // values, this list can only be filled by parsing the input data std::unique_ptr> values; public: @@ -34,8 +35,20 @@ public: Option(std::string name); virtual ~Option(); - void setName(std::string name); + // Methods setting configuration attributes + std::shared_ptr