X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fcore%2Fgetopt.h;h=70841cbf6b8dc50da4800bfae42ebc78e6d7e122;hp=911934ac08adb7399bbd914b6778a8df8eb99f03;hb=6f0c4c39133e08c05ffb1f1d53141a7e80ba6351;hpb=b27a278d8ab85afbad191d14962cc33e894718d4 diff --git a/source/core/getopt.h b/source/core/getopt.h index 911934a..70841cb 100644 --- a/source/core/getopt.h +++ b/source/core/getopt.h @@ -88,6 +88,7 @@ private: virtual Store *clone() const = 0; + virtual bool is_list() const = 0; virtual void store() = 0; virtual void store(const std::string &) = 0; }; @@ -133,6 +134,8 @@ private: virtual SimpleStore *clone() const { return new SimpleStore(data); } + virtual bool is_list() const { return false; } + virtual void store() { } virtual void store(const std::string &a) @@ -151,6 +154,8 @@ private: virtual ListStore *clone() const { return new ListStore(data); } + virtual bool is_list() const { return true; } + virtual void store() { } virtual void store(const std::string &a)