Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals

idarg.h File Reference

#include <stdlib.h>

Go to the source code of this file.

Defines

#define ARGMAXCOUNT   100 /* Nombre maximum d'arguments */
#define ARG_DEFAULT_PARAMOUT   "fileout.par"
#define ARG_DEFAULT_LOGFILE   "libido.log"
#define FALSE   (1==0)
#define TRUE   (1==1)
#define START_USAGE(usage)   static char * usage[] = {
#define FINISH_USAGE   0};
#define IdArgGetInt(label, default)
#define IdArgGetFloat(label, default)
#define IdArgGetString(label, default)
#define IdArgWantInt(label, usage)
#define IdArgWantFloat(label, usage)
#define IdArgWantString(label, usage)

Functions

char * IdArgInit (int, char **)
int IdArgDefined (char *)
char * IdArgValue (char *)
char * IdArgUnused (void)
int IdArgSave (char *)
int IdArgUsage (char **)
int IdArgPrintUnusedLabels (void)
float * IdArgGetListOfFloat (char *, int)
int * IdArgGetListOfInt (char *, int)
char ** IdArgGetListOfString (char *, int)
float * IdArgGetListOfFloatWyW (char *, int *)
int * IdArgGetListOfInt_N (char *, int, int *OUTPUT)
float * IdArgGetListOfFloat_N (char *, int, int *OUTPUT)
char ** IdArgGetListOfStringWyW (char *, int *OUTPUT)
int * IdArgGetListOfIntWyW (char *, int *OUTPUT)
int * IdArgGetIntEnum (char *, int *OUTPUT)
float * IdArgGetFloatEnum (char *, int *OUTPUT)
int IdArgGetType (char *, int)
int IdArgWantType (char *, char **)
int IdArgGetTypeObj (char *, int)
int IdArgWantTypeObj (char *, char **)
int IdArgGetLabel (char *, char *, int)
int IdArgWantLabel (char *, char *, char **)
int _IdArgFree (void)


Define Documentation

#define ARG_DEFAULT_LOGFILE   "libido.log"
 

Definition at line 56 of file idarg.h.

#define ARG_DEFAULT_PARAMOUT   "fileout.par"
 

Definition at line 55 of file idarg.h.

#define ARGMAXCOUNT   100 /* Nombre maximum d'arguments */
 

Definition at line 50 of file idarg.h.

Referenced by IdArgInit().

#define FALSE   (1==0)
 

Definition at line 59 of file idarg.h.

Referenced by IdArgDefined(), and IdArgValue().

#define FINISH_USAGE   0};
 

Definition at line 65 of file idarg.h.

#define IdArgGetFloat label,
default   ) 
 

Value:

( (IdArgDefined(label)) \ ? (atof(IdArgValue(label))) \ : (default) )

Definition at line 199 of file idarg.h.

Referenced by main().

#define IdArgGetInt label,
default   ) 
 

Value:

( (IdArgDefined(label)) \ ? (atoi(IdArgValue(label))) \ : (default) )

Definition at line 196 of file idarg.h.

Referenced by main().

#define IdArgGetString label,
default   ) 
 

Value:

((IdArgDefined(label)) \ ? (IdArgValue(label)) \ : (default) )

Definition at line 202 of file idarg.h.

Referenced by main().

#define IdArgWantFloat label,
usage   ) 
 

Value:

( (IdArgDefined(label) ) \ ? (atof(IdArgValue(label) ) ) \ : (IdArgUsage(usage),1.0) )

Definition at line 336 of file idarg.h.

#define IdArgWantInt label,
usage   ) 
 

Value:

( (IdArgDefined(label) ) \ ? (atoi(IdArgValue(label) ) ) \ : (IdArgUsage(usage),1) )

Definition at line 332 of file idarg.h.

#define IdArgWantString label,
usage   ) 
 

Value:

( (IdArgDefined(label) ) \ ? (IdArgValue(label) ) \ : (IdArgUsage(usage),(char*)0) )

Definition at line 340 of file idarg.h.

#define START_USAGE usage   )     static char * usage[] = {
 

Definition at line 64 of file idarg.h.

#define TRUE   (1==1)
 

Definition at line 60 of file idarg.h.

Referenced by gdcm_read_JPEG_file(), and IdArgDefined().


Function Documentation

int _IdArgFree void   ) 
 

Definition at line 577 of file arg.c.

Referenced by IdExit().

int IdArgDefined char *   ) 
 

Definition at line 365 of file arg.c.

References FALSE, and TRUE.

Referenced by IdArgUnused(), and IdArgValue().

float* IdArgGetFloatEnum char *  ,
int *  OUTPUT
 

int* IdArgGetIntEnum char *  ,
int *  OUTPUT
 

int IdArgGetLabel char *  ,
char *  ,
int 
 

float* IdArgGetListOfFloat char *  ,
int 
 

float* IdArgGetListOfFloat_N char *  ,
int  ,
int *  OUTPUT
 

float* IdArgGetListOfFloatWyW char *  ,
int * 
 

int* IdArgGetListOfInt char *  ,
int 
 

int* IdArgGetListOfInt_N char *  ,
int  ,
int *  OUTPUT
 

int* IdArgGetListOfIntWyW char *  ,
int *  OUTPUT
 

char** IdArgGetListOfString char *  ,
int 
 

char** IdArgGetListOfStringWyW char *  ,
int *  OUTPUT
 

int IdArgGetType char *  ,
int 
 

int IdArgGetTypeObj char *  ,
int 
 

char* IdArgInit int  ,
char ** 
 

Referenced by main().

int IdArgPrintUnusedLabels void   ) 
 

Definition at line 510 of file arg.c.

References IdArgUnused(), IdArgValue(), and IdPrintf().

int IdArgSave char *   ) 
 

Definition at line 634 of file arg.c.

char* IdArgUnused void   ) 
 

Definition at line 480 of file arg.c.

References IdArgDefined().

Referenced by IdArgPrintUnusedLabels().

int IdArgUsage char **   ) 
 

Definition at line 567 of file arg.c.

References IdExit(), and IdPrintf().

char* IdArgValue char *   ) 
 

Definition at line 436 of file arg.c.

References FALSE, and IdArgDefined().

Referenced by IdArgPrintUnusedLabels().

int IdArgWantLabel char *  ,
char *  ,
char ** 
 

int IdArgWantType char *  ,
char ** 
 

int IdArgWantTypeObj char *  ,
char ** 
 


Generated on Wed Oct 19 09:28:35 2005 for SIMRI3D by doxygen 1.3.7