root/foundation-apps/grosview-maxx/main.cc

Revision 2, 0.7 KB (checked in by emasson, 3 years ago)

initial import for the community edition

Line 
1//
2//  Copyright (c) 1994, 1995, 2006 by Mike Romberg ( mike.romberg@noaa.gov )
3//
4//  This file may be distributed under terms of the GPL
5//
6//
7// $Id: main.cc,v 1.1.1.1 2008/05/04 15:53:48 emasson Exp $
8//
9#include "general.h"
10#include "xosview.h"
11
12CVSID("$Id: main.cc,v 1.1.1.1 2008/05/04 15:53:48 emasson Exp $");
13
14int main( int argc, char *argv[] ) {
15  /*  Icky.  Need to check for -name option here.  */
16  char** argp = argv;
17  char* instanceName = "xosview";       // Default value.
18  while (argp && *argp)
19  {
20    if (!strncmp(*argp, "-name", 6))
21      instanceName = argp[1];
22    argp++;
23  }  //  instanceName will end up pointing to the last such -name option.
24  XOSView xosview( instanceName, argc, argv );
25
26  xosview.run();
27
28  return 0;
29}
Note: See TracBrowser for help on using the browser.