Pixie16 Analysis Software Suite
Analysis code for processing of .ldf files
GetArguments.hpp File Reference

A quick and dirty way to get the arguments pass to scan through the respective Fortran calls. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define GETARG__GETARGS   getarg_
 
#define IARGC__GETARGS   iargc_
 

Functions

int IARGC__GETARGS (void)
 
char * GETARG__GETARGS (const int &, char *, int)
 
int GetNumberArguments (void)
 
void GetArgument (int i, char *arg, int length)
 

Detailed Description

A quick and dirty way to get the arguments pass to scan through the respective Fortran calls.

Author
David Miller
Date
June 2012

Macro Definition Documentation

#define GETARG__GETARGS   getarg_

Define this version of GETARG__GETARGS if g77

#define IARGC__GETARGS   iargc_

Define this version of IARGC__GETARGS if f77

Function Documentation

char* GETARG__GETARGS ( const int &  ,
char *  ,
int   
)

Define the fortran function to get the arguments

Returns
a pointer to the beginning of the arg
void GetArgument ( int  i,
char *  arg,
int  length 
)
inline

C++ Wrapper to get a particular argument from the command line

Parameters
[in]ithe index of the argument to get
[in]arg: where to put the argument
[in]length: the length of the arg
int GetNumberArguments ( void  )
inline
Returns
C++ Wrapper to get the number of arguments (argc)
int IARGC__GETARGS ( void  )

Define the fortran function to get the argc

Returns
the number of args