TF++, Miscellaneous classes and modules in C++:
Interface provided through commandline.h

Interface provided through commandline.h. More...

Collaboration diagram for Interface provided through commandline.h:

Namespaces

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

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...
 

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 provided through commandline.h.

The main classes providing this interface are

A tutorial for their use will be given there.

See also
TEST: Commandline evaluation.

Date
12/01/2002
Author
Thomas Forbriger

Copyright (c) 2002 by Thomas Forbriger (IMGF Frankfurt)


This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software

Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

REVISIONS and CHANGES