]>
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>
19 StringArrayOption::StringArrayOption(char shortopt
,
20 char const *longopt
, string
const &shorthelp
,
22 _optional(Required
), _shortopt(shortopt
),
23 _longopt (longopt
), _shorthelp (shorthelp
)
25 owner
.Register (this);
28 StringArrayOption::~ StringArrayOption () {};
31 StringArrayOption::shortOption () const
33 return string() + _shortopt
+ ":";
37 StringArrayOption::longOption () const
43 StringArrayOption::shortHelp () const
49 StringArrayOption::Process (char const *optarg
)
53 _value
.push_back(optarg
);
59 StringArrayOption::operator vector
<string
> () const
65 StringArrayOption::argument () const
This page took 0.039179 seconds and 6 git commands to generate.