Exemplo n.º 1
0
void stdstr::Format(const char * strFormat, ...)
{
    va_list args;
    va_start(args, strFormat);
    ArgFormat(strFormat, args);
    va_end(args);
}
Exemplo n.º 2
0
bool TestCmdlineParser::TestParams::prepareCmdlineFormat ()
{
    bool toR = Process_params::prepareCmdlineFormat ();
    if (toR)
    {
        keys_format_.push_back (KeyFormat ("s", kstr_lo,    "kstrpar",   "TESTSECT",  "KSTR",   true,   true,  "String",   KSTR_DEFAULT,  KSTR_HELP));
        keys_format_.push_back (KeyFormat ("b", kbool_lo,   "kboolpar",  "TESTSECT",  "KBOOL",  true,   false, "Boolean",  "True",        KBOOL_HELP));
        keys_format_.push_back (KeyFormat ("i", kint_lo,    "kintpar",   "TESTSECT",  "KINT",   true,   true,  "Integer",  KINT_DEFAULT,  KINT_HELP));

        args_format_.push_back (ArgFormat ("farg", "word", FARG_HELP, false, false));
        args_format_.push_back (ArgFormat ("oarg", "word", OARG_HELP, false, true));
        args_format_.push_back (ArgFormat ("rarg", "word", RARG_HELP, true,  false));
        args_format_.push_back (ArgFormat ("larg", "word", LARG_HELP, false, false));
    }
    return toR;
}