]>
cygwin.com Git - cygwin-apps/setup.git/blob - libgetopt++/src/StringArrayOption.cc
2 * Modified from StringOption.cc by Szavai Gyula in 2011
4 * Copyright (c) 2002 Robert Collins.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * A copy of the GNU General Public License can be found at
15 #include <getopt++/StringArrayOption.h>
17 StringArrayOption::StringArrayOption(char shortopt
,
18 char const *longopt
, unsigned int shorthelp
,
20 _optional(Required
), _shortopt(shortopt
),
21 _longopt (longopt
), _shorthelp (shorthelp
)
23 owner
.Register (this);
26 StringArrayOption::~ StringArrayOption () {};
29 StringArrayOption::shortOption () const
31 return std::string() + _shortopt
+ ":";
35 StringArrayOption::longOption () const
41 StringArrayOption::shortHelp () const
47 StringArrayOption::Process (char const *optarg
, int prefixIndex
)
51 _value
.push_back(optarg
);
57 StringArrayOption::operator std::vector
<std::string
> () const
63 StringArrayOption::argument () const
This page took 0.041613 seconds and 6 git commands to generate.