TF++, Miscellaneous classes and modules in C++:

Namespace containing all components of module commandline. ,. More...

Namespaces

 helper
 

Classes

class  Commandline
 Evaluates commandline by calling long_getopt. ,You may instantiate a Commandline object by passing the C-variables iargc and argv (which are passed to main) and a Declare-list to the constructor. The constructor itself will call the function long_getopt to evaluate the command line and stores the results. More...
 
struct  Declare
 struct to define options ,This struct is used to define a list of options. An example is: More...
 
struct  Filename
 A struct to hold filename together with options ,If a filename is given together with its specific parameters in. More...
 

Typedefs

typedef std::pair< std::string, std::string > Tfileoption
 pair to hold file option ,A std::pair is an STL container. In this it contains a key together with the parameter read from the command line. Given an option More...
 
typedef std::multimap< std::string, std::string > Toptionmap
 map to hold file options ,A std::multimap is an STL container of pairs. It provides STL iterators to scan the collection. In this context each element in a tfxx::cmdline::Toptionmap is a tfxx::cmdline::Tfileoption. More...
 
typedef std::list< FilenameTparsed
 list to hold file names with options ,A tutorial is available in the detailed description of the Interface provided through xcmdline.h More...
 

Enumerations

enum  Eopt_arg_mode { arg_no =0, arg_yes =1, arg_opt =2 }
 option modes ,The following enums are used to define whether an option has or has not an argument. It is used within Declare. It tells Commandline whether it has to look for arguments to the option. More...
 

Functions

Tparsed parse_cmdline (tfxx::cmdline::Commandline &c, const char **keys, const bool &debug=false)
 parse command line arguments for file names and options ,A tutorial is available in the detailed description of the Interface provided through xcmdline.h More...
 

Detailed Description

Namespace containing all components of module commandline. ,.

See also
TEST: Commandline evaluation.
Commandline options and arguments.
tfxx::cmdline::Commandline