OpenMEEG
Loading...
Searching...
No Matches
Public Member Functions | List of all members
OpenMEEG::CommandLine Class Reference

#include <commandline.h>

Public Member Functions

 CommandLine (const int argc, char *argv[], const std::string &usage="")
 
bool help_mode () const
 
template<typename T >
option (const std::string &name, const T defaultvalue, const std::string usage) const
 
bool option (const std::string &name, const bool defaultvalue, const std::string usage) const
 
char ** option (const std::string &option, const Strings &parms, const std::size_t num_mandatory_parms) const
 
char ** option (const std::string &name, const Strings &parms) const
 
char ** option (const Strings &options, const Strings &parms) const
 
char ** option (const std::string &name, const List &parms) const
 
char ** option (const List &options, const List &parms) const
 
unsigned num_args (char **argument) const
 
void print () const
 

Detailed Description

Definition at line 32 of file commandline.h.

Constructor & Destructor Documentation

◆ CommandLine()

OpenMEEG::CommandLine::CommandLine ( const int  argc,
char *  argv[],
const std::string &  usage = "" 
)
inline

Definition at line 51 of file commandline.h.

Member Function Documentation

◆ help_mode()

bool OpenMEEG::CommandLine::help_mode ( ) const
inline

Definition at line 61 of file commandline.h.

◆ option() [1/7]

template<typename T >
T OpenMEEG::CommandLine::option ( const std::string &  name,
const T  defaultvalue,
const std::string  usage 
) const
inline

Definition at line 64 of file commandline.h.

◆ option() [2/7]

bool OpenMEEG::CommandLine::option ( const std::string &  name,
const bool  defaultvalue,
const std::string  usage 
) const
inline

Definition at line 73 of file commandline.h.

◆ option() [3/7]

char ** OpenMEEG::CommandLine::option ( const std::string &  option,
const Strings &  parms,
const std::size_t  num_mandatory_parms 
) const
inline

Definition at line 82 of file commandline.h.

◆ option() [4/7]

char ** OpenMEEG::CommandLine::option ( const std::string &  name,
const Strings &  parms 
) const
inline

Definition at line 102 of file commandline.h.

◆ option() [5/7]

char ** OpenMEEG::CommandLine::option ( const Strings &  options,
const Strings &  parms 
) const
inline

Definition at line 104 of file commandline.h.

◆ option() [6/7]

char ** OpenMEEG::CommandLine::option ( const std::string &  name,
const List &  parms 
) const
inline

Definition at line 127 of file commandline.h.

◆ option() [7/7]

char ** OpenMEEG::CommandLine::option ( const List &  options,
const List &  parms 
) const
inline

Definition at line 128 of file commandline.h.

◆ num_args()

unsigned OpenMEEG::CommandLine::num_args ( char **  argument) const
inline

Definition at line 132 of file commandline.h.

◆ print()

void OpenMEEG::CommandLine::print ( ) const
inline

Definition at line 140 of file commandline.h.


The documentation for this class was generated from the following file: