Convert vector<string> args to dynamically allocated (argc, argv) pair which will be freed when the instance is destroyed.
More...
Convert vector<string> args to dynamically allocated (argc, argv) pair which will be freed when the instance is destroyed.
This is useful for passing leftover NidasApp command-line arguments to getopt() functions. The argv array includes the process name, as expected by getopt().
while ((opt_char =
getopt(left.argc, left.argv,
"...")) != -1) {
...
}
NidasApp handles common options for NIDAS applications.
Definition NidasApp.h:576
Sample * getSample(sampleType type, unsigned int len)
A convienence method for getting a sample of an enumerated type from a pool.
Definition Sample.cc:70
std::vector< std::string > ArgVector
Convenience typedef for handling the command-line argv as a vector of strings.
Definition NidasApp.h:55
Convert vector<string> args to dynamically allocated (argc, argv) pair which will be freed when the i...
Definition NidasApp.h:1520
char ** argv
Definition NidasApp.h:1554
int argc
Definition NidasApp.h:1555