nidas
v1.2-1520
|
Convert vector<string> args to dynamically allocated (argc, argv) pair which will be freed when the instance is destroyed. More...
#include <NidasApp.h>
Public Member Functions | |
NidasAppArgv (const std::string &argv0, const std::vector< std::string > &args) | |
ArgVector | unparsedArgs (int optindex) |
Given the opt index after getopt() finishes, return a vector of any remaining arguments, suitable for passing to NidasApp::parseInputs(). More... | |
~NidasAppArgv () | |
Public Attributes | |
std::vector< char * > | vargv |
char ** | argv |
int | argc |
Private Member Functions | |
NidasAppArgv (const NidasAppArgv &) | |
NidasAppArgv & | operator= (const NidasAppArgv &) |
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().
|
inline |
|
private |
|
private |
|
inline |
Given the opt index after getopt() finishes, return a vector of any remaining arguments, suitable for passing to NidasApp::parseInputs().
References vargv.
Referenced by StatsProcess::parseRunstring().
int nidas::core::NidasAppArgv::argc |
char** nidas::core::NidasAppArgv::argv |
std::vector<char*> nidas::core::NidasAppArgv::vargv |
Referenced by NidasAppArgv(), unparsedArgs(), and ~NidasAppArgv().