TF++, Miscellaneous classes and modules in C++:
commandline.h File Reference

Interface of class commandline. More...

#include <tfxx/error.h>
#include <iostream>
#include <string>
#include <cstdlib>
Include dependency graph for commandline.h:

Go to the source code of this file.

Classes

struct  tfxx::cmdline::Declare
 struct to define options ,This struct is used to define a list of options. An example is: More...
 
class  tfxx::cmdline::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  tfxx::cmdline::Commandline::Result
 Structure to store result of command line scanning. More...
 

Namespaces

 tfxx
 Namespace containing all code of library libtfxx.
 
 tfxx::cmdline
 Namespace containing all components of module commandline. ,.
 

Macros

#define TF_COMMANDLINE_H_VERSION   "TF_COMMANDLINE_H V1.5"
 

Enumerations

enum  tfxx::cmdline::Eopt_arg_mode { tfxx::cmdline::arg_no =0, tfxx::cmdline::arg_yes =1, tfxx::cmdline::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...
 

Detailed Description

Interface of class commandline.

Definition in file commandline.h.