OpenMEEG
Functions | Variables
OpenMEEG::command_line Namespace Reference

Functions

char uncase (const char x)
 
float atof (const char *str)
 
int strlen (const char *s)
 
int strncmp (const char *s1, const char *s2, const int l)
 
int strfind (const char *s, const char c)
 
int strncasecmp (const char *s1, const char *s2, const int l)
 
int strcmp (const char *s1, const char *s2)
 
int strcasecmp (const char *s1, const char *s2)
 
const char * basename (const char *s)
 
const char * option (const char *const name, const int argc, char **argv, const char *defaut, const char *const usage=NULL)
 
bool option (const char *const name, const int argc, char **argv, const bool defaut, const char *const usage=NULL)
 
int option (const char *const name, const int argc, char **argv, const int defaut, const char *const usage=NULL)
 
char option (const char *const name, const int argc, char **argv, const char defaut, const char *const usage=NULL)
 
double option (const char *const name, const int argc, char **argv, const double defaut, const char *const usage=NULL)
 

Variables

const char t_normal [9] = {0x1b,'[','0',';','0',';','0','m','\0'}
 
const char t_red [11] = {0x1b,'[','4',';','3','1',';','5','9','m','\0'}
 
const char t_bold [5] = {0x1b,'[','1','m','\0'}
 
const char t_purple [11] = {0x1b,'[','0',';','3','5',';','5','9','m','\0'}
 

Function Documentation

◆ uncase()

char OpenMEEG::command_line::uncase ( const char  x)
inline

Definition at line 72 of file options.h.

◆ atof()

float OpenMEEG::command_line::atof ( const char *  str)
inline

Definition at line 74 of file options.h.

◆ strlen()

int OpenMEEG::command_line::strlen ( const char *  s)
inline

Definition at line 85 of file options.h.

◆ strncmp()

int OpenMEEG::command_line::strncmp ( const char *  s1,
const char *  s2,
const int  l 
)
inline

Definition at line 95 of file options.h.

◆ strfind()

int OpenMEEG::command_line::strfind ( const char *  s,
const char  c 
)
inline

Definition at line 106 of file options.h.

◆ strncasecmp()

int OpenMEEG::command_line::strncasecmp ( const char *  s1,
const char *  s2,
const int  l 
)
inline

Definition at line 116 of file options.h.

◆ strcmp()

int OpenMEEG::command_line::strcmp ( const char *  s1,
const char *  s2 
)
inline

Definition at line 127 of file options.h.

◆ strcasecmp()

int OpenMEEG::command_line::strcasecmp ( const char *  s1,
const char *  s2 
)
inline

Definition at line 133 of file options.h.

◆ basename()

const char* OpenMEEG::command_line::basename ( const char *  s)
inline

Definition at line 139 of file options.h.

◆ option() [1/5]

const char* OpenMEEG::command_line::option ( const char *const  name,
const int  argc,
char **  argv,
const char *  defaut,
const char *const  usage = NULL 
)
inline

Definition at line 144 of file options.h.

◆ option() [2/5]

bool OpenMEEG::command_line::option ( const char *const  name,
const int  argc,
char **  argv,
const bool  defaut,
const char *const  usage = NULL 
)
inline

Definition at line 175 of file options.h.

◆ option() [3/5]

int OpenMEEG::command_line::option ( const char *const  name,
const int  argc,
char **  argv,
const int  defaut,
const char *const  usage = NULL 
)
inline

Definition at line 184 of file options.h.

◆ option() [4/5]

char OpenMEEG::command_line::option ( const char *const  name,
const int  argc,
char **  argv,
const char  defaut,
const char *const  usage = NULL 
)
inline

Definition at line 195 of file options.h.

◆ option() [5/5]

double OpenMEEG::command_line::option ( const char *const  name,
const int  argc,
char **  argv,
const double  defaut,
const char *const  usage = NULL 
)
inline

Definition at line 207 of file options.h.

Variable Documentation

◆ t_normal

const char OpenMEEG::command_line::t_normal[9] = {0x1b,'[','0',';','0',';','0','m','\0'}

Definition at line 63 of file options.h.

◆ t_red

const char OpenMEEG::command_line::t_red[11] = {0x1b,'[','4',';','3','1',';','5','9','m','\0'}

Definition at line 64 of file options.h.

◆ t_bold

const char OpenMEEG::command_line::t_bold[5] = {0x1b,'[','1','m','\0'}

Definition at line 65 of file options.h.

◆ t_purple

const char OpenMEEG::command_line::t_purple[11] = {0x1b,'[','0',';','3','5',';','5','9','m','\0'}

Definition at line 66 of file options.h.