Esempio n. 1
0
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
}
Esempio n. 2
0
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;
    }
  }
}
Esempio n. 3
0
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);
}
Esempio n. 4
0
static void
ParseCommandLine(Args &args)
{
  xmlfile = args.ExpectNextT();
}
Esempio n. 5
0
static void
ParseCommandLine(Args &args)
{
  path = args.ExpectNextT();
}