static void ParseCommandLine(Args &args) { path = args.ExpectNextT(); #ifdef USE_GDI TCHAR *endptr; unsigned _id = ParseUnsigned(path.c_str(), &endptr); if (StringIsEmpty(endptr)) id = ResourceId(_id); #endif }
static void ParseCommandLine(Args &args) { xmlfile = args.ExpectNextT(); const char *p = args.PeekNext(); if (p != NULL) { if (strcmp(p, "-portrait") == 0) { args.Skip(); portrait = true; } } }
static void ParseCommandLine(Args &args) { tstring path = args.ExpectNextT(); FileLineReaderA file(path.c_str()); if (file.error()) { _ftprintf(stderr, _T("Failed to open %s\n"), path.c_str()); return; } FlightParser parser(file); FlightInfo flight; while (parser.Read(flight)) flights.push_back(flight); }
static void ParseCommandLine(Args &args) { xmlfile = args.ExpectNextT(); }
static void ParseCommandLine(Args &args) { path = args.ExpectNextT(); }