Esempio n. 1
0
GETOPT_INLINE GetOpt_pp::GetOpt_pp(int argc, char* argv[], _EnvTag)
    : _first_token(NULL), _last_token(NULL)
{
    _init_flags();
    _parse(argc, argv);
    _parse_env();
}
Esempio n. 2
0
GETOPT_INLINE GetOpt_pp::GetOpt_pp(int argc, const char* const* const argv)
    : _exc(std::ios_base::goodbit), _first_token(NULL), _last_token(NULL), _tokens_deleter(_first_token)
{
    _init_flags();
    std::vector<std::string> args;
    _argc_argv_to_vector(argc, argv, args);
    _parse(args);
}
Esempio n. 3
0
GETOPT_INLINE GetOpt_pp::GetOpt_pp(int argc, const char* const* const argv, _EnvTag)
    : _first_token(NULL), _last_token(NULL), _tokens_deleter(_first_token)
{
    _init_flags();
    std::vector<std::string> args;
    _argc_argv_to_vector(argc, argv, args);
    _parse(args);
    _parse_env();
}
Esempio n. 4
0
GETOPT_INLINE GetOpt_pp::GetOpt_pp(int argc, char* argv[], _EnvTag)
{
    _init_flags();
    _parse(argc, argv);    
    _parse_env();
}
Esempio n. 5
0
GETOPT_INLINE GetOpt_pp::GetOpt_pp(int argc, char* argv[])
    : _exc(std::ios_base::goodbit)
{
    _init_flags();
    _parse(argc, argv);    
}
Esempio n. 6
0
GETOPT_INLINE GetOpt_pp::GetOpt_pp(int argc, char* argv[])
    : _exc(std::ios_base::goodbit), _first_token(NULL), _last_token(NULL)
{
    _init_flags();
    _parse(argc, argv);
}