GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LATC / V9-1-2 > LATC_parser / sun-gcc


Interface   Data Structures   File List   Data Fields   Globals  

parser_main.c File Reference

Main function for the LATC XML parsing executable. More...

#include "LATC/XML.h"
#include "LATC/lrd.h"
#include "args_p.h"
#include "msg_init_p.h"
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include "MSG/MSG_pubdefs.h"
#include "PBS/MBA.h"

Functions

void print_usage (FILE *fp)
 Print out a usage block.
int check_args (int argc, char **argv)
 Check that all the command line arguments are known, are unique and that any required arguments are present.
int main (int argc, char **argv)


Detailed Description

Main function for the LATC XML parsing executable.

Author:
James Swain -- jswain@slac.stanford.edu

Function Documentation

int check_args ( int  argc,
char **  argv 
)

Check that all the command line arguments are known, are unique and that any required arguments are present.

Parameters:
argc Number of command line arguments
argv Array of command line arguments
Return values:
0 Command line arguments meet requirements
-1 Unknown argument found on the list
-2 Missing input argument
-3 Missing output argument
-4 Repeated input argument
-5 Repeated output argument
-6 Repeated filter argument

References print_usage().

Referenced by main().

int main ( int  argc,
char **  argv 
)

Parameters:
argc Number of command-line arguments
argv List of command line arguments
Return values:
0 Success
-1 Unknown argument found on the list
-2 Missing input argument
-3 Missing output argument
-4 Repeated input argument
-5 Repeated output argument
-6 Repeated filter argument
-7 No input files specified
-8 Memory allocation error
-9 Parser failed.

References check_args(), filter_collect(), input_collect(), input_count(), msg_init(), output_collect(), print_usage(), and verbose_collect().

void print_usage ( FILE *  fp  ) 

Print out a usage block.

Parameters:
fp Pointer to destination file

Referenced by check_args(), and main().


Generated on Fri Apr 1 22:18:51 2011 by  doxygen 1.5.8