DMRITool  v0.1.1-139-g860d86b4
Diffusion MRI Tool
Namespaces | Macros | Functions
utlCommandLineParser.h File Reference
#include <cstdio>
#include <cstdlib>
#include <string>
#include <cstring>
#include "utlCoreMacro.h"
+ Include dependency graph for utlCommandLineParser.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 utl
 

Macros

#define utl_help(str)   utl::utlOption((char*)NULL,(unsigned int)argc,(char**)argv,str,(char*)NULL)
 
#define utl_option(name, defaut, usage)   utl::utlOption((char*)name,(unsigned int)argc,(char**)argv,defaut,(char*)usage)
 
#define utl_showdoc(argu)   if (utl_option(argu,(const char *)NULL,0)) return 0;
 
#define utl_usage(usage)   utl::utlOption((char*)NULL,(unsigned int)argc,(char**)argv,(char*)NULL,(char*)usage)
 

Functions

const char * utl::utlOption (const char *const name, const unsigned int argc, char **argv, const char *const defaut, const char *const usage=NULL)
 
bool utl::utlOption (const char *const name, const unsigned int argc, char **argv, const bool defaut, const char *const usage=NULL)
 
int utl::utlOption (const char *const name, const unsigned int argc, char **argv, const int defaut, const char *const usage=NULL)
 
char utl::utlOption (const char *const name, const unsigned int argc, char **argv, const char defaut, const char *const usage=NULL)
 
double utl::utlOption (const char *const name, const unsigned int argc, char **argv, const double defaut, const char *const usage=NULL)
 

Detailed Description

small but powerful CMD parser, borrowed from CImg, http://cimg.sourceforge.net/

Author
Dr. Jian Cheng (JC), jian..nosp@m.chen.nosp@m.g.198.nosp@m.3@gm.nosp@m.ail.c.nosp@m.om

Definition in file utlCommandLineParser.h.