showdesc.c

00001 /* Tool to search for entries in descriptor tables
00002  *
00003  * $Id: showdesc.c,v 1.2 2007/02/02 14:00:34 helmutp Exp $
00004  *
00005  * $Log: showdesc.c,v $
00006  * Revision 1.2  2007/02/02 14:00:34  helmutp
00007  * update center and table version
00008  *
00009  * Revision 1.1  2003/06/11 09:03:36  helmutp
00010  * Initial revision
00011  *
00012  */
00013 #include <stdlib.h>
00014 #include <stdio.h>
00015 #include "desc.h"
00016 
00017 int main(int argc, char **argv)
00018 {
00019     int f = 999, x = -1, y = -1;
00020     int ocent = 255, scent = 255, vmtab = 11, vltab = 4;
00021     char * table_dir = 0;
00022 
00023     while (argc > 2 && argv[1][0] == '-')
00024     {
00025         if (argv[1][1] == 'd')
00026             table_dir = argv[2];
00027             else if (argv[1][1] == 'm')
00028                 vmtab = atoi (argv[2]);
00029         else if (argv[1][1] == 'l')
00030                 vltab = atoi (argv[2]);
00031         else if (argv[1][1] == 'o')
00032                 ocent = atoi (argv[2]);
00033         else if (argv[1][1] == 's')
00034                 scent = atoi (argv[2]);
00035         argc -= 2;
00036         argv += 2;
00037     }
00038 
00039     if (argc > 1) f = atoi (argv[1]);
00040     if (argc > 2) x = atoi (argv[2]);
00041     if (argc > 3) y = atoi (argv[3]);
00042     read_tables(table_dir, vmtab, vltab, scent, ocent);
00043     show_desc (f, x, y);
00044 }
00045 

Generated on Tue Dec 18 16:52:45 2007 for OPERA BUFR software by  doxygen 1.5.4