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


Interface   Data Structures   File List   Data Fields   Globals  

args_p.h File Reference

Simple functions handling command line arguments for the parser apps. More...


Functions

unsigned input_count (int argc, char **argv)
 Count the number of input files.
void input_collect (int argc, char **argv, char **list)
 Set the elements of the list array to be pointers to NULL terminated filenames.
char * output_collect (int argc, char **argv)
 Locate the output stub string in the command line arguments.
unsigned verbose_collect (int argc, char **argv)
 Check the command line arguments for the verbose flag.
unsigned filter_collect (int argc, char **argv)
 If a filter argument is present on the command line use it to construct a bit mask of components to write out.
unsigned get_bit (char *type)
 Lookup the type and return a one-bit bit mask with the corresponding bit set.


Detailed Description

Simple functions handling command line arguments for the parser apps.

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

Function Documentation

unsigned filter_collect ( int  argc,
char **  argv 
)

If a filter argument is present on the command line use it to construct a bit mask of components to write out.

Parameters:
argc Number of command line arguments
argv Array of command line arguments
Returns:
A bit mask of the components to write out

References get_bit().

Referenced by main().

unsigned get_bit ( char *  type  ) 

Lookup the type and return a one-bit bit mask with the corresponding bit set.

Parameters:
type NULL terminated LATC type name
Returns:
Bit mask with the bit corresponding to type set.

Referenced by filter_collect().

void input_collect ( int  argc,
char **  argv,
char **  list 
)

Set the elements of the list array to be pointers to NULL terminated filenames.

Parameters:
argc Number of command line arguments
argv Array of command line arguments
list Array of pointers to the filenames

Referenced by main().

unsigned input_count ( int  argc,
char **  argv 
)

Count the number of input files.

Parameters:
argc Number of command line arguments
argv Array of command line arguments
Returns:
Number of comma separated filenames in the input argument

Referenced by main().

char* output_collect ( int  argc,
char **  argv 
)

Locate the output stub string in the command line arguments.

Parameters:
argc Number of command line arguments
argv Array of command line arguments
Returns:
Pointer to the output stub string

Referenced by main().

unsigned verbose_collect ( int  argc,
char **  argv 
)

Check the command line arguments for the verbose flag.

Parameters:
argc Number of command line arguments
argv Array of command line arguments
Return values:
0 If -v is not one of the command line arguments
1 If -v is one of the command line arguments

Referenced by main().


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