Using TCLAP to parse command line

This commit is contained in:
Daniel Wolf 2015-12-29 11:44:55 +01:00
parent b413a268ce
commit 3e5d6e3625
498 changed files with 53916 additions and 8 deletions

View File

@ -3,7 +3,10 @@ cmake_minimum_required(VERSION 3.3)
# Support legacy OS X versions
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.7" CACHE STRING "Minimum OS X deployment version")
project("Rhubarb Lip Sync")
set(appName "Rhubarb Lip Sync")
set(appVersion "0.1.0-alpha")
project(${appName})
# Enable C++14
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
@ -69,9 +72,14 @@ target_link_libraries(pocketSphinx sphinxbase)
target_compile_options(pocketSphinx PRIVATE ${disableWarningsFlags})
set_target_properties(pocketSphinx PROPERTIES FOLDER lib)
# ... TCLAP
include_directories(SYSTEM "lib/tclap-1.2.1/include")
# Define executable
include_directories("src" "src/audio_input")
configure_file(src/app_info.cpp.in src/app_info.cpp ESCAPE_QUOTES)
set(SOURCE_FILES
${CMAKE_CURRENT_BINARY_DIR}/src/app_info.cpp
src/main.cpp
src/Phone.cpp
src/Shape.cpp

View File

@ -90,3 +90,15 @@ The US english acoustic model that is distributed along with the [PocketSphinx](
> 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
>
> THIS SOFTWARE IS PROVIDED BY ALPHA CEPHEI INC. ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ALPHA CEPHEI INC. NOR ITS EMPLOYEES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
### Templatized C++ Command Line Parser Library (TCLAP)
The [TCLAP](http://tclap.sourceforge.net/) library is released under the **MIT License (MIT)**.
> Copyright (c) 2003 Michael E. Smoot
>
> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
>
> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
>
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

6
lib/tclap-1.2.1/AUTHORS Normal file
View File

@ -0,0 +1,6 @@
original author: Michael E. Smoot
invaluable contributions: Daniel Aarno
more contributions: Erik Zeek
more contributions: Fabien Carmagnac (Tinbergen-AM)
outstanding editing: Carol Smoot

25
lib/tclap-1.2.1/COPYING Normal file
View File

@ -0,0 +1,25 @@
Copyright (c) 2003 Michael E. Smoot
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge,
publish, distribute, sublicense, and/or sell copies of the Software,
and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

1760
lib/tclap-1.2.1/ChangeLog Normal file

File diff suppressed because it is too large Load Diff

182
lib/tclap-1.2.1/INSTALL Normal file
View File

@ -0,0 +1,182 @@
Basic Installation
==================
These are generic installation instructions.
The `configure' shell script attempts to guess correct values for
various system-dependent variables used during compilation. It uses
those values to create a `Makefile' in each directory of the package.
It may also create one or more `.h' files containing system-dependent
definitions. Finally, it creates a shell script `config.status' that
you can run in the future to recreate the current configuration, a file
`config.cache' that saves the results of its tests to speed up
reconfiguring, and a file `config.log' containing compiler output
(useful mainly for debugging `configure').
If you need to do unusual things to compile the package, please try
to figure out how `configure' could check whether to do them, and mail
diffs or instructions to the address given in the `README' so they can
be considered for the next release. If at some point `config.cache'
contains results you don't want to keep, you may remove or edit it.
The file `configure.in' is used to create `configure' by a program
called `autoconf'. You only need `configure.in' if you want to change
it or regenerate `configure' using a newer version of `autoconf'.
The simplest way to compile this package is:
1. `cd' to the directory containing the package's source code and type
`./configure' to configure the package for your system. If you're
using `csh' on an old version of System V, you might need to type
`sh ./configure' instead to prevent `csh' from trying to execute
`configure' itself.
Running `configure' takes awhile. While running, it prints some
messages telling which features it is checking for.
2. Type `make' to compile the package.
3. Optionally, type `make check' to run any self-tests that come with
the package.
4. Type `make install' to install the programs and any data files and
documentation.
5. You can remove the program binaries and object files from the
source code directory by typing `make clean'. To also remove the
files that `configure' created (so you can compile the package for
a different kind of computer), type `make distclean'. There is
also a `make maintainer-clean' target, but that is intended mainly
for the package's developers. If you use it, you may have to get
all sorts of other programs in order to regenerate files that came
with the distribution.
Compilers and Options
=====================
Some systems require unusual options for compilation or linking that
the `configure' script does not know about. You can give `configure'
initial values for variables by setting them in the environment. Using
a Bourne-compatible shell, you can do that on the command line like
this:
CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure
Or on systems that have the `env' program, you can do it like this:
env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure
Compiling For Multiple Architectures
====================================
You can compile the package for more than one kind of computer at the
same time, by placing the object files for each architecture in their
own directory. To do this, you must use a version of `make' that
supports the `VPATH' variable, such as GNU `make'. `cd' to the
directory where you want the object files and executables to go and run
the `configure' script. `configure' automatically checks for the
source code in the directory that `configure' is in and in `..'.
If you have to use a `make' that does not supports the `VPATH'
variable, you have to compile the package for one architecture at a time
in the source code directory. After you have installed the package for
one architecture, use `make distclean' before reconfiguring for another
architecture.
Installation Names
==================
By default, `make install' will install the package's files in
`/usr/local/bin', `/usr/local/man', etc. You can specify an
installation prefix other than `/usr/local' by giving `configure' the
option `--prefix=PATH'.
You can specify separate installation prefixes for
architecture-specific files and architecture-independent files. If you
give `configure' the option `--exec-prefix=PATH', the package will use
PATH as the prefix for installing programs and libraries.
Documentation and other data files will still use the regular prefix.
In addition, if you use an unusual directory layout you can give
options like `--bindir=PATH' to specify different values for particular
kinds of files. Run `configure --help' for a list of the directories
you can set and what kinds of files go in them.
If the package supports it, you can cause programs to be installed
with an extra prefix or suffix on their names by giving `configure' the
option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
Optional Features
=================
Some packages pay attention to `--enable-FEATURE' options to
`configure', where FEATURE indicates an optional part of the package.
They may also pay attention to `--with-PACKAGE' options, where PACKAGE
is something like `gnu-as' or `x' (for the X Window System). The
`README' should mention any `--enable-' and `--with-' options that the
package recognizes.
For packages that use the X Window System, `configure' can usually
find the X include and library files automatically, but if it doesn't,
you can use the `configure' options `--x-includes=DIR' and
`--x-libraries=DIR' to specify their locations.
Specifying the System Type
==========================
There may be some features `configure' can not figure out
automatically, but needs to determine by the type of host the package
will run on. Usually `configure' can figure that out, but if it prints
a message saying it can not guess the host type, give it the
`--host=TYPE' option. TYPE can either be a short name for the system
type, such as `sun4', or a canonical name with three fields:
CPU-COMPANY-SYSTEM
See the file `config.sub' for the possible values of each field. If
`config.sub' isn't included in this package, then this package doesn't
need to know the host type.
If you are building compiler tools for cross-compiling, you can also
use the `--target=TYPE' option to select the type of system they will
produce code for and the `--build=TYPE' option to select the type of
system on which you are compiling the package.
Sharing Defaults
================
If you want to set default values for `configure' scripts to share,
you can create a site shell script called `config.site' that gives
default values for variables like `CC', `cache_file', and `prefix'.
`configure' looks for `PREFIX/share/config.site' if it exists, then
`PREFIX/etc/config.site' if it exists. Or, you can set the
`CONFIG_SITE' environment variable to the location of the site script.
A warning: not all `configure' scripts look for a site script.
Operation Controls
==================
`configure' recognizes the following options to control how it
operates.
`--cache-file=FILE'
Use and save the results of the tests in FILE instead of
`./config.cache'. Set FILE to `/dev/null' to disable caching, for
debugging `configure'.
`--help'
Print a summary of the options to `configure', and exit.
`--quiet'
`--silent'
`-q'
Do not print messages saying which checks are being made. To
suppress all normal output, redirect it to `/dev/null' (any error
messages will still be shown).
`--srcdir=DIR'
Look for the package's source code in directory DIR. Usually
`configure' can determine that directory automatically.
`--version'
Print the version of Autoconf used to generate the `configure'
script, and exit.
`configure' also accepts some other, not widely useful, options.

View File

@ -0,0 +1,10 @@
ACLOCAL_AMFLAGS = -I config
SUBDIRS = include examples docs tests msc config
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = $(PACKAGE).pc
EXTRA_DIST = $(PACKAGE).pc.in
DISTCLEANFILES = $(PACKAGE).pc

621
lib/tclap-1.2.1/Makefile.in Normal file
View File

@ -0,0 +1,621 @@
# Makefile.in generated by automake 1.10 from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
@SET_MAKE@
VPATH = @srcdir@
pkgdatadir = $(datadir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_HEADER = $(INSTALL_DATA)
transform = $(program_transform_name)
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
subdir = .
DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
$(srcdir)/Makefile.in $(srcdir)/tclap.pc.in \
$(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/config/ac_cxx_have_long_long.m4 \
$(top_srcdir)/config/ac_cxx_have_sstream.m4 \
$(top_srcdir)/config/ac_cxx_have_strstream.m4 \
$(top_srcdir)/config/ac_cxx_namespaces.m4 \
$(top_srcdir)/config/ac_cxx_warn_effective_cxx.m4 \
$(top_srcdir)/config/bb_enable_doxygen.m4 \
$(top_srcdir)/configure.in
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
$(ACLOCAL_M4)
am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
configure.lineno config.status.lineno
mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
CONFIG_HEADER = $(top_builddir)/config/config.h
CONFIG_CLEAN_FILES = tclap.pc
SOURCES =
DIST_SOURCES =
RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
html-recursive info-recursive install-data-recursive \
install-dvi-recursive install-exec-recursive \
install-html-recursive install-info-recursive \
install-pdf-recursive install-ps-recursive install-recursive \
installcheck-recursive installdirs-recursive pdf-recursive \
ps-recursive uninstall-recursive
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
am__vpath_adj = case $$p in \
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
*) f=$$p;; \
esac;
am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
am__installdirs = "$(DESTDIR)$(pkgconfigdir)"
pkgconfigDATA_INSTALL = $(INSTALL_DATA)
DATA = $(pkgconfig_DATA)
RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
distclean-recursive maintainer-clean-recursive
ETAGS = etags
CTAGS = ctags
DIST_SUBDIRS = $(SUBDIRS)
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
distdir = $(PACKAGE)-$(VERSION)
top_distdir = $(distdir)
am__remove_distdir = \
{ test ! -d $(distdir) \
|| { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
&& rm -fr $(distdir); }; }
DIST_ARCHIVES = $(distdir).tar.gz
GZIP_ENV = --best
distuninstallcheck_listfiles = find . -type f -print
distcleancheck_listfiles = find . -type f -print
ACLOCAL = @ACLOCAL@
AMTAR = @AMTAR@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
CPPFLAGS = @CPPFLAGS@
CXX = @CXX@
CXXCPP = @CXXCPP@
CXXDEPMODE = @CXXDEPMODE@
CXXFLAGS = @CXXFLAGS@
CYGPATH_W = @CYGPATH_W@
DEFS = @DEFS@
DEPDIR = @DEPDIR@
DOT = @DOT@
DOXYGEN = @DOXYGEN@
ECHO_C = @ECHO_C@
ECHO_N = @ECHO_N@
ECHO_T = @ECHO_T@
EGREP = @EGREP@
EXEEXT = @EXEEXT@
GREP = @GREP@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
LDFLAGS = @LDFLAGS@
LIBOBJS = @LIBOBJS@
LIBS = @LIBS@
LTLIBOBJS = @LTLIBOBJS@
MAKEINFO = @MAKEINFO@
MKDIR_P = @MKDIR_P@
OBJEXT = @OBJEXT@
PACKAGE = @PACKAGE@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_STRING = @PACKAGE_STRING@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
PACKAGE_VERSION = @PACKAGE_VERSION@
PATH_SEPARATOR = @PATH_SEPARATOR@
RANLIB = @RANLIB@
SET_MAKE = @SET_MAKE@
SHELL = @SHELL@
STRIP = @STRIP@
VERSION = @VERSION@
WARN_EFFECTIVE_CXX = @WARN_EFFECTIVE_CXX@
WARN_NO_EFFECTIVE_CXX = @WARN_NO_EFFECTIVE_CXX@
abs_builddir = @abs_builddir@
abs_srcdir = @abs_srcdir@
abs_top_builddir = @abs_top_builddir@
abs_top_srcdir = @abs_top_srcdir@
ac_ct_CXX = @ac_ct_CXX@
am__include = @am__include@
am__leading_dot = @am__leading_dot@
am__quote = @am__quote@
am__tar = @am__tar@
am__untar = @am__untar@
bindir = @bindir@
build_alias = @build_alias@
builddir = @builddir@
datadir = @datadir@
datarootdir = @datarootdir@
docdir = @docdir@
dvidir = @dvidir@
exec_prefix = @exec_prefix@
host_alias = @host_alias@
htmldir = @htmldir@
includedir = @includedir@
infodir = @infodir@
install_sh = @install_sh@
libdir = @libdir@
libexecdir = @libexecdir@
localedir = @localedir@
localstatedir = @localstatedir@
mandir = @mandir@
mkdir_p = @mkdir_p@
oldincludedir = @oldincludedir@
pdfdir = @pdfdir@
prefix = @prefix@
program_transform_name = @program_transform_name@
psdir = @psdir@
sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
srcdir = @srcdir@
sysconfdir = @sysconfdir@
target_alias = @target_alias@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
ACLOCAL_AMFLAGS = -I config
SUBDIRS = include examples docs tests msc config
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = $(PACKAGE).pc
EXTRA_DIST = $(PACKAGE).pc.in
DISTCLEANFILES = $(PACKAGE).pc
all: all-recursive
.SUFFIXES:
am--refresh:
@:
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
@for dep in $?; do \
case '$(am__configure_deps)' in \
*$$dep*) \
echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \
cd $(srcdir) && $(AUTOMAKE) --gnu \
&& exit 0; \
exit 1;; \
esac; \
done; \
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
cd $(top_srcdir) && \
$(AUTOMAKE) --gnu Makefile
.PRECIOUS: Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
@case '$?' in \
*config.status*) \
echo ' $(SHELL) ./config.status'; \
$(SHELL) ./config.status;; \
*) \
echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
esac;
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
$(SHELL) ./config.status --recheck
$(top_srcdir)/configure: $(am__configure_deps)
cd $(srcdir) && $(AUTOCONF)
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
tclap.pc: $(top_builddir)/config.status $(srcdir)/tclap.pc.in
cd $(top_builddir) && $(SHELL) ./config.status $@
install-pkgconfigDATA: $(pkgconfig_DATA)
@$(NORMAL_INSTALL)
test -z "$(pkgconfigdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)"
@list='$(pkgconfig_DATA)'; for p in $$list; do \
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
f=$(am__strip_dir) \
echo " $(pkgconfigDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgconfigdir)/$$f'"; \
$(pkgconfigDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgconfigdir)/$$f"; \
done
uninstall-pkgconfigDATA:
@$(NORMAL_UNINSTALL)
@list='$(pkgconfig_DATA)'; for p in $$list; do \
f=$(am__strip_dir) \
echo " rm -f '$(DESTDIR)$(pkgconfigdir)/$$f'"; \
rm -f "$(DESTDIR)$(pkgconfigdir)/$$f"; \
done
# This directory's subdirectories are mostly independent; you can cd
# into them and run `make' without going through this Makefile.
# To change the values of `make' variables: instead of editing Makefiles,
# (1) if the variable is set in `config.status', edit `config.status'
# (which will cause the Makefiles to be regenerated when you run `make');
# (2) otherwise, pass the desired values on the `make' command line.
$(RECURSIVE_TARGETS):
@failcom='exit 1'; \
for f in x $$MAKEFLAGS; do \
case $$f in \
*=* | --[!k]*);; \
*k*) failcom='fail=yes';; \
esac; \
done; \
dot_seen=no; \
target=`echo $@ | sed s/-recursive//`; \
list='$(SUBDIRS)'; for subdir in $$list; do \
echo "Making $$target in $$subdir"; \
if test "$$subdir" = "."; then \
dot_seen=yes; \
local_target="$$target-am"; \
else \
local_target="$$target"; \
fi; \
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|| eval $$failcom; \
done; \
if test "$$dot_seen" = "no"; then \
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
fi; test -z "$$fail"
$(RECURSIVE_CLEAN_TARGETS):
@failcom='exit 1'; \
for f in x $$MAKEFLAGS; do \
case $$f in \
*=* | --[!k]*);; \
*k*) failcom='fail=yes';; \
esac; \
done; \
dot_seen=no; \
case "$@" in \
distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
*) list='$(SUBDIRS)' ;; \
esac; \
rev=''; for subdir in $$list; do \
if test "$$subdir" = "."; then :; else \
rev="$$subdir $$rev"; \
fi; \
done; \
rev="$$rev ."; \
target=`echo $@ | sed s/-recursive//`; \
for subdir in $$rev; do \
echo "Making $$target in $$subdir"; \
if test "$$subdir" = "."; then \
local_target="$$target-am"; \
else \
local_target="$$target"; \
fi; \
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|| eval $$failcom; \
done && test -z "$$fail"
tags-recursive:
list='$(SUBDIRS)'; for subdir in $$list; do \
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
done
ctags-recursive:
list='$(SUBDIRS)'; for subdir in $$list; do \
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
done
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) ' { files[$$0] = 1; } \
END { for (i in files) print i; }'`; \
mkid -fID $$unique
tags: TAGS
TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
$(TAGS_FILES) $(LISP)
tags=; \
here=`pwd`; \
if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
include_option=--etags-include; \
empty_fix=.; \
else \
include_option=--include; \
empty_fix=; \
fi; \
list='$(SUBDIRS)'; for subdir in $$list; do \
if test "$$subdir" = .; then :; else \
test ! -f $$subdir/TAGS || \
tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
fi; \
done; \
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) ' { files[$$0] = 1; } \
END { for (i in files) print i; }'`; \
if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
test -n "$$unique" || unique=$$empty_fix; \
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
$$tags $$unique; \
fi
ctags: CTAGS
CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
$(TAGS_FILES) $(LISP)
tags=; \
here=`pwd`; \
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) ' { files[$$0] = 1; } \
END { for (i in files) print i; }'`; \
test -z "$(CTAGS_ARGS)$$tags$$unique" \
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
$$tags $$unique
GTAGS:
here=`$(am__cd) $(top_builddir) && pwd` \
&& cd $(top_srcdir) \
&& gtags -i $(GTAGS_ARGS) $$here
distclean-tags:
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
distdir: $(DISTFILES)
$(am__remove_distdir)
test -d $(distdir) || mkdir $(distdir)
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
list='$(DISTFILES)'; \
dist_files=`for file in $$list; do echo $$file; done | \
sed -e "s|^$$srcdirstrip/||;t" \
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
case $$dist_files in \
*/*) $(MKDIR_P) `echo "$$dist_files" | \
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
sort -u` ;; \
esac; \
for file in $$dist_files; do \
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
if test -d $$d/$$file; then \
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
fi; \
cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
else \
test -f $(distdir)/$$file \
|| cp -p $$d/$$file $(distdir)/$$file \
|| exit 1; \
fi; \
done
list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
if test "$$subdir" = .; then :; else \
test -d "$(distdir)/$$subdir" \
|| $(MKDIR_P) "$(distdir)/$$subdir" \
|| exit 1; \
distdir=`$(am__cd) $(distdir) && pwd`; \
top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
(cd $$subdir && \
$(MAKE) $(AM_MAKEFLAGS) \
top_distdir="$$top_distdir" \
distdir="$$distdir/$$subdir" \
am__remove_distdir=: \
am__skip_length_check=: \
distdir) \
|| exit 1; \
fi; \
done
-find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
! -type d ! -perm -400 -exec chmod a+r {} \; -o \
! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
|| chmod -R a+r $(distdir)
dist-gzip: distdir
tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
$(am__remove_distdir)
dist-bzip2: distdir
tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
$(am__remove_distdir)
dist-tarZ: distdir
tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
$(am__remove_distdir)
dist-shar: distdir
shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
$(am__remove_distdir)
dist-zip: distdir
-rm -f $(distdir).zip
zip -rq $(distdir).zip $(distdir)
$(am__remove_distdir)
dist dist-all: distdir
tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
$(am__remove_distdir)
# This target untars the dist file and tries a VPATH configuration. Then
# it guarantees that the distribution is self-contained by making another
# tarfile.
distcheck: dist
case '$(DIST_ARCHIVES)' in \
*.tar.gz*) \
GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
*.tar.bz2*) \
bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
*.tar.Z*) \
uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
*.shar.gz*) \
GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
*.zip*) \
unzip $(distdir).zip ;;\
esac
chmod -R a-w $(distdir); chmod a+w $(distdir)
mkdir $(distdir)/_build
mkdir $(distdir)/_inst
chmod a-w $(distdir)
dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
&& dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
&& cd $(distdir)/_build \
&& ../configure --srcdir=.. --prefix="$$dc_install_base" \
$(DISTCHECK_CONFIGURE_FLAGS) \
&& $(MAKE) $(AM_MAKEFLAGS) \
&& $(MAKE) $(AM_MAKEFLAGS) dvi \
&& $(MAKE) $(AM_MAKEFLAGS) check \
&& $(MAKE) $(AM_MAKEFLAGS) install \
&& $(MAKE) $(AM_MAKEFLAGS) installcheck \
&& $(MAKE) $(AM_MAKEFLAGS) uninstall \
&& $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
distuninstallcheck \
&& chmod -R a-w "$$dc_install_base" \
&& ({ \
(cd ../.. && umask 077 && mkdir "$$dc_destdir") \
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
} || { rm -rf "$$dc_destdir"; exit 1; }) \
&& rm -rf "$$dc_destdir" \
&& $(MAKE) $(AM_MAKEFLAGS) dist \
&& rm -rf $(DIST_ARCHIVES) \
&& $(MAKE) $(AM_MAKEFLAGS) distcleancheck
$(am__remove_distdir)
@(echo "$(distdir) archives ready for distribution: "; \
list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
distuninstallcheck:
@cd $(distuninstallcheck_dir) \
&& test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
|| { echo "ERROR: files left after uninstall:" ; \
if test -n "$(DESTDIR)"; then \
echo " (check DESTDIR support)"; \
fi ; \
$(distuninstallcheck_listfiles) ; \
exit 1; } >&2
distcleancheck: distclean
@if test '$(srcdir)' = . ; then \
echo "ERROR: distcleancheck can only run from a VPATH build" ; \
exit 1 ; \
fi
@test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
|| { echo "ERROR: files left in build directory after distclean:" ; \
$(distcleancheck_listfiles) ; \
exit 1; } >&2
check-am: all-am
check: check-recursive
all-am: Makefile $(DATA)
installdirs: installdirs-recursive
installdirs-am:
for dir in "$(DESTDIR)$(pkgconfigdir)"; do \
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
done
install: install-recursive
install-exec: install-exec-recursive
install-data: install-data-recursive
uninstall: uninstall-recursive
install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
installcheck: installcheck-recursive
install-strip:
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
`test -z '$(STRIP)' || \
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
mostlyclean-generic:
clean-generic:
distclean-generic:
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
@echo "it deletes files that may require special tools to rebuild."
clean: clean-recursive
clean-am: clean-generic mostlyclean-am
distclean: distclean-recursive
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
-rm -f Makefile
distclean-am: clean-am distclean-generic distclean-tags
dvi: dvi-recursive
dvi-am:
html: html-recursive
info: info-recursive
info-am:
install-data-am: install-pkgconfigDATA
install-dvi: install-dvi-recursive
install-exec-am:
install-html: install-html-recursive
install-info: install-info-recursive
install-man:
install-pdf: install-pdf-recursive
install-ps: install-ps-recursive
installcheck-am:
maintainer-clean: maintainer-clean-recursive
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
-rm -rf $(top_srcdir)/autom4te.cache
-rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic
mostlyclean: mostlyclean-recursive
mostlyclean-am: mostlyclean-generic
pdf: pdf-recursive
pdf-am:
ps: ps-recursive
ps-am:
uninstall-am: uninstall-pkgconfigDATA
.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
install-strip
.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
all all-am am--refresh check check-am clean clean-generic \
ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \
dist-shar dist-tarZ dist-zip distcheck distclean \
distclean-generic distclean-tags distcleancheck distdir \
distuninstallcheck dvi dvi-am html html-am info info-am \
install install-am install-data install-data-am install-dvi \
install-dvi-am install-exec install-exec-am install-html \
install-html-am install-info install-info-am install-man \
install-pdf install-pdf-am install-pkgconfigDATA install-ps \
install-ps-am install-strip installcheck installcheck-am \
installdirs installdirs-am maintainer-clean \
maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
pdf-am ps ps-am tags tags-recursive uninstall uninstall-am \
uninstall-pkgconfigDATA
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:

95
lib/tclap-1.2.1/NEWS Normal file
View File

@ -0,0 +1,95 @@
4/3/03 - Checked in a good sized update that move support of the library
closer to that of the POSIX/GNU standards. Switches can now be combined into
single arguments, -- is supported and MultiArgs now allow for multiple labeled
args. I've also changed things a bit by subclassing MultiArg and ValueArg
to get unlabeled versions of these classes. I think this is a bit cleaner
design, despite two new classes.
1/7/04 - ... and with great trepidation, I release 0.9.6. Loads of changes.
The big change is that you can now define the delimiter used to separate
argument flags and argument values. So if you prefer arguments of the style
"-s=asdf" instead of "-s asdf", you can do so. I've also fixed a number of
warnings generated and fixed a few pathologic bugs related to combined
switches. That said, I suspect that there may be a few significant bugs
in this release that I haven't uncovered yet. Please let me know ASAP if
you find any.
2/6/04 - Another big release: 0.9.7. First is a bugfix submitted by
Matthias Stiller that specializes the _extractValue method in a couple of
places that allows strings with spaces to be correctly read by tclap. A
second bug found by John Ling has been fixed so that exceptions are thrown
if more than one value is parsed from a single arg or if the second value
parsed is invalid. A big new feature has been added that allows args to
be xor'd. This means that two (or more) args can be specified such that
one and only one of the args is required. If a second arg is found an
exception is thrown. See the manual for details. As always, let me know
if you run into any problems.
2/10/04 - A minor release: 0.9.8. A couple of bug fixes for 0.9.7 are
included and a feature has been added that allows Args to be specified
without short options, meaning the user is forced to use only long options.
This is useful for programs with more options than map sensibly to single
chars.
7/3/04 - Added a new constructor and handling to the various value args
that allows the user to provide a list of values that the input arg values
should be restricted to.
8/9/04 - Created a function to print the output nicely, meaning line wraps
are handled somewhat sensibly now. Also changed error handling slightly.
Instead of printing the entire usage, I just print a short usage. If
someone really hates this, its easy to change back. Let me know if this
causes problems. I think this equals release 0.9.9!
10/19/04 - A number of changes that should substantially improve the library.
The most important being that we've moved the implementation of the library
entirely into the header files. This means there is no longer a library to
complile against, you simply have to #include <tclap/CmdLine.h>. New
constructors have been added to the various Arg classes that allow them to
be constructed with a CmdLine reference so that you no longer need to call
the add method if you prefer it that way. The output generated by the library
has been confined to a few methods in the CmdLine class. This means to
generate different output you can extend CmdLine and override the offending
methods. A number of style changes have been made in the code base to
conform better to C++ best practices. A thoughtful user has contributed
project files for the building the examples Microsoft Visual Studio. See
the README file in the msc directory for more details
And so we have release 1.0!
10/30/04 - A few bugfixes. Now checking for include.h before including it.
This will help Windows users who don't have it. Also changed test1 so that
it doesn't use toupper, which apparently causes problem for non-ASCII
character sets.
10/31/04 - A few more tweaks, none of which should be noticeable to people
who are already using the lib without trouble. Maybe I shouldn't release
things early in the morning! Also note that manual.html is now generated
from manual.xml. If you have your own docbook xsl style that you prefer,
then have at it.
12/3/04 - Some minor bug fixes including the removal of the two stage name
lookup ifdefs which means that the software should work out of the box
for gcc 3.4+. Isolated output in a separate class that should make
customization of output easier. I also included a rudimentary output class
that generated a (bad) Docbook command summary when used.
1/4/05 - Several bug fixes, but no new features. Fixed a bug when mandatory
long args and unlabeled args were used together and weren't working properly.
Now they can be used together. Fixed another bug in spacePrint where long
program names caused an infinite loop. Finally, fixed a small memory leak.
1/6/05 - Fixed a bug where setting the output object for a CmdLine didn't
register for version or usage generation. Doh! Created a Constraint interface
that should facilitate the creation of different constraints on Args.
This has involved changing the constructor interface, so if you've been using
allowed lists, you'll need to make a small modification to your existing code.
See examples/test6.cpp for details.
9/26/09 - Whoa, long break. Primarily a bug-fix release, but we did switch
to using traits, which necessitates the minor version bump. Take a look
at test11.cpp and test12.cpp for examples on using ArgTraits for extending
tclap for different types.
4/16/11 - Another long break! Several minor bug and memory leak fixes.

16
lib/tclap-1.2.1/README Normal file
View File

@ -0,0 +1,16 @@
TCLAP - Templatized Command Line Argument Parser
This is a simple C++ library that facilitates parsing command line
arguments in a type independent manner. It doesn't conform exactly
to either the GNU or POSIX standards, although it is close. See
docs/manual.html for descriptions of how things work or look at the
simple examples in the examples dir.
To find out what the latest changes are read the NEWS file in this directory.
Any and all feedback is welcome to: Mike Smoot <mes@aescon.com>

880
lib/tclap-1.2.1/aclocal.m4 vendored Normal file
View File

@ -0,0 +1,880 @@
# generated automatically by aclocal 1.10 -*- Autoconf -*-
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
# 2005, 2006 Free Software Foundation, Inc.
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
m4_if(m4_PACKAGE_VERSION, [2.61],,
[m4_fatal([this file was generated for autoconf 2.61.
You have another version of autoconf. If you want to use that,
you should regenerate the build system entirely.], [63])])
# Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# AM_AUTOMAKE_VERSION(VERSION)
# ----------------------------
# Automake X.Y traces this macro to ensure aclocal.m4 has been
# generated from the m4 files accompanying Automake X.Y.
# (This private macro should not be called outside this file.)
AC_DEFUN([AM_AUTOMAKE_VERSION],
[am__api_version='1.10'
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
dnl require some minimum version. Point them to the right macro.
m4_if([$1], [1.10], [],
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
])
# _AM_AUTOCONF_VERSION(VERSION)
# -----------------------------
# aclocal traces this macro to find the Autoconf version.
# This is a private macro too. Using m4_define simplifies
# the logic in aclocal, which can simply ignore this definition.
m4_define([_AM_AUTOCONF_VERSION], [])
# AM_SET_CURRENT_AUTOMAKE_VERSION
# -------------------------------
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
[AM_AUTOMAKE_VERSION([1.10])dnl
_AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)])
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
#
# Of course, Automake must honor this variable whenever it calls a
# tool from the auxiliary directory. The problem is that $srcdir (and
# therefore $ac_aux_dir as well) can be either absolute or relative,
# depending on how configure is run. This is pretty annoying, since
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
# source directory, any form will work fine, but in subdirectories a
# relative path needs to be adjusted first.
#
# $ac_aux_dir/missing
# fails when called from a subdirectory if $ac_aux_dir is relative
# $top_srcdir/$ac_aux_dir/missing
# fails if $ac_aux_dir is absolute,
# fails when called from a subdirectory in a VPATH build with
# a relative $ac_aux_dir
#
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
# are both prefixed by $srcdir. In an in-source build this is usually
# harmless because $srcdir is `.', but things will broke when you
# start a VPATH build or use an absolute $srcdir.
#
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
# and then we would define $MISSING as
# MISSING="\${SHELL} $am_aux_dir/missing"
# This will work as long as MISSING is not called from configure, because
# unfortunately $(top_srcdir) has no meaning in configure.
# However there are other variables, like CC, which are often used in
# configure, and could therefore not use this "fixed" $ac_aux_dir.
#
# Another solution, used here, is to always expand $ac_aux_dir to an
# absolute PATH. The drawback is that using absolute paths prevent a
# configured tree to be moved without reconfiguration.
AC_DEFUN([AM_AUX_DIR_EXPAND],
[dnl Rely on autoconf to set up CDPATH properly.
AC_PREREQ([2.50])dnl
# expand $ac_aux_dir to an absolute path
am_aux_dir=`cd $ac_aux_dir && pwd`
])
# AM_CONDITIONAL -*- Autoconf -*-
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
# Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# serial 8
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
# -------------------------------------
# Define a conditional.
AC_DEFUN([AM_CONDITIONAL],
[AC_PREREQ(2.52)dnl
ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
AC_SUBST([$1_TRUE])dnl
AC_SUBST([$1_FALSE])dnl
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
if $2; then
$1_TRUE=
$1_FALSE='#'
else
$1_TRUE='#'
$1_FALSE=
fi
AC_CONFIG_COMMANDS_PRE(
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
AC_MSG_ERROR([[conditional "$1" was never defined.
Usually this means the macro was only invoked conditionally.]])
fi])])
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
# Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# serial 9
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
# written in clear, in which case automake, when reading aclocal.m4,
# will think it sees a *use*, and therefore will trigger all it's
# C support machinery. Also note that it means that autoscan, seeing
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
# _AM_DEPENDENCIES(NAME)
# ----------------------
# See how the compiler implements dependency checking.
# NAME is "CC", "CXX", "GCJ", or "OBJC".
# We try a few techniques and use that to set a single cache variable.
#
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
# dependency, and given that the user is not expected to run this macro,
# just rely on AC_PROG_CC.
AC_DEFUN([_AM_DEPENDENCIES],
[AC_REQUIRE([AM_SET_DEPDIR])dnl
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
AC_REQUIRE([AM_DEP_TRACK])dnl
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
[$1], CXX, [depcc="$CXX" am_compiler_list=],
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
[$1], UPC, [depcc="$UPC" am_compiler_list=],
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
[depcc="$$1" am_compiler_list=])
AC_CACHE_CHECK([dependency style of $depcc],
[am_cv_$1_dependencies_compiler_type],
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
# We make a subdir and do the tests there. Otherwise we can end up
# making bogus files that we don't know about and never remove. For
# instance it was reported that on HP-UX the gcc test will end up
# making a dummy file named `D' -- because `-MD' means `put the output
# in D'.
mkdir conftest.dir
# Copy depcomp to subdir because otherwise we won't find it if we're
# using a relative directory.
cp "$am_depcomp" conftest.dir
cd conftest.dir
# We will build objects and dependencies in a subdirectory because
# it helps to detect inapplicable dependency modes. For instance
# both Tru64's cc and ICC support -MD to output dependencies as a
# side effect of compilation, but ICC will put the dependencies in
# the current directory while Tru64 will put them in the object
# directory.
mkdir sub
am_cv_$1_dependencies_compiler_type=none
if test "$am_compiler_list" = ""; then
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
fi
for depmode in $am_compiler_list; do
# Setup a source with many dependencies, because some compilers
# like to wrap large dependency lists on column 80 (with \), and
# we should not choose a depcomp mode which is confused by this.
#
# We need to recreate these files for each test, as the compiler may
# overwrite some of them when testing with obscure command lines.
# This happens at least with the AIX C compiler.
: > sub/conftest.c
for i in 1 2 3 4 5 6; do
echo '#include "conftst'$i'.h"' >> sub/conftest.c
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
# Solaris 8's {/usr,}/bin/sh.
touch sub/conftst$i.h
done
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
case $depmode in
nosideeffect)
# after this tag, mechanisms are not by side-effect, so they'll
# only be used when explicitly requested
if test "x$enable_dependency_tracking" = xyes; then
continue
else
break
fi
;;
none) break ;;
esac
# We check with `-c' and `-o' for the sake of the "dashmstdout"
# mode. It turns out that the SunPro C++ compiler does not properly
# handle `-M -o', and we need to detect this.
if depmode=$depmode \
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
>/dev/null 2>conftest.err &&
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
# icc doesn't choke on unknown options, it will just issue warnings
# or remarks (even with -Werror). So we grep stderr for any message
# that says an option was ignored or not supported.
# When given -MP, icc 7.0 and 7.1 complain thusly:
# icc: Command line warning: ignoring option '-M'; no argument required
# The diagnosis changed in icc 8.0:
# icc: Command line remark: option '-MP' not supported
if (grep 'ignoring option' conftest.err ||
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
am_cv_$1_dependencies_compiler_type=$depmode
break
fi
fi
done
cd ..
rm -rf conftest.dir
else
am_cv_$1_dependencies_compiler_type=none
fi
])
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
AM_CONDITIONAL([am__fastdep$1], [
test "x$enable_dependency_tracking" != xno \
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3])
])
# AM_SET_DEPDIR
# -------------
# Choose a directory name for dependency files.
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
AC_DEFUN([AM_SET_DEPDIR],
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
])
# AM_DEP_TRACK
# ------------
AC_DEFUN([AM_DEP_TRACK],
[AC_ARG_ENABLE(dependency-tracking,
[ --disable-dependency-tracking speeds up one-time build
--enable-dependency-tracking do not reject slow dependency extractors])
if test "x$enable_dependency_tracking" != xno; then
am_depcomp="$ac_aux_dir/depcomp"
AMDEPBACKSLASH='\'
fi
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
AC_SUBST([AMDEPBACKSLASH])dnl
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
])
# Generate code to set up dependency tracking. -*- Autoconf -*-
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
# Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
#serial 3
# _AM_OUTPUT_DEPENDENCY_COMMANDS
# ------------------------------
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
[for mf in $CONFIG_FILES; do
# Strip MF so we end up with the name of the file.
mf=`echo "$mf" | sed -e 's/:.*$//'`
# Check whether this is an Automake generated Makefile or not.
# We used to match only the files named `Makefile.in', but
# some people rename them; so instead we look at the file content.
# Grep'ing the first line is not enough: some people post-process
# each Makefile.in and add a new line on top of each file to say so.
# Grep'ing the whole file is not good either: AIX grep has a line
# limit of 2048, but all sed's we know have understand at least 4000.
if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
dirpart=`AS_DIRNAME("$mf")`
else
continue
fi
# Extract the definition of DEPDIR, am__include, and am__quote
# from the Makefile without running `make'.
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
test -z "$DEPDIR" && continue
am__include=`sed -n 's/^am__include = //p' < "$mf"`
test -z "am__include" && continue
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
# When using ansi2knr, U may be empty or an underscore; expand it
U=`sed -n 's/^U = //p' < "$mf"`
# Find all dependency output files, they are included files with
# $(DEPDIR) in their names. We invoke sed twice because it is the
# simplest approach to changing $(DEPDIR) to its actual value in the
# expansion.
for file in `sed -n "
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
# Make sure the directory exists.
test -f "$dirpart/$file" && continue
fdir=`AS_DIRNAME(["$file"])`
AS_MKDIR_P([$dirpart/$fdir])
# echo "creating $dirpart/$file"
echo '# dummy' > "$dirpart/$file"
done
done
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
# AM_OUTPUT_DEPENDENCY_COMMANDS
# -----------------------------
# This macro should only be invoked once -- use via AC_REQUIRE.
#
# This code is only required when automatic dependency tracking
# is enabled. FIXME. This creates each `.P' file that we will
# need in order to bootstrap the dependency handling code.
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
[AC_CONFIG_COMMANDS([depfiles],
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
])
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
# Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# serial 8
# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
# Do all the work for Automake. -*- Autoconf -*-
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
# 2005, 2006 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# serial 12
# This macro actually does too much. Some checks are only needed if
# your package does certain things. But this isn't really a big deal.
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
# AM_INIT_AUTOMAKE([OPTIONS])
# -----------------------------------------------
# The call with PACKAGE and VERSION arguments is the old style
# call (pre autoconf-2.50), which is being phased out. PACKAGE
# and VERSION should now be passed to AC_INIT and removed from
# the call to AM_INIT_AUTOMAKE.
# We support both call styles for the transition. After
# the next Automake release, Autoconf can make the AC_INIT
# arguments mandatory, and then we can depend on a new Autoconf
# release and drop the old call support.
AC_DEFUN([AM_INIT_AUTOMAKE],
[AC_PREREQ([2.60])dnl
dnl Autoconf wants to disallow AM_ names. We explicitly allow
dnl the ones we care about.
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
AC_REQUIRE([AC_PROG_INSTALL])dnl
if test "`cd $srcdir && pwd`" != "`pwd`"; then
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
# is not polluted with repeated "-I."
AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
# test to see if srcdir already configured
if test -f $srcdir/config.status; then
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
fi
fi
# test whether we have cygpath
if test -z "$CYGPATH_W"; then
if (cygpath --version) >/dev/null 2>/dev/null; then
CYGPATH_W='cygpath -w'
else
CYGPATH_W=echo
fi
fi
AC_SUBST([CYGPATH_W])
# Define the identity of the package.
dnl Distinguish between old-style and new-style calls.
m4_ifval([$2],
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
AC_SUBST([PACKAGE], [$1])dnl
AC_SUBST([VERSION], [$2])],
[_AM_SET_OPTIONS([$1])dnl
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
[m4_fatal([AC_INIT should be called with package and version arguments])])dnl
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
_AM_IF_OPTION([no-define],,
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
# Some tools Automake needs.
AC_REQUIRE([AM_SANITY_CHECK])dnl
AC_REQUIRE([AC_ARG_PROGRAM])dnl
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
AM_MISSING_PROG(AUTOCONF, autoconf)
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
AM_MISSING_PROG(AUTOHEADER, autoheader)
AM_MISSING_PROG(MAKEINFO, makeinfo)
AM_PROG_INSTALL_SH
AM_PROG_INSTALL_STRIP
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
# We need awk for the "check" target. The system "awk" is bad on
# some platforms.
AC_REQUIRE([AC_PROG_AWK])dnl
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
[_AM_PROG_TAR([v7])])])
_AM_IF_OPTION([no-dependencies],,
[AC_PROVIDE_IFELSE([AC_PROG_CC],
[_AM_DEPENDENCIES(CC)],
[define([AC_PROG_CC],
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
AC_PROVIDE_IFELSE([AC_PROG_CXX],
[_AM_DEPENDENCIES(CXX)],
[define([AC_PROG_CXX],
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
[_AM_DEPENDENCIES(OBJC)],
[define([AC_PROG_OBJC],
defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
])
])
# When config.status generates a header, we must update the stamp-h file.
# This file resides in the same directory as the config header
# that is generated. The stamp files are numbered to have different names.
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
# loop where config.status creates the headers, so we can generate
# our stamp files there.
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
[# Compute $1's index in $config_headers.
_am_stamp_count=1
for _am_header in $config_headers :; do
case $_am_header in
$1 | $1:* )
break ;;
* )
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
esac
done
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# AM_PROG_INSTALL_SH
# ------------------
# Define $install_sh.
AC_DEFUN([AM_PROG_INSTALL_SH],
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
AC_SUBST(install_sh)])
# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# serial 2
# Check whether the underlying file-system supports filenames
# with a leading dot. For instance MS-DOS doesn't.
AC_DEFUN([AM_SET_LEADING_DOT],
[rm -rf .tst 2>/dev/null
mkdir .tst 2>/dev/null
if test -d .tst; then
am__leading_dot=.
else
am__leading_dot=_
fi
rmdir .tst 2>/dev/null
AC_SUBST([am__leading_dot])])
# Check to see how 'make' treats includes. -*- Autoconf -*-
# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# serial 3
# AM_MAKE_INCLUDE()
# -----------------
# Check to see how make treats includes.
AC_DEFUN([AM_MAKE_INCLUDE],
[am_make=${MAKE-make}
cat > confinc << 'END'
am__doit:
@echo done
.PHONY: am__doit
END
# If we don't find an include directive, just comment out the code.
AC_MSG_CHECKING([for style of include used by $am_make])
am__include="#"
am__quote=
_am_result=none
# First try GNU make style include.
echo "include confinc" > confmf
# We grep out `Entering directory' and `Leaving directory'
# messages which can occur if `w' ends up in MAKEFLAGS.
# In particular we don't look at `^make:' because GNU make might
# be invoked under some other name (usually "gmake"), in which
# case it prints its new name instead of `make'.
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
am__include=include
am__quote=
_am_result=GNU
fi
# Now try BSD make style include.
if test "$am__include" = "#"; then
echo '.include "confinc"' > confmf
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
am__include=.include
am__quote="\""
_am_result=BSD
fi
fi
AC_SUBST([am__include])
AC_SUBST([am__quote])
AC_MSG_RESULT([$_am_result])
rm -f confinc confmf
])
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
# Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# serial 5
# AM_MISSING_PROG(NAME, PROGRAM)
# ------------------------------
AC_DEFUN([AM_MISSING_PROG],
[AC_REQUIRE([AM_MISSING_HAS_RUN])
$1=${$1-"${am_missing_run}$2"}
AC_SUBST($1)])
# AM_MISSING_HAS_RUN
# ------------------
# Define MISSING if not defined so far and test if it supports --run.
# If it does, set am_missing_run to use it, otherwise, to nothing.
AC_DEFUN([AM_MISSING_HAS_RUN],
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
AC_REQUIRE_AUX_FILE([missing])dnl
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
# Use eval to expand $SHELL
if eval "$MISSING --run true"; then
am_missing_run="$MISSING --run "
else
am_missing_run=
AC_MSG_WARN([`missing' script is too old or missing])
fi
])
# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# AM_PROG_MKDIR_P
# ---------------
# Check for `mkdir -p'.
AC_DEFUN([AM_PROG_MKDIR_P],
[AC_PREREQ([2.60])dnl
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
dnl while keeping a definition of mkdir_p for backward compatibility.
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
dnl Makefile.ins that do not define MKDIR_P, so we do our own
dnl adjustment using top_builddir (which is defined more often than
dnl MKDIR_P).
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
case $mkdir_p in
[[\\/$]]* | ?:[[\\/]]*) ;;
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
esac
])
# Helper functions for option handling. -*- Autoconf -*-
# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# serial 3
# _AM_MANGLE_OPTION(NAME)
# -----------------------
AC_DEFUN([_AM_MANGLE_OPTION],
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
# _AM_SET_OPTION(NAME)
# ------------------------------
# Set option NAME. Presently that only means defining a flag for this option.
AC_DEFUN([_AM_SET_OPTION],
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
# _AM_SET_OPTIONS(OPTIONS)
# ----------------------------------
# OPTIONS is a space-separated list of Automake options.
AC_DEFUN([_AM_SET_OPTIONS],
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
# -------------------------------------------
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
AC_DEFUN([_AM_IF_OPTION],
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
# Check to make sure that the build environment is sane. -*- Autoconf -*-
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
# Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# serial 4
# AM_SANITY_CHECK
# ---------------
AC_DEFUN([AM_SANITY_CHECK],
[AC_MSG_CHECKING([whether build environment is sane])
# Just in case
sleep 1
echo timestamp > conftest.file
# Do `set' in a subshell so we don't clobber the current shell's
# arguments. Must try -L first in case configure is actually a
# symlink; some systems play weird games with the mod time of symlinks
# (eg FreeBSD returns the mod time of the symlink's containing
# directory).
if (
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
if test "$[*]" = "X"; then
# -L didn't work.
set X `ls -t $srcdir/configure conftest.file`
fi
rm -f conftest.file
if test "$[*]" != "X $srcdir/configure conftest.file" \
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
# If neither matched, then we have a broken ls. This can happen
# if, for instance, CONFIG_SHELL is bash and it inherits a
# broken ls alias from the environment. This has actually
# happened. Such a system could not be considered "sane".
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
alias in your environment])
fi
test "$[2]" = conftest.file
)
then
# Ok.
:
else
AC_MSG_ERROR([newly created file is older than distributed files!
Check your system clock])
fi
AC_MSG_RESULT(yes)])
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# AM_PROG_INSTALL_STRIP
# ---------------------
# One issue with vendor `install' (even GNU) is that you can't
# specify the program used to strip binaries. This is especially
# annoying in cross-compiling environments, where the build's strip
# is unlikely to handle the host's binaries.
# Fortunately install-sh will honor a STRIPPROG variable, so we
# always use install-sh in `make install-strip', and initialize
# STRIPPROG with the value of the STRIP variable (set by the user).
AC_DEFUN([AM_PROG_INSTALL_STRIP],
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
# Installed binaries are usually stripped using `strip' when the user
# run `make install-strip'. However `strip' might not be the right
# tool to use in cross-compilation environments, therefore Automake
# will honor the `STRIP' environment variable to overrule this program.
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
if test "$cross_compiling" != no; then
AC_CHECK_TOOL([STRIP], [strip], :)
fi
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
AC_SUBST([INSTALL_STRIP_PROGRAM])])
# Copyright (C) 2006 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# _AM_SUBST_NOTMAKE(VARIABLE)
# ---------------------------
# Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in.
# This macro is traced by Automake.
AC_DEFUN([_AM_SUBST_NOTMAKE])
# Check how to create a tarball. -*- Autoconf -*-
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# serial 2
# _AM_PROG_TAR(FORMAT)
# --------------------
# Check how to create a tarball in format FORMAT.
# FORMAT should be one of `v7', `ustar', or `pax'.
#
# Substitute a variable $(am__tar) that is a command
# writing to stdout a FORMAT-tarball containing the directory
# $tardir.
# tardir=directory && $(am__tar) > result.tar
#
# Substitute a variable $(am__untar) that extract such
# a tarball read from stdin.
# $(am__untar) < result.tar
AC_DEFUN([_AM_PROG_TAR],
[# Always define AMTAR for backward compatibility.
AM_MISSING_PROG([AMTAR], [tar])
m4_if([$1], [v7],
[am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
[m4_case([$1], [ustar],, [pax],,
[m4_fatal([Unknown tar format])])
AC_MSG_CHECKING([how to create a $1 tar archive])
# Loop over all known methods to create a tar archive until one works.
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
# Do not fold the above two line into one, because Tru64 sh and
# Solaris sh will not grok spaces in the rhs of `-'.
for _am_tool in $_am_tools
do
case $_am_tool in
gnutar)
for _am_tar in tar gnutar gtar;
do
AM_RUN_LOG([$_am_tar --version]) && break
done
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
am__untar="$_am_tar -xf -"
;;
plaintar)
# Must skip GNU tar: if it does not support --format= it doesn't create
# ustar tarball either.
(tar --version) >/dev/null 2>&1 && continue
am__tar='tar chf - "$$tardir"'
am__tar_='tar chf - "$tardir"'
am__untar='tar xf -'
;;
pax)
am__tar='pax -L -x $1 -w "$$tardir"'
am__tar_='pax -L -x $1 -w "$tardir"'
am__untar='pax -r'
;;
cpio)
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
am__untar='cpio -i -H $1 -d'
;;
none)
am__tar=false
am__tar_=false
am__untar=false
;;
esac
# If the value was cached, stop now. We just wanted to have am__tar
# and am__untar set.
test -n "${am_cv_prog_tar_$1}" && break
# tar/untar a dummy directory, and stop if the command works
rm -rf conftest.dir
mkdir conftest.dir
echo GrepMe > conftest.dir/file
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
rm -rf conftest.dir
if test -s conftest.tar; then
AM_RUN_LOG([$am__untar <conftest.tar])
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
fi
done
rm -rf conftest.dir
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
AC_SUBST([am__tar])
AC_SUBST([am__untar])
]) # _AM_PROG_TAR
m4_include([config/ac_cxx_have_long_long.m4])
m4_include([config/ac_cxx_have_sstream.m4])
m4_include([config/ac_cxx_have_strstream.m4])
m4_include([config/ac_cxx_namespaces.m4])
m4_include([config/ac_cxx_warn_effective_cxx.m4])
m4_include([config/bb_enable_doxygen.m4])

View File

@ -0,0 +1,7 @@
EXTRA_DIST = ac_cxx_have_sstream.m4\
ac_cxx_have_strstream.m4\
ac_cxx_namespaces.m4\
bb_enable_doxygen.m4

View File

@ -0,0 +1,325 @@
# Makefile.in generated by automake 1.10 from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
@SET_MAKE@
VPATH = @srcdir@
pkgdatadir = $(datadir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_HEADER = $(INSTALL_DATA)
transform = $(program_transform_name)
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
subdir = config
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
$(srcdir)/config.h.in depcomp install-sh missing mkinstalldirs
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/config/ac_cxx_have_long_long.m4 \
$(top_srcdir)/config/ac_cxx_have_sstream.m4 \
$(top_srcdir)/config/ac_cxx_have_strstream.m4 \
$(top_srcdir)/config/ac_cxx_namespaces.m4 \
$(top_srcdir)/config/ac_cxx_warn_effective_cxx.m4 \
$(top_srcdir)/config/bb_enable_doxygen.m4 \
$(top_srcdir)/configure.in
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
$(ACLOCAL_M4)
mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
CONFIG_HEADER = config.h
CONFIG_CLEAN_FILES =
SOURCES =
DIST_SOURCES =
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
ACLOCAL = @ACLOCAL@
AMTAR = @AMTAR@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
CPPFLAGS = @CPPFLAGS@
CXX = @CXX@
CXXCPP = @CXXCPP@
CXXDEPMODE = @CXXDEPMODE@
CXXFLAGS = @CXXFLAGS@
CYGPATH_W = @CYGPATH_W@
DEFS = @DEFS@
DEPDIR = @DEPDIR@
DOT = @DOT@
DOXYGEN = @DOXYGEN@
ECHO_C = @ECHO_C@
ECHO_N = @ECHO_N@
ECHO_T = @ECHO_T@
EGREP = @EGREP@
EXEEXT = @EXEEXT@
GREP = @GREP@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
LDFLAGS = @LDFLAGS@
LIBOBJS = @LIBOBJS@
LIBS = @LIBS@
LTLIBOBJS = @LTLIBOBJS@
MAKEINFO = @MAKEINFO@
MKDIR_P = @MKDIR_P@
OBJEXT = @OBJEXT@
PACKAGE = @PACKAGE@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_STRING = @PACKAGE_STRING@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
PACKAGE_VERSION = @PACKAGE_VERSION@
PATH_SEPARATOR = @PATH_SEPARATOR@
RANLIB = @RANLIB@
SET_MAKE = @SET_MAKE@
SHELL = @SHELL@
STRIP = @STRIP@
VERSION = @VERSION@
WARN_EFFECTIVE_CXX = @WARN_EFFECTIVE_CXX@
WARN_NO_EFFECTIVE_CXX = @WARN_NO_EFFECTIVE_CXX@
abs_builddir = @abs_builddir@
abs_srcdir = @abs_srcdir@
abs_top_builddir = @abs_top_builddir@
abs_top_srcdir = @abs_top_srcdir@
ac_ct_CXX = @ac_ct_CXX@
am__include = @am__include@
am__leading_dot = @am__leading_dot@
am__quote = @am__quote@
am__tar = @am__tar@
am__untar = @am__untar@
bindir = @bindir@
build_alias = @build_alias@
builddir = @builddir@
datadir = @datadir@
datarootdir = @datarootdir@
docdir = @docdir@
dvidir = @dvidir@
exec_prefix = @exec_prefix@
host_alias = @host_alias@
htmldir = @htmldir@
includedir = @includedir@
infodir = @infodir@
install_sh = @install_sh@
libdir = @libdir@
libexecdir = @libexecdir@
localedir = @localedir@
localstatedir = @localstatedir@
mandir = @mandir@
mkdir_p = @mkdir_p@
oldincludedir = @oldincludedir@
pdfdir = @pdfdir@
prefix = @prefix@
program_transform_name = @program_transform_name@
psdir = @psdir@
sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
srcdir = @srcdir@
sysconfdir = @sysconfdir@
target_alias = @target_alias@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
EXTRA_DIST = ac_cxx_have_sstream.m4\
ac_cxx_have_strstream.m4\
ac_cxx_namespaces.m4\
bb_enable_doxygen.m4
all: config.h
$(MAKE) $(AM_MAKEFLAGS) all-am
.SUFFIXES:
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
@for dep in $?; do \
case '$(am__configure_deps)' in \
*$$dep*) \
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
&& exit 0; \
exit 1;; \
esac; \
done; \
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu config/Makefile'; \
cd $(top_srcdir) && \
$(AUTOMAKE) --gnu config/Makefile
.PRECIOUS: Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
@case '$?' in \
*config.status*) \
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
*) \
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
esac;
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(top_srcdir)/configure: $(am__configure_deps)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
config.h: stamp-h1
@if test ! -f $@; then \
rm -f stamp-h1; \
$(MAKE) $(AM_MAKEFLAGS) stamp-h1; \
else :; fi
stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
@rm -f stamp-h1
cd $(top_builddir) && $(SHELL) ./config.status config/config.h
$(srcdir)/config.h.in: $(am__configure_deps)
cd $(top_srcdir) && $(AUTOHEADER)
rm -f stamp-h1
touch $@
distclean-hdr:
-rm -f config.h stamp-h1
tags: TAGS
TAGS:
ctags: CTAGS
CTAGS:
distdir: $(DISTFILES)
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
list='$(DISTFILES)'; \
dist_files=`for file in $$list; do echo $$file; done | \
sed -e "s|^$$srcdirstrip/||;t" \
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
case $$dist_files in \
*/*) $(MKDIR_P) `echo "$$dist_files" | \
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
sort -u` ;; \
esac; \
for file in $$dist_files; do \
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
if test -d $$d/$$file; then \
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
fi; \
cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
else \
test -f $(distdir)/$$file \
|| cp -p $$d/$$file $(distdir)/$$file \
|| exit 1; \
fi; \
done
check-am: all-am
check: check-am
all-am: Makefile config.h
installdirs:
install: install-am
install-exec: install-exec-am
install-data: install-data-am
uninstall: uninstall-am
install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
installcheck: installcheck-am
install-strip:
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
`test -z '$(STRIP)' || \
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
mostlyclean-generic:
clean-generic:
distclean-generic:
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
@echo "it deletes files that may require special tools to rebuild."
clean: clean-am
clean-am: clean-generic mostlyclean-am
distclean: distclean-am
-rm -f Makefile
distclean-am: clean-am distclean-generic distclean-hdr
dvi: dvi-am
dvi-am:
html: html-am
info: info-am
info-am:
install-data-am:
install-dvi: install-dvi-am
install-exec-am:
install-html: install-html-am
install-info: install-info-am
install-man:
install-pdf: install-pdf-am
install-ps: install-ps-am
installcheck-am:
maintainer-clean: maintainer-clean-am
-rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic
mostlyclean: mostlyclean-am
mostlyclean-am: mostlyclean-generic
pdf: pdf-am
pdf-am:
ps: ps-am
ps-am:
uninstall-am:
.MAKE: install-am install-strip
.PHONY: all all-am check check-am clean clean-generic distclean \
distclean-generic distclean-hdr distdir dvi dvi-am html \
html-am info info-am install install-am install-data \
install-data-am install-dvi install-dvi-am install-exec \
install-exec-am install-html install-html-am install-info \
install-info-am install-man install-pdf install-pdf-am \
install-ps install-ps-am install-strip installcheck \
installcheck-am installdirs maintainer-clean \
maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
pdf-am ps ps-am uninstall uninstall-am
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:

View File

@ -0,0 +1,19 @@
dnl @synopsis AC_CXX_HAVE_LONG_LONG
dnl
dnl If the C++ implementation have a long long type
dnl
AC_DEFUN([AC_CXX_HAVE_LONG_LONG],
[AC_LANG_SAVE
AC_LANG_CPLUSPLUS
AC_TRY_COMPILE([],[long long x = 1; return 0;],
ac_cv_cxx_have_long_long=yes, ac_cv_cxx_have_long_long=no)
if test "$ac_cv_cxx_have_long_long" = yes; then
AC_DEFINE(HAVE_LONG_LONG, 1,
[define if the C++ implementation have long long])
else
AC_DEFINE(HAVE_LONG_LONG, 0,
[define if the C++ implementation have long long])
fi
AC_LANG_RESTORE
])

View File

@ -0,0 +1,25 @@
dnl @synopsis AC_CXX_HAVE_SSTREAM
dnl
dnl If the C++ library has a working stringstream, define HAVE_SSTREAM.
dnl
dnl @author Ben Stanley
dnl @version $Id: ac_cxx_have_sstream.m4,v 1.2 2006/02/22 02:10:28 zeekec Exp $
dnl
AC_DEFUN([AC_CXX_HAVE_SSTREAM],
[AC_REQUIRE([AC_CXX_NAMESPACES])
AC_LANG_SAVE
AC_LANG_CPLUSPLUS
AC_CHECK_HEADERS(sstream)
AC_CACHE_CHECK([whether the STL defines stringstream],
[ac_cv_cxx_have_sstream],
[AC_TRY_COMPILE([#include <sstream>
#ifdef HAVE_NAMESPACES
using namespace std;
#endif],[stringstream message; message << "Hello"; return 0;],
ac_cv_cxx_have_sstream=yes, ac_cv_cxx_have_sstream=no)
])
if test "$ac_cv_cxx_have_sstream" = yes; then
AC_DEFINE(HAVE_SSTREAM,1,[define if the compiler has stringstream])
fi
AC_LANG_RESTORE
])

View File

@ -0,0 +1,28 @@
dnl @synopsis AC_CXX_HAVE_STRSTREAM
dnl
dnl If the C++ library has a working strstream, define HAVE_CLASS_STRSTREAM.
dnl
dnl Adapted from ac_cxx_have_sstream.m4 by Steve Robbins
dnl
AC_DEFUN([AC_CXX_HAVE_STRSTREAM],
[AC_REQUIRE([AC_CXX_NAMESPACES])
AC_LANG_SAVE
AC_LANG_CPLUSPLUS
AC_CHECK_HEADERS(strstream)
AC_CACHE_CHECK([whether the STL defines strstream],
[ac_cv_cxx_have_class_strstream],
[AC_TRY_COMPILE([#if HAVE_STRSTREAM
# include <strstream>
#else
# include <strstream.h>
#endif
#ifdef HAVE_NAMESPACES
using namespace std;
#endif],[ostrstream message; message << "Hello"; return 0;],
ac_cv_cxx_have_class_strstream=yes, ac_cv_cxx_have_class_strstream=no)
])
if test "$ac_cv_cxx_have_class_strstream" = yes; then
AC_DEFINE(HAVE_CLASS_STRSTREAM,1,[define if the library defines strstream])
fi
AC_LANG_RESTORE
])

View File

@ -0,0 +1,22 @@
dnl @synopsis AC_CXX_NAMESPACES
dnl
dnl If the compiler can prevent names clashes using namespaces, define
dnl HAVE_NAMESPACES.
dnl
dnl @version $Id: ac_cxx_namespaces.m4,v 1.1.1.1 2003/03/19 02:40:00 mes5k Exp $
dnl @author Luc Maisonobe
dnl
AC_DEFUN([AC_CXX_NAMESPACES],
[AC_CACHE_CHECK(whether the compiler implements namespaces,
ac_cv_cxx_namespaces,
[AC_LANG_SAVE
AC_LANG_CPLUSPLUS
AC_TRY_COMPILE([namespace Outer { namespace Inner { int i = 0; }}],
[using namespace Outer::Inner; return i;],
ac_cv_cxx_namespaces=yes, ac_cv_cxx_namespaces=no)
AC_LANG_RESTORE
])
if test "$ac_cv_cxx_namespaces" = yes; then
AC_DEFINE(HAVE_NAMESPACES,1,[define to 1 if the compiler implements namespaces])
fi
])

View File

@ -0,0 +1,31 @@
dnl HAVE_WARN_EFFECTIVE_CXX
dnl ----------------------
dnl
dnl If the C++ compiler accepts the `-Weffc++' flag,
dnl set output variable `WARN_EFFECTIVE_CXX' to `-Weffc++' and
dnl `WARN_NO_EFFECTIVE_CXX' to `-Wno-effc++'. Otherwise,
dnl leave both empty.
dnl
AC_DEFUN([HAVE_WARN_EFFECTIVE_CXX],
[
AC_REQUIRE([AC_PROG_CXX])
AC_MSG_CHECKING([whether the C++ compiler (${CXX}) accepts -Weffc++])
AC_CACHE_VAL([cv_warn_effective_cxx],
[
AC_LANG_SAVE
AC_LANG_CPLUSPLUS
save_cxxflags="$CXXFLAGS"
CXXFLAGS="$CXXFLAGS -Weffc++"
AC_TRY_COMPILE([],[main();],
[cv_warn_effective_cxx=yes], [cv_warn_effective_cxx=no])
CXXFLAGS="$save_cxxflags"
AC_LANG_RESTORE
])
AC_MSG_RESULT([$cv_warn_effective_cxx])
if test "$cv_warn_effective_cxx" = yes; then
WARN_EFFECTIVE_CXX=-Weffc++
WARN_NO_EFFECTIVE_CXX=-Wno-effc++
fi
AC_SUBST([WARN_EFFECTIVE_CXX])
AC_SUBST([WARN_NO_EFFECTIVE_CXX])
])

View File

@ -0,0 +1,18 @@
AC_DEFUN([BB_ENABLE_DOXYGEN],
[
AC_ARG_ENABLE(doxygen, [--enable-doxygen enable documentation generation with doxygen (auto)])
if test "x$enable_doxygen" = xno; then
enable_doc=no
else
AC_PATH_PROG(DOXYGEN, doxygen, , $PATH)
if test x$DOXYGEN = x; then
if test "x$enable_doxygen" = xyes; then
AC_MSG_ERROR([could not find doxygen])
fi
enable_doc=no
else
enable_doc=yes
fi
fi
AM_CONDITIONAL(DOC, test x$enable_doc = xyes)
])

View File

@ -0,0 +1,67 @@
/* config/config.h.in. Generated from configure.in by autoheader. */
/* define if the library defines strstream */
#undef HAVE_CLASS_STRSTREAM
/* Define to 1 if you have the <inttypes.h> header file. */
#undef HAVE_INTTYPES_H
/* define if the C++ implementation have long long */
#undef HAVE_LONG_LONG
/* Define to 1 if you have the <memory.h> header file. */
#undef HAVE_MEMORY_H
/* define to 1 if the compiler implements namespaces */
#undef HAVE_NAMESPACES
/* define if the compiler has stringstream */
#undef HAVE_SSTREAM
/* Define to 1 if you have the <stdint.h> header file. */
#undef HAVE_STDINT_H
/* Define to 1 if you have the <stdlib.h> header file. */
#undef HAVE_STDLIB_H
/* Define to 1 if you have the <strings.h> header file. */
#undef HAVE_STRINGS_H
/* Define to 1 if you have the <string.h> header file. */
#undef HAVE_STRING_H
/* Define to 1 if you have the <strstream> header file. */
#undef HAVE_STRSTREAM
/* Define to 1 if you have the <sys/stat.h> header file. */
#undef HAVE_SYS_STAT_H
/* Define to 1 if you have the <sys/types.h> header file. */
#undef HAVE_SYS_TYPES_H
/* Define to 1 if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H
/* Name of package */
#undef PACKAGE
/* Define to the address where bug reports for this package should be sent. */
#undef PACKAGE_BUGREPORT
/* Define to the full name of this package. */
#undef PACKAGE_NAME
/* Define to the full name and version of this package. */
#undef PACKAGE_STRING
/* Define to the one symbol short name of this package. */
#undef PACKAGE_TARNAME
/* Define to the version of this package. */
#undef PACKAGE_VERSION
/* Define to 1 if you have the ANSI C header files. */
#undef STDC_HEADERS
/* Version number of package */
#undef VERSION

View File

@ -0,0 +1,411 @@
#! /bin/sh
# depcomp - compile a program generating dependencies as side-effects
# Copyright 1999, 2000 Free Software Foundation, Inc.
# 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, 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., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.
# Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
if test -z "$depmode" || test -z "$source" || test -z "$object"; then
echo "depcomp: Variables source, object and depmode must be set" 1>&2
exit 1
fi
# `libtool' can also be set to `yes' or `no'.
depfile=${depfile-`echo "$object" | sed 's,\([^/]*\)$,.deps/\1,;s/\.\([^.]*\)$/.P\1/'`}
tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
rm -f "$tmpdepfile"
# Some modes work just like other modes, but use different flags. We
# parameterize here, but still list the modes in the big case below,
# to make depend.m4 easier to write. Note that we *cannot* use a case
# here, because this file can only contain one case statement.
if test "$depmode" = hp; then
# HP compiler uses -M and no extra arg.
gccflag=-M
depmode=gcc
fi
if test "$depmode" = dashXmstdout; then
# This is just like dashmstdout with a different argument.
dashmflag=-xM
depmode=dashmstdout
fi
case "$depmode" in
gcc3)
## gcc 3 implements dependency tracking that does exactly what
## we want. Yay! Note: for some reason libtool 1.4 doesn't like
## it if -MD -MP comes after the -MF stuff. Hmm.
"$@" -MT "$object" -MD -MP -MF "$tmpdepfile"
stat=$?
if test $stat -eq 0; then :
else
rm -f "$tmpdepfile"
exit $stat
fi
mv "$tmpdepfile" "$depfile"
;;
gcc)
## There are various ways to get dependency output from gcc. Here's
## why we pick this rather obscure method:
## - Don't want to use -MD because we'd like the dependencies to end
## up in a subdir. Having to rename by hand is ugly.
## (We might end up doing this anyway to support other compilers.)
## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
## -MM, not -M (despite what the docs say).
## - Using -M directly means running the compiler twice (even worse
## than renaming).
if test -z "$gccflag"; then
gccflag=-MD,
fi
"$@" -Wp,"$gccflag$tmpdepfile"
stat=$?
if test $stat -eq 0; then :
else
rm -f "$tmpdepfile"
exit $stat
fi
rm -f "$depfile"
echo "$object : \\" > "$depfile"
alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
## The second -e expression handles DOS-style file names with drive letters.
sed -e 's/^[^:]*: / /' \
-e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
## This next piece of magic avoids the `deleted header file' problem.
## The problem is that when a header file which appears in a .P file
## is deleted, the dependency causes make to die (because there is
## typically no way to rebuild the header). We avoid this by adding
## dummy dependencies for each header file. Too bad gcc doesn't do
## this for us directly.
tr ' ' '
' < "$tmpdepfile" |
## Some versions of gcc put a space before the `:'. On the theory
## that the space means something, we add a space to the output as
## well.
## Some versions of the HPUX 10.20 sed can't process this invocation
## correctly. Breaking it into two sed invocations is a workaround.
sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
rm -f "$tmpdepfile"
;;
hp)
# This case exists only to let depend.m4 do its work. It works by
# looking at the text of this script. This case will never be run,
# since it is checked for above.
exit 1
;;
sgi)
if test "$libtool" = yes; then
"$@" "-Wp,-MDupdate,$tmpdepfile"
else
"$@" -MDupdate "$tmpdepfile"
fi
stat=$?
if test $stat -eq 0; then :
else
rm -f "$tmpdepfile"
exit $stat
fi
rm -f "$depfile"
if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
echo "$object : \\" > "$depfile"
# Clip off the initial element (the dependent). Don't try to be
# clever and replace this with sed code, as IRIX sed won't handle
# lines with more than a fixed number of characters (4096 in
# IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
# the IRIX cc adds comments like `#:fec' to the end of the
# dependency line.
tr ' ' '
' < "$tmpdepfile" \
| sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
tr '
' ' ' >> $depfile
echo >> $depfile
# The second pass generates a dummy entry for each header file.
tr ' ' '
' < "$tmpdepfile" \
| sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
>> $depfile
else
# The sourcefile does not contain any dependencies, so just
# store a dummy comment line, to avoid errors with the Makefile
# "include basename.Plo" scheme.
echo "#dummy" > "$depfile"
fi
rm -f "$tmpdepfile"
;;
aix)
# The C for AIX Compiler uses -M and outputs the dependencies
# in a .u file. This file always lives in the current directory.
# Also, the AIX compiler puts `$object:' at the start of each line;
# $object doesn't have directory information.
stripped=`echo "$object" | sed -e 's,^.*/,,' -e 's/\(.*\)\..*$/\1/'`
tmpdepfile="$stripped.u"
outname="$stripped.o"
if test "$libtool" = yes; then
"$@" -Wc,-M
else
"$@" -M
fi
stat=$?
if test $stat -eq 0; then :
else
rm -f "$tmpdepfile"
exit $stat
fi
if test -f "$tmpdepfile"; then
# Each line is of the form `foo.o: dependent.h'.
# Do two passes, one to just change these to
# `$object: dependent.h' and one to simply `dependent.h:'.
sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile"
sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile"
else
# The sourcefile does not contain any dependencies, so just
# store a dummy comment line, to avoid errors with the Makefile
# "include basename.Plo" scheme.
echo "#dummy" > "$depfile"
fi
rm -f "$tmpdepfile"
;;
tru64)
# The Tru64 AIX compiler uses -MD to generate dependencies as a side
# effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
# At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
# dependencies in `foo.d' instead, so we check for that too.
# Subdirectories are respected.
tmpdepfile1="$object.d"
tmpdepfile2=`echo "$object" | sed -e 's/.o$/.d/'`
if test "$libtool" = yes; then
"$@" -Wc,-MD
else
"$@" -MD
fi
stat=$?
if test $stat -eq 0; then :
else
rm -f "$tmpdepfile1" "$tmpdepfile2"
exit $stat
fi
if test -f "$tmpdepfile1"; then
tmpdepfile="$tmpdepfile1"
else
tmpdepfile="$tmpdepfile2"
fi
if test -f "$tmpdepfile"; then
sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
# That's a space and a tab in the [].
sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
else
echo "#dummy" > "$depfile"
fi
rm -f "$tmpdepfile"
;;
#nosideeffect)
# This comment above is used by automake to tell side-effect
# dependency tracking mechanisms from slower ones.
dashmstdout)
# Important note: in order to support this mode, a compiler *must*
# always write the proprocessed file to stdout, regardless of -o,
# because we must use -o when running libtool.
test -z "$dashmflag" && dashmflag=-M
( IFS=" "
case " $* " in
*" --mode=compile "*) # this is libtool, let us make it quiet
for arg
do # cycle over the arguments
case "$arg" in
"--mode=compile")
# insert --quiet before "--mode=compile"
set fnord "$@" --quiet
shift # fnord
;;
esac
set fnord "$@" "$arg"
shift # fnord
shift # "$arg"
done
;;
esac
"$@" $dashmflag | sed 's:^[^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile"
) &
proc=$!
"$@"
stat=$?
wait "$proc"
if test "$stat" != 0; then exit $stat; fi
rm -f "$depfile"
cat < "$tmpdepfile" > "$depfile"
tr ' ' '
' < "$tmpdepfile" | \
## Some versions of the HPUX 10.20 sed can't process this invocation
## correctly. Breaking it into two sed invocations is a workaround.
sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
rm -f "$tmpdepfile"
;;
dashXmstdout)
# This case only exists to satisfy depend.m4. It is never actually
# run, as this mode is specially recognized in the preamble.
exit 1
;;
makedepend)
# X makedepend
(
shift
cleared=no
for arg in "$@"; do
case $cleared in no)
set ""; shift
cleared=yes
esac
case "$arg" in
-D*|-I*)
set fnord "$@" "$arg"; shift;;
-*)
;;
*)
set fnord "$@" "$arg"; shift;;
esac
done
obj_suffix="`echo $object | sed 's/^.*\././'`"
touch "$tmpdepfile"
${MAKEDEPEND-makedepend} 2>/dev/null -o"$obj_suffix" -f"$tmpdepfile" "$@"
) &
proc=$!
"$@"
stat=$?
wait "$proc"
if test "$stat" != 0; then exit $stat; fi
rm -f "$depfile"
cat < "$tmpdepfile" > "$depfile"
tail +3 "$tmpdepfile" | tr ' ' '
' | \
## Some versions of the HPUX 10.20 sed can't process this invocation
## correctly. Breaking it into two sed invocations is a workaround.
sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
rm -f "$tmpdepfile" "$tmpdepfile".bak
;;
cpp)
# Important note: in order to support this mode, a compiler *must*
# always write the proprocessed file to stdout, regardless of -o,
# because we must use -o when running libtool.
( IFS=" "
case " $* " in
*" --mode=compile "*)
for arg
do # cycle over the arguments
case $arg in
"--mode=compile")
# insert --quiet before "--mode=compile"
set fnord "$@" --quiet
shift # fnord
;;
esac
set fnord "$@" "$arg"
shift # fnord
shift # "$arg"
done
;;
esac
"$@" -E |
sed -n '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
sed '$ s: \\$::' > "$tmpdepfile"
) &
proc=$!
"$@"
stat=$?
wait "$proc"
if test "$stat" != 0; then exit $stat; fi
rm -f "$depfile"
echo "$object : \\" > "$depfile"
cat < "$tmpdepfile" >> "$depfile"
sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
rm -f "$tmpdepfile"
;;
msvisualcpp)
# Important note: in order to support this mode, a compiler *must*
# always write the proprocessed file to stdout, regardless of -o,
# because we must use -o when running libtool.
( IFS=" "
case " $* " in
*" --mode=compile "*)
for arg
do # cycle over the arguments
case $arg in
"--mode=compile")
# insert --quiet before "--mode=compile"
set fnord "$@" --quiet
shift # fnord
;;
esac
set fnord "$@" "$arg"
shift # fnord
shift # "$arg"
done
;;
esac
"$@" -E |
sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"
) &
proc=$!
"$@"
stat=$?
wait "$proc"
if test "$stat" != 0; then exit $stat; fi
rm -f "$depfile"
echo "$object : \\" > "$depfile"
. "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
echo " " >> "$depfile"
. "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile"
rm -f "$tmpdepfile"
;;
none)
exec "$@"
;;
*)
echo "Unknown depmode $depmode" 1>&2
exit 1
;;
esac
exit 0

View File

@ -0,0 +1,251 @@
#!/bin/sh
#
# install - install a program, script, or datafile
# This comes from X11R5 (mit/util/scripts/install.sh).
#
# Copyright 1991 by the Massachusetts Institute of Technology
#
# Permission to use, copy, modify, distribute, and sell this software and its
# documentation for any purpose is hereby granted without fee, provided that
# the above copyright notice appear in all copies and that both that
# copyright notice and this permission notice appear in supporting
# documentation, and that the name of M.I.T. not be used in advertising or
# publicity pertaining to distribution of the software without specific,
# written prior permission. M.I.T. makes no representations about the
# suitability of this software for any purpose. It is provided "as is"
# without express or implied warranty.
#
# Calling this script install-sh is preferred over install.sh, to prevent
# `make' implicit rules from creating a file called install from it
# when there is no Makefile.
#
# This script is compatible with the BSD install script, but was written
# from scratch. It can only install one file at a time, a restriction
# shared with many OS's install programs.
# set DOITPROG to echo to test this script
# Don't use :- since 4.3BSD and earlier shells don't like it.
doit="${DOITPROG-}"
# put in absolute paths if you don't have them in your path; or use env. vars.
mvprog="${MVPROG-mv}"
cpprog="${CPPROG-cp}"
chmodprog="${CHMODPROG-chmod}"
chownprog="${CHOWNPROG-chown}"
chgrpprog="${CHGRPPROG-chgrp}"
stripprog="${STRIPPROG-strip}"
rmprog="${RMPROG-rm}"
mkdirprog="${MKDIRPROG-mkdir}"
transformbasename=""
transform_arg=""
instcmd="$mvprog"
chmodcmd="$chmodprog 0755"
chowncmd=""
chgrpcmd=""
stripcmd=""
rmcmd="$rmprog -f"
mvcmd="$mvprog"
src=""
dst=""
dir_arg=""
while [ x"$1" != x ]; do
case $1 in
-c) instcmd="$cpprog"
shift
continue;;
-d) dir_arg=true
shift
continue;;
-m) chmodcmd="$chmodprog $2"
shift
shift
continue;;
-o) chowncmd="$chownprog $2"
shift
shift
continue;;
-g) chgrpcmd="$chgrpprog $2"
shift
shift
continue;;
-s) stripcmd="$stripprog"
shift
continue;;
-t=*) transformarg=`echo $1 | sed 's/-t=//'`
shift
continue;;
-b=*) transformbasename=`echo $1 | sed 's/-b=//'`
shift
continue;;
*) if [ x"$src" = x ]
then
src=$1
else
# this colon is to work around a 386BSD /bin/sh bug
:
dst=$1
fi
shift
continue;;
esac
done
if [ x"$src" = x ]
then
echo "install: no input file specified"
exit 1
else
true
fi
if [ x"$dir_arg" != x ]; then
dst=$src
src=""
if [ -d $dst ]; then
instcmd=:
chmodcmd=""
else
instcmd=mkdir
fi
else
# Waiting for this to be detected by the "$instcmd $src $dsttmp" command
# might cause directories to be created, which would be especially bad
# if $src (and thus $dsttmp) contains '*'.
if [ -f $src -o -d $src ]
then
true
else
echo "install: $src does not exist"
exit 1
fi
if [ x"$dst" = x ]
then
echo "install: no destination specified"
exit 1
else
true
fi
# If destination is a directory, append the input filename; if your system
# does not like double slashes in filenames, you may need to add some logic
if [ -d $dst ]
then
dst="$dst"/`basename $src`
else
true
fi
fi
## this sed command emulates the dirname command
dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
# Make sure that the destination directory exists.
# this part is taken from Noah Friedman's mkinstalldirs script
# Skip lots of stat calls in the usual case.
if [ ! -d "$dstdir" ]; then
defaultIFS='
'
IFS="${IFS-${defaultIFS}}"
oIFS="${IFS}"
# Some sh's can't handle IFS=/ for some reason.
IFS='%'
set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'`
IFS="${oIFS}"
pathcomp=''
while [ $# -ne 0 ] ; do
pathcomp="${pathcomp}${1}"
shift
if [ ! -d "${pathcomp}" ] ;
then
$mkdirprog "${pathcomp}"
else
true
fi
pathcomp="${pathcomp}/"
done
fi
if [ x"$dir_arg" != x ]
then
$doit $instcmd $dst &&
if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi &&
if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi &&
if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi &&
if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi
else
# If we're going to rename the final executable, determine the name now.
if [ x"$transformarg" = x ]
then
dstfile=`basename $dst`
else
dstfile=`basename $dst $transformbasename |
sed $transformarg`$transformbasename
fi
# don't allow the sed command to completely eliminate the filename
if [ x"$dstfile" = x ]
then
dstfile=`basename $dst`
else
true
fi
# Make a temp file name in the proper directory.
dsttmp=$dstdir/#inst.$$#
# Move or copy the file name to the temp name
$doit $instcmd $src $dsttmp &&
trap "rm -f ${dsttmp}" 0 &&
# and set any options; do chmod last to preserve setuid bits
# If any of these fail, we abort the whole thing. If we want to
# ignore errors from any of these, just make sure not to ignore
# errors from the above "$doit $instcmd $src $dsttmp" command.
if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi &&
if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi &&
if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi &&
if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi &&
# Now rename the file to the real destination.
$doit $rmcmd -f $dstdir/$dstfile &&
$doit $mvcmd $dsttmp $dstdir/$dstfile
fi &&
exit 0

View File

@ -0,0 +1,283 @@
#! /bin/sh
# Common stub for a few missing GNU programs while installing.
# Copyright 1996, 1997, 1999, 2000 Free Software Foundation, Inc.
# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
# 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, 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., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.
if test $# -eq 0; then
echo 1>&2 "Try \`$0 --help' for more information"
exit 1
fi
run=:
# In the cases where this matters, `missing' is being run in the
# srcdir already.
if test -f configure.ac; then
configure_ac=configure.ac
else
configure_ac=configure.in
fi
case "$1" in
--run)
# Try to run requested program, and just exit if it succeeds.
run=
shift
"$@" && exit 0
;;
esac
# If it does not exist, or fails to run (possibly an outdated version),
# try to emulate it.
case "$1" in
-h|--h|--he|--hel|--help)
echo "\
$0 [OPTION]... PROGRAM [ARGUMENT]...
Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
error status if there is no known handling for PROGRAM.
Options:
-h, --help display this help and exit
-v, --version output version information and exit
--run try to run the given command, and emulate it if it fails
Supported PROGRAM values:
aclocal touch file \`aclocal.m4'
autoconf touch file \`configure'
autoheader touch file \`config.h.in'
automake touch all \`Makefile.in' files
bison create \`y.tab.[ch]', if possible, from existing .[ch]
flex create \`lex.yy.c', if possible, from existing .c
help2man touch the output file
lex create \`lex.yy.c', if possible, from existing .c
makeinfo touch the output file
tar try tar, gnutar, gtar, then tar without non-portable flags
yacc create \`y.tab.[ch]', if possible, from existing .[ch]"
;;
-v|--v|--ve|--ver|--vers|--versi|--versio|--version)
echo "missing 0.3 - GNU automake"
;;
-*)
echo 1>&2 "$0: Unknown \`$1' option"
echo 1>&2 "Try \`$0 --help' for more information"
exit 1
;;
aclocal)
echo 1>&2 "\
WARNING: \`$1' is missing on your system. You should only need it if
you modified \`acinclude.m4' or \`${configure_ac}'. You might want
to install the \`Automake' and \`Perl' packages. Grab them from
any GNU archive site."
touch aclocal.m4
;;
autoconf)
echo 1>&2 "\
WARNING: \`$1' is missing on your system. You should only need it if
you modified \`${configure_ac}'. You might want to install the
\`Autoconf' and \`GNU m4' packages. Grab them from any GNU
archive site."
touch configure
;;
autoheader)
echo 1>&2 "\
WARNING: \`$1' is missing on your system. You should only need it if
you modified \`acconfig.h' or \`${configure_ac}'. You might want
to install the \`Autoconf' and \`GNU m4' packages. Grab them
from any GNU archive site."
files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
test -z "$files" && files="config.h"
touch_files=
for f in $files; do
case "$f" in
*:*) touch_files="$touch_files "`echo "$f" |
sed -e 's/^[^:]*://' -e 's/:.*//'`;;
*) touch_files="$touch_files $f.in";;
esac
done
touch $touch_files
;;
automake)
echo 1>&2 "\
WARNING: \`$1' is missing on your system. You should only need it if
you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
You might want to install the \`Automake' and \`Perl' packages.
Grab them from any GNU archive site."
find . -type f -name Makefile.am -print |
sed 's/\.am$/.in/' |
while read f; do touch "$f"; done
;;
bison|yacc)
echo 1>&2 "\
WARNING: \`$1' is missing on your system. You should only need it if
you modified a \`.y' file. You may need the \`Bison' package
in order for those modifications to take effect. You can get
\`Bison' from any GNU archive site."
rm -f y.tab.c y.tab.h
if [ $# -ne 1 ]; then
eval LASTARG="\${$#}"
case "$LASTARG" in
*.y)
SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
if [ -f "$SRCFILE" ]; then
cp "$SRCFILE" y.tab.c
fi
SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
if [ -f "$SRCFILE" ]; then
cp "$SRCFILE" y.tab.h
fi
;;
esac
fi
if [ ! -f y.tab.h ]; then
echo >y.tab.h
fi
if [ ! -f y.tab.c ]; then
echo 'main() { return 0; }' >y.tab.c
fi
;;
lex|flex)
echo 1>&2 "\
WARNING: \`$1' is missing on your system. You should only need it if
you modified a \`.l' file. You may need the \`Flex' package
in order for those modifications to take effect. You can get
\`Flex' from any GNU archive site."
rm -f lex.yy.c
if [ $# -ne 1 ]; then
eval LASTARG="\${$#}"
case "$LASTARG" in
*.l)
SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
if [ -f "$SRCFILE" ]; then
cp "$SRCFILE" lex.yy.c
fi
;;
esac
fi
if [ ! -f lex.yy.c ]; then
echo 'main() { return 0; }' >lex.yy.c
fi
;;
help2man)
echo 1>&2 "\
WARNING: \`$1' is missing on your system. You should only need it if
you modified a dependency of a manual page. You may need the
\`Help2man' package in order for those modifications to take
effect. You can get \`Help2man' from any GNU archive site."
file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
if test -z "$file"; then
file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'`
fi
if [ -f "$file" ]; then
touch $file
else
test -z "$file" || exec >$file
echo ".ab help2man is required to generate this page"
exit 1
fi
;;
makeinfo)
if test -z "$run" && (makeinfo --version) > /dev/null 2>&1; then
# We have makeinfo, but it failed.
exit 1
fi
echo 1>&2 "\
WARNING: \`$1' is missing on your system. You should only need it if
you modified a \`.texi' or \`.texinfo' file, or any other file
indirectly affecting the aspect of the manual. The spurious
call might also be the consequence of using a buggy \`make' (AIX,
DU, IRIX). You might want to install the \`Texinfo' package or
the \`GNU make' package. Grab either from any GNU archive site."
file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
if test -z "$file"; then
file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file`
fi
touch $file
;;
tar)
shift
if test -n "$run"; then
echo 1>&2 "ERROR: \`tar' requires --run"
exit 1
fi
# We have already tried tar in the generic part.
# Look for gnutar/gtar before invocation to avoid ugly error
# messages.
if (gnutar --version > /dev/null 2>&1); then
gnutar ${1+"$@"} && exit 0
fi
if (gtar --version > /dev/null 2>&1); then
gtar ${1+"$@"} && exit 0
fi
firstarg="$1"
if shift; then
case "$firstarg" in
*o*)
firstarg=`echo "$firstarg" | sed s/o//`
tar "$firstarg" ${1+"$@"} && exit 0
;;
esac
case "$firstarg" in
*h*)
firstarg=`echo "$firstarg" | sed s/h//`
tar "$firstarg" ${1+"$@"} && exit 0
;;
esac
fi
echo 1>&2 "\
WARNING: I can't seem to be able to run \`tar' with the given arguments.
You may want to install GNU tar or Free paxutils, or check the
command line arguments."
exit 1
;;
*)
echo 1>&2 "\
WARNING: \`$1' is needed, and you do not seem to have it handy on your
system. You might have modified some files without having the
proper tools for further handling them. Check the \`README' file,
it often tells you about the needed prerequirements for installing
this package. You may also peek at any GNU archive site, in case
some other package would contain this missing \`$1' program."
exit 1
;;
esac
exit 0

View File

@ -0,0 +1,40 @@
#! /bin/sh
# mkinstalldirs --- make directory hierarchy
# Author: Noah Friedman <friedman@prep.ai.mit.edu>
# Created: 1993-05-16
# Public domain
# $Id: mkinstalldirs,v 1.1 2003/04/03 18:13:41 mes5k Exp $
errstatus=0
for file
do
set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
shift
pathcomp=
for d
do
pathcomp="$pathcomp$d"
case "$pathcomp" in
-* ) pathcomp=./$pathcomp ;;
esac
if test ! -d "$pathcomp"; then
echo "mkdir $pathcomp"
mkdir "$pathcomp" || lasterr=$?
if test ! -d "$pathcomp"; then
errstatus=$lasterr
fi
fi
pathcomp="$pathcomp/"
done
done
exit $errstatus
# mkinstalldirs ends here

5928
lib/tclap-1.2.1/configure vendored Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,31 @@
AC_INIT(Makefile.am)
#AC_PREREQ(2.50)
AC_CONFIG_AUX_DIR(config)
AM_CONFIG_HEADER(config/config.h)
AM_INIT_AUTOMAKE(tclap,1.2.1)
AC_PROG_CXX
AC_CXX_HAVE_SSTREAM
AC_CXX_HAVE_STRSTREAM
AC_CXX_HAVE_LONG_LONG
AC_CHECK_PROG(DOT,dot,YES,NO)
AC_PROG_RANLIB
AC_PROG_INSTALL
BB_ENABLE_DOXYGEN
HAVE_WARN_EFFECTIVE_CXX
CXXFLAGS="$CXXFLAGS $WARN_EFFECTIVE_CXX"
AM_CONDITIONAL([HAVE_GNU_COMPILERS], [test x$ac_cv_cxx_compiler_gnu = xyes])
AC_OUTPUT([ Makefile \
tclap.pc \
examples/Makefile \
include/Makefile \
include/tclap/Makefile \
config/Makefile \
docs/Makefile \
docs/Doxyfile \
msc/Makefile \
msc/examples/Makefile \
tests/Makefile], \
[chmod a+x $ac_top_srcdir/tests/*.sh])

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,31 @@
if DOC
all:
@DOXYGEN@ Doxyfile
else
all:
endif
EXTRA_DIST = manual.xml
dist_doc_DATA = index.html manual.html style.css
docdir = ${datadir}/doc/${PACKAGE}
install-data-local :
$(mkdir_p) $(DESTDIR)$(docdir)
cp -R $(abs_srcdir)/html $(DESTDIR)$(docdir)
uninstall-local :
chmod -R +w $(DESTDIR)$(docdir)
rm -rf $(DESTDIR)$(docdir)
dist-hook :
$(mkdir_p) $(distdir)
cp -R $(abs_srcdir)/html $(distdir)
clean-local:
$(RM) -rf $(abs_srcdir)/html/*

View File

@ -0,0 +1,360 @@
# Makefile.in generated by automake 1.10 from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
@SET_MAKE@
VPATH = @srcdir@
pkgdatadir = $(datadir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_HEADER = $(INSTALL_DATA)
transform = $(program_transform_name)
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
subdir = docs
DIST_COMMON = README $(dist_doc_DATA) $(srcdir)/Doxyfile.in \
$(srcdir)/Makefile.am $(srcdir)/Makefile.in
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/config/ac_cxx_have_long_long.m4 \
$(top_srcdir)/config/ac_cxx_have_sstream.m4 \
$(top_srcdir)/config/ac_cxx_have_strstream.m4 \
$(top_srcdir)/config/ac_cxx_namespaces.m4 \
$(top_srcdir)/config/ac_cxx_warn_effective_cxx.m4 \
$(top_srcdir)/config/bb_enable_doxygen.m4 \
$(top_srcdir)/configure.in
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
$(ACLOCAL_M4)
mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
CONFIG_HEADER = $(top_builddir)/config/config.h
CONFIG_CLEAN_FILES = Doxyfile
SOURCES =
DIST_SOURCES =
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
am__vpath_adj = case $$p in \
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
*) f=$$p;; \
esac;
am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
am__installdirs = "$(DESTDIR)$(docdir)"
dist_docDATA_INSTALL = $(INSTALL_DATA)
DATA = $(dist_doc_DATA)
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
ACLOCAL = @ACLOCAL@
AMTAR = @AMTAR@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
CPPFLAGS = @CPPFLAGS@
CXX = @CXX@
CXXCPP = @CXXCPP@
CXXDEPMODE = @CXXDEPMODE@
CXXFLAGS = @CXXFLAGS@
CYGPATH_W = @CYGPATH_W@
DEFS = @DEFS@
DEPDIR = @DEPDIR@
DOT = @DOT@
DOXYGEN = @DOXYGEN@
ECHO_C = @ECHO_C@
ECHO_N = @ECHO_N@
ECHO_T = @ECHO_T@
EGREP = @EGREP@
EXEEXT = @EXEEXT@
GREP = @GREP@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
LDFLAGS = @LDFLAGS@
LIBOBJS = @LIBOBJS@
LIBS = @LIBS@
LTLIBOBJS = @LTLIBOBJS@
MAKEINFO = @MAKEINFO@
MKDIR_P = @MKDIR_P@
OBJEXT = @OBJEXT@
PACKAGE = @PACKAGE@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_STRING = @PACKAGE_STRING@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
PACKAGE_VERSION = @PACKAGE_VERSION@
PATH_SEPARATOR = @PATH_SEPARATOR@
RANLIB = @RANLIB@
SET_MAKE = @SET_MAKE@
SHELL = @SHELL@
STRIP = @STRIP@
VERSION = @VERSION@
WARN_EFFECTIVE_CXX = @WARN_EFFECTIVE_CXX@
WARN_NO_EFFECTIVE_CXX = @WARN_NO_EFFECTIVE_CXX@
abs_builddir = @abs_builddir@
abs_srcdir = @abs_srcdir@
abs_top_builddir = @abs_top_builddir@
abs_top_srcdir = @abs_top_srcdir@
ac_ct_CXX = @ac_ct_CXX@
am__include = @am__include@
am__leading_dot = @am__leading_dot@
am__quote = @am__quote@
am__tar = @am__tar@
am__untar = @am__untar@
bindir = @bindir@
build_alias = @build_alias@
builddir = @builddir@
datadir = @datadir@
datarootdir = @datarootdir@
docdir = ${datadir}/doc/${PACKAGE}
dvidir = @dvidir@
exec_prefix = @exec_prefix@
host_alias = @host_alias@
htmldir = @htmldir@
includedir = @includedir@
infodir = @infodir@
install_sh = @install_sh@
libdir = @libdir@
libexecdir = @libexecdir@
localedir = @localedir@
localstatedir = @localstatedir@
mandir = @mandir@
mkdir_p = @mkdir_p@
oldincludedir = @oldincludedir@
pdfdir = @pdfdir@
prefix = @prefix@
program_transform_name = @program_transform_name@
psdir = @psdir@
sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
srcdir = @srcdir@
sysconfdir = @sysconfdir@
target_alias = @target_alias@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
EXTRA_DIST = manual.xml
dist_doc_DATA = index.html manual.html style.css
all: all-am
.SUFFIXES:
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
@for dep in $?; do \
case '$(am__configure_deps)' in \
*$$dep*) \
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
&& exit 0; \
exit 1;; \
esac; \
done; \
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu docs/Makefile'; \
cd $(top_srcdir) && \
$(AUTOMAKE) --gnu docs/Makefile
.PRECIOUS: Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
@case '$?' in \
*config.status*) \
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
*) \
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
esac;
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(top_srcdir)/configure: $(am__configure_deps)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
Doxyfile: $(top_builddir)/config.status $(srcdir)/Doxyfile.in
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
install-dist_docDATA: $(dist_doc_DATA)
@$(NORMAL_INSTALL)
test -z "$(docdir)" || $(MKDIR_P) "$(DESTDIR)$(docdir)"
@list='$(dist_doc_DATA)'; for p in $$list; do \
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
f=$(am__strip_dir) \
echo " $(dist_docDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(docdir)/$$f'"; \
$(dist_docDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(docdir)/$$f"; \
done
uninstall-dist_docDATA:
@$(NORMAL_UNINSTALL)
@list='$(dist_doc_DATA)'; for p in $$list; do \
f=$(am__strip_dir) \
echo " rm -f '$(DESTDIR)$(docdir)/$$f'"; \
rm -f "$(DESTDIR)$(docdir)/$$f"; \
done
tags: TAGS
TAGS:
ctags: CTAGS
CTAGS:
distdir: $(DISTFILES)
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
list='$(DISTFILES)'; \
dist_files=`for file in $$list; do echo $$file; done | \
sed -e "s|^$$srcdirstrip/||;t" \
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
case $$dist_files in \
*/*) $(MKDIR_P) `echo "$$dist_files" | \
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
sort -u` ;; \
esac; \
for file in $$dist_files; do \
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
if test -d $$d/$$file; then \
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
fi; \
cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
else \
test -f $(distdir)/$$file \
|| cp -p $$d/$$file $(distdir)/$$file \
|| exit 1; \
fi; \
done
$(MAKE) $(AM_MAKEFLAGS) \
top_distdir="$(top_distdir)" distdir="$(distdir)" \
dist-hook
check-am: all-am
check: check-am
all-am: Makefile $(DATA)
installdirs:
for dir in "$(DESTDIR)$(docdir)"; do \
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
done
install: install-am
install-exec: install-exec-am
install-data: install-data-am
uninstall: uninstall-am
install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
installcheck: installcheck-am
install-strip:
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
`test -z '$(STRIP)' || \
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
mostlyclean-generic:
clean-generic:
distclean-generic:
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
@echo "it deletes files that may require special tools to rebuild."
clean: clean-am
clean-am: clean-generic clean-local mostlyclean-am
distclean: distclean-am
-rm -f Makefile
distclean-am: clean-am distclean-generic
dvi: dvi-am
dvi-am:
html: html-am
info: info-am
info-am:
install-data-am: install-data-local install-dist_docDATA
install-dvi: install-dvi-am
install-exec-am:
install-html: install-html-am
install-info: install-info-am
install-man:
install-pdf: install-pdf-am
install-ps: install-ps-am
installcheck-am:
maintainer-clean: maintainer-clean-am
-rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic
mostlyclean: mostlyclean-am
mostlyclean-am: mostlyclean-generic
pdf: pdf-am
pdf-am:
ps: ps-am
ps-am:
uninstall-am: uninstall-dist_docDATA uninstall-local
.MAKE: install-am install-strip
.PHONY: all all-am check check-am clean clean-generic clean-local \
dist-hook distclean distclean-generic distdir dvi dvi-am html \
html-am info info-am install install-am install-data \
install-data-am install-data-local install-dist_docDATA \
install-dvi install-dvi-am install-exec install-exec-am \
install-html install-html-am install-info install-info-am \
install-man install-pdf install-pdf-am install-ps \
install-ps-am install-strip installcheck installcheck-am \
installdirs maintainer-clean maintainer-clean-generic \
mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \
uninstall-am uninstall-dist_docDATA uninstall-local
@DOC_TRUE@all:
@DOC_TRUE@ @DOXYGEN@ Doxyfile
@DOC_FALSE@all:
install-data-local :
$(mkdir_p) $(DESTDIR)$(docdir)
cp -R $(abs_srcdir)/html $(DESTDIR)$(docdir)
uninstall-local :
chmod -R +w $(DESTDIR)$(docdir)
rm -rf $(DESTDIR)$(docdir)
dist-hook :
$(mkdir_p) $(distdir)
cp -R $(abs_srcdir)/html $(distdir)
clean-local:
$(RM) -rf $(abs_srcdir)/html/*
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:

View File

@ -0,0 +1,5 @@
To generate the manual from the docbook xml you need and xslt processor
and an xsl file that defines the output. For example:
xsltproc --stringparam html.stylesheet style.css /Users/mes/software/docbook-xsl-1.71.1/xhtml/docbook.xsl manual.xml > manual.html

View File

@ -0,0 +1,51 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>tclap: ArgException.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.0 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
<li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="contents">
<h1>ArgException.h File Reference</h1><code>#include &lt;string&gt;</code><br/>
<code>#include &lt;exception&gt;</code><br/>
<p><a href="ArgException_8h_source.html">Go to the source code of this file.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Classes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTCLAP_1_1ArgException.html">TCLAP::ArgException</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">A simple class that defines and argument exception. <a href="classTCLAP_1_1ArgException.html#_details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTCLAP_1_1ArgParseException.html">TCLAP::ArgParseException</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Thrown from within the child <a class="el" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a> classes when it fails to properly parse the argument it has been passed. <a href="classTCLAP_1_1ArgParseException.html#_details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTCLAP_1_1CmdLineParseException.html">TCLAP::CmdLineParseException</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Thrown from <a class="el" href="classTCLAP_1_1CmdLine.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLine</a> when the arguments on the command line are not properly specified, e.g. <a href="classTCLAP_1_1CmdLineParseException.html#_details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTCLAP_1_1SpecificationException.html">TCLAP::SpecificationException</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Thrown from <a class="el" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a> and <a class="el" href="classTCLAP_1_1CmdLine.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLine</a> when an <a class="el" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a> is improperly specified, e.g. <a href="classTCLAP_1_1SpecificationException.html#_details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTCLAP_1_1ExitException.html">TCLAP::ExitException</a></td></tr>
<tr><td colspan="2"><h2>Namespaces</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">namespace &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceTCLAP.html">TCLAP</a></td></tr>
</table>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Sat Apr 16 15:34:24 2011 for tclap by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.0 </small></address>
</body>
</html>

View File

@ -0,0 +1,164 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>tclap: ArgException.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.0 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
<li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
</ul>
</div>
<h1>ArgException.h</h1><a href="ArgException_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// -*- Mode: c++; c-basic-offset: 4; tab-width: 4; -*-</span>
<a name="l00002"></a>00002
<a name="l00003"></a>00003 <span class="comment">/****************************************************************************** </span>
<a name="l00004"></a>00004 <span class="comment"> * </span>
<a name="l00005"></a>00005 <span class="comment"> * file: ArgException.h</span>
<a name="l00006"></a>00006 <span class="comment"> * </span>
<a name="l00007"></a>00007 <span class="comment"> * Copyright (c) 2003, Michael E. Smoot .</span>
<a name="l00008"></a>00008 <span class="comment"> * All rights reverved.</span>
<a name="l00009"></a>00009 <span class="comment"> * </span>
<a name="l00010"></a>00010 <span class="comment"> * See the file COPYING in the top directory of this distribution for</span>
<a name="l00011"></a>00011 <span class="comment"> * more information.</span>
<a name="l00012"></a>00012 <span class="comment"> * </span>
<a name="l00013"></a>00013 <span class="comment"> * THE SOFTWARE IS PROVIDED _AS IS_, WITHOUT WARRANTY OF ANY KIND, EXPRESS </span>
<a name="l00014"></a>00014 <span class="comment"> * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, </span>
<a name="l00015"></a>00015 <span class="comment"> * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL </span>
<a name="l00016"></a>00016 <span class="comment"> * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER </span>
<a name="l00017"></a>00017 <span class="comment"> * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING </span>
<a name="l00018"></a>00018 <span class="comment"> * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER </span>
<a name="l00019"></a>00019 <span class="comment"> * DEALINGS IN THE SOFTWARE. </span>
<a name="l00020"></a>00020 <span class="comment"> * </span>
<a name="l00021"></a>00021 <span class="comment"> *****************************************************************************/</span>
<a name="l00022"></a>00022
<a name="l00023"></a>00023
<a name="l00024"></a>00024 <span class="preprocessor">#ifndef TCLAP_ARG_EXCEPTION_H</span>
<a name="l00025"></a>00025 <span class="preprocessor"></span><span class="preprocessor">#define TCLAP_ARG_EXCEPTION_H</span>
<a name="l00026"></a>00026 <span class="preprocessor"></span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;string&gt;</span>
<a name="l00028"></a>00028 <span class="preprocessor">#include &lt;exception&gt;</span>
<a name="l00029"></a>00029
<a name="l00030"></a>00030 <span class="keyword">namespace </span>TCLAP {
<a name="l00031"></a>00031
<a name="l00036"></a><a class="code" href="classTCLAP_1_1ArgException.html">00036</a> <span class="keyword">class </span><a class="code" href="classTCLAP_1_1ArgException.html" title="A simple class that defines and argument exception.">ArgException</a> : <span class="keyword">public</span> std::exception
<a name="l00037"></a>00037 {
<a name="l00038"></a>00038 <span class="keyword">public</span>:
<a name="l00039"></a>00039
<a name="l00047"></a><a class="code" href="classTCLAP_1_1ArgException.html#a67389912b628e95d530f8bb8de97b309">00047</a> <a class="code" href="classTCLAP_1_1ArgException.html#a67389912b628e95d530f8bb8de97b309" title="Constructor.">ArgException</a>( <span class="keyword">const</span> std::string&amp; text = <span class="stringliteral">&quot;undefined exception&quot;</span>,
<a name="l00048"></a>00048 <span class="keyword">const</span> std::string&amp; <span class="keywordtype">id</span> = <span class="stringliteral">&quot;undefined&quot;</span>,
<a name="l00049"></a>00049 <span class="keyword">const</span> std::string&amp; td = <span class="stringliteral">&quot;Generic ArgException&quot;</span>)
<a name="l00050"></a>00050 : std::exception(),
<a name="l00051"></a>00051 _errorText(text),
<a name="l00052"></a>00052 _argId( id ),
<a name="l00053"></a>00053 _typeDescription(td)
<a name="l00054"></a>00054 { }
<a name="l00055"></a>00055
<a name="l00059"></a><a class="code" href="classTCLAP_1_1ArgException.html#a5c5df6a814b05c623a01607fb82980f4">00059</a> <span class="keyword">virtual</span> <a class="code" href="classTCLAP_1_1ArgException.html#a5c5df6a814b05c623a01607fb82980f4" title="Destructor.">~ArgException</a>() throw() { }
<a name="l00060"></a>00060
<a name="l00064"></a><a class="code" href="classTCLAP_1_1ArgException.html#a0656dab88a7129bc288821bacd653d08">00064</a> std::string <a class="code" href="classTCLAP_1_1ArgException.html#a0656dab88a7129bc288821bacd653d08" title="Returns the error text.">error</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> ( _errorText ); }
<a name="l00065"></a>00065
<a name="l00069"></a><a class="code" href="classTCLAP_1_1ArgException.html#a18ffd1ad34c1799865f8e03df4ebdff1">00069</a> std::string <a class="code" href="classTCLAP_1_1ArgException.html#a18ffd1ad34c1799865f8e03df4ebdff1" title="Returns the argument id.">argId</a>()<span class="keyword"> const </span>
<a name="l00070"></a>00070 <span class="keyword"> </span>{
<a name="l00071"></a>00071 <span class="keywordflow">if</span> ( _argId == <span class="stringliteral">&quot;undefined&quot;</span> )
<a name="l00072"></a>00072 <span class="keywordflow">return</span> <span class="stringliteral">&quot; &quot;</span>;
<a name="l00073"></a>00073 <span class="keywordflow">else</span>
<a name="l00074"></a>00074 <span class="keywordflow">return</span> ( <span class="stringliteral">&quot;Argument: &quot;</span> + _argId );
<a name="l00075"></a>00075 }
<a name="l00076"></a>00076
<a name="l00080"></a><a class="code" href="classTCLAP_1_1ArgException.html#af51c89da2e4ae54fc9d05038ea484c83">00080</a> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classTCLAP_1_1ArgException.html#af51c89da2e4ae54fc9d05038ea484c83" title="Returns the arg id and error text.">what</a>() <span class="keyword">const</span> throw()
<a name="l00081"></a>00081 {
<a name="l00082"></a>00082 <span class="keyword">static</span> std::string ex;
<a name="l00083"></a>00083 ex = _argId + <span class="stringliteral">&quot; -- &quot;</span> + _errorText;
<a name="l00084"></a>00084 <span class="keywordflow">return</span> ex.c_str();
<a name="l00085"></a>00085 }
<a name="l00086"></a>00086
<a name="l00091"></a><a class="code" href="classTCLAP_1_1ArgException.html#abd271955e1b808bb92f8db7a16ea7c95">00091</a> std::string <a class="code" href="classTCLAP_1_1ArgException.html#abd271955e1b808bb92f8db7a16ea7c95" title="Returns the type of the exception.">typeDescription</a>()<span class="keyword"> const</span>
<a name="l00092"></a>00092 <span class="keyword"> </span>{
<a name="l00093"></a>00093 <span class="keywordflow">return</span> _typeDescription;
<a name="l00094"></a>00094 }
<a name="l00095"></a>00095
<a name="l00096"></a>00096
<a name="l00097"></a>00097 <span class="keyword">private</span>:
<a name="l00098"></a>00098
<a name="l00102"></a>00102 std::string _errorText;
<a name="l00103"></a>00103
<a name="l00107"></a>00107 std::string _argId;
<a name="l00108"></a>00108
<a name="l00113"></a>00113 std::string _typeDescription;
<a name="l00114"></a>00114
<a name="l00115"></a>00115 };
<a name="l00116"></a>00116
<a name="l00121"></a><a class="code" href="classTCLAP_1_1ArgParseException.html">00121</a> <span class="keyword">class </span><a class="code" href="classTCLAP_1_1ArgParseException.html" title="Thrown from within the child Arg classes when it fails to properly parse the argument...">ArgParseException</a> : <span class="keyword">public</span> <a class="code" href="classTCLAP_1_1ArgException.html" title="A simple class that defines and argument exception.">ArgException</a>
<a name="l00122"></a>00122 {
<a name="l00123"></a>00123 <span class="keyword">public</span>:
<a name="l00130"></a><a class="code" href="classTCLAP_1_1ArgParseException.html#aa9d9531405e505afd506491526733285">00130</a> <a class="code" href="classTCLAP_1_1ArgParseException.html#aa9d9531405e505afd506491526733285" title="Constructor.">ArgParseException</a>( <span class="keyword">const</span> std::string&amp; text = <span class="stringliteral">&quot;undefined exception&quot;</span>,
<a name="l00131"></a>00131 <span class="keyword">const</span> std::string&amp; <span class="keywordtype">id</span> = <span class="stringliteral">&quot;undefined&quot;</span> )
<a name="l00132"></a>00132 : <a class="code" href="classTCLAP_1_1ArgException.html" title="A simple class that defines and argument exception.">ArgException</a>( text,
<a name="l00133"></a>00133 id,
<a name="l00134"></a>00134 std::string( <span class="stringliteral">&quot;Exception found while parsing &quot;</span> ) +
<a name="l00135"></a>00135 std::string( <span class="stringliteral">&quot;the value the Arg has been passed.&quot;</span> ))
<a name="l00136"></a>00136 { }
<a name="l00137"></a>00137 };
<a name="l00138"></a>00138
<a name="l00143"></a><a class="code" href="classTCLAP_1_1CmdLineParseException.html">00143</a> <span class="keyword">class </span><a class="code" href="classTCLAP_1_1CmdLineParseException.html" title="Thrown from CmdLine when the arguments on the command line are not properly specified...">CmdLineParseException</a> : <span class="keyword">public</span> <a class="code" href="classTCLAP_1_1ArgException.html" title="A simple class that defines and argument exception.">ArgException</a>
<a name="l00144"></a>00144 {
<a name="l00145"></a>00145 <span class="keyword">public</span>:
<a name="l00152"></a><a class="code" href="classTCLAP_1_1CmdLineParseException.html#a3b612ba299dd699845ea108b5eaa3249">00152</a> <a class="code" href="classTCLAP_1_1CmdLineParseException.html#a3b612ba299dd699845ea108b5eaa3249" title="Constructor.">CmdLineParseException</a>( <span class="keyword">const</span> std::string&amp; text = <span class="stringliteral">&quot;undefined exception&quot;</span>,
<a name="l00153"></a>00153 <span class="keyword">const</span> std::string&amp; <span class="keywordtype">id</span> = <span class="stringliteral">&quot;undefined&quot;</span> )
<a name="l00154"></a>00154 : <a class="code" href="classTCLAP_1_1ArgException.html" title="A simple class that defines and argument exception.">ArgException</a>( text,
<a name="l00155"></a>00155 id,
<a name="l00156"></a>00156 std::string( <span class="stringliteral">&quot;Exception found when the values &quot;</span>) +
<a name="l00157"></a>00157 std::string( <span class="stringliteral">&quot;on the command line do not meet &quot;</span>) +
<a name="l00158"></a>00158 std::string( <span class="stringliteral">&quot;the requirements of the defined &quot;</span>) +
<a name="l00159"></a>00159 std::string( <span class="stringliteral">&quot;Args.&quot;</span> ))
<a name="l00160"></a>00160 { }
<a name="l00161"></a>00161 };
<a name="l00162"></a>00162
<a name="l00167"></a><a class="code" href="classTCLAP_1_1SpecificationException.html">00167</a> <span class="keyword">class </span><a class="code" href="classTCLAP_1_1SpecificationException.html" title="Thrown from Arg and CmdLine when an Arg is improperly specified, e.g.">SpecificationException</a> : <span class="keyword">public</span> <a class="code" href="classTCLAP_1_1ArgException.html" title="A simple class that defines and argument exception.">ArgException</a>
<a name="l00168"></a>00168 {
<a name="l00169"></a>00169 <span class="keyword">public</span>:
<a name="l00176"></a><a class="code" href="classTCLAP_1_1SpecificationException.html#ad817016f03ebf4fc371e168636132abd">00176</a> <a class="code" href="classTCLAP_1_1SpecificationException.html#ad817016f03ebf4fc371e168636132abd" title="Constructor.">SpecificationException</a>( <span class="keyword">const</span> std::string&amp; text = <span class="stringliteral">&quot;undefined exception&quot;</span>,
<a name="l00177"></a>00177 <span class="keyword">const</span> std::string&amp; <span class="keywordtype">id</span> = <span class="stringliteral">&quot;undefined&quot;</span> )
<a name="l00178"></a>00178 : <a class="code" href="classTCLAP_1_1ArgException.html" title="A simple class that defines and argument exception.">ArgException</a>( text,
<a name="l00179"></a>00179 id,
<a name="l00180"></a>00180 std::string(<span class="stringliteral">&quot;Exception found when an Arg object &quot;</span>)+
<a name="l00181"></a>00181 std::string(<span class="stringliteral">&quot;is improperly defined by the &quot;</span>) +
<a name="l00182"></a>00182 std::string(<span class="stringliteral">&quot;developer.&quot;</span> ))
<a name="l00183"></a>00183 { }
<a name="l00184"></a>00184
<a name="l00185"></a>00185 };
<a name="l00186"></a>00186
<a name="l00187"></a><a class="code" href="classTCLAP_1_1ExitException.html">00187</a> <span class="keyword">class </span><a class="code" href="classTCLAP_1_1ExitException.html">ExitException</a> {
<a name="l00188"></a>00188 <span class="keyword">public</span>:
<a name="l00189"></a><a class="code" href="classTCLAP_1_1ExitException.html#a03a48ed9da416c8261edbd9cbbf85b27">00189</a> <a class="code" href="classTCLAP_1_1ExitException.html#a03a48ed9da416c8261edbd9cbbf85b27">ExitException</a>(<span class="keywordtype">int</span> estat) : _estat(estat) {}
<a name="l00190"></a>00190
<a name="l00191"></a><a class="code" href="classTCLAP_1_1ExitException.html#acf7fd20c9cfb67b5718031ed0debda1c">00191</a> <span class="keywordtype">int</span> <a class="code" href="classTCLAP_1_1ExitException.html#acf7fd20c9cfb67b5718031ed0debda1c">getExitStatus</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> _estat; }
<a name="l00192"></a>00192
<a name="l00193"></a>00193 <span class="keyword">private</span>:
<a name="l00194"></a>00194 <span class="keywordtype">int</span> _estat;
<a name="l00195"></a>00195 };
<a name="l00196"></a>00196
<a name="l00197"></a>00197 } <span class="comment">// namespace TCLAP</span>
<a name="l00198"></a>00198
<a name="l00199"></a>00199 <span class="preprocessor">#endif</span>
<a name="l00200"></a>00200 <span class="preprocessor"></span>
</pre></div></div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Sat Apr 16 15:34:24 2011 for tclap by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.0 </small></address>
</body>
</html>

View File

@ -0,0 +1,50 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>tclap: ArgTraits.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.0 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
<li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="contents">
<h1>ArgTraits.h File Reference</h1>
<p><a href="ArgTraits_8h_source.html">Go to the source code of this file.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Classes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structTCLAP_1_1ValueLike.html">TCLAP::ValueLike</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">A value like argument value type is a value that can be set using operator&gt;&gt;. <a href="structTCLAP_1_1ValueLike.html#_details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structTCLAP_1_1StringLike.html">TCLAP::StringLike</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">A string like argument value type is a value that can be set using operator=(string). <a href="structTCLAP_1_1StringLike.html#_details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structTCLAP_1_1StringLikeTrait.html">TCLAP::StringLikeTrait</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">A class can inherit from this object to make it have string like traits. <a href="structTCLAP_1_1StringLikeTrait.html#_details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structTCLAP_1_1ValueLikeTrait.html">TCLAP::ValueLikeTrait</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">A class can inherit from this object to make it have value like traits. <a href="structTCLAP_1_1ValueLikeTrait.html#_details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structTCLAP_1_1ArgTraits.html">TCLAP::ArgTraits&lt; T &gt;</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><a class="el" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a> traits are used to get compile type specialization when parsing argument values. <a href="structTCLAP_1_1ArgTraits.html#_details">More...</a><br/></td></tr>
<tr><td colspan="2"><h2>Namespaces</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">namespace &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceTCLAP.html">TCLAP</a></td></tr>
</table>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Sat Apr 16 15:34:24 2011 for tclap by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.0 </small></address>
</body>
</html>

View File

@ -0,0 +1,93 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>tclap: ArgTraits.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.0 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
<li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
</ul>
</div>
<h1>ArgTraits.h</h1><a href="ArgTraits_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// -*- Mode: c++; c-basic-offset: 4; tab-width: 4; -*-</span>
<a name="l00002"></a>00002
<a name="l00003"></a>00003 <span class="comment">/******************************************************************************</span>
<a name="l00004"></a>00004 <span class="comment"> *</span>
<a name="l00005"></a>00005 <span class="comment"> * file: ArgTraits.h</span>
<a name="l00006"></a>00006 <span class="comment"> *</span>
<a name="l00007"></a>00007 <span class="comment"> * Copyright (c) 2007, Daniel Aarno, Michael E. Smoot .</span>
<a name="l00008"></a>00008 <span class="comment"> * All rights reverved.</span>
<a name="l00009"></a>00009 <span class="comment"> *</span>
<a name="l00010"></a>00010 <span class="comment"> * See the file COPYING in the top directory of this distribution for</span>
<a name="l00011"></a>00011 <span class="comment"> * more information.</span>
<a name="l00012"></a>00012 <span class="comment"> *</span>
<a name="l00013"></a>00013 <span class="comment"> * THE SOFTWARE IS PROVIDED _AS IS_, WITHOUT WARRANTY OF ANY KIND, EXPRESS</span>
<a name="l00014"></a>00014 <span class="comment"> * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,</span>
<a name="l00015"></a>00015 <span class="comment"> * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL</span>
<a name="l00016"></a>00016 <span class="comment"> * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER</span>
<a name="l00017"></a>00017 <span class="comment"> * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING</span>
<a name="l00018"></a>00018 <span class="comment"> * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER</span>
<a name="l00019"></a>00019 <span class="comment"> * DEALINGS IN THE SOFTWARE.</span>
<a name="l00020"></a>00020 <span class="comment"> *</span>
<a name="l00021"></a>00021 <span class="comment"> *****************************************************************************/</span>
<a name="l00022"></a>00022
<a name="l00023"></a>00023 <span class="comment">// This is an internal tclap file, you should probably not have to</span>
<a name="l00024"></a>00024 <span class="comment">// include this directly</span>
<a name="l00025"></a>00025
<a name="l00026"></a>00026 <span class="preprocessor">#ifndef TCLAP_ARGTRAITS_H</span>
<a name="l00027"></a>00027 <span class="preprocessor"></span><span class="preprocessor">#define TCLAP_ARGTRAITS_H</span>
<a name="l00028"></a>00028 <span class="preprocessor"></span>
<a name="l00029"></a>00029 <span class="keyword">namespace </span>TCLAP {
<a name="l00030"></a>00030
<a name="l00031"></a>00031 <span class="comment">// We use two empty structs to get compile type specialization</span>
<a name="l00032"></a>00032 <span class="comment">// function to work</span>
<a name="l00033"></a>00033
<a name="l00038"></a><a class="code" href="structTCLAP_1_1ValueLike.html">00038</a> <span class="keyword">struct </span><a class="code" href="structTCLAP_1_1ValueLike.html" title="A value like argument value type is a value that can be set using operator&amp;gt;&amp;gt;...">ValueLike</a> {
<a name="l00039"></a><a class="code" href="structTCLAP_1_1ValueLike.html#a26e6d3b8c4a608ecebe7404e42fbecf9">00039</a> <span class="keyword">typedef</span> <a class="code" href="structTCLAP_1_1ValueLike.html" title="A value like argument value type is a value that can be set using operator&amp;gt;&amp;gt;...">ValueLike</a> <a class="code" href="structTCLAP_1_1ValueLike.html" title="A value like argument value type is a value that can be set using operator&amp;gt;&amp;gt;...">ValueCategory</a>;
<a name="l00040"></a><a class="code" href="structTCLAP_1_1ValueLike.html#aef7da69a6268964f450cf4c12e614ba7">00040</a> <span class="keyword">virtual</span> <a class="code" href="structTCLAP_1_1ValueLike.html#aef7da69a6268964f450cf4c12e614ba7">~ValueLike</a>() {}
<a name="l00041"></a>00041 };
<a name="l00042"></a>00042
<a name="l00048"></a><a class="code" href="structTCLAP_1_1StringLike.html">00048</a> <span class="keyword">struct </span><a class="code" href="structTCLAP_1_1StringLike.html" title="A string like argument value type is a value that can be set using operator=(string)...">StringLike</a> {
<a name="l00049"></a><a class="code" href="structTCLAP_1_1StringLike.html#ae0dd88dd58048117097b6ae0a77a0dc2">00049</a> <span class="keyword">virtual</span> <a class="code" href="structTCLAP_1_1StringLike.html#ae0dd88dd58048117097b6ae0a77a0dc2">~StringLike</a>() {}
<a name="l00050"></a>00050 };
<a name="l00051"></a>00051
<a name="l00057"></a><a class="code" href="structTCLAP_1_1StringLikeTrait.html">00057</a> <span class="keyword">struct </span><a class="code" href="structTCLAP_1_1StringLikeTrait.html" title="A class can inherit from this object to make it have string like traits.">StringLikeTrait</a> {
<a name="l00058"></a><a class="code" href="structTCLAP_1_1StringLikeTrait.html#a7a081c80b731414dcad1b50cf80b7433">00058</a> <span class="keyword">typedef</span> <a class="code" href="structTCLAP_1_1StringLike.html" title="A string like argument value type is a value that can be set using operator=(string)...">StringLike</a> <a class="code" href="structTCLAP_1_1StringLike.html" title="A string like argument value type is a value that can be set using operator=(string)...">ValueCategory</a>;
<a name="l00059"></a><a class="code" href="structTCLAP_1_1StringLikeTrait.html#ad7353733df8665d257bd5c4af43d822d">00059</a> <span class="keyword">virtual</span> <a class="code" href="structTCLAP_1_1StringLikeTrait.html#ad7353733df8665d257bd5c4af43d822d">~StringLikeTrait</a>() {}
<a name="l00060"></a>00060 };
<a name="l00061"></a>00061
<a name="l00067"></a><a class="code" href="structTCLAP_1_1ValueLikeTrait.html">00067</a> <span class="keyword">struct </span><a class="code" href="structTCLAP_1_1ValueLikeTrait.html" title="A class can inherit from this object to make it have value like traits.">ValueLikeTrait</a> {
<a name="l00068"></a><a class="code" href="structTCLAP_1_1ValueLikeTrait.html#aac4ee14f65926b8e741d797a8900a79a">00068</a> <span class="keyword">typedef</span> <a class="code" href="structTCLAP_1_1ValueLike.html" title="A value like argument value type is a value that can be set using operator&amp;gt;&amp;gt;...">ValueLike</a> <a class="code" href="structTCLAP_1_1ValueLike.html" title="A value like argument value type is a value that can be set using operator&amp;gt;&amp;gt;...">ValueCategory</a>;
<a name="l00069"></a><a class="code" href="structTCLAP_1_1ValueLikeTrait.html#a829a0e0f46e61916f6c8aa6ee441df38">00069</a> <span class="keyword">virtual</span> <a class="code" href="structTCLAP_1_1ValueLikeTrait.html#a829a0e0f46e61916f6c8aa6ee441df38">~ValueLikeTrait</a>() {}
<a name="l00070"></a>00070 };
<a name="l00071"></a>00071
<a name="l00078"></a>00078 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;
<a name="l00079"></a><a class="code" href="structTCLAP_1_1ArgTraits.html">00079</a> <span class="keyword">struct </span><a class="code" href="structTCLAP_1_1ArgTraits.html" title="Arg traits are used to get compile type specialization when parsing argument values...">ArgTraits</a> {
<a name="l00080"></a><a class="code" href="structTCLAP_1_1ArgTraits.html#a346532973520fc820d6b3e5406dfa8f6">00080</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> T::ValueCategory <a class="code" href="structTCLAP_1_1ArgTraits.html#a346532973520fc820d6b3e5406dfa8f6">ValueCategory</a>;
<a name="l00081"></a><a class="code" href="structTCLAP_1_1ArgTraits.html#abbf8fe38dc8c0e0d179509cef1cf89e7">00081</a> <span class="keyword">virtual</span> <a class="code" href="structTCLAP_1_1ArgTraits.html#abbf8fe38dc8c0e0d179509cef1cf89e7">~ArgTraits</a>() {}
<a name="l00082"></a>00082 <span class="comment">//typedef ValueLike ValueCategory;</span>
<a name="l00083"></a>00083 };
<a name="l00084"></a>00084
<a name="l00085"></a>00085 <span class="preprocessor">#endif</span>
<a name="l00086"></a>00086 <span class="preprocessor"></span>
<a name="l00087"></a>00087 } <span class="comment">// namespace</span>
</pre></div></div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Sat Apr 16 15:34:24 2011 for tclap by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.0 </small></address>
</body>
</html>

View File

@ -0,0 +1,170 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>tclap: Arg.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.0 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
<li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="contents">
<h1>Arg.h File Reference</h1><code>#include &lt;string&gt;</code><br/>
<code>#include &lt;vector&gt;</code><br/>
<code>#include &lt;list&gt;</code><br/>
<code>#include &lt;iostream&gt;</code><br/>
<code>#include &lt;iomanip&gt;</code><br/>
<code>#include &lt;cstdio&gt;</code><br/>
<code>#include &lt;sstream&gt;</code><br/>
<code>#include &lt;<a class="el" href="ArgException_8h_source.html">tclap/ArgException.h</a>&gt;</code><br/>
<code>#include &lt;<a class="el" href="Visitor_8h_source.html">tclap/Visitor.h</a>&gt;</code><br/>
<code>#include &lt;<a class="el" href="CmdLineInterface_8h_source.html">tclap/CmdLineInterface.h</a>&gt;</code><br/>
<code>#include &lt;<a class="el" href="ArgTraits_8h_source.html">tclap/ArgTraits.h</a>&gt;</code><br/>
<code>#include &lt;<a class="el" href="StandardTraits_8h_source.html">tclap/StandardTraits.h</a>&gt;</code><br/>
<p><a href="Arg_8h_source.html">Go to the source code of this file.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Classes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTCLAP_1_1Arg.html">TCLAP::Arg</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">A virtual base class that defines the essential data for all arguments. <a href="classTCLAP_1_1Arg.html#_details">More...</a><br/></td></tr>
<tr><td colspan="2"><h2>Namespaces</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">namespace &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceTCLAP.html">TCLAP</a></td></tr>
<tr><td colspan="2"><h2>Defines</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="Arg_8h.html#a91e904e6e4f21f803c49113b934e6966">HAVE_SSTREAM</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="Arg_8h.html#a892de6ada8e6a8ed25e303ca564a8447">TCLAP_FLAGSTARTCHAR</a>&nbsp;&nbsp;&nbsp;'-'</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The char that indicates the beginning of a flag. <a href="#a892de6ada8e6a8ed25e303ca564a8447"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="Arg_8h.html#a542fe8477a66451cf2d983fd4c4f1846">TCLAP_FLAGSTARTSTRING</a>&nbsp;&nbsp;&nbsp;&quot;-&quot;</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The sting that indicates the beginning of a flag. <a href="#a542fe8477a66451cf2d983fd4c4f1846"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="Arg_8h.html#ab497be2528843816edec2ec9897dfca2">TCLAP_NAMESTARTSTRING</a>&nbsp;&nbsp;&nbsp;&quot;--&quot;</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The sting that indicates the beginning of a name. <a href="#ab497be2528843816edec2ec9897dfca2"></a><br/></td></tr>
<tr><td colspan="2"><h2>Typedefs</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="Arg_8h.html#ab31d9646d48ca9d02918cc36b138e67b">std::istringstream</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="Arg_8h.html#ab31d9646d48ca9d02918cc36b138e67b">istringstream</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef std::list&lt; Arg * &gt;<br class="typebreak"/>
::iterator&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceTCLAP.html#aa7d6a803e0690c3c8b1db57c145648c5">TCLAP::ArgListIterator</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Typedef of an <a class="el" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a> list iterator. <a href="#aa7d6a803e0690c3c8b1db57c145648c5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef std::vector&lt; Arg * &gt;<br class="typebreak"/>
::iterator&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceTCLAP.html#a04213af1ffc3178ce5f771d21d5164a2">TCLAP::ArgVectorIterator</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Typedef of an <a class="el" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a> vector iterator. <a href="#a04213af1ffc3178ce5f771d21d5164a2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef std::list&lt; Visitor * &gt;<br class="typebreak"/>
::iterator&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceTCLAP.html#a30300bc675a64eacafa1298268de1101">TCLAP::VisitorListIterator</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Typedef of a <a class="el" href="classTCLAP_1_1Visitor.html" title="A base class that defines the interface for visitors.">Visitor</a> list iterator. <a href="#a30300bc675a64eacafa1298268de1101"></a><br/></td></tr>
<tr><td colspan="2"><h2>Functions</h2></td></tr>
<tr><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr><td class="memTemplItemLeft" align="right" valign="top">void&nbsp;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceTCLAP.html#a80473f9a24db31df0206504c2cdf0a8d">TCLAP::ExtractValue</a> (T &amp;destVal, const std::string &amp;strVal, ValueLike vl)</td></tr>
<tr><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr><td class="memTemplItemLeft" align="right" valign="top">void&nbsp;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceTCLAP.html#adf4c56655c8414e1dd70d56ceda8ce3f">TCLAP::ExtractValue</a> (T &amp;destVal, const std::string &amp;strVal, StringLike sl)</td></tr>
</table>
<hr/><h2>Define Documentation</h2>
<a class="anchor" id="a91e904e6e4f21f803c49113b934e6966"></a><!-- doxytag: member="Arg.h::HAVE_SSTREAM" ref="a91e904e6e4f21f803c49113b934e6966" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define HAVE_SSTREAM</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Definition at line <a class="el" href="Arg_8h_source.html#l00031">31</a> of file <a class="el" href="Arg_8h_source.html">Arg.h</a>.</p>
</div>
</div>
<a class="anchor" id="a892de6ada8e6a8ed25e303ca564a8447"></a><!-- doxytag: member="Arg.h::TCLAP_FLAGSTARTCHAR" ref="a892de6ada8e6a8ed25e303ca564a8447" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define TCLAP_FLAGSTARTCHAR&nbsp;&nbsp;&nbsp;'-'</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>The char that indicates the beginning of a flag. </p>
<p>Defaults to '-', but clients can define TCLAP_FLAGSTARTCHAR to override. </p>
<p>Definition at line <a class="el" href="Arg_8h_source.html#l00224">224</a> of file <a class="el" href="Arg_8h_source.html">Arg.h</a>.</p>
<p>Referenced by <a class="el" href="Arg_8h_source.html#l00226">TCLAP::Arg::flagStartChar()</a>.</p>
</div>
</div>
<a class="anchor" id="a542fe8477a66451cf2d983fd4c4f1846"></a><!-- doxytag: member="Arg.h::TCLAP_FLAGSTARTSTRING" ref="a542fe8477a66451cf2d983fd4c4f1846" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define TCLAP_FLAGSTARTSTRING&nbsp;&nbsp;&nbsp;&quot;-&quot;</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>The sting that indicates the beginning of a flag. </p>
<p>Defaults to "-", but clients can define TCLAP_FLAGSTARTSTRING to override. Should be the same as TCLAP_FLAGSTARTCHAR. </p>
<p>Definition at line <a class="el" href="Arg_8h_source.html#l00234">234</a> of file <a class="el" href="Arg_8h_source.html">Arg.h</a>.</p>
<p>Referenced by <a class="el" href="Arg_8h_source.html#l00236">TCLAP::Arg::flagStartString()</a>.</p>
</div>
</div>
<a class="anchor" id="ab497be2528843816edec2ec9897dfca2"></a><!-- doxytag: member="Arg.h::TCLAP_NAMESTARTSTRING" ref="ab497be2528843816edec2ec9897dfca2" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define TCLAP_NAMESTARTSTRING&nbsp;&nbsp;&nbsp;&quot;--&quot;</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>The sting that indicates the beginning of a name. </p>
<p>Defaults to "--", but clients can define TCLAP_NAMESTARTSTRING to override. </p>
<p>Definition at line <a class="el" href="Arg_8h_source.html#l00243">243</a> of file <a class="el" href="Arg_8h_source.html">Arg.h</a>.</p>
<p>Referenced by <a class="el" href="Arg_8h_source.html#l00245">TCLAP::Arg::nameStartString()</a>.</p>
</div>
</div>
<hr/><h2>Typedef Documentation</h2>
<a class="anchor" id="ab31d9646d48ca9d02918cc36b138e67b"></a><!-- doxytag: member="Arg.h::istringstream" ref="ab31d9646d48ca9d02918cc36b138e67b" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef <a class="el" href="Arg_8h.html#ab31d9646d48ca9d02918cc36b138e67b">std::istringstream</a> <a class="el" href="Arg_8h.html#ab31d9646d48ca9d02918cc36b138e67b">istringstream</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Definition at line <a class="el" href="Arg_8h_source.html#l00043">43</a> of file <a class="el" href="Arg_8h_source.html">Arg.h</a>.</p>
</div>
</div>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Sat Apr 16 15:34:24 2011 for tclap by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.0 </small></address>
</body>
</html>

View File

@ -0,0 +1,486 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>tclap: Arg.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.0 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
<li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
</ul>
</div>
<h1>Arg.h</h1><a href="Arg_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// -*- Mode: c++; c-basic-offset: 4; tab-width: 4; -*-</span>
<a name="l00002"></a>00002
<a name="l00003"></a>00003 <span class="comment">/******************************************************************************</span>
<a name="l00004"></a>00004 <span class="comment"> *</span>
<a name="l00005"></a>00005 <span class="comment"> * file: Arg.h</span>
<a name="l00006"></a>00006 <span class="comment"> *</span>
<a name="l00007"></a>00007 <span class="comment"> * Copyright (c) 2003, Michael E. Smoot .</span>
<a name="l00008"></a>00008 <span class="comment"> * Copyright (c) 2004, Michael E. Smoot, Daniel Aarno .</span>
<a name="l00009"></a>00009 <span class="comment"> * All rights reverved.</span>
<a name="l00010"></a>00010 <span class="comment"> *</span>
<a name="l00011"></a>00011 <span class="comment"> * See the file COPYING in the top directory of this distribution for</span>
<a name="l00012"></a>00012 <span class="comment"> * more information.</span>
<a name="l00013"></a>00013 <span class="comment"> *</span>
<a name="l00014"></a>00014 <span class="comment"> * THE SOFTWARE IS PROVIDED _AS IS_, WITHOUT WARRANTY OF ANY KIND, EXPRESS</span>
<a name="l00015"></a>00015 <span class="comment"> * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,</span>
<a name="l00016"></a>00016 <span class="comment"> * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL</span>
<a name="l00017"></a>00017 <span class="comment"> * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER</span>
<a name="l00018"></a>00018 <span class="comment"> * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING</span>
<a name="l00019"></a>00019 <span class="comment"> * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER</span>
<a name="l00020"></a>00020 <span class="comment"> * DEALINGS IN THE SOFTWARE.</span>
<a name="l00021"></a>00021 <span class="comment"> *</span>
<a name="l00022"></a>00022 <span class="comment"> *****************************************************************************/</span>
<a name="l00023"></a>00023
<a name="l00024"></a>00024
<a name="l00025"></a>00025 <span class="preprocessor">#ifndef TCLAP_ARGUMENT_H</span>
<a name="l00026"></a>00026 <span class="preprocessor"></span><span class="preprocessor">#define TCLAP_ARGUMENT_H</span>
<a name="l00027"></a>00027 <span class="preprocessor"></span>
<a name="l00028"></a>00028 <span class="preprocessor">#ifdef HAVE_CONFIG_H</span>
<a name="l00029"></a>00029 <span class="preprocessor"></span><span class="preprocessor">#include &lt;config.h&gt;</span>
<a name="l00030"></a>00030 <span class="preprocessor">#else</span>
<a name="l00031"></a><a class="code" href="Arg_8h.html#a91e904e6e4f21f803c49113b934e6966">00031</a> <span class="preprocessor"></span><span class="preprocessor">#define HAVE_SSTREAM</span>
<a name="l00032"></a>00032 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00033"></a>00033 <span class="preprocessor"></span>
<a name="l00034"></a>00034 <span class="preprocessor">#include &lt;string&gt;</span>
<a name="l00035"></a>00035 <span class="preprocessor">#include &lt;vector&gt;</span>
<a name="l00036"></a>00036 <span class="preprocessor">#include &lt;list&gt;</span>
<a name="l00037"></a>00037 <span class="preprocessor">#include &lt;iostream&gt;</span>
<a name="l00038"></a>00038 <span class="preprocessor">#include &lt;iomanip&gt;</span>
<a name="l00039"></a>00039 <span class="preprocessor">#include &lt;cstdio&gt;</span>
<a name="l00040"></a>00040
<a name="l00041"></a>00041 <span class="preprocessor">#if defined(HAVE_SSTREAM)</span>
<a name="l00042"></a>00042 <span class="preprocessor"></span><span class="preprocessor">#include &lt;sstream&gt;</span>
<a name="l00043"></a><a class="code" href="Arg_8h.html#ab31d9646d48ca9d02918cc36b138e67b">00043</a> <span class="keyword">typedef</span> <a class="code" href="Arg_8h.html#ab31d9646d48ca9d02918cc36b138e67b">std::istringstream</a> <a class="code" href="Arg_8h.html#ab31d9646d48ca9d02918cc36b138e67b">istringstream</a>;
<a name="l00044"></a>00044 <span class="preprocessor">#elif defined(HAVE_STRSTREAM)</span>
<a name="l00045"></a>00045 <span class="preprocessor"></span><span class="preprocessor">#include &lt;strstream&gt;</span>
<a name="l00046"></a>00046 <span class="keyword">typedef</span> std::istrstream <a class="code" href="Arg_8h.html#ab31d9646d48ca9d02918cc36b138e67b">istringstream</a>;
<a name="l00047"></a>00047 <span class="preprocessor">#else</span>
<a name="l00048"></a>00048 <span class="preprocessor"></span><span class="preprocessor">#error &quot;Need a stringstream (sstream or strstream) to compile!&quot;</span>
<a name="l00049"></a>00049 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00050"></a>00050 <span class="preprocessor"></span>
<a name="l00051"></a>00051 <span class="preprocessor">#include &lt;<a class="code" href="ArgException_8h.html">tclap/ArgException.h</a>&gt;</span>
<a name="l00052"></a>00052 <span class="preprocessor">#include &lt;<a class="code" href="Visitor_8h.html">tclap/Visitor.h</a>&gt;</span>
<a name="l00053"></a>00053 <span class="preprocessor">#include &lt;<a class="code" href="CmdLineInterface_8h.html">tclap/CmdLineInterface.h</a>&gt;</span>
<a name="l00054"></a>00054 <span class="preprocessor">#include &lt;<a class="code" href="ArgTraits_8h.html">tclap/ArgTraits.h</a>&gt;</span>
<a name="l00055"></a>00055 <span class="preprocessor">#include &lt;<a class="code" href="StandardTraits_8h.html">tclap/StandardTraits.h</a>&gt;</span>
<a name="l00056"></a>00056
<a name="l00057"></a><a class="code" href="namespaceTCLAP.html">00057</a> <span class="keyword">namespace </span>TCLAP {
<a name="l00058"></a>00058
<a name="l00064"></a><a class="code" href="classTCLAP_1_1Arg.html">00064</a> <span class="keyword">class </span><a class="code" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a>
<a name="l00065"></a>00065 {
<a name="l00066"></a>00066 <span class="keyword">private</span>:
<a name="l00070"></a>00070 <a class="code" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a>(<span class="keyword">const</span> <a class="code" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a>&amp; rhs);
<a name="l00071"></a>00071
<a name="l00075"></a>00075 <a class="code" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a>&amp; operator=(<span class="keyword">const</span> <a class="code" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a>&amp; rhs);
<a name="l00076"></a>00076
<a name="l00080"></a>00080 <span class="keyword">static</span> <span class="keywordtype">bool</span>&amp; ignoreRestRef() { <span class="keyword">static</span> <span class="keywordtype">bool</span> ign = <span class="keyword">false</span>; <span class="keywordflow">return</span> ign; }
<a name="l00081"></a>00081
<a name="l00086"></a>00086 <span class="keyword">static</span> <span class="keywordtype">char</span>&amp; delimiterRef() { <span class="keyword">static</span> <span class="keywordtype">char</span> delim = <span class="charliteral">&apos; &apos;</span>; <span class="keywordflow">return</span> delim; }
<a name="l00087"></a>00087
<a name="l00088"></a>00088 <span class="keyword">protected</span>:
<a name="l00089"></a>00089
<a name="l00098"></a><a class="code" href="classTCLAP_1_1Arg.html#ae68407a0a8223023ad0ae3b9dc7986f5">00098</a> std::string <a class="code" href="classTCLAP_1_1Arg.html#ae68407a0a8223023ad0ae3b9dc7986f5" title="The single char flag used to identify the argument.">_flag</a>;
<a name="l00099"></a>00099
<a name="l00107"></a><a class="code" href="classTCLAP_1_1Arg.html#ac0f138057a99fb5d94ff4acb41a083aa">00107</a> std::string <a class="code" href="classTCLAP_1_1Arg.html#ac0f138057a99fb5d94ff4acb41a083aa" title="A single work namd indentifying the argument.">_name</a>;
<a name="l00108"></a>00108
<a name="l00112"></a><a class="code" href="classTCLAP_1_1Arg.html#a9882fe256eaab01ac53db54ac657d272">00112</a> std::string <a class="code" href="classTCLAP_1_1Arg.html#a9882fe256eaab01ac53db54ac657d272" title="Description of the argument.">_description</a>;
<a name="l00113"></a>00113
<a name="l00117"></a><a class="code" href="classTCLAP_1_1Arg.html#ad16408bd1ca4d8b1d14d6c5129545a84">00117</a> <span class="keywordtype">bool</span> <a class="code" href="classTCLAP_1_1Arg.html#ad16408bd1ca4d8b1d14d6c5129545a84" title="Indicating whether the argument is required.">_required</a>;
<a name="l00118"></a>00118
<a name="l00123"></a><a class="code" href="classTCLAP_1_1Arg.html#a2ed097a868e34a0c4f6062ead744ac54">00123</a> std::string <a class="code" href="classTCLAP_1_1Arg.html#a2ed097a868e34a0c4f6062ead744ac54" title="Label to be used in usage description.">_requireLabel</a>;
<a name="l00124"></a>00124
<a name="l00130"></a><a class="code" href="classTCLAP_1_1Arg.html#a776682b7e19f4dc231bbad3d10034dfa">00130</a> <span class="keywordtype">bool</span> <a class="code" href="classTCLAP_1_1Arg.html#a776682b7e19f4dc231bbad3d10034dfa" title="Indicates whether a value is required for the argument.">_valueRequired</a>;
<a name="l00131"></a>00131
<a name="l00137"></a><a class="code" href="classTCLAP_1_1Arg.html#a829e32129857d2683e5791a5df1208ec">00137</a> <span class="keywordtype">bool</span> <a class="code" href="classTCLAP_1_1Arg.html#a829e32129857d2683e5791a5df1208ec" title="Indicates whether the argument has been set.">_alreadySet</a>;
<a name="l00138"></a>00138
<a name="l00145"></a><a class="code" href="classTCLAP_1_1Arg.html#aa9ff037e92c9fa5bd85e532f61899300">00145</a> <a class="code" href="classTCLAP_1_1Visitor.html" title="A base class that defines the interface for visitors.">Visitor</a>* <a class="code" href="classTCLAP_1_1Arg.html#aa9ff037e92c9fa5bd85e532f61899300" title="A pointer to a vistitor object.">_visitor</a>;
<a name="l00146"></a>00146
<a name="l00150"></a><a class="code" href="classTCLAP_1_1Arg.html#a9832bb7564f4ab472bd51b7b1bbc683f">00150</a> <span class="keywordtype">bool</span> <a class="code" href="classTCLAP_1_1Arg.html#a9832bb7564f4ab472bd51b7b1bbc683f" title="Whether this argument can be ignored, if desired.">_ignoreable</a>;
<a name="l00151"></a>00151
<a name="l00156"></a><a class="code" href="classTCLAP_1_1Arg.html#ab413bd1d8a7ecf3c89672ee23ef791ba">00156</a> <span class="keywordtype">bool</span> <a class="code" href="classTCLAP_1_1Arg.html#ab413bd1d8a7ecf3c89672ee23ef791ba" title="Indicates that the arg was set as part of an XOR and not on the command line.">_xorSet</a>;
<a name="l00157"></a>00157
<a name="l00158"></a><a class="code" href="classTCLAP_1_1Arg.html#a13130a9a5d22c57a6d42a8883c9b1e0f">00158</a> <span class="keywordtype">bool</span> <a class="code" href="classTCLAP_1_1Arg.html#a13130a9a5d22c57a6d42a8883c9b1e0f">_acceptsMultipleValues</a>;
<a name="l00159"></a>00159
<a name="l00163"></a>00163 <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1Arg.html#aa963d0d4c8cb297e1f4cf74143bf6d1b" title="Performs the special handling described by the Vistitor.">_checkWithVisitor</a>() <span class="keyword">const</span>;
<a name="l00164"></a>00164
<a name="l00178"></a>00178 <a class="code" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a>( <span class="keyword">const</span> std::string&amp; flag,
<a name="l00179"></a>00179 <span class="keyword">const</span> std::string&amp; name,
<a name="l00180"></a>00180 <span class="keyword">const</span> std::string&amp; desc,
<a name="l00181"></a>00181 <span class="keywordtype">bool</span> req,
<a name="l00182"></a>00182 <span class="keywordtype">bool</span> valreq,
<a name="l00183"></a>00183 <a class="code" href="classTCLAP_1_1Visitor.html" title="A base class that defines the interface for visitors.">Visitor</a>* v = NULL );
<a name="l00184"></a>00184
<a name="l00185"></a>00185 <span class="keyword">public</span>:
<a name="l00189"></a>00189 <span class="keyword">virtual</span> <a class="code" href="classTCLAP_1_1Arg.html#a15734a7cf52c8c4ab6df70f0997bbee3" title="Destructor.">~Arg</a>();
<a name="l00190"></a>00190
<a name="l00195"></a>00195 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1Arg.html#a9ff1564beeea2ef855f7fa483c37d0e2" title="Adds this to the specified list of Args.">addToList</a>( std::list&lt;Arg*&gt;&amp; argList ) <span class="keyword">const</span>;
<a name="l00196"></a>00196
<a name="l00200"></a><a class="code" href="classTCLAP_1_1Arg.html#a24165d31c1ec70777fb201356b6cdf6a">00200</a> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1Arg.html#a24165d31c1ec70777fb201356b6cdf6a" title="Begin ignoring arguments since the &amp;quot;--&amp;quot; argument was specified.">beginIgnoring</a>() { ignoreRestRef() = <span class="keyword">true</span>; }
<a name="l00201"></a>00201
<a name="l00205"></a><a class="code" href="classTCLAP_1_1Arg.html#a4d412155b8f9b4956e64e91c48e55a3b">00205</a> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classTCLAP_1_1Arg.html#a4d412155b8f9b4956e64e91c48e55a3b" title="Whether to ignore the rest.">ignoreRest</a>() { <span class="keywordflow">return</span> ignoreRestRef(); }
<a name="l00206"></a>00206
<a name="l00211"></a><a class="code" href="classTCLAP_1_1Arg.html#aadef6ca7e40f5b3d3fd03186976aea7e">00211</a> <span class="keyword">static</span> <span class="keywordtype">char</span> <a class="code" href="classTCLAP_1_1Arg.html#aadef6ca7e40f5b3d3fd03186976aea7e" title="The delimiter that separates an argument flag/name from the value.">delimiter</a>() { <span class="keywordflow">return</span> delimiterRef(); }
<a name="l00212"></a>00212
<a name="l00217"></a><a class="code" href="classTCLAP_1_1Arg.html#a0abd38f46dbf7d267078134a4817fbb2">00217</a> <span class="keyword">static</span> <span class="keywordtype">char</span> <a class="code" href="classTCLAP_1_1Arg.html#a0abd38f46dbf7d267078134a4817fbb2" title="The char used as a place holder when SwitchArgs are combined.">blankChar</a>() { <span class="keywordflow">return</span> (<span class="keywordtype">char</span>)7; }
<a name="l00218"></a>00218
<a name="l00223"></a>00223 <span class="preprocessor">#ifndef TCLAP_FLAGSTARTCHAR</span>
<a name="l00224"></a><a class="code" href="Arg_8h.html#a892de6ada8e6a8ed25e303ca564a8447">00224</a> <span class="preprocessor"></span><span class="preprocessor">#define TCLAP_FLAGSTARTCHAR &apos;-&apos;</span>
<a name="l00225"></a>00225 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00226"></a><a class="code" href="classTCLAP_1_1Arg.html#a7f9f6af439993e9151bd5a6cd2a63dad">00226</a> <span class="preprocessor"></span> <span class="keyword">static</span> <span class="keywordtype">char</span> <a class="code" href="classTCLAP_1_1Arg.html#a7f9f6af439993e9151bd5a6cd2a63dad">flagStartChar</a>() { <span class="keywordflow">return</span> <a class="code" href="Arg_8h.html#a892de6ada8e6a8ed25e303ca564a8447" title="The char that indicates the beginning of a flag.">TCLAP_FLAGSTARTCHAR</a>; }
<a name="l00227"></a>00227
<a name="l00233"></a>00233 <span class="preprocessor">#ifndef TCLAP_FLAGSTARTSTRING</span>
<a name="l00234"></a><a class="code" href="Arg_8h.html#a542fe8477a66451cf2d983fd4c4f1846">00234</a> <span class="preprocessor"></span><span class="preprocessor">#define TCLAP_FLAGSTARTSTRING &quot;-&quot;</span>
<a name="l00235"></a>00235 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00236"></a><a class="code" href="classTCLAP_1_1Arg.html#af8e739295b0f75028e7bff6d670d97a1">00236</a> <span class="preprocessor"></span> <span class="keyword">static</span> <span class="keyword">const</span> std::string <a class="code" href="classTCLAP_1_1Arg.html#af8e739295b0f75028e7bff6d670d97a1">flagStartString</a>() { <span class="keywordflow">return</span> <a class="code" href="Arg_8h.html#a542fe8477a66451cf2d983fd4c4f1846" title="The sting that indicates the beginning of a flag.">TCLAP_FLAGSTARTSTRING</a>; }
<a name="l00237"></a>00237
<a name="l00242"></a>00242 <span class="preprocessor">#ifndef TCLAP_NAMESTARTSTRING</span>
<a name="l00243"></a><a class="code" href="Arg_8h.html#ab497be2528843816edec2ec9897dfca2">00243</a> <span class="preprocessor"></span><span class="preprocessor">#define TCLAP_NAMESTARTSTRING &quot;--&quot;</span>
<a name="l00244"></a>00244 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00245"></a><a class="code" href="classTCLAP_1_1Arg.html#a1df2134870528b80f9f35347fef6fd14">00245</a> <span class="preprocessor"></span> <span class="keyword">static</span> <span class="keyword">const</span> std::string <a class="code" href="classTCLAP_1_1Arg.html#a1df2134870528b80f9f35347fef6fd14">nameStartString</a>() { <span class="keywordflow">return</span> <a class="code" href="Arg_8h.html#ab497be2528843816edec2ec9897dfca2" title="The sting that indicates the beginning of a name.">TCLAP_NAMESTARTSTRING</a>; }
<a name="l00246"></a>00246
<a name="l00250"></a><a class="code" href="classTCLAP_1_1Arg.html#a6ce0cbe4effd44679ca11f25e3c318e7">00250</a> <span class="keyword">static</span> <span class="keyword">const</span> std::string <a class="code" href="classTCLAP_1_1Arg.html#a6ce0cbe4effd44679ca11f25e3c318e7" title="The name used to identify the ignore rest argument.">ignoreNameString</a>() { <span class="keywordflow">return</span> <span class="stringliteral">&quot;ignore_rest&quot;</span>; }
<a name="l00251"></a>00251
<a name="l00256"></a><a class="code" href="classTCLAP_1_1Arg.html#ad059b63424001b9aedb4c019e2854c3c">00256</a> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1Arg.html#ad059b63424001b9aedb4c019e2854c3c" title="Sets the delimiter for all arguments.">setDelimiter</a>( <span class="keywordtype">char</span> c ) { delimiterRef() = c; }
<a name="l00257"></a>00257
<a name="l00265"></a>00265 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classTCLAP_1_1Arg.html#a61ffe2f660a76111d256f7b22a686146" title="Pure virtual method meant to handle the parsing and value assignment of the string...">processArg</a>(<span class="keywordtype">int</span> *i, std::vector&lt;std::string&gt;&amp; args) = 0;
<a name="l00266"></a>00266
<a name="l00272"></a>00272 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classTCLAP_1_1Arg.html#a657a8d2842b7de9ced5a5a55db01d367" title="Operator ==.">operator==</a>(<span class="keyword">const</span> <a class="code" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a>&amp; a) <span class="keyword">const</span>;
<a name="l00273"></a>00273
<a name="l00277"></a>00277 <span class="keyword">const</span> std::string&amp; <a class="code" href="classTCLAP_1_1Arg.html#a22f616e81a423e794f13a9ae1549ac77" title="Returns the argument flag.">getFlag</a>() <span class="keyword">const</span>;
<a name="l00278"></a>00278
<a name="l00282"></a>00282 <span class="keyword">const</span> std::string&amp; <a class="code" href="classTCLAP_1_1Arg.html#a641ced141a56c74fee11d3e3a808f731" title="Returns the argument name.">getName</a>() <span class="keyword">const</span>;
<a name="l00283"></a>00283
<a name="l00287"></a>00287 std::string <a class="code" href="classTCLAP_1_1Arg.html#a1943999fadcb4f28cecd6ba55ed0b085" title="Returns the argument description.">getDescription</a>() <span class="keyword">const</span>;
<a name="l00288"></a>00288
<a name="l00292"></a>00292 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classTCLAP_1_1Arg.html#a00a3cfdb2b6e9a111ad39cbd4978b96c" title="Indicates whether the argument is required.">isRequired</a>() <span class="keyword">const</span>;
<a name="l00293"></a>00293
<a name="l00298"></a>00298 <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1Arg.html#a58e3de560f364d0bb6bdf36ab533a6fd" title="Sets _required to true.">forceRequired</a>();
<a name="l00299"></a>00299
<a name="l00304"></a>00304 <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1Arg.html#aec525c8092e56f7f5aa455e71bc72374" title="Sets the _alreadySet value to true.">xorSet</a>();
<a name="l00305"></a>00305
<a name="l00309"></a>00309 <span class="keywordtype">bool</span> <a class="code" href="classTCLAP_1_1Arg.html#a1373d50d4b93c16db43c7600cf6d0355" title="Indicates whether a value must be specified for argument.">isValueRequired</a>() <span class="keyword">const</span>;
<a name="l00310"></a>00310
<a name="l00315"></a>00315 <span class="keywordtype">bool</span> <a class="code" href="classTCLAP_1_1Arg.html#a6af7a1e92b5d92fc2d90c1a95aab4384" title="Indicates whether the argument has already been set.">isSet</a>() <span class="keyword">const</span>;
<a name="l00316"></a>00316
<a name="l00320"></a>00320 <span class="keywordtype">bool</span> <a class="code" href="classTCLAP_1_1Arg.html#a33816b5ccc58a15f3a998480e5d988e2" title="Indicates whether the argument can be ignored, if desired.">isIgnoreable</a>() <span class="keyword">const</span>;
<a name="l00321"></a>00321
<a name="l00330"></a>00330 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classTCLAP_1_1Arg.html#aac37b1b734b477e5d16f2037dba9c125" title="A method that tests whether a string matches this argument.">argMatches</a>( <span class="keyword">const</span> std::string&amp; s ) <span class="keyword">const</span>;
<a name="l00331"></a>00331
<a name="l00336"></a>00336 <span class="keyword">virtual</span> std::string <a class="code" href="classTCLAP_1_1Arg.html#ac98a357568c21f0eb6ca2220b8a3d4a2" title="Returns a simple string representation of the argument.">toString</a>() <span class="keyword">const</span>;
<a name="l00337"></a>00337
<a name="l00342"></a>00342 <span class="keyword">virtual</span> std::string <a class="code" href="classTCLAP_1_1Arg.html#aef8efaf3811162b2b2b2a84c6db280fa" title="Returns a short ID for the usage.">shortID</a>( <span class="keyword">const</span> std::string&amp; valueId = <span class="stringliteral">&quot;val&quot;</span> ) <span class="keyword">const</span>;
<a name="l00343"></a>00343
<a name="l00348"></a>00348 <span class="keyword">virtual</span> std::string <a class="code" href="classTCLAP_1_1Arg.html#aad93aff46e1fc67e3853765f565bfa96" title="Returns a long ID for the usage.">longID</a>( <span class="keyword">const</span> std::string&amp; valueId = <span class="stringliteral">&quot;val&quot;</span> ) <span class="keyword">const</span>;
<a name="l00349"></a>00349
<a name="l00357"></a>00357 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1Arg.html#a54595328e81f5fb77859563690faab25" title="Trims a value off of the flag.">trimFlag</a>( std::string&amp; flag, std::string&amp; value ) <span class="keyword">const</span>;
<a name="l00358"></a>00358
<a name="l00365"></a>00365 <span class="keywordtype">bool</span> <a class="code" href="classTCLAP_1_1Arg.html#a2eb0ffefe163218bdc8b4b7a33a974a7" title="Checks whether a given string has blank chars, indicating that it is a combined SwitchArg...">_hasBlanks</a>( <span class="keyword">const</span> std::string&amp; s ) <span class="keyword">const</span>;
<a name="l00366"></a>00366
<a name="l00372"></a>00372 <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1Arg.html#aae5c959f31af1a484a8af06f84a6e8b0" title="Sets the requireLabel.">setRequireLabel</a>( <span class="keyword">const</span> std::string&amp; s );
<a name="l00373"></a>00373
<a name="l00378"></a>00378 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classTCLAP_1_1Arg.html#a9aef735d37ef95ca1b7dc7a07850b984" title="Used for MultiArgs and XorHandler to determine whether args can still be set.">allowMore</a>();
<a name="l00379"></a>00379
<a name="l00384"></a>00384 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classTCLAP_1_1Arg.html#ad356870538a255d639e26b30330202ae" title="Use by output classes to determine whether an Arg accepts multiple values.">acceptsMultipleValues</a>();
<a name="l00385"></a>00385
<a name="l00390"></a>00390 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1Arg.html#ab5b5dc9a9b0381561f0684523f943a2c" title="Clears the Arg object and allows it to be reused by new command lines.">reset</a>();
<a name="l00391"></a>00391 };
<a name="l00392"></a>00392
<a name="l00396"></a><a class="code" href="namespaceTCLAP.html#aa7d6a803e0690c3c8b1db57c145648c5">00396</a> <span class="keyword">typedef</span> std::list&lt;Arg*&gt;::iterator <a class="code" href="namespaceTCLAP.html#aa7d6a803e0690c3c8b1db57c145648c5" title="Typedef of an Arg list iterator.">ArgListIterator</a>;
<a name="l00397"></a>00397
<a name="l00401"></a><a class="code" href="namespaceTCLAP.html#a04213af1ffc3178ce5f771d21d5164a2">00401</a> <span class="keyword">typedef</span> std::vector&lt;Arg*&gt;::iterator <a class="code" href="namespaceTCLAP.html#a04213af1ffc3178ce5f771d21d5164a2" title="Typedef of an Arg vector iterator.">ArgVectorIterator</a>;
<a name="l00402"></a>00402
<a name="l00406"></a><a class="code" href="namespaceTCLAP.html#a30300bc675a64eacafa1298268de1101">00406</a> <span class="keyword">typedef</span> std::list&lt;Visitor*&gt;::iterator <a class="code" href="namespaceTCLAP.html#a30300bc675a64eacafa1298268de1101" title="Typedef of a Visitor list iterator.">VisitorListIterator</a>;
<a name="l00407"></a>00407
<a name="l00408"></a>00408 <span class="comment">/*</span>
<a name="l00409"></a>00409 <span class="comment"> * Extract a value of type T from it&apos;s string representation contained</span>
<a name="l00410"></a>00410 <span class="comment"> * in strVal. The ValueLike parameter used to select the correct</span>
<a name="l00411"></a>00411 <span class="comment"> * specialization of ExtractValue depending on the value traits of T.</span>
<a name="l00412"></a>00412 <span class="comment"> * ValueLike traits use operator&gt;&gt; to assign the value from strVal.</span>
<a name="l00413"></a>00413 <span class="comment"> */</span>
<a name="l00414"></a>00414 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt; <span class="keywordtype">void</span>
<a name="l00415"></a><a class="code" href="namespaceTCLAP.html#a80473f9a24db31df0206504c2cdf0a8d">00415</a> <a class="code" href="namespaceTCLAP.html#a80473f9a24db31df0206504c2cdf0a8d">ExtractValue</a>(T &amp;destVal, <span class="keyword">const</span> std::string&amp; strVal, <a class="code" href="structTCLAP_1_1ValueLike.html" title="A value like argument value type is a value that can be set using operator&amp;gt;&amp;gt;...">ValueLike</a> vl)
<a name="l00416"></a>00416 {
<a name="l00417"></a>00417 <span class="keyword">static_cast&lt;</span><span class="keywordtype">void</span><span class="keyword">&gt;</span>(vl); <span class="comment">// Avoid warning about unused vl</span>
<a name="l00418"></a>00418 <a class="code" href="Arg_8h.html#ab31d9646d48ca9d02918cc36b138e67b">std::istringstream</a> is(strVal);
<a name="l00419"></a>00419
<a name="l00420"></a>00420 <span class="keywordtype">int</span> valuesRead = 0;
<a name="l00421"></a>00421 <span class="keywordflow">while</span> ( is.good() ) {
<a name="l00422"></a>00422 <span class="keywordflow">if</span> ( is.peek() != EOF )
<a name="l00423"></a>00423 #ifdef TCLAP_SETBASE_ZERO
<a name="l00424"></a>00424 is &gt;&gt; std::setbase(0) &gt;&gt; destVal;
<a name="l00425"></a>00425 <span class="preprocessor">#else</span>
<a name="l00426"></a>00426 <span class="preprocessor"></span> is &gt;&gt; destVal;
<a name="l00427"></a>00427 <span class="preprocessor">#endif</span>
<a name="l00428"></a>00428 <span class="preprocessor"></span> <span class="keywordflow">else</span>
<a name="l00429"></a>00429 <span class="keywordflow">break</span>;
<a name="l00430"></a>00430
<a name="l00431"></a>00431 valuesRead++;
<a name="l00432"></a>00432 }
<a name="l00433"></a>00433
<a name="l00434"></a>00434 <span class="keywordflow">if</span> ( is.fail() )
<a name="l00435"></a>00435 <span class="keywordflow">throw</span>( <a class="code" href="classTCLAP_1_1ArgParseException.html" title="Thrown from within the child Arg classes when it fails to properly parse the argument...">ArgParseException</a>(<span class="stringliteral">&quot;Couldn&apos;t read argument value &quot;</span>
<a name="l00436"></a>00436 <span class="stringliteral">&quot;from string &apos;&quot;</span> + strVal + <span class="stringliteral">&quot;&apos;&quot;</span>));
<a name="l00437"></a>00437
<a name="l00438"></a>00438
<a name="l00439"></a>00439 <span class="keywordflow">if</span> ( valuesRead &gt; 1 )
<a name="l00440"></a>00440 <span class="keywordflow">throw</span>( <a class="code" href="classTCLAP_1_1ArgParseException.html" title="Thrown from within the child Arg classes when it fails to properly parse the argument...">ArgParseException</a>(<span class="stringliteral">&quot;More than one valid value parsed from &quot;</span>
<a name="l00441"></a>00441 <span class="stringliteral">&quot;string &apos;&quot;</span> + strVal + <span class="stringliteral">&quot;&apos;&quot;</span>));
<a name="l00442"></a>00442
<a name="l00443"></a>00443 }
<a name="l00444"></a>00444
<a name="l00445"></a>00445 <span class="comment">/*</span>
<a name="l00446"></a>00446 <span class="comment"> * Extract a value of type T from it&apos;s string representation contained</span>
<a name="l00447"></a>00447 <span class="comment"> * in strVal. The ValueLike parameter used to select the correct</span>
<a name="l00448"></a>00448 <span class="comment"> * specialization of ExtractValue depending on the value traits of T.</span>
<a name="l00449"></a>00449 <span class="comment"> * StringLike uses assignment (operator=) to assign from strVal.</span>
<a name="l00450"></a>00450 <span class="comment"> */</span>
<a name="l00451"></a>00451 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt; <span class="keywordtype">void</span>
<a name="l00452"></a><a class="code" href="namespaceTCLAP.html#adf4c56655c8414e1dd70d56ceda8ce3f">00452</a> <a class="code" href="namespaceTCLAP.html#a80473f9a24db31df0206504c2cdf0a8d">ExtractValue</a>(T &amp;destVal, <span class="keyword">const</span> std::string&amp; strVal, <a class="code" href="structTCLAP_1_1StringLike.html" title="A string like argument value type is a value that can be set using operator=(string)...">StringLike</a> sl)
<a name="l00453"></a>00453 {
<a name="l00454"></a>00454 <span class="keyword">static_cast&lt;</span><span class="keywordtype">void</span><span class="keyword">&gt;</span>(sl); <span class="comment">// Avoid warning about unused sl</span>
<a name="l00455"></a>00455 <a class="code" href="namespaceTCLAP.html#a06cca5c0de2e5803a67c63cde60a2dfb">SetString</a>(destVal, strVal);
<a name="l00456"></a>00456 }
<a name="l00457"></a>00457
<a name="l00459"></a>00459 <span class="comment">//BEGIN Arg.cpp</span>
<a name="l00461"></a>00461 <span class="comment"></span>
<a name="l00462"></a><a class="code" href="classTCLAP_1_1Arg.html#ab25a06db5edf82a5b965b641b3c63372">00462</a> <span class="keyword">inline</span> Arg::Arg(<span class="keyword">const</span> std::string&amp; flag,
<a name="l00463"></a>00463 <span class="keyword">const</span> std::string&amp; name,
<a name="l00464"></a>00464 <span class="keyword">const</span> std::string&amp; desc,
<a name="l00465"></a>00465 <span class="keywordtype">bool</span> req,
<a name="l00466"></a>00466 <span class="keywordtype">bool</span> valreq,
<a name="l00467"></a>00467 <a class="code" href="classTCLAP_1_1Visitor.html" title="A base class that defines the interface for visitors.">Visitor</a>* v) :
<a name="l00468"></a>00468 _flag(flag),
<a name="l00469"></a>00469 _name(name),
<a name="l00470"></a>00470 _description(desc),
<a name="l00471"></a>00471 _required(req),
<a name="l00472"></a>00472 _requireLabel(<span class="stringliteral">&quot;required&quot;</span>),
<a name="l00473"></a>00473 _valueRequired(valreq),
<a name="l00474"></a>00474 _alreadySet(false),
<a name="l00475"></a>00475 _visitor( v ),
<a name="l00476"></a>00476 _ignoreable(true),
<a name="l00477"></a>00477 _xorSet(false),
<a name="l00478"></a>00478 _acceptsMultipleValues(false)
<a name="l00479"></a>00479 {
<a name="l00480"></a>00480 <span class="keywordflow">if</span> ( <a class="code" href="classTCLAP_1_1Arg.html#ae68407a0a8223023ad0ae3b9dc7986f5" title="The single char flag used to identify the argument.">_flag</a>.length() &gt; 1 )
<a name="l00481"></a>00481 <span class="keywordflow">throw</span>(<a class="code" href="classTCLAP_1_1SpecificationException.html" title="Thrown from Arg and CmdLine when an Arg is improperly specified, e.g.">SpecificationException</a>(
<a name="l00482"></a>00482 <span class="stringliteral">&quot;Argument flag can only be one character long&quot;</span>, <a class="code" href="classTCLAP_1_1Arg.html#ac98a357568c21f0eb6ca2220b8a3d4a2" title="Returns a simple string representation of the argument.">toString</a>() ) );
<a name="l00483"></a>00483
<a name="l00484"></a>00484 <span class="keywordflow">if</span> ( <a class="code" href="classTCLAP_1_1Arg.html#ac0f138057a99fb5d94ff4acb41a083aa" title="A single work namd indentifying the argument.">_name</a> != <a class="code" href="classTCLAP_1_1Arg.html#a6ce0cbe4effd44679ca11f25e3c318e7" title="The name used to identify the ignore rest argument.">ignoreNameString</a>() &amp;&amp;
<a name="l00485"></a>00485 ( <a class="code" href="classTCLAP_1_1Arg.html#ae68407a0a8223023ad0ae3b9dc7986f5" title="The single char flag used to identify the argument.">_flag</a> == <a class="code" href="classTCLAP_1_1Arg.html#af8e739295b0f75028e7bff6d670d97a1">Arg::flagStartString</a>() ||
<a name="l00486"></a>00486 <a class="code" href="classTCLAP_1_1Arg.html#ae68407a0a8223023ad0ae3b9dc7986f5" title="The single char flag used to identify the argument.">_flag</a> == <a class="code" href="classTCLAP_1_1Arg.html#a1df2134870528b80f9f35347fef6fd14">Arg::nameStartString</a>() ||
<a name="l00487"></a>00487 <a class="code" href="classTCLAP_1_1Arg.html#ae68407a0a8223023ad0ae3b9dc7986f5" title="The single char flag used to identify the argument.">_flag</a> == <span class="stringliteral">&quot; &quot;</span> ) )
<a name="l00488"></a>00488 <span class="keywordflow">throw</span>(<a class="code" href="classTCLAP_1_1SpecificationException.html" title="Thrown from Arg and CmdLine when an Arg is improperly specified, e.g.">SpecificationException</a>(<span class="stringliteral">&quot;Argument flag cannot be either &apos;&quot;</span> +
<a name="l00489"></a>00489 <a class="code" href="classTCLAP_1_1Arg.html#af8e739295b0f75028e7bff6d670d97a1">Arg::flagStartString</a>() + <span class="stringliteral">&quot;&apos; or &apos;&quot;</span> +
<a name="l00490"></a>00490 <a class="code" href="classTCLAP_1_1Arg.html#a1df2134870528b80f9f35347fef6fd14">Arg::nameStartString</a>() + <span class="stringliteral">&quot;&apos; or a space.&quot;</span>,
<a name="l00491"></a>00491 <a class="code" href="classTCLAP_1_1Arg.html#ac98a357568c21f0eb6ca2220b8a3d4a2" title="Returns a simple string representation of the argument.">toString</a>() ) );
<a name="l00492"></a>00492
<a name="l00493"></a>00493 <span class="keywordflow">if</span> ( ( <a class="code" href="classTCLAP_1_1Arg.html#ac0f138057a99fb5d94ff4acb41a083aa" title="A single work namd indentifying the argument.">_name</a>.substr( 0, <a class="code" href="classTCLAP_1_1Arg.html#af8e739295b0f75028e7bff6d670d97a1">Arg::flagStartString</a>().length() ) == <a class="code" href="classTCLAP_1_1Arg.html#af8e739295b0f75028e7bff6d670d97a1">Arg::flagStartString</a>() ) ||
<a name="l00494"></a>00494 ( <a class="code" href="classTCLAP_1_1Arg.html#ac0f138057a99fb5d94ff4acb41a083aa" title="A single work namd indentifying the argument.">_name</a>.substr( 0, <a class="code" href="classTCLAP_1_1Arg.html#a1df2134870528b80f9f35347fef6fd14">Arg::nameStartString</a>().length() ) == <a class="code" href="classTCLAP_1_1Arg.html#a1df2134870528b80f9f35347fef6fd14">Arg::nameStartString</a>() ) ||
<a name="l00495"></a>00495 ( <a class="code" href="classTCLAP_1_1Arg.html#ac0f138057a99fb5d94ff4acb41a083aa" title="A single work namd indentifying the argument.">_name</a>.find( <span class="stringliteral">&quot; &quot;</span>, 0 ) != std::string::npos ) )
<a name="l00496"></a>00496 <span class="keywordflow">throw</span>(<a class="code" href="classTCLAP_1_1SpecificationException.html" title="Thrown from Arg and CmdLine when an Arg is improperly specified, e.g.">SpecificationException</a>(<span class="stringliteral">&quot;Argument name begin with either &apos;&quot;</span> +
<a name="l00497"></a>00497 <a class="code" href="classTCLAP_1_1Arg.html#af8e739295b0f75028e7bff6d670d97a1">Arg::flagStartString</a>() + <span class="stringliteral">&quot;&apos; or &apos;&quot;</span> +
<a name="l00498"></a>00498 <a class="code" href="classTCLAP_1_1Arg.html#a1df2134870528b80f9f35347fef6fd14">Arg::nameStartString</a>() + <span class="stringliteral">&quot;&apos; or space.&quot;</span>,
<a name="l00499"></a>00499 <a class="code" href="classTCLAP_1_1Arg.html#ac98a357568c21f0eb6ca2220b8a3d4a2" title="Returns a simple string representation of the argument.">toString</a>() ) );
<a name="l00500"></a>00500
<a name="l00501"></a>00501 }
<a name="l00502"></a>00502
<a name="l00503"></a><a class="code" href="classTCLAP_1_1Arg.html#a15734a7cf52c8c4ab6df70f0997bbee3">00503</a> <span class="keyword">inline</span> <a class="code" href="classTCLAP_1_1Arg.html#a15734a7cf52c8c4ab6df70f0997bbee3" title="Destructor.">Arg::~Arg</a>() { }
<a name="l00504"></a>00504
<a name="l00505"></a><a class="code" href="classTCLAP_1_1Arg.html#aef8efaf3811162b2b2b2a84c6db280fa">00505</a> <span class="keyword">inline</span> std::string <a class="code" href="classTCLAP_1_1Arg.html#aef8efaf3811162b2b2b2a84c6db280fa" title="Returns a short ID for the usage.">Arg::shortID</a>( <span class="keyword">const</span> std::string&amp; valueId )<span class="keyword"> const</span>
<a name="l00506"></a>00506 <span class="keyword"></span>{
<a name="l00507"></a>00507 std::string <span class="keywordtype">id</span> = <span class="stringliteral">&quot;&quot;</span>;
<a name="l00508"></a>00508
<a name="l00509"></a>00509 <span class="keywordflow">if</span> ( <a class="code" href="classTCLAP_1_1Arg.html#ae68407a0a8223023ad0ae3b9dc7986f5" title="The single char flag used to identify the argument.">_flag</a> != <span class="stringliteral">&quot;&quot;</span> )
<a name="l00510"></a>00510 <span class="keywordtype">id</span> = <a class="code" href="classTCLAP_1_1Arg.html#af8e739295b0f75028e7bff6d670d97a1">Arg::flagStartString</a>() + <a class="code" href="classTCLAP_1_1Arg.html#ae68407a0a8223023ad0ae3b9dc7986f5" title="The single char flag used to identify the argument.">_flag</a>;
<a name="l00511"></a>00511 <span class="keywordflow">else</span>
<a name="l00512"></a>00512 <span class="keywordtype">id</span> = <a class="code" href="classTCLAP_1_1Arg.html#a1df2134870528b80f9f35347fef6fd14">Arg::nameStartString</a>() + <a class="code" href="classTCLAP_1_1Arg.html#ac0f138057a99fb5d94ff4acb41a083aa" title="A single work namd indentifying the argument.">_name</a>;
<a name="l00513"></a>00513
<a name="l00514"></a>00514 <span class="keywordflow">if</span> ( <a class="code" href="classTCLAP_1_1Arg.html#a776682b7e19f4dc231bbad3d10034dfa" title="Indicates whether a value is required for the argument.">_valueRequired</a> )
<a name="l00515"></a>00515 <span class="keywordtype">id</span> += std::string( 1, <a class="code" href="classTCLAP_1_1Arg.html#aadef6ca7e40f5b3d3fd03186976aea7e" title="The delimiter that separates an argument flag/name from the value.">Arg::delimiter</a>() ) + <span class="stringliteral">&quot;&lt;&quot;</span> + valueId + <span class="stringliteral">&quot;&gt;&quot;</span>;
<a name="l00516"></a>00516
<a name="l00517"></a>00517 <span class="keywordflow">if</span> ( !<a class="code" href="classTCLAP_1_1Arg.html#ad16408bd1ca4d8b1d14d6c5129545a84" title="Indicating whether the argument is required.">_required</a> )
<a name="l00518"></a>00518 <span class="keywordtype">id</span> = <span class="stringliteral">&quot;[&quot;</span> + <span class="keywordtype">id</span> + <span class="stringliteral">&quot;]&quot;</span>;
<a name="l00519"></a>00519
<a name="l00520"></a>00520 <span class="keywordflow">return</span> id;
<a name="l00521"></a>00521 }
<a name="l00522"></a>00522
<a name="l00523"></a><a class="code" href="classTCLAP_1_1Arg.html#aad93aff46e1fc67e3853765f565bfa96">00523</a> <span class="keyword">inline</span> std::string <a class="code" href="classTCLAP_1_1Arg.html#aad93aff46e1fc67e3853765f565bfa96" title="Returns a long ID for the usage.">Arg::longID</a>( <span class="keyword">const</span> std::string&amp; valueId )<span class="keyword"> const</span>
<a name="l00524"></a>00524 <span class="keyword"></span>{
<a name="l00525"></a>00525 std::string <span class="keywordtype">id</span> = <span class="stringliteral">&quot;&quot;</span>;
<a name="l00526"></a>00526
<a name="l00527"></a>00527 <span class="keywordflow">if</span> ( <a class="code" href="classTCLAP_1_1Arg.html#ae68407a0a8223023ad0ae3b9dc7986f5" title="The single char flag used to identify the argument.">_flag</a> != <span class="stringliteral">&quot;&quot;</span> )
<a name="l00528"></a>00528 {
<a name="l00529"></a>00529 <span class="keywordtype">id</span> += <a class="code" href="classTCLAP_1_1Arg.html#af8e739295b0f75028e7bff6d670d97a1">Arg::flagStartString</a>() + <a class="code" href="classTCLAP_1_1Arg.html#ae68407a0a8223023ad0ae3b9dc7986f5" title="The single char flag used to identify the argument.">_flag</a>;
<a name="l00530"></a>00530
<a name="l00531"></a>00531 <span class="keywordflow">if</span> ( <a class="code" href="classTCLAP_1_1Arg.html#a776682b7e19f4dc231bbad3d10034dfa" title="Indicates whether a value is required for the argument.">_valueRequired</a> )
<a name="l00532"></a>00532 <span class="keywordtype">id</span> += std::string( 1, <a class="code" href="classTCLAP_1_1Arg.html#aadef6ca7e40f5b3d3fd03186976aea7e" title="The delimiter that separates an argument flag/name from the value.">Arg::delimiter</a>() ) + <span class="stringliteral">&quot;&lt;&quot;</span> + valueId + <span class="stringliteral">&quot;&gt;&quot;</span>;
<a name="l00533"></a>00533
<a name="l00534"></a>00534 <span class="keywordtype">id</span> += <span class="stringliteral">&quot;, &quot;</span>;
<a name="l00535"></a>00535 }
<a name="l00536"></a>00536
<a name="l00537"></a>00537 <span class="keywordtype">id</span> += <a class="code" href="classTCLAP_1_1Arg.html#a1df2134870528b80f9f35347fef6fd14">Arg::nameStartString</a>() + <a class="code" href="classTCLAP_1_1Arg.html#ac0f138057a99fb5d94ff4acb41a083aa" title="A single work namd indentifying the argument.">_name</a>;
<a name="l00538"></a>00538
<a name="l00539"></a>00539 <span class="keywordflow">if</span> ( <a class="code" href="classTCLAP_1_1Arg.html#a776682b7e19f4dc231bbad3d10034dfa" title="Indicates whether a value is required for the argument.">_valueRequired</a> )
<a name="l00540"></a>00540 <span class="keywordtype">id</span> += std::string( 1, <a class="code" href="classTCLAP_1_1Arg.html#aadef6ca7e40f5b3d3fd03186976aea7e" title="The delimiter that separates an argument flag/name from the value.">Arg::delimiter</a>() ) + <span class="stringliteral">&quot;&lt;&quot;</span> + valueId + <span class="stringliteral">&quot;&gt;&quot;</span>;
<a name="l00541"></a>00541
<a name="l00542"></a>00542 <span class="keywordflow">return</span> id;
<a name="l00543"></a>00543
<a name="l00544"></a>00544 }
<a name="l00545"></a>00545
<a name="l00546"></a><a class="code" href="classTCLAP_1_1Arg.html#a657a8d2842b7de9ced5a5a55db01d367">00546</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classTCLAP_1_1Arg.html#a657a8d2842b7de9ced5a5a55db01d367" title="Operator ==.">Arg::operator==</a>(<span class="keyword">const</span> <a class="code" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a>&amp; a)<span class="keyword"> const</span>
<a name="l00547"></a>00547 <span class="keyword"></span>{
<a name="l00548"></a>00548 <span class="keywordflow">if</span> ( ( <a class="code" href="classTCLAP_1_1Arg.html#ae68407a0a8223023ad0ae3b9dc7986f5" title="The single char flag used to identify the argument.">_flag</a> != <span class="stringliteral">&quot;&quot;</span> &amp;&amp; <a class="code" href="classTCLAP_1_1Arg.html#ae68407a0a8223023ad0ae3b9dc7986f5" title="The single char flag used to identify the argument.">_flag</a> == a.<a class="code" href="classTCLAP_1_1Arg.html#ae68407a0a8223023ad0ae3b9dc7986f5" title="The single char flag used to identify the argument.">_flag</a> ) || <a class="code" href="classTCLAP_1_1Arg.html#ac0f138057a99fb5d94ff4acb41a083aa" title="A single work namd indentifying the argument.">_name</a> == a.<a class="code" href="classTCLAP_1_1Arg.html#ac0f138057a99fb5d94ff4acb41a083aa" title="A single work namd indentifying the argument.">_name</a>)
<a name="l00549"></a>00549 <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00550"></a>00550 <span class="keywordflow">else</span>
<a name="l00551"></a>00551 <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00552"></a>00552 }
<a name="l00553"></a>00553
<a name="l00554"></a><a class="code" href="classTCLAP_1_1Arg.html#a1943999fadcb4f28cecd6ba55ed0b085">00554</a> <span class="keyword">inline</span> std::string <a class="code" href="classTCLAP_1_1Arg.html#a1943999fadcb4f28cecd6ba55ed0b085" title="Returns the argument description.">Arg::getDescription</a>()<span class="keyword"> const</span>
<a name="l00555"></a>00555 <span class="keyword"></span>{
<a name="l00556"></a>00556 std::string desc = <span class="stringliteral">&quot;&quot;</span>;
<a name="l00557"></a>00557 <span class="keywordflow">if</span> ( <a class="code" href="classTCLAP_1_1Arg.html#ad16408bd1ca4d8b1d14d6c5129545a84" title="Indicating whether the argument is required.">_required</a> )
<a name="l00558"></a>00558 desc = <span class="stringliteral">&quot;(&quot;</span> + <a class="code" href="classTCLAP_1_1Arg.html#a2ed097a868e34a0c4f6062ead744ac54" title="Label to be used in usage description.">_requireLabel</a> + <span class="stringliteral">&quot;) &quot;</span>;
<a name="l00559"></a>00559
<a name="l00560"></a>00560 <span class="comment">// if ( _valueRequired )</span>
<a name="l00561"></a>00561 <span class="comment">// desc += &quot;(value required) &quot;;</span>
<a name="l00562"></a>00562
<a name="l00563"></a>00563 desc += <a class="code" href="classTCLAP_1_1Arg.html#a9882fe256eaab01ac53db54ac657d272" title="Description of the argument.">_description</a>;
<a name="l00564"></a>00564 <span class="keywordflow">return</span> desc;
<a name="l00565"></a>00565 }
<a name="l00566"></a>00566
<a name="l00567"></a><a class="code" href="classTCLAP_1_1Arg.html#a22f616e81a423e794f13a9ae1549ac77">00567</a> <span class="keyword">inline</span> <span class="keyword">const</span> std::string&amp; <a class="code" href="classTCLAP_1_1Arg.html#a22f616e81a423e794f13a9ae1549ac77" title="Returns the argument flag.">Arg::getFlag</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classTCLAP_1_1Arg.html#ae68407a0a8223023ad0ae3b9dc7986f5" title="The single char flag used to identify the argument.">_flag</a>; }
<a name="l00568"></a>00568
<a name="l00569"></a><a class="code" href="classTCLAP_1_1Arg.html#a641ced141a56c74fee11d3e3a808f731">00569</a> <span class="keyword">inline</span> <span class="keyword">const</span> std::string&amp; <a class="code" href="classTCLAP_1_1Arg.html#a641ced141a56c74fee11d3e3a808f731" title="Returns the argument name.">Arg::getName</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classTCLAP_1_1Arg.html#ac0f138057a99fb5d94ff4acb41a083aa" title="A single work namd indentifying the argument.">_name</a>; }
<a name="l00570"></a>00570
<a name="l00571"></a><a class="code" href="classTCLAP_1_1Arg.html#a00a3cfdb2b6e9a111ad39cbd4978b96c">00571</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classTCLAP_1_1Arg.html#a00a3cfdb2b6e9a111ad39cbd4978b96c" title="Indicates whether the argument is required.">Arg::isRequired</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classTCLAP_1_1Arg.html#ad16408bd1ca4d8b1d14d6c5129545a84" title="Indicating whether the argument is required.">_required</a>; }
<a name="l00572"></a>00572
<a name="l00573"></a><a class="code" href="classTCLAP_1_1Arg.html#a1373d50d4b93c16db43c7600cf6d0355">00573</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classTCLAP_1_1Arg.html#a1373d50d4b93c16db43c7600cf6d0355" title="Indicates whether a value must be specified for argument.">Arg::isValueRequired</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classTCLAP_1_1Arg.html#a776682b7e19f4dc231bbad3d10034dfa" title="Indicates whether a value is required for the argument.">_valueRequired</a>; }
<a name="l00574"></a>00574
<a name="l00575"></a><a class="code" href="classTCLAP_1_1Arg.html#a6af7a1e92b5d92fc2d90c1a95aab4384">00575</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classTCLAP_1_1Arg.html#a6af7a1e92b5d92fc2d90c1a95aab4384" title="Indicates whether the argument has already been set.">Arg::isSet</a>()<span class="keyword"> const</span>
<a name="l00576"></a>00576 <span class="keyword"></span>{
<a name="l00577"></a>00577 <span class="keywordflow">if</span> ( <a class="code" href="classTCLAP_1_1Arg.html#a829e32129857d2683e5791a5df1208ec" title="Indicates whether the argument has been set.">_alreadySet</a> &amp;&amp; !<a class="code" href="classTCLAP_1_1Arg.html#ab413bd1d8a7ecf3c89672ee23ef791ba" title="Indicates that the arg was set as part of an XOR and not on the command line.">_xorSet</a> )
<a name="l00578"></a>00578 <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00579"></a>00579 <span class="keywordflow">else</span>
<a name="l00580"></a>00580 <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00581"></a>00581 }
<a name="l00582"></a>00582
<a name="l00583"></a><a class="code" href="classTCLAP_1_1Arg.html#a33816b5ccc58a15f3a998480e5d988e2">00583</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classTCLAP_1_1Arg.html#a33816b5ccc58a15f3a998480e5d988e2" title="Indicates whether the argument can be ignored, if desired.">Arg::isIgnoreable</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classTCLAP_1_1Arg.html#a9832bb7564f4ab472bd51b7b1bbc683f" title="Whether this argument can be ignored, if desired.">_ignoreable</a>; }
<a name="l00584"></a>00584
<a name="l00585"></a><a class="code" href="classTCLAP_1_1Arg.html#aae5c959f31af1a484a8af06f84a6e8b0">00585</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1Arg.html#aae5c959f31af1a484a8af06f84a6e8b0" title="Sets the requireLabel.">Arg::setRequireLabel</a>( <span class="keyword">const</span> std::string&amp; s)
<a name="l00586"></a>00586 {
<a name="l00587"></a>00587 <a class="code" href="classTCLAP_1_1Arg.html#a2ed097a868e34a0c4f6062ead744ac54" title="Label to be used in usage description.">_requireLabel</a> = s;
<a name="l00588"></a>00588 }
<a name="l00589"></a>00589
<a name="l00590"></a><a class="code" href="classTCLAP_1_1Arg.html#aac37b1b734b477e5d16f2037dba9c125">00590</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classTCLAP_1_1Arg.html#aac37b1b734b477e5d16f2037dba9c125" title="A method that tests whether a string matches this argument.">Arg::argMatches</a>( <span class="keyword">const</span> std::string&amp; argFlag )<span class="keyword"> const</span>
<a name="l00591"></a>00591 <span class="keyword"></span>{
<a name="l00592"></a>00592 <span class="keywordflow">if</span> ( ( argFlag == <a class="code" href="classTCLAP_1_1Arg.html#af8e739295b0f75028e7bff6d670d97a1">Arg::flagStartString</a>() + <a class="code" href="classTCLAP_1_1Arg.html#ae68407a0a8223023ad0ae3b9dc7986f5" title="The single char flag used to identify the argument.">_flag</a> &amp;&amp; <a class="code" href="classTCLAP_1_1Arg.html#ae68407a0a8223023ad0ae3b9dc7986f5" title="The single char flag used to identify the argument.">_flag</a> != <span class="stringliteral">&quot;&quot;</span> ) ||
<a name="l00593"></a>00593 argFlag == <a class="code" href="classTCLAP_1_1Arg.html#a1df2134870528b80f9f35347fef6fd14">Arg::nameStartString</a>() + <a class="code" href="classTCLAP_1_1Arg.html#ac0f138057a99fb5d94ff4acb41a083aa" title="A single work namd indentifying the argument.">_name</a> )
<a name="l00594"></a>00594 <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00595"></a>00595 <span class="keywordflow">else</span>
<a name="l00596"></a>00596 <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00597"></a>00597 }
<a name="l00598"></a>00598
<a name="l00599"></a><a class="code" href="classTCLAP_1_1Arg.html#ac98a357568c21f0eb6ca2220b8a3d4a2">00599</a> <span class="keyword">inline</span> std::string <a class="code" href="classTCLAP_1_1Arg.html#ac98a357568c21f0eb6ca2220b8a3d4a2" title="Returns a simple string representation of the argument.">Arg::toString</a>()<span class="keyword"> const</span>
<a name="l00600"></a>00600 <span class="keyword"></span>{
<a name="l00601"></a>00601 std::string s = <span class="stringliteral">&quot;&quot;</span>;
<a name="l00602"></a>00602
<a name="l00603"></a>00603 <span class="keywordflow">if</span> ( <a class="code" href="classTCLAP_1_1Arg.html#ae68407a0a8223023ad0ae3b9dc7986f5" title="The single char flag used to identify the argument.">_flag</a> != <span class="stringliteral">&quot;&quot;</span> )
<a name="l00604"></a>00604 s += <a class="code" href="classTCLAP_1_1Arg.html#af8e739295b0f75028e7bff6d670d97a1">Arg::flagStartString</a>() + <a class="code" href="classTCLAP_1_1Arg.html#ae68407a0a8223023ad0ae3b9dc7986f5" title="The single char flag used to identify the argument.">_flag</a> + <span class="stringliteral">&quot; &quot;</span>;
<a name="l00605"></a>00605
<a name="l00606"></a>00606 s += <span class="stringliteral">&quot;(&quot;</span> + <a class="code" href="classTCLAP_1_1Arg.html#a1df2134870528b80f9f35347fef6fd14">Arg::nameStartString</a>() + <a class="code" href="classTCLAP_1_1Arg.html#ac0f138057a99fb5d94ff4acb41a083aa" title="A single work namd indentifying the argument.">_name</a> + <span class="stringliteral">&quot;)&quot;</span>;
<a name="l00607"></a>00607
<a name="l00608"></a>00608 <span class="keywordflow">return</span> s;
<a name="l00609"></a>00609 }
<a name="l00610"></a>00610
<a name="l00611"></a><a class="code" href="classTCLAP_1_1Arg.html#aa963d0d4c8cb297e1f4cf74143bf6d1b">00611</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1Arg.html#aa963d0d4c8cb297e1f4cf74143bf6d1b" title="Performs the special handling described by the Vistitor.">Arg::_checkWithVisitor</a>()<span class="keyword"> const</span>
<a name="l00612"></a>00612 <span class="keyword"></span>{
<a name="l00613"></a>00613 <span class="keywordflow">if</span> ( <a class="code" href="classTCLAP_1_1Arg.html#aa9ff037e92c9fa5bd85e532f61899300" title="A pointer to a vistitor object.">_visitor</a> != NULL )
<a name="l00614"></a>00614 <a class="code" href="classTCLAP_1_1Arg.html#aa9ff037e92c9fa5bd85e532f61899300" title="A pointer to a vistitor object.">_visitor</a>-&gt;<a class="code" href="classTCLAP_1_1Visitor.html#a08625664637579a24ba2f0ab3e713670" title="Does nothing.">visit</a>();
<a name="l00615"></a>00615 }
<a name="l00616"></a>00616
<a name="l00620"></a><a class="code" href="classTCLAP_1_1Arg.html#a54595328e81f5fb77859563690faab25">00620</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1Arg.html#a54595328e81f5fb77859563690faab25" title="Trims a value off of the flag.">Arg::trimFlag</a>(std::string&amp; flag, std::string&amp; value)<span class="keyword"> const</span>
<a name="l00621"></a>00621 <span class="keyword"></span>{
<a name="l00622"></a>00622 <span class="keywordtype">int</span> stop = 0;
<a name="l00623"></a>00623 <span class="keywordflow">for</span> ( <span class="keywordtype">int</span> i = 0; <span class="keyword">static_cast&lt;</span><span class="keywordtype">unsigned</span> <span class="keywordtype">int</span><span class="keyword">&gt;</span>(i) &lt; flag.length(); i++ )
<a name="l00624"></a>00624 <span class="keywordflow">if</span> ( flag[i] == <a class="code" href="classTCLAP_1_1Arg.html#aadef6ca7e40f5b3d3fd03186976aea7e" title="The delimiter that separates an argument flag/name from the value.">Arg::delimiter</a>() )
<a name="l00625"></a>00625 {
<a name="l00626"></a>00626 stop = i;
<a name="l00627"></a>00627 <span class="keywordflow">break</span>;
<a name="l00628"></a>00628 }
<a name="l00629"></a>00629
<a name="l00630"></a>00630 <span class="keywordflow">if</span> ( stop &gt; 1 )
<a name="l00631"></a>00631 {
<a name="l00632"></a>00632 value = flag.substr(stop+1);
<a name="l00633"></a>00633 flag = flag.substr(0,stop);
<a name="l00634"></a>00634 }
<a name="l00635"></a>00635
<a name="l00636"></a>00636 }
<a name="l00637"></a>00637
<a name="l00641"></a><a class="code" href="classTCLAP_1_1Arg.html#a2eb0ffefe163218bdc8b4b7a33a974a7">00641</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classTCLAP_1_1Arg.html#a2eb0ffefe163218bdc8b4b7a33a974a7" title="Checks whether a given string has blank chars, indicating that it is a combined SwitchArg...">Arg::_hasBlanks</a>( <span class="keyword">const</span> std::string&amp; s )<span class="keyword"> const</span>
<a name="l00642"></a>00642 <span class="keyword"></span>{
<a name="l00643"></a>00643 <span class="keywordflow">for</span> ( <span class="keywordtype">int</span> i = 1; <span class="keyword">static_cast&lt;</span><span class="keywordtype">unsigned</span> <span class="keywordtype">int</span><span class="keyword">&gt;</span>(i) &lt; s.length(); i++ )
<a name="l00644"></a>00644 <span class="keywordflow">if</span> ( s[i] == <a class="code" href="classTCLAP_1_1Arg.html#a0abd38f46dbf7d267078134a4817fbb2" title="The char used as a place holder when SwitchArgs are combined.">Arg::blankChar</a>() )
<a name="l00645"></a>00645 <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00646"></a>00646
<a name="l00647"></a>00647 <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00648"></a>00648 }
<a name="l00649"></a>00649
<a name="l00650"></a><a class="code" href="classTCLAP_1_1Arg.html#a58e3de560f364d0bb6bdf36ab533a6fd">00650</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1Arg.html#a58e3de560f364d0bb6bdf36ab533a6fd" title="Sets _required to true.">Arg::forceRequired</a>()
<a name="l00651"></a>00651 {
<a name="l00652"></a>00652 <a class="code" href="classTCLAP_1_1Arg.html#ad16408bd1ca4d8b1d14d6c5129545a84" title="Indicating whether the argument is required.">_required</a> = <span class="keyword">true</span>;
<a name="l00653"></a>00653 }
<a name="l00654"></a>00654
<a name="l00655"></a><a class="code" href="classTCLAP_1_1Arg.html#aec525c8092e56f7f5aa455e71bc72374">00655</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1Arg.html#aec525c8092e56f7f5aa455e71bc72374" title="Sets the _alreadySet value to true.">Arg::xorSet</a>()
<a name="l00656"></a>00656 {
<a name="l00657"></a>00657 <a class="code" href="classTCLAP_1_1Arg.html#a829e32129857d2683e5791a5df1208ec" title="Indicates whether the argument has been set.">_alreadySet</a> = <span class="keyword">true</span>;
<a name="l00658"></a>00658 <a class="code" href="classTCLAP_1_1Arg.html#ab413bd1d8a7ecf3c89672ee23ef791ba" title="Indicates that the arg was set as part of an XOR and not on the command line.">_xorSet</a> = <span class="keyword">true</span>;
<a name="l00659"></a>00659 }
<a name="l00660"></a>00660
<a name="l00664"></a><a class="code" href="classTCLAP_1_1Arg.html#a9ff1564beeea2ef855f7fa483c37d0e2">00664</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1Arg.html#a9ff1564beeea2ef855f7fa483c37d0e2" title="Adds this to the specified list of Args.">Arg::addToList</a>( std::list&lt;Arg*&gt;&amp; argList )<span class="keyword"> const</span>
<a name="l00665"></a>00665 <span class="keyword"></span>{
<a name="l00666"></a>00666 argList.push_front( const_cast&lt;Arg*&gt;(<span class="keyword">this</span>) );
<a name="l00667"></a>00667 }
<a name="l00668"></a>00668
<a name="l00669"></a><a class="code" href="classTCLAP_1_1Arg.html#a9aef735d37ef95ca1b7dc7a07850b984">00669</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classTCLAP_1_1Arg.html#a9aef735d37ef95ca1b7dc7a07850b984" title="Used for MultiArgs and XorHandler to determine whether args can still be set.">Arg::allowMore</a>()
<a name="l00670"></a>00670 {
<a name="l00671"></a>00671 <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00672"></a>00672 }
<a name="l00673"></a>00673
<a name="l00674"></a><a class="code" href="classTCLAP_1_1Arg.html#ad356870538a255d639e26b30330202ae">00674</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classTCLAP_1_1Arg.html#ad356870538a255d639e26b30330202ae" title="Use by output classes to determine whether an Arg accepts multiple values.">Arg::acceptsMultipleValues</a>()
<a name="l00675"></a>00675 {
<a name="l00676"></a>00676 <span class="keywordflow">return</span> <a class="code" href="classTCLAP_1_1Arg.html#a13130a9a5d22c57a6d42a8883c9b1e0f">_acceptsMultipleValues</a>;
<a name="l00677"></a>00677 }
<a name="l00678"></a>00678
<a name="l00679"></a><a class="code" href="classTCLAP_1_1Arg.html#ab5b5dc9a9b0381561f0684523f943a2c">00679</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1Arg.html#ab5b5dc9a9b0381561f0684523f943a2c" title="Clears the Arg object and allows it to be reused by new command lines.">Arg::reset</a>()
<a name="l00680"></a>00680 {
<a name="l00681"></a>00681 <a class="code" href="classTCLAP_1_1Arg.html#ab413bd1d8a7ecf3c89672ee23ef791ba" title="Indicates that the arg was set as part of an XOR and not on the command line.">_xorSet</a> = <span class="keyword">false</span>;
<a name="l00682"></a>00682 <a class="code" href="classTCLAP_1_1Arg.html#a829e32129857d2683e5791a5df1208ec" title="Indicates whether the argument has been set.">_alreadySet</a> = <span class="keyword">false</span>;
<a name="l00683"></a>00683 }
<a name="l00684"></a>00684
<a name="l00686"></a>00686 <span class="comment">//END Arg.cpp</span>
<a name="l00688"></a>00688 <span class="comment"></span>
<a name="l00689"></a>00689 } <span class="comment">//namespace TCLAP</span>
<a name="l00690"></a>00690
<a name="l00691"></a>00691 <span class="preprocessor">#endif</span>
<a name="l00692"></a>00692 <span class="preprocessor"></span>
</pre></div></div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Sat Apr 16 15:34:24 2011 for tclap by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.0 </small></address>
</body>
</html>

View File

@ -0,0 +1 @@
D

View File

@ -0,0 +1 @@
tclap/docs/html

View File

@ -0,0 +1 @@
:ext:mes5k@tclap.cvs.sourceforge.net:/cvsroot/tclap

View File

@ -0,0 +1,47 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>tclap: CmdLineInterface.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.0 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
<li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="contents">
<h1>CmdLineInterface.h File Reference</h1><code>#include &lt;string&gt;</code><br/>
<code>#include &lt;vector&gt;</code><br/>
<code>#include &lt;list&gt;</code><br/>
<code>#include &lt;iostream&gt;</code><br/>
<code>#include &lt;algorithm&gt;</code><br/>
<p><a href="CmdLineInterface_8h_source.html">Go to the source code of this file.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Classes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTCLAP_1_1CmdLineInterface.html">TCLAP::CmdLineInterface</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The base class that manages the command line definition and passes along the parsing to the appropriate <a class="el" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a> classes. <a href="classTCLAP_1_1CmdLineInterface.html#_details">More...</a><br/></td></tr>
<tr><td colspan="2"><h2>Namespaces</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">namespace &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceTCLAP.html">TCLAP</a></td></tr>
</table>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Sat Apr 16 15:34:24 2011 for tclap by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.0 </small></address>
</body>
</html>

View File

@ -0,0 +1,112 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>tclap: CmdLineInterface.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.0 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
<li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
</ul>
</div>
<h1>CmdLineInterface.h</h1><a href="CmdLineInterface_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
<a name="l00002"></a>00002 <span class="comment">/****************************************************************************** </span>
<a name="l00003"></a>00003 <span class="comment"> * </span>
<a name="l00004"></a>00004 <span class="comment"> * file: CmdLineInterface.h</span>
<a name="l00005"></a>00005 <span class="comment"> * </span>
<a name="l00006"></a>00006 <span class="comment"> * Copyright (c) 2003, Michael E. Smoot .</span>
<a name="l00007"></a>00007 <span class="comment"> * Copyright (c) 2004, Michael E. Smoot, Daniel Aarno.</span>
<a name="l00008"></a>00008 <span class="comment"> * All rights reverved.</span>
<a name="l00009"></a>00009 <span class="comment"> *</span>
<a name="l00010"></a>00010 <span class="comment"> * See the file COPYING in the top directory of this distribution for</span>
<a name="l00011"></a>00011 <span class="comment"> * more information.</span>
<a name="l00012"></a>00012 <span class="comment"> * </span>
<a name="l00013"></a>00013 <span class="comment"> * THE SOFTWARE IS PROVIDED _AS IS_, WITHOUT WARRANTY OF ANY KIND, EXPRESS </span>
<a name="l00014"></a>00014 <span class="comment"> * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, </span>
<a name="l00015"></a>00015 <span class="comment"> * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL </span>
<a name="l00016"></a>00016 <span class="comment"> * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER </span>
<a name="l00017"></a>00017 <span class="comment"> * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING </span>
<a name="l00018"></a>00018 <span class="comment"> * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER </span>
<a name="l00019"></a>00019 <span class="comment"> * DEALINGS IN THE SOFTWARE. </span>
<a name="l00020"></a>00020 <span class="comment"> * </span>
<a name="l00021"></a>00021 <span class="comment"> *****************************************************************************/</span>
<a name="l00022"></a>00022
<a name="l00023"></a>00023 <span class="preprocessor">#ifndef TCLAP_COMMANDLINE_INTERFACE_H</span>
<a name="l00024"></a>00024 <span class="preprocessor"></span><span class="preprocessor">#define TCLAP_COMMANDLINE_INTERFACE_H</span>
<a name="l00025"></a>00025 <span class="preprocessor"></span>
<a name="l00026"></a>00026 <span class="preprocessor">#include &lt;string&gt;</span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;vector&gt;</span>
<a name="l00028"></a>00028 <span class="preprocessor">#include &lt;list&gt;</span>
<a name="l00029"></a>00029 <span class="preprocessor">#include &lt;iostream&gt;</span>
<a name="l00030"></a>00030 <span class="preprocessor">#include &lt;algorithm&gt;</span>
<a name="l00031"></a>00031
<a name="l00032"></a>00032
<a name="l00033"></a>00033 <span class="keyword">namespace </span>TCLAP {
<a name="l00034"></a>00034
<a name="l00035"></a>00035 <span class="keyword">class </span>Arg;
<a name="l00036"></a>00036 <span class="keyword">class </span>CmdLineOutput;
<a name="l00037"></a>00037 <span class="keyword">class </span>XorHandler;
<a name="l00038"></a>00038
<a name="l00043"></a><a class="code" href="classTCLAP_1_1CmdLineInterface.html">00043</a> <span class="keyword">class </span><a class="code" href="classTCLAP_1_1CmdLineInterface.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLineInterface</a>
<a name="l00044"></a>00044 {
<a name="l00045"></a>00045 <span class="keyword">public</span>:
<a name="l00046"></a>00046
<a name="l00050"></a><a class="code" href="classTCLAP_1_1CmdLineInterface.html#a8c7faeca5a25a96e18312da9485a94e9">00050</a> <span class="keyword">virtual</span> <a class="code" href="classTCLAP_1_1CmdLineInterface.html#a8c7faeca5a25a96e18312da9485a94e9" title="Destructor.">~CmdLineInterface</a>() {}
<a name="l00051"></a>00051
<a name="l00056"></a>00056 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1CmdLineInterface.html#a13b29ab754c030185e58f779dc355631" title="Adds an argument to the list of arguments to be parsed.">add</a>( <a class="code" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a>&amp; a )=0;
<a name="l00057"></a>00057
<a name="l00062"></a>00062 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1CmdLineInterface.html#a13b29ab754c030185e58f779dc355631" title="Adds an argument to the list of arguments to be parsed.">add</a>( <a class="code" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a>* a )=0;
<a name="l00063"></a>00063
<a name="l00071"></a>00071 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1CmdLineInterface.html#a69859e3713623eb06c9c335248d9c83f" title="Add two Args that will be xor&amp;#39;d.">xorAdd</a>( <a class="code" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a>&amp; a, <a class="code" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a>&amp; b )=0;
<a name="l00072"></a>00072
<a name="l00078"></a>00078 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1CmdLineInterface.html#a69859e3713623eb06c9c335248d9c83f" title="Add two Args that will be xor&amp;#39;d.">xorAdd</a>( std::vector&lt;Arg*&gt;&amp; xors )=0;
<a name="l00079"></a>00079
<a name="l00085"></a>00085 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1CmdLineInterface.html#a6649336bddfc8421148718a691fd89b4" title="Parses the command line.">parse</a>(<span class="keywordtype">int</span> argc, <span class="keyword">const</span> <span class="keywordtype">char</span> * <span class="keyword">const</span> * argv)=0;
<a name="l00086"></a>00086
<a name="l00092"></a>00092 <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1CmdLineInterface.html#a6649336bddfc8421148718a691fd89b4" title="Parses the command line.">parse</a>(std::vector&lt;std::string&gt;&amp; args);
<a name="l00093"></a>00093
<a name="l00097"></a>00097 <span class="keyword">virtual</span> <a class="code" href="classTCLAP_1_1CmdLineOutput.html" title="The interface that any output object must implement.">CmdLineOutput</a>* <a class="code" href="classTCLAP_1_1CmdLineInterface.html#aebc72daedeaeb03e06bb2e6e0f00363d" title="Returns the CmdLineOutput object.">getOutput</a>()=0;
<a name="l00098"></a>00098
<a name="l00102"></a>00102 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1CmdLineInterface.html#ab208b32bd9489781509d7ecddf8a92a0">setOutput</a>(<a class="code" href="classTCLAP_1_1CmdLineOutput.html" title="The interface that any output object must implement.">CmdLineOutput</a>* co)=0;
<a name="l00103"></a>00103
<a name="l00107"></a>00107 <span class="keyword">virtual</span> std::string&amp; <a class="code" href="classTCLAP_1_1CmdLineInterface.html#a0a552fa57212800dfb8aec84fb07b8bb" title="Returns the version string.">getVersion</a>()=0;
<a name="l00108"></a>00108
<a name="l00112"></a>00112 <span class="keyword">virtual</span> std::string&amp; <a class="code" href="classTCLAP_1_1CmdLineInterface.html#a1a5672df72a6b5021cd70b37c4dbd0a7" title="Returns the program name string.">getProgramName</a>()=0;
<a name="l00113"></a>00113
<a name="l00117"></a>00117 <span class="keyword">virtual</span> std::list&lt;Arg*&gt;&amp; <a class="code" href="classTCLAP_1_1CmdLineInterface.html#a4de8d988f5a6f3007c4dfb0fc9dad476" title="Returns the argList.">getArgList</a>()=0;
<a name="l00118"></a>00118
<a name="l00122"></a>00122 <span class="keyword">virtual</span> <a class="code" href="classTCLAP_1_1XorHandler.html" title="This class handles lists of Arg&amp;#39;s that are to be XOR&amp;#39;d on the command line...">XorHandler</a>&amp; <a class="code" href="classTCLAP_1_1CmdLineInterface.html#a11ce9c77a1111960741f05e343849e4e" title="Returns the XorHandler.">getXorHandler</a>()=0;
<a name="l00123"></a>00123
<a name="l00127"></a>00127 <span class="keyword">virtual</span> <span class="keywordtype">char</span> <a class="code" href="classTCLAP_1_1CmdLineInterface.html#a7d6a64cff6b3a30e2cf1e81d7b1d4521" title="Returns the delimiter string.">getDelimiter</a>()=0;
<a name="l00128"></a>00128
<a name="l00132"></a>00132 <span class="keyword">virtual</span> std::string&amp; <a class="code" href="classTCLAP_1_1CmdLineInterface.html#a30175a2567f7ab78a2c6bbea9269a2fa" title="Returns the message string.">getMessage</a>()=0;
<a name="l00133"></a>00133
<a name="l00138"></a>00138 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classTCLAP_1_1CmdLineInterface.html#a441b06b764836a62083b163508210905" title="Indicates whether or not the help and version switches were created automatically...">hasHelpAndVersion</a>()=0;
<a name="l00139"></a>00139
<a name="l00144"></a>00144 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1CmdLineInterface.html#a6b1fac8a9948ba7e28bc7844a18f39e4" title="Resets the instance as if it had just been constructed so that the instance can be...">reset</a>()=0;
<a name="l00145"></a>00145 };
<a name="l00146"></a>00146
<a name="l00147"></a>00147 } <span class="comment">//namespace</span>
<a name="l00148"></a>00148
<a name="l00149"></a>00149
<a name="l00150"></a>00150 <span class="preprocessor">#endif </span>
</pre></div></div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Sat Apr 16 15:34:24 2011 for tclap by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.0 </small></address>
</body>
</html>

View File

@ -0,0 +1,48 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>tclap: CmdLineOutput.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.0 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
<li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="contents">
<h1>CmdLineOutput.h File Reference</h1><code>#include &lt;string&gt;</code><br/>
<code>#include &lt;vector&gt;</code><br/>
<code>#include &lt;list&gt;</code><br/>
<code>#include &lt;iostream&gt;</code><br/>
<code>#include &lt;iomanip&gt;</code><br/>
<code>#include &lt;algorithm&gt;</code><br/>
<p><a href="CmdLineOutput_8h_source.html">Go to the source code of this file.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Classes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTCLAP_1_1CmdLineOutput.html">TCLAP::CmdLineOutput</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The interface that any output object must implement. <a href="classTCLAP_1_1CmdLineOutput.html#_details">More...</a><br/></td></tr>
<tr><td colspan="2"><h2>Namespaces</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">namespace &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceTCLAP.html">TCLAP</a></td></tr>
</table>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Sat Apr 16 15:34:24 2011 for tclap by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.0 </small></address>
</body>
</html>

View File

@ -0,0 +1,86 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>tclap: CmdLineOutput.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.0 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
<li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
</ul>
</div>
<h1>CmdLineOutput.h</h1><a href="CmdLineOutput_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
<a name="l00002"></a>00002
<a name="l00003"></a>00003 <span class="comment">/****************************************************************************** </span>
<a name="l00004"></a>00004 <span class="comment"> * </span>
<a name="l00005"></a>00005 <span class="comment"> * file: CmdLineOutput.h</span>
<a name="l00006"></a>00006 <span class="comment"> * </span>
<a name="l00007"></a>00007 <span class="comment"> * Copyright (c) 2004, Michael E. Smoot</span>
<a name="l00008"></a>00008 <span class="comment"> * All rights reverved.</span>
<a name="l00009"></a>00009 <span class="comment"> * </span>
<a name="l00010"></a>00010 <span class="comment"> * See the file COPYING in the top directory of this distribution for</span>
<a name="l00011"></a>00011 <span class="comment"> * more information.</span>
<a name="l00012"></a>00012 <span class="comment"> * </span>
<a name="l00013"></a>00013 <span class="comment"> * THE SOFTWARE IS PROVIDED _AS IS_, WITHOUT WARRANTY OF ANY KIND, EXPRESS </span>
<a name="l00014"></a>00014 <span class="comment"> * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, </span>
<a name="l00015"></a>00015 <span class="comment"> * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL </span>
<a name="l00016"></a>00016 <span class="comment"> * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER </span>
<a name="l00017"></a>00017 <span class="comment"> * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING </span>
<a name="l00018"></a>00018 <span class="comment"> * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER </span>
<a name="l00019"></a>00019 <span class="comment"> * DEALINGS IN THE SOFTWARE. </span>
<a name="l00020"></a>00020 <span class="comment"> * </span>
<a name="l00021"></a>00021 <span class="comment"> *****************************************************************************/</span>
<a name="l00022"></a>00022
<a name="l00023"></a>00023 <span class="preprocessor">#ifndef TCLAP_CMDLINEOUTPUT_H</span>
<a name="l00024"></a>00024 <span class="preprocessor"></span><span class="preprocessor">#define TCLAP_CMDLINEOUTPUT_H</span>
<a name="l00025"></a>00025 <span class="preprocessor"></span>
<a name="l00026"></a>00026 <span class="preprocessor">#include &lt;string&gt;</span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;vector&gt;</span>
<a name="l00028"></a>00028 <span class="preprocessor">#include &lt;list&gt;</span>
<a name="l00029"></a>00029 <span class="preprocessor">#include &lt;iostream&gt;</span>
<a name="l00030"></a>00030 <span class="preprocessor">#include &lt;iomanip&gt;</span>
<a name="l00031"></a>00031 <span class="preprocessor">#include &lt;algorithm&gt;</span>
<a name="l00032"></a>00032
<a name="l00033"></a>00033 <span class="keyword">namespace </span>TCLAP {
<a name="l00034"></a>00034
<a name="l00035"></a>00035 <span class="keyword">class </span>CmdLineInterface;
<a name="l00036"></a>00036 <span class="keyword">class </span>ArgException;
<a name="l00037"></a>00037
<a name="l00041"></a><a class="code" href="classTCLAP_1_1CmdLineOutput.html">00041</a> <span class="keyword">class </span><a class="code" href="classTCLAP_1_1CmdLineOutput.html" title="The interface that any output object must implement.">CmdLineOutput</a>
<a name="l00042"></a>00042 {
<a name="l00043"></a>00043
<a name="l00044"></a>00044 <span class="keyword">public</span>:
<a name="l00045"></a>00045
<a name="l00049"></a><a class="code" href="classTCLAP_1_1CmdLineOutput.html#afdf4435a2619076d9798a0a950ed405b">00049</a> <span class="keyword">virtual</span> <a class="code" href="classTCLAP_1_1CmdLineOutput.html#afdf4435a2619076d9798a0a950ed405b" title="Virtual destructor.">~CmdLineOutput</a>() {}
<a name="l00050"></a>00050
<a name="l00055"></a>00055 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1CmdLineOutput.html#a685b13db5bf6bbe5159e49169cd96bbe" title="Generates some sort of output for the USAGE.">usage</a>(<a class="code" href="classTCLAP_1_1CmdLineInterface.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLineInterface</a>&amp; c)=0;
<a name="l00056"></a>00056
<a name="l00061"></a>00061 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1CmdLineOutput.html#ae052fea473132482296de55edb3dd480" title="Generates some sort of output for the version.">version</a>(<a class="code" href="classTCLAP_1_1CmdLineInterface.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLineInterface</a>&amp; c)=0;
<a name="l00062"></a>00062
<a name="l00068"></a>00068 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1CmdLineOutput.html#ad23a57ac3d8d957a4328fc78aec94e16" title="Generates some sort of output for a failure.">failure</a>( <a class="code" href="classTCLAP_1_1CmdLineInterface.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLineInterface</a>&amp; c,
<a name="l00069"></a>00069 <a class="code" href="classTCLAP_1_1ArgException.html" title="A simple class that defines and argument exception.">ArgException</a>&amp; e )=0;
<a name="l00070"></a>00070
<a name="l00071"></a>00071 };
<a name="l00072"></a>00072
<a name="l00073"></a>00073 } <span class="comment">//namespace TCLAP</span>
<a name="l00074"></a>00074 <span class="preprocessor">#endif </span>
</pre></div></div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Sat Apr 16 15:34:24 2011 for tclap by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.0 </small></address>
</body>
</html>

View File

@ -0,0 +1,66 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>tclap: CmdLine.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.0 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
<li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="contents">
<h1>CmdLine.h File Reference</h1><code>#include &lt;<a class="el" href="SwitchArg_8h_source.html">tclap/SwitchArg.h</a>&gt;</code><br/>
<code>#include &lt;<a class="el" href="MultiSwitchArg_8h_source.html">tclap/MultiSwitchArg.h</a>&gt;</code><br/>
<code>#include &lt;<a class="el" href="UnlabeledValueArg_8h_source.html">tclap/UnlabeledValueArg.h</a>&gt;</code><br/>
<code>#include &lt;<a class="el" href="UnlabeledMultiArg_8h_source.html">tclap/UnlabeledMultiArg.h</a>&gt;</code><br/>
<code>#include &lt;<a class="el" href="XorHandler_8h_source.html">tclap/XorHandler.h</a>&gt;</code><br/>
<code>#include &lt;<a class="el" href="HelpVisitor_8h_source.html">tclap/HelpVisitor.h</a>&gt;</code><br/>
<code>#include &lt;<a class="el" href="VersionVisitor_8h_source.html">tclap/VersionVisitor.h</a>&gt;</code><br/>
<code>#include &lt;<a class="el" href="IgnoreRestVisitor_8h_source.html">tclap/IgnoreRestVisitor.h</a>&gt;</code><br/>
<code>#include &lt;<a class="el" href="CmdLineOutput_8h_source.html">tclap/CmdLineOutput.h</a>&gt;</code><br/>
<code>#include &lt;<a class="el" href="StdOutput_8h_source.html">tclap/StdOutput.h</a>&gt;</code><br/>
<code>#include &lt;<a class="el" href="Constraint_8h_source.html">tclap/Constraint.h</a>&gt;</code><br/>
<code>#include &lt;<a class="el" href="ValuesConstraint_8h_source.html">tclap/ValuesConstraint.h</a>&gt;</code><br/>
<code>#include &lt;string&gt;</code><br/>
<code>#include &lt;vector&gt;</code><br/>
<code>#include &lt;list&gt;</code><br/>
<code>#include &lt;iostream&gt;</code><br/>
<code>#include &lt;iomanip&gt;</code><br/>
<code>#include &lt;algorithm&gt;</code><br/>
<code>#include &lt;stdlib.h&gt;</code><br/>
<p><a href="CmdLine_8h_source.html">Go to the source code of this file.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Classes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTCLAP_1_1CmdLine.html">TCLAP::CmdLine</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The base class that manages the command line definition and passes along the parsing to the appropriate <a class="el" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a> classes. <a href="classTCLAP_1_1CmdLine.html#_details">More...</a><br/></td></tr>
<tr><td colspan="2"><h2>Namespaces</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">namespace &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceTCLAP.html">TCLAP</a></td></tr>
<tr><td colspan="2"><h2>Functions</h2></td></tr>
<tr><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr><td class="memTemplItemLeft" align="right" valign="top">void&nbsp;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceTCLAP.html#a5a9391091b2232ce2647aecd42ef82be">TCLAP::DelPtr</a> (T ptr)</td></tr>
<tr><td class="memTemplParams" colspan="2">template&lt;typename C &gt; </td></tr>
<tr><td class="memTemplItemLeft" align="right" valign="top">void&nbsp;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceTCLAP.html#add5aef761d6b2640f418a050b68a500e">TCLAP::ClearContainer</a> (C &amp;c)</td></tr>
</table>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Sat Apr 16 15:34:24 2011 for tclap by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.0 </small></address>
</body>
</html>

View File

@ -0,0 +1,501 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>tclap: CmdLine.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.0 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
<li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
</ul>
</div>
<h1>CmdLine.h</h1><a href="CmdLine_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// -*- Mode: c++; c-basic-offset: 4; tab-width: 4; -*-</span>
<a name="l00002"></a>00002
<a name="l00003"></a>00003 <span class="comment">/******************************************************************************</span>
<a name="l00004"></a>00004 <span class="comment"> *</span>
<a name="l00005"></a>00005 <span class="comment"> * file: CmdLine.h</span>
<a name="l00006"></a>00006 <span class="comment"> *</span>
<a name="l00007"></a>00007 <span class="comment"> * Copyright (c) 2003, Michael E. Smoot .</span>
<a name="l00008"></a>00008 <span class="comment"> * Copyright (c) 2004, Michael E. Smoot, Daniel Aarno.</span>
<a name="l00009"></a>00009 <span class="comment"> * All rights reverved.</span>
<a name="l00010"></a>00010 <span class="comment"> *</span>
<a name="l00011"></a>00011 <span class="comment"> * See the file COPYING in the top directory of this distribution for</span>
<a name="l00012"></a>00012 <span class="comment"> * more information.</span>
<a name="l00013"></a>00013 <span class="comment"> *</span>
<a name="l00014"></a>00014 <span class="comment"> * THE SOFTWARE IS PROVIDED _AS IS_, WITHOUT WARRANTY OF ANY KIND, EXPRESS</span>
<a name="l00015"></a>00015 <span class="comment"> * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,</span>
<a name="l00016"></a>00016 <span class="comment"> * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL</span>
<a name="l00017"></a>00017 <span class="comment"> * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER</span>
<a name="l00018"></a>00018 <span class="comment"> * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING</span>
<a name="l00019"></a>00019 <span class="comment"> * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER</span>
<a name="l00020"></a>00020 <span class="comment"> * DEALINGS IN THE SOFTWARE.</span>
<a name="l00021"></a>00021 <span class="comment"> *</span>
<a name="l00022"></a>00022 <span class="comment"> *****************************************************************************/</span>
<a name="l00023"></a>00023
<a name="l00024"></a>00024 <span class="preprocessor">#ifndef TCLAP_CMDLINE_H</span>
<a name="l00025"></a>00025 <span class="preprocessor"></span><span class="preprocessor">#define TCLAP_CMDLINE_H</span>
<a name="l00026"></a>00026 <span class="preprocessor"></span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;<a class="code" href="SwitchArg_8h.html">tclap/SwitchArg.h</a>&gt;</span>
<a name="l00028"></a>00028 <span class="preprocessor">#include &lt;<a class="code" href="MultiSwitchArg_8h.html">tclap/MultiSwitchArg.h</a>&gt;</span>
<a name="l00029"></a>00029 <span class="preprocessor">#include &lt;<a class="code" href="UnlabeledValueArg_8h.html">tclap/UnlabeledValueArg.h</a>&gt;</span>
<a name="l00030"></a>00030 <span class="preprocessor">#include &lt;<a class="code" href="UnlabeledMultiArg_8h.html">tclap/UnlabeledMultiArg.h</a>&gt;</span>
<a name="l00031"></a>00031
<a name="l00032"></a>00032 <span class="preprocessor">#include &lt;<a class="code" href="XorHandler_8h.html">tclap/XorHandler.h</a>&gt;</span>
<a name="l00033"></a>00033 <span class="preprocessor">#include &lt;<a class="code" href="HelpVisitor_8h.html">tclap/HelpVisitor.h</a>&gt;</span>
<a name="l00034"></a>00034 <span class="preprocessor">#include &lt;<a class="code" href="VersionVisitor_8h.html">tclap/VersionVisitor.h</a>&gt;</span>
<a name="l00035"></a>00035 <span class="preprocessor">#include &lt;<a class="code" href="IgnoreRestVisitor_8h.html">tclap/IgnoreRestVisitor.h</a>&gt;</span>
<a name="l00036"></a>00036
<a name="l00037"></a>00037 <span class="preprocessor">#include &lt;<a class="code" href="CmdLineOutput_8h.html">tclap/CmdLineOutput.h</a>&gt;</span>
<a name="l00038"></a>00038 <span class="preprocessor">#include &lt;<a class="code" href="StdOutput_8h.html">tclap/StdOutput.h</a>&gt;</span>
<a name="l00039"></a>00039
<a name="l00040"></a>00040 <span class="preprocessor">#include &lt;<a class="code" href="Constraint_8h.html">tclap/Constraint.h</a>&gt;</span>
<a name="l00041"></a>00041 <span class="preprocessor">#include &lt;<a class="code" href="ValuesConstraint_8h.html">tclap/ValuesConstraint.h</a>&gt;</span>
<a name="l00042"></a>00042
<a name="l00043"></a>00043 <span class="preprocessor">#include &lt;string&gt;</span>
<a name="l00044"></a>00044 <span class="preprocessor">#include &lt;vector&gt;</span>
<a name="l00045"></a>00045 <span class="preprocessor">#include &lt;list&gt;</span>
<a name="l00046"></a>00046 <span class="preprocessor">#include &lt;iostream&gt;</span>
<a name="l00047"></a>00047 <span class="preprocessor">#include &lt;iomanip&gt;</span>
<a name="l00048"></a>00048 <span class="preprocessor">#include &lt;algorithm&gt;</span>
<a name="l00049"></a>00049 <span class="preprocessor">#include &lt;stdlib.h&gt;</span> <span class="comment">// Needed for exit(), which isn&apos;t defined in some envs.</span>
<a name="l00050"></a>00050
<a name="l00051"></a>00051 <span class="keyword">namespace </span>TCLAP {
<a name="l00052"></a>00052
<a name="l00053"></a><a class="code" href="namespaceTCLAP.html#a5a9391091b2232ce2647aecd42ef82be">00053</a> <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt; <span class="keywordtype">void</span> <a class="code" href="namespaceTCLAP.html#a5a9391091b2232ce2647aecd42ef82be">DelPtr</a>(T ptr)
<a name="l00054"></a>00054 {
<a name="l00055"></a>00055 <span class="keyword">delete</span> ptr;
<a name="l00056"></a>00056 }
<a name="l00057"></a>00057
<a name="l00058"></a><a class="code" href="namespaceTCLAP.html#add5aef761d6b2640f418a050b68a500e">00058</a> <span class="keyword">template</span>&lt;<span class="keyword">typename</span> C&gt; <span class="keywordtype">void</span> <a class="code" href="namespaceTCLAP.html#add5aef761d6b2640f418a050b68a500e">ClearContainer</a>(C &amp;c)
<a name="l00059"></a>00059 {
<a name="l00060"></a>00060 <span class="keyword">typedef</span> <span class="keyword">typename</span> C::value_type value_type;
<a name="l00061"></a>00061 std::for_each(c.begin(), c.end(), DelPtr&lt;value_type&gt;);
<a name="l00062"></a>00062 c.clear();
<a name="l00063"></a>00063 }
<a name="l00064"></a>00064
<a name="l00065"></a>00065
<a name="l00070"></a><a class="code" href="classTCLAP_1_1CmdLine.html">00070</a> <span class="keyword">class </span><a class="code" href="classTCLAP_1_1CmdLine.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLine</a> : <span class="keyword">public</span> <a class="code" href="classTCLAP_1_1CmdLineInterface.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLineInterface</a>
<a name="l00071"></a>00071 {
<a name="l00072"></a>00072 <span class="keyword">protected</span>:
<a name="l00073"></a>00073
<a name="l00078"></a><a class="code" href="classTCLAP_1_1CmdLine.html#a4d70f73542d8184e077688bff3801baf">00078</a> std::list&lt;Arg*&gt; <a class="code" href="classTCLAP_1_1CmdLine.html#a4d70f73542d8184e077688bff3801baf" title="The list of arguments that will be tested against the command line.">_argList</a>;
<a name="l00079"></a>00079
<a name="l00083"></a><a class="code" href="classTCLAP_1_1CmdLine.html#a8b856dadc54fa30d0dddba4588ef9344">00083</a> std::string <a class="code" href="classTCLAP_1_1CmdLine.html#a8b856dadc54fa30d0dddba4588ef9344" title="The name of the program.">_progName</a>;
<a name="l00084"></a>00084
<a name="l00088"></a><a class="code" href="classTCLAP_1_1CmdLine.html#a3ccd2ae40f6eb97aebca3de9a02f10cf">00088</a> std::string <a class="code" href="classTCLAP_1_1CmdLine.html#a3ccd2ae40f6eb97aebca3de9a02f10cf" title="A message used to describe the program.">_message</a>;
<a name="l00089"></a>00089
<a name="l00093"></a><a class="code" href="classTCLAP_1_1CmdLine.html#a2b2b52fffed2dcb7df3cdfc582ec8fd1">00093</a> std::string <a class="code" href="classTCLAP_1_1CmdLine.html#a2b2b52fffed2dcb7df3cdfc582ec8fd1" title="The version to be displayed with the --version switch.">_version</a>;
<a name="l00094"></a>00094
<a name="l00100"></a><a class="code" href="classTCLAP_1_1CmdLine.html#a2285207b528d5fad18c82a2ee8155f37">00100</a> <span class="keywordtype">int</span> <a class="code" href="classTCLAP_1_1CmdLine.html#a2285207b528d5fad18c82a2ee8155f37" title="The number of arguments that are required to be present on the command line.">_numRequired</a>;
<a name="l00101"></a>00101
<a name="l00106"></a><a class="code" href="classTCLAP_1_1CmdLine.html#a602e65692dc07ea872134f354026a54f">00106</a> <span class="keywordtype">char</span> <a class="code" href="classTCLAP_1_1CmdLine.html#a602e65692dc07ea872134f354026a54f" title="The character that is used to separate the argument flag/name from the value.">_delimiter</a>;
<a name="l00107"></a>00107
<a name="l00111"></a><a class="code" href="classTCLAP_1_1CmdLine.html#a33846aa10c62ecd61640c93c16ac315d">00111</a> <a class="code" href="classTCLAP_1_1XorHandler.html" title="This class handles lists of Arg&amp;#39;s that are to be XOR&amp;#39;d on the command line...">XorHandler</a> <a class="code" href="classTCLAP_1_1CmdLine.html#a33846aa10c62ecd61640c93c16ac315d" title="The handler that manages xoring lists of args.">_xorHandler</a>;
<a name="l00112"></a>00112
<a name="l00118"></a><a class="code" href="classTCLAP_1_1CmdLine.html#af8d37fbf9d0b60b6acbd737af380f3e5">00118</a> std::list&lt;Arg*&gt; <a class="code" href="classTCLAP_1_1CmdLine.html#af8d37fbf9d0b60b6acbd737af380f3e5" title="A list of Args to be explicitly deleted when the destructor is called.">_argDeleteOnExitList</a>;
<a name="l00119"></a>00119
<a name="l00125"></a><a class="code" href="classTCLAP_1_1CmdLine.html#a79b8a947f8100de977574b45b91117ac">00125</a> std::list&lt;Visitor*&gt; <a class="code" href="classTCLAP_1_1CmdLine.html#a79b8a947f8100de977574b45b91117ac" title="A list of Visitors to be explicitly deleted when the destructor is called.">_visitorDeleteOnExitList</a>;
<a name="l00126"></a>00126
<a name="l00130"></a><a class="code" href="classTCLAP_1_1CmdLine.html#a5152bf4ef26217583a3bc708aa0ea83e">00130</a> <a class="code" href="classTCLAP_1_1CmdLineOutput.html" title="The interface that any output object must implement.">CmdLineOutput</a>* <a class="code" href="classTCLAP_1_1CmdLine.html#a5152bf4ef26217583a3bc708aa0ea83e" title="Object that handles all output for the CmdLine.">_output</a>;
<a name="l00131"></a>00131
<a name="l00135"></a><a class="code" href="classTCLAP_1_1CmdLine.html#a3609d0c13886053b367d1df80efbe67b">00135</a> <span class="keywordtype">bool</span> <a class="code" href="classTCLAP_1_1CmdLine.html#a3609d0c13886053b367d1df80efbe67b" title="Should CmdLine handle parsing exceptions internally?">_handleExceptions</a>;
<a name="l00136"></a>00136
<a name="l00140"></a>00140 <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1CmdLine.html#a698f47333350312eb949aa1ae4f89ad1" title="Throws an exception listing the missing args.">missingArgsException</a>();
<a name="l00141"></a>00141
<a name="l00148"></a>00148 <span class="keywordtype">bool</span> <a class="code" href="classTCLAP_1_1CmdLine.html#a170a4e711c2a6d58a05e9ad3bc03c08a" title="Checks whether a name/flag string matches entirely matches the Arg::blankChar.">_emptyCombined</a>(<span class="keyword">const</span> std::string&amp; s);
<a name="l00149"></a>00149
<a name="l00153"></a>00153 <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1CmdLine.html#a42d669ed2037ac24fc78883aa8600655" title="Perform a delete ptr; operation on ptr when this object is deleted.">deleteOnExit</a>(<a class="code" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a>* ptr);
<a name="l00154"></a>00154
<a name="l00158"></a>00158 <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1CmdLine.html#a42d669ed2037ac24fc78883aa8600655" title="Perform a delete ptr; operation on ptr when this object is deleted.">deleteOnExit</a>(<a class="code" href="classTCLAP_1_1Visitor.html" title="A base class that defines the interface for visitors.">Visitor</a>* ptr);
<a name="l00159"></a>00159
<a name="l00160"></a>00160 <span class="keyword">private</span>:
<a name="l00161"></a>00161
<a name="l00165"></a>00165 <a class="code" href="classTCLAP_1_1CmdLine.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLine</a>(<span class="keyword">const</span> <a class="code" href="classTCLAP_1_1CmdLine.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLine</a>&amp; rhs);
<a name="l00166"></a>00166 <a class="code" href="classTCLAP_1_1CmdLine.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLine</a>&amp; operator=(<span class="keyword">const</span> <a class="code" href="classTCLAP_1_1CmdLine.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLine</a>&amp; rhs);
<a name="l00167"></a>00167
<a name="l00172"></a>00172 <span class="keywordtype">void</span> _constructor();
<a name="l00173"></a>00173
<a name="l00174"></a>00174
<a name="l00179"></a>00179 <span class="keywordtype">bool</span> _userSetOutput;
<a name="l00180"></a>00180
<a name="l00184"></a>00184 <span class="keywordtype">bool</span> _helpAndVersion;
<a name="l00185"></a>00185
<a name="l00186"></a>00186 <span class="keyword">public</span>:
<a name="l00187"></a>00187
<a name="l00200"></a>00200 <a class="code" href="classTCLAP_1_1CmdLine.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLine</a>(<span class="keyword">const</span> std::string&amp; message,
<a name="l00201"></a>00201 <span class="keyword">const</span> <span class="keywordtype">char</span> delimiter = <span class="charliteral">&apos; &apos;</span>,
<a name="l00202"></a>00202 <span class="keyword">const</span> std::string&amp; version = <span class="stringliteral">&quot;none&quot;</span>,
<a name="l00203"></a>00203 <span class="keywordtype">bool</span> helpAndVersion = <span class="keyword">true</span>);
<a name="l00204"></a>00204
<a name="l00208"></a>00208 <span class="keyword">virtual</span> <a class="code" href="classTCLAP_1_1CmdLine.html#a8a7bddba32c3d96e2a01e4c8e160e6fa" title="Deletes any resources allocated by a CmdLine object.">~CmdLine</a>();
<a name="l00209"></a>00209
<a name="l00214"></a>00214 <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1CmdLine.html#a94c511d4735ad9b8c97edaa3827f8bbf" title="Adds an argument to the list of arguments to be parsed.">add</a>( <a class="code" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a>&amp; a );
<a name="l00215"></a>00215
<a name="l00220"></a>00220 <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1CmdLine.html#a94c511d4735ad9b8c97edaa3827f8bbf" title="Adds an argument to the list of arguments to be parsed.">add</a>( <a class="code" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a>* a );
<a name="l00221"></a>00221
<a name="l00228"></a>00228 <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1CmdLine.html#afbaa2071d0c3276b383089acabdc0dd2" title="Add two Args that will be xor&amp;#39;d.">xorAdd</a>( <a class="code" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a>&amp; a, <a class="code" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a>&amp; b );
<a name="l00229"></a>00229
<a name="l00235"></a>00235 <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1CmdLine.html#afbaa2071d0c3276b383089acabdc0dd2" title="Add two Args that will be xor&amp;#39;d.">xorAdd</a>( std::vector&lt;Arg*&gt;&amp; xors );
<a name="l00236"></a>00236
<a name="l00242"></a>00242 <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1CmdLine.html#acb07daf5a1370c176a7b4a6e4119fe6e" title="Parses the command line.">parse</a>(<span class="keywordtype">int</span> argc, <span class="keyword">const</span> <span class="keywordtype">char</span> * <span class="keyword">const</span> * argv);
<a name="l00243"></a>00243
<a name="l00249"></a>00249 <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1CmdLine.html#acb07daf5a1370c176a7b4a6e4119fe6e" title="Parses the command line.">parse</a>(std::vector&lt;std::string&gt;&amp; args);
<a name="l00250"></a>00250
<a name="l00254"></a>00254 <a class="code" href="classTCLAP_1_1CmdLineOutput.html" title="The interface that any output object must implement.">CmdLineOutput</a>* <a class="code" href="classTCLAP_1_1CmdLine.html#ad8aea2617edf53bbc20c8964ee5476e6" title="Returns the CmdLineOutput object.">getOutput</a>();
<a name="l00255"></a>00255
<a name="l00259"></a>00259 <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1CmdLine.html#a4506e305cd10437c7ce5a5ba34cfed0f">setOutput</a>(<a class="code" href="classTCLAP_1_1CmdLineOutput.html" title="The interface that any output object must implement.">CmdLineOutput</a>* co);
<a name="l00260"></a>00260
<a name="l00264"></a>00264 std::string&amp; <a class="code" href="classTCLAP_1_1CmdLine.html#a85b5653d1a5b48fe6accead64615cf33" title="Returns the version string.">getVersion</a>();
<a name="l00265"></a>00265
<a name="l00269"></a>00269 std::string&amp; <a class="code" href="classTCLAP_1_1CmdLine.html#a47a6d496980ee11ffc42e27144a61797" title="Returns the program name string.">getProgramName</a>();
<a name="l00270"></a>00270
<a name="l00274"></a>00274 std::list&lt;Arg*&gt;&amp; <a class="code" href="classTCLAP_1_1CmdLine.html#a3c281da929a281fb883ea47632b7ad38" title="Returns the argList.">getArgList</a>();
<a name="l00275"></a>00275
<a name="l00279"></a>00279 <a class="code" href="classTCLAP_1_1XorHandler.html" title="This class handles lists of Arg&amp;#39;s that are to be XOR&amp;#39;d on the command line...">XorHandler</a>&amp; <a class="code" href="classTCLAP_1_1CmdLine.html#a805433b7718d1bc5bc9317bbd061449b" title="Returns the XorHandler.">getXorHandler</a>();
<a name="l00280"></a>00280
<a name="l00284"></a>00284 <span class="keywordtype">char</span> <a class="code" href="classTCLAP_1_1CmdLine.html#a3e9f0ac2c1e97d1f8527da713ddd5a8f" title="Returns the delimiter string.">getDelimiter</a>();
<a name="l00285"></a>00285
<a name="l00289"></a>00289 std::string&amp; <a class="code" href="classTCLAP_1_1CmdLine.html#a8f61a8c201e31ada985fa998180fd40f" title="Returns the message string.">getMessage</a>();
<a name="l00290"></a>00290
<a name="l00294"></a>00294 <span class="keywordtype">bool</span> <a class="code" href="classTCLAP_1_1CmdLine.html#a5b23895feae4f4110b77dae372226475" title="Indicates whether or not the help and version switches were created automatically...">hasHelpAndVersion</a>();
<a name="l00295"></a>00295
<a name="l00301"></a>00301 <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1CmdLine.html#aa02055d8f4864bfa9b505e2d26bbbd87" title="Disables or enables CmdLine&amp;#39;s internal parsing exception handling.">setExceptionHandling</a>(<span class="keyword">const</span> <span class="keywordtype">bool</span> state);
<a name="l00302"></a>00302
<a name="l00309"></a>00309 <span class="keywordtype">bool</span> <a class="code" href="classTCLAP_1_1CmdLine.html#af2cd748a91e22df97c878d7eff8c4ca3" title="Returns the current state of the internal exception handling.">getExceptionHandling</a>() <span class="keyword">const</span>;
<a name="l00310"></a>00310
<a name="l00314"></a>00314 <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1CmdLine.html#a1721ec47c9d9f5ea2eca2f385fcfd2da" title="Allows the CmdLine object to be reused.">reset</a>();
<a name="l00315"></a>00315
<a name="l00316"></a>00316 };
<a name="l00317"></a>00317
<a name="l00318"></a>00318
<a name="l00320"></a>00320 <span class="comment">//Begin CmdLine.cpp</span>
<a name="l00322"></a>00322 <span class="comment"></span>
<a name="l00323"></a><a class="code" href="classTCLAP_1_1CmdLine.html#a2e62a3493f8700afb49a7deb872a5b96">00323</a> <span class="keyword">inline</span> CmdLine::CmdLine(<span class="keyword">const</span> std::string&amp; m,
<a name="l00324"></a>00324 <span class="keywordtype">char</span> delim,
<a name="l00325"></a>00325 <span class="keyword">const</span> std::string&amp; v,
<a name="l00326"></a>00326 <span class="keywordtype">bool</span> help )
<a name="l00327"></a>00327 :
<a name="l00328"></a>00328 _argList(std::list&lt;<a class="code" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a>*&gt;()),
<a name="l00329"></a>00329 _progName(<span class="stringliteral">&quot;not_set_yet&quot;</span>),
<a name="l00330"></a>00330 _message(m),
<a name="l00331"></a>00331 _version(v),
<a name="l00332"></a>00332 _numRequired(0),
<a name="l00333"></a>00333 _delimiter(delim),
<a name="l00334"></a>00334 _xorHandler(<a class="code" href="classTCLAP_1_1XorHandler.html" title="This class handles lists of Arg&amp;#39;s that are to be XOR&amp;#39;d on the command line...">XorHandler</a>()),
<a name="l00335"></a>00335 _argDeleteOnExitList(std::list&lt;<a class="code" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a>*&gt;()),
<a name="l00336"></a>00336 _visitorDeleteOnExitList(std::list&lt;<a class="code" href="classTCLAP_1_1Visitor.html" title="A base class that defines the interface for visitors.">Visitor</a>*&gt;()),
<a name="l00337"></a>00337 _output(0),
<a name="l00338"></a>00338 _handleExceptions(true),
<a name="l00339"></a>00339 _userSetOutput(false),
<a name="l00340"></a>00340 _helpAndVersion(help)
<a name="l00341"></a>00341 {
<a name="l00342"></a>00342 _constructor();
<a name="l00343"></a>00343 }
<a name="l00344"></a>00344
<a name="l00345"></a><a class="code" href="classTCLAP_1_1CmdLine.html#a8a7bddba32c3d96e2a01e4c8e160e6fa">00345</a> <span class="keyword">inline</span> <a class="code" href="classTCLAP_1_1CmdLine.html#a8a7bddba32c3d96e2a01e4c8e160e6fa" title="Deletes any resources allocated by a CmdLine object.">CmdLine::~CmdLine</a>()
<a name="l00346"></a>00346 {
<a name="l00347"></a>00347 <a class="code" href="namespaceTCLAP.html#add5aef761d6b2640f418a050b68a500e">ClearContainer</a>(<a class="code" href="classTCLAP_1_1CmdLine.html#af8d37fbf9d0b60b6acbd737af380f3e5" title="A list of Args to be explicitly deleted when the destructor is called.">_argDeleteOnExitList</a>);
<a name="l00348"></a>00348 <a class="code" href="namespaceTCLAP.html#add5aef761d6b2640f418a050b68a500e">ClearContainer</a>(<a class="code" href="classTCLAP_1_1CmdLine.html#a79b8a947f8100de977574b45b91117ac" title="A list of Visitors to be explicitly deleted when the destructor is called.">_visitorDeleteOnExitList</a>);
<a name="l00349"></a>00349
<a name="l00350"></a>00350 <span class="keywordflow">if</span> ( !_userSetOutput ) {
<a name="l00351"></a>00351 <span class="keyword">delete</span> <a class="code" href="classTCLAP_1_1CmdLine.html#a5152bf4ef26217583a3bc708aa0ea83e" title="Object that handles all output for the CmdLine.">_output</a>;
<a name="l00352"></a>00352 <a class="code" href="classTCLAP_1_1CmdLine.html#a5152bf4ef26217583a3bc708aa0ea83e" title="Object that handles all output for the CmdLine.">_output</a> = 0;
<a name="l00353"></a>00353 }
<a name="l00354"></a>00354 }
<a name="l00355"></a>00355
<a name="l00356"></a>00356 <span class="keyword">inline</span> <span class="keywordtype">void</span> CmdLine::_constructor()
<a name="l00357"></a>00357 {
<a name="l00358"></a>00358 <a class="code" href="classTCLAP_1_1CmdLine.html#a5152bf4ef26217583a3bc708aa0ea83e" title="Object that handles all output for the CmdLine.">_output</a> = <span class="keyword">new</span> <a class="code" href="classTCLAP_1_1StdOutput.html" title="A class that isolates any output from the CmdLine object so that it may be easily...">StdOutput</a>;
<a name="l00359"></a>00359
<a name="l00360"></a>00360 <a class="code" href="classTCLAP_1_1Arg.html#ad059b63424001b9aedb4c019e2854c3c" title="Sets the delimiter for all arguments.">Arg::setDelimiter</a>( <a class="code" href="classTCLAP_1_1CmdLine.html#a602e65692dc07ea872134f354026a54f" title="The character that is used to separate the argument flag/name from the value.">_delimiter</a> );
<a name="l00361"></a>00361
<a name="l00362"></a>00362 <a class="code" href="classTCLAP_1_1Visitor.html" title="A base class that defines the interface for visitors.">Visitor</a>* v;
<a name="l00363"></a>00363
<a name="l00364"></a>00364 <span class="keywordflow">if</span> ( _helpAndVersion )
<a name="l00365"></a>00365 {
<a name="l00366"></a>00366 v = <span class="keyword">new</span> <a class="code" href="classTCLAP_1_1HelpVisitor.html" title="A Visitor object that calls the usage method of the given CmdLineOutput object for...">HelpVisitor</a>( <span class="keyword">this</span>, &amp;<a class="code" href="classTCLAP_1_1CmdLine.html#a5152bf4ef26217583a3bc708aa0ea83e" title="Object that handles all output for the CmdLine.">_output</a> );
<a name="l00367"></a>00367 <a class="code" href="classTCLAP_1_1SwitchArg.html" title="A simple switch argument.">SwitchArg</a>* help = <span class="keyword">new</span> <a class="code" href="classTCLAP_1_1SwitchArg.html" title="A simple switch argument.">SwitchArg</a>(<span class="stringliteral">&quot;h&quot;</span>,<span class="stringliteral">&quot;help&quot;</span>,
<a name="l00368"></a>00368 <span class="stringliteral">&quot;Displays usage information and exits.&quot;</span>,
<a name="l00369"></a>00369 <span class="keyword">false</span>, v);
<a name="l00370"></a>00370 <a class="code" href="classTCLAP_1_1CmdLine.html#a94c511d4735ad9b8c97edaa3827f8bbf" title="Adds an argument to the list of arguments to be parsed.">add</a>( help );
<a name="l00371"></a>00371 <a class="code" href="classTCLAP_1_1CmdLine.html#a42d669ed2037ac24fc78883aa8600655" title="Perform a delete ptr; operation on ptr when this object is deleted.">deleteOnExit</a>(help);
<a name="l00372"></a>00372 <a class="code" href="classTCLAP_1_1CmdLine.html#a42d669ed2037ac24fc78883aa8600655" title="Perform a delete ptr; operation on ptr when this object is deleted.">deleteOnExit</a>(v);
<a name="l00373"></a>00373
<a name="l00374"></a>00374 v = <span class="keyword">new</span> <a class="code" href="classTCLAP_1_1VersionVisitor.html" title="A Vistor that will call the version method of the given CmdLineOutput for the specified...">VersionVisitor</a>( <span class="keyword">this</span>, &amp;<a class="code" href="classTCLAP_1_1CmdLine.html#a5152bf4ef26217583a3bc708aa0ea83e" title="Object that handles all output for the CmdLine.">_output</a> );
<a name="l00375"></a>00375 <a class="code" href="classTCLAP_1_1SwitchArg.html" title="A simple switch argument.">SwitchArg</a>* vers = <span class="keyword">new</span> <a class="code" href="classTCLAP_1_1SwitchArg.html" title="A simple switch argument.">SwitchArg</a>(<span class="stringliteral">&quot;&quot;</span>,<span class="stringliteral">&quot;version&quot;</span>,
<a name="l00376"></a>00376 <span class="stringliteral">&quot;Displays version information and exits.&quot;</span>,
<a name="l00377"></a>00377 <span class="keyword">false</span>, v);
<a name="l00378"></a>00378 <a class="code" href="classTCLAP_1_1CmdLine.html#a94c511d4735ad9b8c97edaa3827f8bbf" title="Adds an argument to the list of arguments to be parsed.">add</a>( vers );
<a name="l00379"></a>00379 <a class="code" href="classTCLAP_1_1CmdLine.html#a42d669ed2037ac24fc78883aa8600655" title="Perform a delete ptr; operation on ptr when this object is deleted.">deleteOnExit</a>(vers);
<a name="l00380"></a>00380 <a class="code" href="classTCLAP_1_1CmdLine.html#a42d669ed2037ac24fc78883aa8600655" title="Perform a delete ptr; operation on ptr when this object is deleted.">deleteOnExit</a>(v);
<a name="l00381"></a>00381 }
<a name="l00382"></a>00382
<a name="l00383"></a>00383 v = <span class="keyword">new</span> IgnoreRestVisitor();
<a name="l00384"></a>00384 SwitchArg* ignore = <span class="keyword">new</span> SwitchArg(<a class="code" href="classTCLAP_1_1Arg.html#af8e739295b0f75028e7bff6d670d97a1">Arg::flagStartString</a>(),
<a name="l00385"></a>00385 <a class="code" href="classTCLAP_1_1Arg.html#a6ce0cbe4effd44679ca11f25e3c318e7" title="The name used to identify the ignore rest argument.">Arg::ignoreNameString</a>(),
<a name="l00386"></a>00386 <span class="stringliteral">&quot;Ignores the rest of the labeled arguments following this flag.&quot;</span>,
<a name="l00387"></a>00387 <span class="keyword">false</span>, v);
<a name="l00388"></a>00388 <a class="code" href="classTCLAP_1_1CmdLine.html#a94c511d4735ad9b8c97edaa3827f8bbf" title="Adds an argument to the list of arguments to be parsed.">add</a>( ignore );
<a name="l00389"></a>00389 <a class="code" href="classTCLAP_1_1CmdLine.html#a42d669ed2037ac24fc78883aa8600655" title="Perform a delete ptr; operation on ptr when this object is deleted.">deleteOnExit</a>(ignore);
<a name="l00390"></a>00390 <a class="code" href="classTCLAP_1_1CmdLine.html#a42d669ed2037ac24fc78883aa8600655" title="Perform a delete ptr; operation on ptr when this object is deleted.">deleteOnExit</a>(v);
<a name="l00391"></a>00391 }
<a name="l00392"></a>00392
<a name="l00393"></a><a class="code" href="classTCLAP_1_1CmdLine.html#ac7f2d7ee32a5157f625ad9833ab148cf">00393</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1CmdLine.html#afbaa2071d0c3276b383089acabdc0dd2" title="Add two Args that will be xor&amp;#39;d.">CmdLine::xorAdd</a>( std::vector&lt;Arg*&gt;&amp; ors )
<a name="l00394"></a>00394 {
<a name="l00395"></a>00395 <a class="code" href="classTCLAP_1_1CmdLine.html#a33846aa10c62ecd61640c93c16ac315d" title="The handler that manages xoring lists of args.">_xorHandler</a>.<a class="code" href="classTCLAP_1_1XorHandler.html#a76f156bf36a8aede334801aa242f31b9" title="Add a list of Arg*&amp;#39;s that will be orred together.">add</a>( ors );
<a name="l00396"></a>00396
<a name="l00397"></a>00397 <span class="keywordflow">for</span> (<a class="code" href="namespaceTCLAP.html#a04213af1ffc3178ce5f771d21d5164a2" title="Typedef of an Arg vector iterator.">ArgVectorIterator</a> it = ors.begin(); it != ors.end(); it++)
<a name="l00398"></a>00398 {
<a name="l00399"></a>00399 (*it)-&gt;forceRequired();
<a name="l00400"></a>00400 (*it)-&gt;setRequireLabel( <span class="stringliteral">&quot;OR required&quot;</span> );
<a name="l00401"></a>00401 <a class="code" href="classTCLAP_1_1CmdLine.html#a94c511d4735ad9b8c97edaa3827f8bbf" title="Adds an argument to the list of arguments to be parsed.">add</a>( *it );
<a name="l00402"></a>00402 }
<a name="l00403"></a>00403 }
<a name="l00404"></a>00404
<a name="l00405"></a><a class="code" href="classTCLAP_1_1CmdLine.html#afbaa2071d0c3276b383089acabdc0dd2">00405</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1CmdLine.html#afbaa2071d0c3276b383089acabdc0dd2" title="Add two Args that will be xor&amp;#39;d.">CmdLine::xorAdd</a>( <a class="code" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a>&amp; a, <a class="code" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a>&amp; b )
<a name="l00406"></a>00406 {
<a name="l00407"></a>00407 std::vector&lt;Arg*&gt; ors;
<a name="l00408"></a>00408 ors.push_back( &amp;a );
<a name="l00409"></a>00409 ors.push_back( &amp;b );
<a name="l00410"></a>00410 <a class="code" href="classTCLAP_1_1CmdLine.html#afbaa2071d0c3276b383089acabdc0dd2" title="Add two Args that will be xor&amp;#39;d.">xorAdd</a>( ors );
<a name="l00411"></a>00411 }
<a name="l00412"></a>00412
<a name="l00413"></a><a class="code" href="classTCLAP_1_1CmdLine.html#a94c511d4735ad9b8c97edaa3827f8bbf">00413</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1CmdLine.html#a94c511d4735ad9b8c97edaa3827f8bbf" title="Adds an argument to the list of arguments to be parsed.">CmdLine::add</a>( <a class="code" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a>&amp; a )
<a name="l00414"></a>00414 {
<a name="l00415"></a>00415 <a class="code" href="classTCLAP_1_1CmdLine.html#a94c511d4735ad9b8c97edaa3827f8bbf" title="Adds an argument to the list of arguments to be parsed.">add</a>( &amp;a );
<a name="l00416"></a>00416 }
<a name="l00417"></a>00417
<a name="l00418"></a><a class="code" href="classTCLAP_1_1CmdLine.html#ab8a08e8f4d3ca7709c85416f76e805a3">00418</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1CmdLine.html#a94c511d4735ad9b8c97edaa3827f8bbf" title="Adds an argument to the list of arguments to be parsed.">CmdLine::add</a>( <a class="code" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a>* a )
<a name="l00419"></a>00419 {
<a name="l00420"></a>00420 <span class="keywordflow">for</span>( <a class="code" href="namespaceTCLAP.html#aa7d6a803e0690c3c8b1db57c145648c5" title="Typedef of an Arg list iterator.">ArgListIterator</a> it = <a class="code" href="classTCLAP_1_1CmdLine.html#a4d70f73542d8184e077688bff3801baf" title="The list of arguments that will be tested against the command line.">_argList</a>.begin(); it != <a class="code" href="classTCLAP_1_1CmdLine.html#a4d70f73542d8184e077688bff3801baf" title="The list of arguments that will be tested against the command line.">_argList</a>.end(); it++ )
<a name="l00421"></a>00421 <span class="keywordflow">if</span> ( *a == *(*it) )
<a name="l00422"></a>00422 <span class="keywordflow">throw</span>( <a class="code" href="classTCLAP_1_1SpecificationException.html" title="Thrown from Arg and CmdLine when an Arg is improperly specified, e.g.">SpecificationException</a>(
<a name="l00423"></a>00423 <span class="stringliteral">&quot;Argument with same flag/name already exists!&quot;</span>,
<a name="l00424"></a>00424 a-&gt;<a class="code" href="classTCLAP_1_1Arg.html#aad93aff46e1fc67e3853765f565bfa96" title="Returns a long ID for the usage.">longID</a>() ) );
<a name="l00425"></a>00425
<a name="l00426"></a>00426 a-&gt;<a class="code" href="classTCLAP_1_1Arg.html#a9ff1564beeea2ef855f7fa483c37d0e2" title="Adds this to the specified list of Args.">addToList</a>( <a class="code" href="classTCLAP_1_1CmdLine.html#a4d70f73542d8184e077688bff3801baf" title="The list of arguments that will be tested against the command line.">_argList</a> );
<a name="l00427"></a>00427
<a name="l00428"></a>00428 <span class="keywordflow">if</span> ( a-&gt;<a class="code" href="classTCLAP_1_1Arg.html#a00a3cfdb2b6e9a111ad39cbd4978b96c" title="Indicates whether the argument is required.">isRequired</a>() )
<a name="l00429"></a>00429 <a class="code" href="classTCLAP_1_1CmdLine.html#a2285207b528d5fad18c82a2ee8155f37" title="The number of arguments that are required to be present on the command line.">_numRequired</a>++;
<a name="l00430"></a>00430 }
<a name="l00431"></a>00431
<a name="l00432"></a>00432
<a name="l00433"></a><a class="code" href="classTCLAP_1_1CmdLine.html#acb07daf5a1370c176a7b4a6e4119fe6e">00433</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1CmdLine.html#acb07daf5a1370c176a7b4a6e4119fe6e" title="Parses the command line.">CmdLine::parse</a>(<span class="keywordtype">int</span> argc, <span class="keyword">const</span> <span class="keywordtype">char</span> * <span class="keyword">const</span> * argv)
<a name="l00434"></a>00434 {
<a name="l00435"></a>00435 <span class="comment">// this step is necessary so that we have easy access to</span>
<a name="l00436"></a>00436 <span class="comment">// mutable strings.</span>
<a name="l00437"></a>00437 std::vector&lt;std::string&gt; args;
<a name="l00438"></a>00438 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; argc; i++)
<a name="l00439"></a>00439 args.push_back(argv[i]);
<a name="l00440"></a>00440
<a name="l00441"></a>00441 <a class="code" href="classTCLAP_1_1CmdLine.html#acb07daf5a1370c176a7b4a6e4119fe6e" title="Parses the command line.">parse</a>(args);
<a name="l00442"></a>00442 }
<a name="l00443"></a>00443
<a name="l00444"></a><a class="code" href="classTCLAP_1_1CmdLine.html#a712c3edf86aa0a8a28fb0b6d504d945a">00444</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1CmdLine.html#acb07daf5a1370c176a7b4a6e4119fe6e" title="Parses the command line.">CmdLine::parse</a>(std::vector&lt;std::string&gt;&amp; args)
<a name="l00445"></a>00445 {
<a name="l00446"></a>00446 <span class="keywordtype">bool</span> shouldExit = <span class="keyword">false</span>;
<a name="l00447"></a>00447 <span class="keywordtype">int</span> estat = 0;
<a name="l00448"></a>00448
<a name="l00449"></a>00449 <span class="keywordflow">try</span> {
<a name="l00450"></a>00450 <a class="code" href="classTCLAP_1_1CmdLine.html#a8b856dadc54fa30d0dddba4588ef9344" title="The name of the program.">_progName</a> = args.front();
<a name="l00451"></a>00451 args.erase(args.begin());
<a name="l00452"></a>00452
<a name="l00453"></a>00453 <span class="keywordtype">int</span> requiredCount = 0;
<a name="l00454"></a>00454
<a name="l00455"></a>00455 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; <span class="keyword">static_cast&lt;</span><span class="keywordtype">unsigned</span> <span class="keywordtype">int</span><span class="keyword">&gt;</span>(i) &lt; args.size(); i++)
<a name="l00456"></a>00456 {
<a name="l00457"></a>00457 <span class="keywordtype">bool</span> matched = <span class="keyword">false</span>;
<a name="l00458"></a>00458 <span class="keywordflow">for</span> (<a class="code" href="namespaceTCLAP.html#aa7d6a803e0690c3c8b1db57c145648c5" title="Typedef of an Arg list iterator.">ArgListIterator</a> it = <a class="code" href="classTCLAP_1_1CmdLine.html#a4d70f73542d8184e077688bff3801baf" title="The list of arguments that will be tested against the command line.">_argList</a>.begin();
<a name="l00459"></a>00459 it != <a class="code" href="classTCLAP_1_1CmdLine.html#a4d70f73542d8184e077688bff3801baf" title="The list of arguments that will be tested against the command line.">_argList</a>.end(); it++) {
<a name="l00460"></a>00460 <span class="keywordflow">if</span> ( (*it)-&gt;processArg( &amp;i, args ) )
<a name="l00461"></a>00461 {
<a name="l00462"></a>00462 requiredCount += <a class="code" href="classTCLAP_1_1CmdLine.html#a33846aa10c62ecd61640c93c16ac315d" title="The handler that manages xoring lists of args.">_xorHandler</a>.<a class="code" href="classTCLAP_1_1XorHandler.html#a3df7722e4c4c5d331de69fc902336b00" title="Checks whether the specified Arg is in one of the xor lists and if it does match...">check</a>( *it );
<a name="l00463"></a>00463 matched = <span class="keyword">true</span>;
<a name="l00464"></a>00464 <span class="keywordflow">break</span>;
<a name="l00465"></a>00465 }
<a name="l00466"></a>00466 }
<a name="l00467"></a>00467
<a name="l00468"></a>00468 <span class="comment">// checks to see if the argument is an empty combined</span>
<a name="l00469"></a>00469 <span class="comment">// switch and if so, then we&apos;ve actually matched it</span>
<a name="l00470"></a>00470 <span class="keywordflow">if</span> ( !matched &amp;&amp; <a class="code" href="classTCLAP_1_1CmdLine.html#a170a4e711c2a6d58a05e9ad3bc03c08a" title="Checks whether a name/flag string matches entirely matches the Arg::blankChar.">_emptyCombined</a>( args[i] ) )
<a name="l00471"></a>00471 matched = <span class="keyword">true</span>;
<a name="l00472"></a>00472
<a name="l00473"></a>00473 <span class="keywordflow">if</span> ( !matched &amp;&amp; !<a class="code" href="classTCLAP_1_1Arg.html#a4d412155b8f9b4956e64e91c48e55a3b" title="Whether to ignore the rest.">Arg::ignoreRest</a>() )
<a name="l00474"></a>00474 <span class="keywordflow">throw</span>(<a class="code" href="classTCLAP_1_1CmdLineParseException.html" title="Thrown from CmdLine when the arguments on the command line are not properly specified...">CmdLineParseException</a>(<span class="stringliteral">&quot;Couldn&apos;t find match &quot;</span>
<a name="l00475"></a>00475 <span class="stringliteral">&quot;for argument&quot;</span>,
<a name="l00476"></a>00476 args[i]));
<a name="l00477"></a>00477 }
<a name="l00478"></a>00478
<a name="l00479"></a>00479 <span class="keywordflow">if</span> ( requiredCount &lt; <a class="code" href="classTCLAP_1_1CmdLine.html#a2285207b528d5fad18c82a2ee8155f37" title="The number of arguments that are required to be present on the command line.">_numRequired</a> )
<a name="l00480"></a>00480 <a class="code" href="classTCLAP_1_1CmdLine.html#a698f47333350312eb949aa1ae4f89ad1" title="Throws an exception listing the missing args.">missingArgsException</a>();
<a name="l00481"></a>00481
<a name="l00482"></a>00482 <span class="keywordflow">if</span> ( requiredCount &gt; <a class="code" href="classTCLAP_1_1CmdLine.html#a2285207b528d5fad18c82a2ee8155f37" title="The number of arguments that are required to be present on the command line.">_numRequired</a> )
<a name="l00483"></a>00483 <span class="keywordflow">throw</span>(<a class="code" href="classTCLAP_1_1CmdLineParseException.html" title="Thrown from CmdLine when the arguments on the command line are not properly specified...">CmdLineParseException</a>(<span class="stringliteral">&quot;Too many arguments!&quot;</span>));
<a name="l00484"></a>00484
<a name="l00485"></a>00485 } <span class="keywordflow">catch</span> ( <a class="code" href="classTCLAP_1_1ArgException.html" title="A simple class that defines and argument exception.">ArgException</a>&amp; e ) {
<a name="l00486"></a>00486 <span class="comment">// If we&apos;re not handling the exceptions, rethrow.</span>
<a name="l00487"></a>00487 <span class="keywordflow">if</span> ( !<a class="code" href="classTCLAP_1_1CmdLine.html#a3609d0c13886053b367d1df80efbe67b" title="Should CmdLine handle parsing exceptions internally?">_handleExceptions</a>) {
<a name="l00488"></a>00488 <span class="keywordflow">throw</span>;
<a name="l00489"></a>00489 }
<a name="l00490"></a>00490
<a name="l00491"></a>00491 <span class="keywordflow">try</span> {
<a name="l00492"></a>00492 <a class="code" href="classTCLAP_1_1CmdLine.html#a5152bf4ef26217583a3bc708aa0ea83e" title="Object that handles all output for the CmdLine.">_output</a>-&gt;<a class="code" href="classTCLAP_1_1CmdLineOutput.html#ad23a57ac3d8d957a4328fc78aec94e16" title="Generates some sort of output for a failure.">failure</a>(*<span class="keyword">this</span>,e);
<a name="l00493"></a>00493 } <span class="keywordflow">catch</span> ( <a class="code" href="classTCLAP_1_1ExitException.html">ExitException</a> &amp;ee ) {
<a name="l00494"></a>00494 estat = ee.<a class="code" href="classTCLAP_1_1ExitException.html#acf7fd20c9cfb67b5718031ed0debda1c">getExitStatus</a>();
<a name="l00495"></a>00495 shouldExit = <span class="keyword">true</span>;
<a name="l00496"></a>00496 }
<a name="l00497"></a>00497 } <span class="keywordflow">catch</span> (<a class="code" href="classTCLAP_1_1ExitException.html">ExitException</a> &amp;ee) {
<a name="l00498"></a>00498 <span class="comment">// If we&apos;re not handling the exceptions, rethrow.</span>
<a name="l00499"></a>00499 <span class="keywordflow">if</span> ( !<a class="code" href="classTCLAP_1_1CmdLine.html#a3609d0c13886053b367d1df80efbe67b" title="Should CmdLine handle parsing exceptions internally?">_handleExceptions</a>) {
<a name="l00500"></a>00500 <span class="keywordflow">throw</span>;
<a name="l00501"></a>00501 }
<a name="l00502"></a>00502
<a name="l00503"></a>00503 estat = ee.<a class="code" href="classTCLAP_1_1ExitException.html#acf7fd20c9cfb67b5718031ed0debda1c">getExitStatus</a>();
<a name="l00504"></a>00504 shouldExit = <span class="keyword">true</span>;
<a name="l00505"></a>00505 }
<a name="l00506"></a>00506
<a name="l00507"></a>00507 <span class="keywordflow">if</span> (shouldExit)
<a name="l00508"></a>00508 exit(estat);
<a name="l00509"></a>00509 }
<a name="l00510"></a>00510
<a name="l00511"></a><a class="code" href="classTCLAP_1_1CmdLine.html#a170a4e711c2a6d58a05e9ad3bc03c08a">00511</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classTCLAP_1_1CmdLine.html#a170a4e711c2a6d58a05e9ad3bc03c08a" title="Checks whether a name/flag string matches entirely matches the Arg::blankChar.">CmdLine::_emptyCombined</a>(<span class="keyword">const</span> std::string&amp; s)
<a name="l00512"></a>00512 {
<a name="l00513"></a>00513 <span class="keywordflow">if</span> ( s.length() &gt; 0 &amp;&amp; s[0] != <a class="code" href="classTCLAP_1_1Arg.html#a7f9f6af439993e9151bd5a6cd2a63dad">Arg::flagStartChar</a>() )
<a name="l00514"></a>00514 <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00515"></a>00515
<a name="l00516"></a>00516 <span class="keywordflow">for</span> ( <span class="keywordtype">int</span> i = 1; <span class="keyword">static_cast&lt;</span><span class="keywordtype">unsigned</span> <span class="keywordtype">int</span><span class="keyword">&gt;</span>(i) &lt; s.length(); i++ )
<a name="l00517"></a>00517 <span class="keywordflow">if</span> ( s[i] != <a class="code" href="classTCLAP_1_1Arg.html#a0abd38f46dbf7d267078134a4817fbb2" title="The char used as a place holder when SwitchArgs are combined.">Arg::blankChar</a>() )
<a name="l00518"></a>00518 <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00519"></a>00519
<a name="l00520"></a>00520 <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00521"></a>00521 }
<a name="l00522"></a>00522
<a name="l00523"></a><a class="code" href="classTCLAP_1_1CmdLine.html#a698f47333350312eb949aa1ae4f89ad1">00523</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1CmdLine.html#a698f47333350312eb949aa1ae4f89ad1" title="Throws an exception listing the missing args.">CmdLine::missingArgsException</a>()
<a name="l00524"></a>00524 {
<a name="l00525"></a>00525 <span class="keywordtype">int</span> count = 0;
<a name="l00526"></a>00526
<a name="l00527"></a>00527 std::string missingArgList;
<a name="l00528"></a>00528 <span class="keywordflow">for</span> (<a class="code" href="namespaceTCLAP.html#aa7d6a803e0690c3c8b1db57c145648c5" title="Typedef of an Arg list iterator.">ArgListIterator</a> it = <a class="code" href="classTCLAP_1_1CmdLine.html#a4d70f73542d8184e077688bff3801baf" title="The list of arguments that will be tested against the command line.">_argList</a>.begin(); it != <a class="code" href="classTCLAP_1_1CmdLine.html#a4d70f73542d8184e077688bff3801baf" title="The list of arguments that will be tested against the command line.">_argList</a>.end(); it++)
<a name="l00529"></a>00529 {
<a name="l00530"></a>00530 <span class="keywordflow">if</span> ( (*it)-&gt;isRequired() &amp;&amp; !(*it)-&gt;isSet() )
<a name="l00531"></a>00531 {
<a name="l00532"></a>00532 missingArgList += (*it)-&gt;getName();
<a name="l00533"></a>00533 missingArgList += <span class="stringliteral">&quot;, &quot;</span>;
<a name="l00534"></a>00534 count++;
<a name="l00535"></a>00535 }
<a name="l00536"></a>00536 }
<a name="l00537"></a>00537 missingArgList = missingArgList.substr(0,missingArgList.length()-2);
<a name="l00538"></a>00538
<a name="l00539"></a>00539 std::string msg;
<a name="l00540"></a>00540 <span class="keywordflow">if</span> ( count &gt; 1 )
<a name="l00541"></a>00541 msg = <span class="stringliteral">&quot;Required arguments missing: &quot;</span>;
<a name="l00542"></a>00542 <span class="keywordflow">else</span>
<a name="l00543"></a>00543 msg = <span class="stringliteral">&quot;Required argument missing: &quot;</span>;
<a name="l00544"></a>00544
<a name="l00545"></a>00545 msg += missingArgList;
<a name="l00546"></a>00546
<a name="l00547"></a>00547 <span class="keywordflow">throw</span>(<a class="code" href="classTCLAP_1_1CmdLineParseException.html" title="Thrown from CmdLine when the arguments on the command line are not properly specified...">CmdLineParseException</a>(msg));
<a name="l00548"></a>00548 }
<a name="l00549"></a>00549
<a name="l00550"></a><a class="code" href="classTCLAP_1_1CmdLine.html#a42d669ed2037ac24fc78883aa8600655">00550</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1CmdLine.html#a42d669ed2037ac24fc78883aa8600655" title="Perform a delete ptr; operation on ptr when this object is deleted.">CmdLine::deleteOnExit</a>(<a class="code" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a>* ptr)
<a name="l00551"></a>00551 {
<a name="l00552"></a>00552 <a class="code" href="classTCLAP_1_1CmdLine.html#af8d37fbf9d0b60b6acbd737af380f3e5" title="A list of Args to be explicitly deleted when the destructor is called.">_argDeleteOnExitList</a>.push_back(ptr);
<a name="l00553"></a>00553 }
<a name="l00554"></a>00554
<a name="l00555"></a><a class="code" href="classTCLAP_1_1CmdLine.html#a262b8d929eb5b0dfbfc17637c1325c36">00555</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1CmdLine.html#a42d669ed2037ac24fc78883aa8600655" title="Perform a delete ptr; operation on ptr when this object is deleted.">CmdLine::deleteOnExit</a>(<a class="code" href="classTCLAP_1_1Visitor.html" title="A base class that defines the interface for visitors.">Visitor</a>* ptr)
<a name="l00556"></a>00556 {
<a name="l00557"></a>00557 <a class="code" href="classTCLAP_1_1CmdLine.html#a79b8a947f8100de977574b45b91117ac" title="A list of Visitors to be explicitly deleted when the destructor is called.">_visitorDeleteOnExitList</a>.push_back(ptr);
<a name="l00558"></a>00558 }
<a name="l00559"></a>00559
<a name="l00560"></a><a class="code" href="classTCLAP_1_1CmdLine.html#ad8aea2617edf53bbc20c8964ee5476e6">00560</a> <span class="keyword">inline</span> <a class="code" href="classTCLAP_1_1CmdLineOutput.html" title="The interface that any output object must implement.">CmdLineOutput</a>* <a class="code" href="classTCLAP_1_1CmdLine.html#ad8aea2617edf53bbc20c8964ee5476e6" title="Returns the CmdLineOutput object.">CmdLine::getOutput</a>()
<a name="l00561"></a>00561 {
<a name="l00562"></a>00562 <span class="keywordflow">return</span> <a class="code" href="classTCLAP_1_1CmdLine.html#a5152bf4ef26217583a3bc708aa0ea83e" title="Object that handles all output for the CmdLine.">_output</a>;
<a name="l00563"></a>00563 }
<a name="l00564"></a>00564
<a name="l00565"></a><a class="code" href="classTCLAP_1_1CmdLine.html#a4506e305cd10437c7ce5a5ba34cfed0f">00565</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1CmdLine.html#a4506e305cd10437c7ce5a5ba34cfed0f">CmdLine::setOutput</a>(<a class="code" href="classTCLAP_1_1CmdLineOutput.html" title="The interface that any output object must implement.">CmdLineOutput</a>* co)
<a name="l00566"></a>00566 {
<a name="l00567"></a>00567 <span class="keywordflow">if</span> ( !_userSetOutput )
<a name="l00568"></a>00568 <span class="keyword">delete</span> <a class="code" href="classTCLAP_1_1CmdLine.html#a5152bf4ef26217583a3bc708aa0ea83e" title="Object that handles all output for the CmdLine.">_output</a>;
<a name="l00569"></a>00569 _userSetOutput = <span class="keyword">true</span>;
<a name="l00570"></a>00570 <a class="code" href="classTCLAP_1_1CmdLine.html#a5152bf4ef26217583a3bc708aa0ea83e" title="Object that handles all output for the CmdLine.">_output</a> = co;
<a name="l00571"></a>00571 }
<a name="l00572"></a>00572
<a name="l00573"></a><a class="code" href="classTCLAP_1_1CmdLine.html#a85b5653d1a5b48fe6accead64615cf33">00573</a> <span class="keyword">inline</span> std::string&amp; <a class="code" href="classTCLAP_1_1CmdLine.html#a85b5653d1a5b48fe6accead64615cf33" title="Returns the version string.">CmdLine::getVersion</a>()
<a name="l00574"></a>00574 {
<a name="l00575"></a>00575 <span class="keywordflow">return</span> <a class="code" href="classTCLAP_1_1CmdLine.html#a2b2b52fffed2dcb7df3cdfc582ec8fd1" title="The version to be displayed with the --version switch.">_version</a>;
<a name="l00576"></a>00576 }
<a name="l00577"></a>00577
<a name="l00578"></a><a class="code" href="classTCLAP_1_1CmdLine.html#a47a6d496980ee11ffc42e27144a61797">00578</a> <span class="keyword">inline</span> std::string&amp; <a class="code" href="classTCLAP_1_1CmdLine.html#a47a6d496980ee11ffc42e27144a61797" title="Returns the program name string.">CmdLine::getProgramName</a>()
<a name="l00579"></a>00579 {
<a name="l00580"></a>00580 <span class="keywordflow">return</span> <a class="code" href="classTCLAP_1_1CmdLine.html#a8b856dadc54fa30d0dddba4588ef9344" title="The name of the program.">_progName</a>;
<a name="l00581"></a>00581 }
<a name="l00582"></a>00582
<a name="l00583"></a><a class="code" href="classTCLAP_1_1CmdLine.html#a3c281da929a281fb883ea47632b7ad38">00583</a> <span class="keyword">inline</span> std::list&lt;Arg*&gt;&amp; <a class="code" href="classTCLAP_1_1CmdLine.html#a3c281da929a281fb883ea47632b7ad38" title="Returns the argList.">CmdLine::getArgList</a>()
<a name="l00584"></a>00584 {
<a name="l00585"></a>00585 <span class="keywordflow">return</span> <a class="code" href="classTCLAP_1_1CmdLine.html#a4d70f73542d8184e077688bff3801baf" title="The list of arguments that will be tested against the command line.">_argList</a>;
<a name="l00586"></a>00586 }
<a name="l00587"></a>00587
<a name="l00588"></a><a class="code" href="classTCLAP_1_1CmdLine.html#a805433b7718d1bc5bc9317bbd061449b">00588</a> <span class="keyword">inline</span> <a class="code" href="classTCLAP_1_1XorHandler.html" title="This class handles lists of Arg&amp;#39;s that are to be XOR&amp;#39;d on the command line...">XorHandler</a>&amp; <a class="code" href="classTCLAP_1_1CmdLine.html#a805433b7718d1bc5bc9317bbd061449b" title="Returns the XorHandler.">CmdLine::getXorHandler</a>()
<a name="l00589"></a>00589 {
<a name="l00590"></a>00590 <span class="keywordflow">return</span> <a class="code" href="classTCLAP_1_1CmdLine.html#a33846aa10c62ecd61640c93c16ac315d" title="The handler that manages xoring lists of args.">_xorHandler</a>;
<a name="l00591"></a>00591 }
<a name="l00592"></a>00592
<a name="l00593"></a><a class="code" href="classTCLAP_1_1CmdLine.html#a3e9f0ac2c1e97d1f8527da713ddd5a8f">00593</a> <span class="keyword">inline</span> <span class="keywordtype">char</span> <a class="code" href="classTCLAP_1_1CmdLine.html#a3e9f0ac2c1e97d1f8527da713ddd5a8f" title="Returns the delimiter string.">CmdLine::getDelimiter</a>()
<a name="l00594"></a>00594 {
<a name="l00595"></a>00595 <span class="keywordflow">return</span> <a class="code" href="classTCLAP_1_1CmdLine.html#a602e65692dc07ea872134f354026a54f" title="The character that is used to separate the argument flag/name from the value.">_delimiter</a>;
<a name="l00596"></a>00596 }
<a name="l00597"></a>00597
<a name="l00598"></a><a class="code" href="classTCLAP_1_1CmdLine.html#a8f61a8c201e31ada985fa998180fd40f">00598</a> <span class="keyword">inline</span> std::string&amp; <a class="code" href="classTCLAP_1_1CmdLine.html#a8f61a8c201e31ada985fa998180fd40f" title="Returns the message string.">CmdLine::getMessage</a>()
<a name="l00599"></a>00599 {
<a name="l00600"></a>00600 <span class="keywordflow">return</span> <a class="code" href="classTCLAP_1_1CmdLine.html#a3ccd2ae40f6eb97aebca3de9a02f10cf" title="A message used to describe the program.">_message</a>;
<a name="l00601"></a>00601 }
<a name="l00602"></a>00602
<a name="l00603"></a><a class="code" href="classTCLAP_1_1CmdLine.html#a5b23895feae4f4110b77dae372226475">00603</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classTCLAP_1_1CmdLine.html#a5b23895feae4f4110b77dae372226475" title="Indicates whether or not the help and version switches were created automatically...">CmdLine::hasHelpAndVersion</a>()
<a name="l00604"></a>00604 {
<a name="l00605"></a>00605 <span class="keywordflow">return</span> _helpAndVersion;
<a name="l00606"></a>00606 }
<a name="l00607"></a>00607
<a name="l00608"></a><a class="code" href="classTCLAP_1_1CmdLine.html#aa02055d8f4864bfa9b505e2d26bbbd87">00608</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1CmdLine.html#aa02055d8f4864bfa9b505e2d26bbbd87" title="Disables or enables CmdLine&amp;#39;s internal parsing exception handling.">CmdLine::setExceptionHandling</a>(<span class="keyword">const</span> <span class="keywordtype">bool</span> state)
<a name="l00609"></a>00609 {
<a name="l00610"></a>00610 <a class="code" href="classTCLAP_1_1CmdLine.html#a3609d0c13886053b367d1df80efbe67b" title="Should CmdLine handle parsing exceptions internally?">_handleExceptions</a> = state;
<a name="l00611"></a>00611 }
<a name="l00612"></a>00612
<a name="l00613"></a><a class="code" href="classTCLAP_1_1CmdLine.html#af2cd748a91e22df97c878d7eff8c4ca3">00613</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classTCLAP_1_1CmdLine.html#af2cd748a91e22df97c878d7eff8c4ca3" title="Returns the current state of the internal exception handling.">CmdLine::getExceptionHandling</a>()<span class="keyword"> const</span>
<a name="l00614"></a>00614 <span class="keyword"></span>{
<a name="l00615"></a>00615 <span class="keywordflow">return</span> <a class="code" href="classTCLAP_1_1CmdLine.html#a3609d0c13886053b367d1df80efbe67b" title="Should CmdLine handle parsing exceptions internally?">_handleExceptions</a>;
<a name="l00616"></a>00616 }
<a name="l00617"></a>00617
<a name="l00618"></a><a class="code" href="classTCLAP_1_1CmdLine.html#a1721ec47c9d9f5ea2eca2f385fcfd2da">00618</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1CmdLine.html#a1721ec47c9d9f5ea2eca2f385fcfd2da" title="Allows the CmdLine object to be reused.">CmdLine::reset</a>()
<a name="l00619"></a>00619 {
<a name="l00620"></a>00620 <span class="keywordflow">for</span>( <a class="code" href="namespaceTCLAP.html#aa7d6a803e0690c3c8b1db57c145648c5" title="Typedef of an Arg list iterator.">ArgListIterator</a> it = <a class="code" href="classTCLAP_1_1CmdLine.html#a4d70f73542d8184e077688bff3801baf" title="The list of arguments that will be tested against the command line.">_argList</a>.begin(); it != <a class="code" href="classTCLAP_1_1CmdLine.html#a4d70f73542d8184e077688bff3801baf" title="The list of arguments that will be tested against the command line.">_argList</a>.end(); it++ )
<a name="l00621"></a>00621 (*it)-&gt;reset();
<a name="l00622"></a>00622
<a name="l00623"></a>00623 <a class="code" href="classTCLAP_1_1CmdLine.html#a8b856dadc54fa30d0dddba4588ef9344" title="The name of the program.">_progName</a>.clear();
<a name="l00624"></a>00624 }
<a name="l00625"></a>00625
<a name="l00627"></a>00627 <span class="comment">//End CmdLine.cpp</span>
<a name="l00629"></a>00629 <span class="comment"></span>
<a name="l00630"></a>00630
<a name="l00631"></a>00631
<a name="l00632"></a>00632 } <span class="comment">//namespace TCLAP</span>
<a name="l00633"></a>00633 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Sat Apr 16 15:34:24 2011 for tclap by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.0 </small></address>
</body>
</html>

View File

@ -0,0 +1,48 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>tclap: Constraint.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.0 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
<li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="contents">
<h1>Constraint.h File Reference</h1><code>#include &lt;string&gt;</code><br/>
<code>#include &lt;vector&gt;</code><br/>
<code>#include &lt;list&gt;</code><br/>
<code>#include &lt;iostream&gt;</code><br/>
<code>#include &lt;iomanip&gt;</code><br/>
<code>#include &lt;algorithm&gt;</code><br/>
<p><a href="Constraint_8h_source.html">Go to the source code of this file.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Classes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTCLAP_1_1Constraint.html">TCLAP::Constraint&lt; T &gt;</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The interface that defines the interaction between the <a class="el" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a> and <a class="el" href="classTCLAP_1_1Constraint.html" title="The interface that defines the interaction between the Arg and Constraint.">Constraint</a>. <a href="classTCLAP_1_1Constraint.html#_details">More...</a><br/></td></tr>
<tr><td colspan="2"><h2>Namespaces</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">namespace &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceTCLAP.html">TCLAP</a></td></tr>
</table>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Sat Apr 16 15:34:24 2011 for tclap by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.0 </small></address>
</body>
</html>

View File

@ -0,0 +1,80 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>tclap: Constraint.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.0 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
<li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
</ul>
</div>
<h1>Constraint.h</h1><a href="Constraint_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
<a name="l00002"></a>00002 <span class="comment">/******************************************************************************</span>
<a name="l00003"></a>00003 <span class="comment"> *</span>
<a name="l00004"></a>00004 <span class="comment"> * file: Constraint.h</span>
<a name="l00005"></a>00005 <span class="comment"> *</span>
<a name="l00006"></a>00006 <span class="comment"> * Copyright (c) 2005, Michael E. Smoot</span>
<a name="l00007"></a>00007 <span class="comment"> * All rights reverved.</span>
<a name="l00008"></a>00008 <span class="comment"> *</span>
<a name="l00009"></a>00009 <span class="comment"> * See the file COPYING in the top directory of this distribution for</span>
<a name="l00010"></a>00010 <span class="comment"> * more information.</span>
<a name="l00011"></a>00011 <span class="comment"> *</span>
<a name="l00012"></a>00012 <span class="comment"> * THE SOFTWARE IS PROVIDED _AS IS_, WITHOUT WARRANTY OF ANY KIND, EXPRESS</span>
<a name="l00013"></a>00013 <span class="comment"> * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,</span>
<a name="l00014"></a>00014 <span class="comment"> * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL</span>
<a name="l00015"></a>00015 <span class="comment"> * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER</span>
<a name="l00016"></a>00016 <span class="comment"> * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING</span>
<a name="l00017"></a>00017 <span class="comment"> * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER</span>
<a name="l00018"></a>00018 <span class="comment"> * DEALINGS IN THE SOFTWARE.</span>
<a name="l00019"></a>00019 <span class="comment"> *</span>
<a name="l00020"></a>00020 <span class="comment"> *****************************************************************************/</span>
<a name="l00021"></a>00021
<a name="l00022"></a>00022 <span class="preprocessor">#ifndef TCLAP_CONSTRAINT_H</span>
<a name="l00023"></a>00023 <span class="preprocessor"></span><span class="preprocessor">#define TCLAP_CONSTRAINT_H</span>
<a name="l00024"></a>00024 <span class="preprocessor"></span>
<a name="l00025"></a>00025 <span class="preprocessor">#include &lt;string&gt;</span>
<a name="l00026"></a>00026 <span class="preprocessor">#include &lt;vector&gt;</span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;list&gt;</span>
<a name="l00028"></a>00028 <span class="preprocessor">#include &lt;iostream&gt;</span>
<a name="l00029"></a>00029 <span class="preprocessor">#include &lt;iomanip&gt;</span>
<a name="l00030"></a>00030 <span class="preprocessor">#include &lt;algorithm&gt;</span>
<a name="l00031"></a>00031
<a name="l00032"></a>00032 <span class="keyword">namespace </span>TCLAP {
<a name="l00033"></a>00033
<a name="l00037"></a>00037 <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;
<a name="l00038"></a><a class="code" href="classTCLAP_1_1Constraint.html">00038</a> <span class="keyword">class </span><a class="code" href="classTCLAP_1_1Constraint.html" title="The interface that defines the interaction between the Arg and Constraint.">Constraint</a>
<a name="l00039"></a>00039 {
<a name="l00040"></a>00040
<a name="l00041"></a>00041 <span class="keyword">public</span>:
<a name="l00045"></a>00045 <span class="keyword">virtual</span> std::string <a class="code" href="classTCLAP_1_1Constraint.html#ae16dd80aa217fb56c0862af5478afe01" title="Returns a description of the Constraint.">description</a>() <span class="keyword">const</span> =0;
<a name="l00046"></a>00046
<a name="l00050"></a>00050 <span class="keyword">virtual</span> std::string <a class="code" href="classTCLAP_1_1Constraint.html#a39f707895311da682439810a0bec4a5f" title="Returns the short ID for the Constraint.">shortID</a>() <span class="keyword">const</span> =0;
<a name="l00051"></a>00051
<a name="l00057"></a>00057 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classTCLAP_1_1Constraint.html#a773c3e16d0150523c1c92b7b24868c34" title="The method used to verify that the value parsed from the command line meets the constraint...">check</a>(<span class="keyword">const</span> T&amp; value) <span class="keyword">const</span> =0;
<a name="l00058"></a>00058
<a name="l00064"></a><a class="code" href="classTCLAP_1_1Constraint.html#ae96bbe5301e9517b68b1597b36098224">00064</a> <span class="keyword">virtual</span> <a class="code" href="classTCLAP_1_1Constraint.html#ae96bbe5301e9517b68b1597b36098224" title="Destructor.">~Constraint</a>() { ; }
<a name="l00065"></a>00065 };
<a name="l00066"></a>00066
<a name="l00067"></a>00067 } <span class="comment">//namespace TCLAP</span>
<a name="l00068"></a>00068 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Sat Apr 16 15:34:24 2011 for tclap by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.0 </small></address>
</body>
</html>

View File

@ -0,0 +1,51 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>tclap: DocBookOutput.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.0 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
<li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="contents">
<h1>DocBookOutput.h File Reference</h1><code>#include &lt;string&gt;</code><br/>
<code>#include &lt;vector&gt;</code><br/>
<code>#include &lt;list&gt;</code><br/>
<code>#include &lt;iostream&gt;</code><br/>
<code>#include &lt;algorithm&gt;</code><br/>
<code>#include &lt;<a class="el" href="CmdLineInterface_8h_source.html">tclap/CmdLineInterface.h</a>&gt;</code><br/>
<code>#include &lt;<a class="el" href="CmdLineOutput_8h_source.html">tclap/CmdLineOutput.h</a>&gt;</code><br/>
<code>#include &lt;<a class="el" href="XorHandler_8h_source.html">tclap/XorHandler.h</a>&gt;</code><br/>
<code>#include &lt;<a class="el" href="Arg_8h_source.html">tclap/Arg.h</a>&gt;</code><br/>
<p><a href="DocBookOutput_8h_source.html">Go to the source code of this file.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Classes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTCLAP_1_1DocBookOutput.html">TCLAP::DocBookOutput</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">A class that generates DocBook output for <a class="el" href="classTCLAP_1_1DocBookOutput.html#adc1ec93f3f7e5e912690be01c5e7d6e2" title="Prints the usage to stdout.">usage()</a> method for the given <a class="el" href="classTCLAP_1_1CmdLine.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLine</a> and its Args. <a href="classTCLAP_1_1DocBookOutput.html#_details">More...</a><br/></td></tr>
<tr><td colspan="2"><h2>Namespaces</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">namespace &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceTCLAP.html">TCLAP</a></td></tr>
</table>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Sat Apr 16 15:34:24 2011 for tclap by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.0 </small></address>
</body>
</html>

View File

@ -0,0 +1,304 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>tclap: DocBookOutput.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.0 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
<li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
</ul>
</div>
<h1>DocBookOutput.h</h1><a href="DocBookOutput_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// -*- Mode: c++; c-basic-offset: 4; tab-width: 4; -*-</span>
<a name="l00002"></a>00002
<a name="l00003"></a>00003 <span class="comment">/****************************************************************************** </span>
<a name="l00004"></a>00004 <span class="comment"> * </span>
<a name="l00005"></a>00005 <span class="comment"> * file: DocBookOutput.h</span>
<a name="l00006"></a>00006 <span class="comment"> * </span>
<a name="l00007"></a>00007 <span class="comment"> * Copyright (c) 2004, Michael E. Smoot</span>
<a name="l00008"></a>00008 <span class="comment"> * All rights reverved.</span>
<a name="l00009"></a>00009 <span class="comment"> * </span>
<a name="l00010"></a>00010 <span class="comment"> * See the file COPYING in the top directory of this distribution for</span>
<a name="l00011"></a>00011 <span class="comment"> * more information.</span>
<a name="l00012"></a>00012 <span class="comment"> * </span>
<a name="l00013"></a>00013 <span class="comment"> * THE SOFTWARE IS PROVIDED _AS IS_, WITHOUT WARRANTY OF ANY KIND, EXPRESS </span>
<a name="l00014"></a>00014 <span class="comment"> * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, </span>
<a name="l00015"></a>00015 <span class="comment"> * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL </span>
<a name="l00016"></a>00016 <span class="comment"> * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER </span>
<a name="l00017"></a>00017 <span class="comment"> * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING </span>
<a name="l00018"></a>00018 <span class="comment"> * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER </span>
<a name="l00019"></a>00019 <span class="comment"> * DEALINGS IN THE SOFTWARE. </span>
<a name="l00020"></a>00020 <span class="comment"> * </span>
<a name="l00021"></a>00021 <span class="comment"> *****************************************************************************/</span>
<a name="l00022"></a>00022
<a name="l00023"></a>00023 <span class="preprocessor">#ifndef TCLAP_DOCBOOKOUTPUT_H</span>
<a name="l00024"></a>00024 <span class="preprocessor"></span><span class="preprocessor">#define TCLAP_DOCBOOKOUTPUT_H</span>
<a name="l00025"></a>00025 <span class="preprocessor"></span>
<a name="l00026"></a>00026 <span class="preprocessor">#include &lt;string&gt;</span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;vector&gt;</span>
<a name="l00028"></a>00028 <span class="preprocessor">#include &lt;list&gt;</span>
<a name="l00029"></a>00029 <span class="preprocessor">#include &lt;iostream&gt;</span>
<a name="l00030"></a>00030 <span class="preprocessor">#include &lt;algorithm&gt;</span>
<a name="l00031"></a>00031
<a name="l00032"></a>00032 <span class="preprocessor">#include &lt;<a class="code" href="CmdLineInterface_8h.html">tclap/CmdLineInterface.h</a>&gt;</span>
<a name="l00033"></a>00033 <span class="preprocessor">#include &lt;<a class="code" href="CmdLineOutput_8h.html">tclap/CmdLineOutput.h</a>&gt;</span>
<a name="l00034"></a>00034 <span class="preprocessor">#include &lt;<a class="code" href="XorHandler_8h.html">tclap/XorHandler.h</a>&gt;</span>
<a name="l00035"></a>00035 <span class="preprocessor">#include &lt;<a class="code" href="Arg_8h.html">tclap/Arg.h</a>&gt;</span>
<a name="l00036"></a>00036
<a name="l00037"></a>00037 <span class="keyword">namespace </span>TCLAP {
<a name="l00038"></a>00038
<a name="l00043"></a><a class="code" href="classTCLAP_1_1DocBookOutput.html">00043</a> <span class="keyword">class </span><a class="code" href="classTCLAP_1_1DocBookOutput.html" title="A class that generates DocBook output for usage() method for the given CmdLine and...">DocBookOutput</a> : <span class="keyword">public</span> <a class="code" href="classTCLAP_1_1CmdLineOutput.html" title="The interface that any output object must implement.">CmdLineOutput</a>
<a name="l00044"></a>00044 {
<a name="l00045"></a>00045
<a name="l00046"></a>00046 <span class="keyword">public</span>:
<a name="l00047"></a>00047
<a name="l00053"></a>00053 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1DocBookOutput.html#adc1ec93f3f7e5e912690be01c5e7d6e2" title="Prints the usage to stdout.">usage</a>(<a class="code" href="classTCLAP_1_1CmdLineInterface.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLineInterface</a>&amp; c);
<a name="l00054"></a>00054
<a name="l00060"></a>00060 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1DocBookOutput.html#a3ccf7671dcae82aba5f0e91850ae25a4" title="Prints the version to stdout.">version</a>(<a class="code" href="classTCLAP_1_1CmdLineInterface.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLineInterface</a>&amp; c);
<a name="l00061"></a>00061
<a name="l00068"></a>00068 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1DocBookOutput.html#a5e97f659fa1ab3b060a31e8bd7a0a40e" title="Prints (to stderr) an error message, short usage Can be overridden to produce alternative...">failure</a>(<a class="code" href="classTCLAP_1_1CmdLineInterface.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLineInterface</a>&amp; c,
<a name="l00069"></a>00069 <a class="code" href="classTCLAP_1_1ArgException.html" title="A simple class that defines and argument exception.">ArgException</a>&amp; e );
<a name="l00070"></a>00070
<a name="l00071"></a>00071 <span class="keyword">protected</span>:
<a name="l00072"></a>00072
<a name="l00079"></a>00079 <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1DocBookOutput.html#a7546eaf3a0effeea1030afb27b4c698f" title="Substitutes the char r for string x in string s.">substituteSpecialChars</a>( std::string&amp; s, <span class="keywordtype">char</span> r, std::string&amp; x );
<a name="l00080"></a>00080 <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1DocBookOutput.html#abc059536cb97c49da4e6c5b4a22c6cef">removeChar</a>( std::string&amp; s, <span class="keywordtype">char</span> r);
<a name="l00081"></a>00081 <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1DocBookOutput.html#a82d49ab25845c7d191863be9c482409e">basename</a>( std::string&amp; s );
<a name="l00082"></a>00082
<a name="l00083"></a>00083 <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1DocBookOutput.html#a980ecacfcda0186a76bb6c37a9c33726">printShortArg</a>(<a class="code" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a>* it);
<a name="l00084"></a>00084 <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1DocBookOutput.html#a891cf5ef71592b5261691575c2adad1d">printLongArg</a>(<a class="code" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a>* it);
<a name="l00085"></a>00085
<a name="l00086"></a><a class="code" href="classTCLAP_1_1DocBookOutput.html#a081a02a93ce13f694d078c79fe42a7c8">00086</a> <span class="keywordtype">char</span> <a class="code" href="classTCLAP_1_1DocBookOutput.html#a081a02a93ce13f694d078c79fe42a7c8">theDelimiter</a>;
<a name="l00087"></a>00087 };
<a name="l00088"></a>00088
<a name="l00089"></a>00089
<a name="l00090"></a><a class="code" href="classTCLAP_1_1DocBookOutput.html#a3ccf7671dcae82aba5f0e91850ae25a4">00090</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1DocBookOutput.html#a3ccf7671dcae82aba5f0e91850ae25a4" title="Prints the version to stdout.">DocBookOutput::version</a>(<a class="code" href="classTCLAP_1_1CmdLineInterface.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLineInterface</a>&amp; _cmd)
<a name="l00091"></a>00091 {
<a name="l00092"></a>00092 std::cout &lt;&lt; _cmd.<a class="code" href="classTCLAP_1_1CmdLineInterface.html#a0a552fa57212800dfb8aec84fb07b8bb" title="Returns the version string.">getVersion</a>() &lt;&lt; std::endl;
<a name="l00093"></a>00093 }
<a name="l00094"></a>00094
<a name="l00095"></a><a class="code" href="classTCLAP_1_1DocBookOutput.html#adc1ec93f3f7e5e912690be01c5e7d6e2">00095</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1DocBookOutput.html#adc1ec93f3f7e5e912690be01c5e7d6e2" title="Prints the usage to stdout.">DocBookOutput::usage</a>(<a class="code" href="classTCLAP_1_1CmdLineInterface.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLineInterface</a>&amp; _cmd )
<a name="l00096"></a>00096 {
<a name="l00097"></a>00097 std::list&lt;Arg*&gt; argList = _cmd.<a class="code" href="classTCLAP_1_1CmdLineInterface.html#a4de8d988f5a6f3007c4dfb0fc9dad476" title="Returns the argList.">getArgList</a>();
<a name="l00098"></a>00098 std::string progName = _cmd.<a class="code" href="classTCLAP_1_1CmdLineInterface.html#a1a5672df72a6b5021cd70b37c4dbd0a7" title="Returns the program name string.">getProgramName</a>();
<a name="l00099"></a>00099 std::string xversion = _cmd.<a class="code" href="classTCLAP_1_1CmdLineInterface.html#a0a552fa57212800dfb8aec84fb07b8bb" title="Returns the version string.">getVersion</a>();
<a name="l00100"></a>00100 <a class="code" href="classTCLAP_1_1DocBookOutput.html#a081a02a93ce13f694d078c79fe42a7c8">theDelimiter</a> = _cmd.<a class="code" href="classTCLAP_1_1CmdLineInterface.html#a7d6a64cff6b3a30e2cf1e81d7b1d4521" title="Returns the delimiter string.">getDelimiter</a>();
<a name="l00101"></a>00101 <a class="code" href="classTCLAP_1_1XorHandler.html" title="This class handles lists of Arg&amp;#39;s that are to be XOR&amp;#39;d on the command line...">XorHandler</a> xorHandler = _cmd.<a class="code" href="classTCLAP_1_1CmdLineInterface.html#a11ce9c77a1111960741f05e343849e4e" title="Returns the XorHandler.">getXorHandler</a>();
<a name="l00102"></a>00102 std::vector&lt; std::vector&lt;Arg*&gt; &gt; xorList = xorHandler.<a class="code" href="classTCLAP_1_1XorHandler.html#a0e0d95c697d227cc51f82424b8530182">getXorList</a>();
<a name="l00103"></a>00103 <a class="code" href="classTCLAP_1_1DocBookOutput.html#a82d49ab25845c7d191863be9c482409e">basename</a>(progName);
<a name="l00104"></a>00104
<a name="l00105"></a>00105 std::cout &lt;&lt; <span class="stringliteral">&quot;&lt;?xml version=&apos;1.0&apos;?&gt;&quot;</span> &lt;&lt; std::endl;
<a name="l00106"></a>00106 std::cout &lt;&lt; <span class="stringliteral">&quot;&lt;!DOCTYPE refentry PUBLIC \&quot;-//OASIS//DTD DocBook XML V4.2//EN\&quot;&quot;</span> &lt;&lt; std::endl;
<a name="l00107"></a>00107 std::cout &lt;&lt; <span class="stringliteral">&quot;\t\&quot;http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd\&quot;&gt;&quot;</span> &lt;&lt; std::endl &lt;&lt; std::endl;
<a name="l00108"></a>00108
<a name="l00109"></a>00109 std::cout &lt;&lt; <span class="stringliteral">&quot;&lt;refentry&gt;&quot;</span> &lt;&lt; std::endl;
<a name="l00110"></a>00110
<a name="l00111"></a>00111 std::cout &lt;&lt; <span class="stringliteral">&quot;&lt;refmeta&gt;&quot;</span> &lt;&lt; std::endl;
<a name="l00112"></a>00112 std::cout &lt;&lt; <span class="stringliteral">&quot;&lt;refentrytitle&gt;&quot;</span> &lt;&lt; progName &lt;&lt; <span class="stringliteral">&quot;&lt;/refentrytitle&gt;&quot;</span> &lt;&lt; std::endl;
<a name="l00113"></a>00113 std::cout &lt;&lt; <span class="stringliteral">&quot;&lt;manvolnum&gt;1&lt;/manvolnum&gt;&quot;</span> &lt;&lt; std::endl;
<a name="l00114"></a>00114 std::cout &lt;&lt; <span class="stringliteral">&quot;&lt;/refmeta&gt;&quot;</span> &lt;&lt; std::endl;
<a name="l00115"></a>00115
<a name="l00116"></a>00116 std::cout &lt;&lt; <span class="stringliteral">&quot;&lt;refnamediv&gt;&quot;</span> &lt;&lt; std::endl;
<a name="l00117"></a>00117 std::cout &lt;&lt; <span class="stringliteral">&quot;&lt;refname&gt;&quot;</span> &lt;&lt; progName &lt;&lt; <span class="stringliteral">&quot;&lt;/refname&gt;&quot;</span> &lt;&lt; std::endl;
<a name="l00118"></a>00118 std::cout &lt;&lt; <span class="stringliteral">&quot;&lt;refpurpose&gt;&quot;</span> &lt;&lt; _cmd.<a class="code" href="classTCLAP_1_1CmdLineInterface.html#a30175a2567f7ab78a2c6bbea9269a2fa" title="Returns the message string.">getMessage</a>() &lt;&lt; <span class="stringliteral">&quot;&lt;/refpurpose&gt;&quot;</span> &lt;&lt; std::endl;
<a name="l00119"></a>00119 std::cout &lt;&lt; <span class="stringliteral">&quot;&lt;/refnamediv&gt;&quot;</span> &lt;&lt; std::endl;
<a name="l00120"></a>00120
<a name="l00121"></a>00121 std::cout &lt;&lt; <span class="stringliteral">&quot;&lt;refsynopsisdiv&gt;&quot;</span> &lt;&lt; std::endl;
<a name="l00122"></a>00122 std::cout &lt;&lt; <span class="stringliteral">&quot;&lt;cmdsynopsis&gt;&quot;</span> &lt;&lt; std::endl;
<a name="l00123"></a>00123
<a name="l00124"></a>00124 std::cout &lt;&lt; <span class="stringliteral">&quot;&lt;command&gt;&quot;</span> &lt;&lt; progName &lt;&lt; <span class="stringliteral">&quot;&lt;/command&gt;&quot;</span> &lt;&lt; std::endl;
<a name="l00125"></a>00125
<a name="l00126"></a>00126 <span class="comment">// xor</span>
<a name="l00127"></a>00127 <span class="keywordflow">for</span> ( <span class="keywordtype">int</span> i = 0; (<span class="keywordtype">unsigned</span> int)i &lt; xorList.size(); i++ )
<a name="l00128"></a>00128 {
<a name="l00129"></a>00129 std::cout &lt;&lt; <span class="stringliteral">&quot;&lt;group choice=&apos;req&apos;&gt;&quot;</span> &lt;&lt; std::endl;
<a name="l00130"></a>00130 <span class="keywordflow">for</span> ( <a class="code" href="namespaceTCLAP.html#a04213af1ffc3178ce5f771d21d5164a2" title="Typedef of an Arg vector iterator.">ArgVectorIterator</a> it = xorList[i].begin();
<a name="l00131"></a>00131 it != xorList[i].end(); it++ )
<a name="l00132"></a>00132 <a class="code" href="classTCLAP_1_1DocBookOutput.html#a980ecacfcda0186a76bb6c37a9c33726">printShortArg</a>((*it));
<a name="l00133"></a>00133
<a name="l00134"></a>00134 std::cout &lt;&lt; <span class="stringliteral">&quot;&lt;/group&gt;&quot;</span> &lt;&lt; std::endl;
<a name="l00135"></a>00135 }
<a name="l00136"></a>00136
<a name="l00137"></a>00137 <span class="comment">// rest of args</span>
<a name="l00138"></a>00138 <span class="keywordflow">for</span> (<a class="code" href="namespaceTCLAP.html#aa7d6a803e0690c3c8b1db57c145648c5" title="Typedef of an Arg list iterator.">ArgListIterator</a> it = argList.begin(); it != argList.end(); it++)
<a name="l00139"></a>00139 <span class="keywordflow">if</span> ( !xorHandler.<a class="code" href="classTCLAP_1_1XorHandler.html#a1a74fab4667cc591a1e3094c91bc942d" title="Simply checks whether the Arg is contained in one of the arg lists.">contains</a>( (*it) ) )
<a name="l00140"></a>00140 <a class="code" href="classTCLAP_1_1DocBookOutput.html#a980ecacfcda0186a76bb6c37a9c33726">printShortArg</a>((*it));
<a name="l00141"></a>00141
<a name="l00142"></a>00142 std::cout &lt;&lt; <span class="stringliteral">&quot;&lt;/cmdsynopsis&gt;&quot;</span> &lt;&lt; std::endl;
<a name="l00143"></a>00143 std::cout &lt;&lt; <span class="stringliteral">&quot;&lt;/refsynopsisdiv&gt;&quot;</span> &lt;&lt; std::endl;
<a name="l00144"></a>00144
<a name="l00145"></a>00145 std::cout &lt;&lt; <span class="stringliteral">&quot;&lt;refsect1&gt;&quot;</span> &lt;&lt; std::endl;
<a name="l00146"></a>00146 std::cout &lt;&lt; <span class="stringliteral">&quot;&lt;title&gt;Description&lt;/title&gt;&quot;</span> &lt;&lt; std::endl;
<a name="l00147"></a>00147 std::cout &lt;&lt; <span class="stringliteral">&quot;&lt;para&gt;&quot;</span> &lt;&lt; std::endl;
<a name="l00148"></a>00148 std::cout &lt;&lt; _cmd.<a class="code" href="classTCLAP_1_1CmdLineInterface.html#a30175a2567f7ab78a2c6bbea9269a2fa" title="Returns the message string.">getMessage</a>() &lt;&lt; std::endl;
<a name="l00149"></a>00149 std::cout &lt;&lt; <span class="stringliteral">&quot;&lt;/para&gt;&quot;</span> &lt;&lt; std::endl;
<a name="l00150"></a>00150 std::cout &lt;&lt; <span class="stringliteral">&quot;&lt;/refsect1&gt;&quot;</span> &lt;&lt; std::endl;
<a name="l00151"></a>00151
<a name="l00152"></a>00152 std::cout &lt;&lt; <span class="stringliteral">&quot;&lt;refsect1&gt;&quot;</span> &lt;&lt; std::endl;
<a name="l00153"></a>00153 std::cout &lt;&lt; <span class="stringliteral">&quot;&lt;title&gt;Options&lt;/title&gt;&quot;</span> &lt;&lt; std::endl;
<a name="l00154"></a>00154
<a name="l00155"></a>00155 std::cout &lt;&lt; <span class="stringliteral">&quot;&lt;variablelist&gt;&quot;</span> &lt;&lt; std::endl;
<a name="l00156"></a>00156
<a name="l00157"></a>00157 <span class="keywordflow">for</span> (<a class="code" href="namespaceTCLAP.html#aa7d6a803e0690c3c8b1db57c145648c5" title="Typedef of an Arg list iterator.">ArgListIterator</a> it = argList.begin(); it != argList.end(); it++)
<a name="l00158"></a>00158 <a class="code" href="classTCLAP_1_1DocBookOutput.html#a891cf5ef71592b5261691575c2adad1d">printLongArg</a>((*it));
<a name="l00159"></a>00159
<a name="l00160"></a>00160 std::cout &lt;&lt; <span class="stringliteral">&quot;&lt;/variablelist&gt;&quot;</span> &lt;&lt; std::endl;
<a name="l00161"></a>00161 std::cout &lt;&lt; <span class="stringliteral">&quot;&lt;/refsect1&gt;&quot;</span> &lt;&lt; std::endl;
<a name="l00162"></a>00162
<a name="l00163"></a>00163 std::cout &lt;&lt; <span class="stringliteral">&quot;&lt;refsect1&gt;&quot;</span> &lt;&lt; std::endl;
<a name="l00164"></a>00164 std::cout &lt;&lt; <span class="stringliteral">&quot;&lt;title&gt;Version&lt;/title&gt;&quot;</span> &lt;&lt; std::endl;
<a name="l00165"></a>00165 std::cout &lt;&lt; <span class="stringliteral">&quot;&lt;para&gt;&quot;</span> &lt;&lt; std::endl;
<a name="l00166"></a>00166 std::cout &lt;&lt; xversion &lt;&lt; std::endl;
<a name="l00167"></a>00167 std::cout &lt;&lt; <span class="stringliteral">&quot;&lt;/para&gt;&quot;</span> &lt;&lt; std::endl;
<a name="l00168"></a>00168 std::cout &lt;&lt; <span class="stringliteral">&quot;&lt;/refsect1&gt;&quot;</span> &lt;&lt; std::endl;
<a name="l00169"></a>00169
<a name="l00170"></a>00170 std::cout &lt;&lt; <span class="stringliteral">&quot;&lt;/refentry&gt;&quot;</span> &lt;&lt; std::endl;
<a name="l00171"></a>00171
<a name="l00172"></a>00172 }
<a name="l00173"></a>00173
<a name="l00174"></a><a class="code" href="classTCLAP_1_1DocBookOutput.html#a5e97f659fa1ab3b060a31e8bd7a0a40e">00174</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1DocBookOutput.html#a5e97f659fa1ab3b060a31e8bd7a0a40e" title="Prints (to stderr) an error message, short usage Can be overridden to produce alternative...">DocBookOutput::failure</a>( <a class="code" href="classTCLAP_1_1CmdLineInterface.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLineInterface</a>&amp; _cmd,
<a name="l00175"></a>00175 <a class="code" href="classTCLAP_1_1ArgException.html" title="A simple class that defines and argument exception.">ArgException</a>&amp; e )
<a name="l00176"></a>00176 {
<a name="l00177"></a>00177 <span class="keyword">static_cast&lt;</span><span class="keywordtype">void</span><span class="keyword">&gt;</span>(_cmd); <span class="comment">// unused</span>
<a name="l00178"></a>00178 std::cout &lt;&lt; e.<a class="code" href="classTCLAP_1_1ArgException.html#af51c89da2e4ae54fc9d05038ea484c83" title="Returns the arg id and error text.">what</a>() &lt;&lt; std::endl;
<a name="l00179"></a>00179 <span class="keywordflow">throw</span> <a class="code" href="classTCLAP_1_1ExitException.html">ExitException</a>(1);
<a name="l00180"></a>00180 }
<a name="l00181"></a>00181
<a name="l00182"></a><a class="code" href="classTCLAP_1_1DocBookOutput.html#a7546eaf3a0effeea1030afb27b4c698f">00182</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1DocBookOutput.html#a7546eaf3a0effeea1030afb27b4c698f" title="Substitutes the char r for string x in string s.">DocBookOutput::substituteSpecialChars</a>( std::string&amp; s,
<a name="l00183"></a>00183 <span class="keywordtype">char</span> r,
<a name="l00184"></a>00184 std::string&amp; x )
<a name="l00185"></a>00185 {
<a name="l00186"></a>00186 <span class="keywordtype">size_t</span> p;
<a name="l00187"></a>00187 <span class="keywordflow">while</span> ( (p = s.find_first_of(r)) != std::string::npos )
<a name="l00188"></a>00188 {
<a name="l00189"></a>00189 s.erase(p,1);
<a name="l00190"></a>00190 s.insert(p,x);
<a name="l00191"></a>00191 }
<a name="l00192"></a>00192 }
<a name="l00193"></a>00193
<a name="l00194"></a><a class="code" href="classTCLAP_1_1DocBookOutput.html#abc059536cb97c49da4e6c5b4a22c6cef">00194</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1DocBookOutput.html#abc059536cb97c49da4e6c5b4a22c6cef">DocBookOutput::removeChar</a>( std::string&amp; s, <span class="keywordtype">char</span> r)
<a name="l00195"></a>00195 {
<a name="l00196"></a>00196 <span class="keywordtype">size_t</span> p;
<a name="l00197"></a>00197 <span class="keywordflow">while</span> ( (p = s.find_first_of(r)) != std::string::npos )
<a name="l00198"></a>00198 {
<a name="l00199"></a>00199 s.erase(p,1);
<a name="l00200"></a>00200 }
<a name="l00201"></a>00201 }
<a name="l00202"></a>00202
<a name="l00203"></a><a class="code" href="classTCLAP_1_1DocBookOutput.html#a82d49ab25845c7d191863be9c482409e">00203</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1DocBookOutput.html#a82d49ab25845c7d191863be9c482409e">DocBookOutput::basename</a>( std::string&amp; s )
<a name="l00204"></a>00204 {
<a name="l00205"></a>00205 <span class="keywordtype">size_t</span> p = s.find_last_of(<span class="charliteral">&apos;/&apos;</span>);
<a name="l00206"></a>00206 <span class="keywordflow">if</span> ( p != std::string::npos )
<a name="l00207"></a>00207 {
<a name="l00208"></a>00208 s.erase(0, p + 1);
<a name="l00209"></a>00209 }
<a name="l00210"></a>00210 }
<a name="l00211"></a>00211
<a name="l00212"></a><a class="code" href="classTCLAP_1_1DocBookOutput.html#a980ecacfcda0186a76bb6c37a9c33726">00212</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1DocBookOutput.html#a980ecacfcda0186a76bb6c37a9c33726">DocBookOutput::printShortArg</a>(<a class="code" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a>* a)
<a name="l00213"></a>00213 {
<a name="l00214"></a>00214 std::string lt = <span class="stringliteral">&quot;&amp;lt;&quot;</span>;
<a name="l00215"></a>00215 std::string gt = <span class="stringliteral">&quot;&amp;gt;&quot;</span>;
<a name="l00216"></a>00216
<a name="l00217"></a>00217 std::string <span class="keywordtype">id</span> = a-&gt;<a class="code" href="classTCLAP_1_1Arg.html#aef8efaf3811162b2b2b2a84c6db280fa" title="Returns a short ID for the usage.">shortID</a>();
<a name="l00218"></a>00218 <a class="code" href="classTCLAP_1_1DocBookOutput.html#a7546eaf3a0effeea1030afb27b4c698f" title="Substitutes the char r for string x in string s.">substituteSpecialChars</a>(<span class="keywordtype">id</span>,<span class="charliteral">&apos;&lt;&apos;</span>,lt);
<a name="l00219"></a>00219 <a class="code" href="classTCLAP_1_1DocBookOutput.html#a7546eaf3a0effeea1030afb27b4c698f" title="Substitutes the char r for string x in string s.">substituteSpecialChars</a>(<span class="keywordtype">id</span>,<span class="charliteral">&apos;&gt;&apos;</span>,gt);
<a name="l00220"></a>00220 <a class="code" href="classTCLAP_1_1DocBookOutput.html#abc059536cb97c49da4e6c5b4a22c6cef">removeChar</a>(<span class="keywordtype">id</span>,<span class="charliteral">&apos;[&apos;</span>);
<a name="l00221"></a>00221 <a class="code" href="classTCLAP_1_1DocBookOutput.html#abc059536cb97c49da4e6c5b4a22c6cef">removeChar</a>(<span class="keywordtype">id</span>,<span class="charliteral">&apos;]&apos;</span>);
<a name="l00222"></a>00222
<a name="l00223"></a>00223 std::string choice = <span class="stringliteral">&quot;opt&quot;</span>;
<a name="l00224"></a>00224 <span class="keywordflow">if</span> ( a-&gt;<a class="code" href="classTCLAP_1_1Arg.html#a00a3cfdb2b6e9a111ad39cbd4978b96c" title="Indicates whether the argument is required.">isRequired</a>() )
<a name="l00225"></a>00225 choice = <span class="stringliteral">&quot;plain&quot;</span>;
<a name="l00226"></a>00226
<a name="l00227"></a>00227 std::cout &lt;&lt; <span class="stringliteral">&quot;&lt;arg choice=&apos;&quot;</span> &lt;&lt; choice &lt;&lt; <span class="charliteral">&apos;\&apos;&apos;</span>;
<a name="l00228"></a>00228 <span class="keywordflow">if</span> ( a-&gt;<a class="code" href="classTCLAP_1_1Arg.html#ad356870538a255d639e26b30330202ae" title="Use by output classes to determine whether an Arg accepts multiple values.">acceptsMultipleValues</a>() )
<a name="l00229"></a>00229 std::cout &lt;&lt; <span class="stringliteral">&quot; rep=&apos;repeat&apos;&quot;</span>;
<a name="l00230"></a>00230
<a name="l00231"></a>00231
<a name="l00232"></a>00232 std::cout &lt;&lt; &apos;&gt;<span class="stringliteral">&apos;;</span>
<a name="l00233"></a>00233 <span class="stringliteral"> if ( !a-&gt;getFlag().empty() )</span>
<a name="l00234"></a>00234 <span class="stringliteral"> std::cout &lt;&lt; a-&gt;flagStartChar() &lt;&lt; a-&gt;getFlag();</span>
<a name="l00235"></a>00235 <span class="stringliteral"> else</span>
<a name="l00236"></a>00236 <span class="stringliteral"> std::cout &lt;&lt; a-&gt;nameStartString() &lt;&lt; a-&gt;getName();</span>
<a name="l00237"></a>00237 <span class="stringliteral"> if ( a-&gt;isValueRequired() )</span>
<a name="l00238"></a>00238 <span class="stringliteral"> {</span>
<a name="l00239"></a>00239 <span class="stringliteral"> std::string arg = a-&gt;shortID();</span>
<a name="l00240"></a>00240 <span class="stringliteral"> removeChar(arg,&apos;</span>[<span class="stringliteral">&apos;);</span>
<a name="l00241"></a>00241 <span class="stringliteral"> removeChar(arg,&apos;</span>]<span class="stringliteral">&apos;);</span>
<a name="l00242"></a>00242 <span class="stringliteral"> removeChar(arg,&apos;</span>&lt;<span class="stringliteral">&apos;);</span>
<a name="l00243"></a>00243 <span class="stringliteral"> removeChar(arg,&apos;</span>&gt;<span class="stringliteral">&apos;);</span>
<a name="l00244"></a>00244 <span class="stringliteral"> arg.erase(0, arg.find_last_of(theDelimiter) + 1);</span>
<a name="l00245"></a>00245 <span class="stringliteral"> std::cout &lt;&lt; theDelimiter;</span>
<a name="l00246"></a>00246 <span class="stringliteral"> std::cout &lt;&lt; &quot;&lt;replaceable&gt;&quot; &lt;&lt; arg &lt;&lt; &quot;&lt;/replaceable&gt;&quot;;</span>
<a name="l00247"></a>00247 <span class="stringliteral"> }</span>
<a name="l00248"></a>00248 <span class="stringliteral"> std::cout &lt;&lt; &quot;&lt;/arg&gt;&quot; &lt;&lt; std::endl;</span>
<a name="l00249"></a>00249 <span class="stringliteral"></span>
<a name="l00250"></a>00250 <span class="stringliteral">}</span>
<a name="l00251"></a>00251 <span class="stringliteral"></span>
<a name="l00252"></a><a class="code" href="classTCLAP_1_1DocBookOutput.html#a891cf5ef71592b5261691575c2adad1d">00252</a> <span class="stringliteral">inline void DocBookOutput::printLongArg(Arg* a)</span>
<a name="l00253"></a>00253 <span class="stringliteral">{</span>
<a name="l00254"></a>00254 <span class="stringliteral"> std::string lt = &quot;&amp;lt;&quot;; </span>
<a name="l00255"></a>00255 <span class="stringliteral"> std::string gt = &quot;&amp;gt;&quot;; </span>
<a name="l00256"></a>00256 <span class="stringliteral"></span>
<a name="l00257"></a>00257 <span class="stringliteral"> std::string desc = a-&gt;getDescription();</span>
<a name="l00258"></a>00258 <span class="stringliteral"> substituteSpecialChars(desc,&apos;</span>&lt;<span class="stringliteral">&apos;,lt);</span>
<a name="l00259"></a>00259 <span class="stringliteral"> substituteSpecialChars(desc,&apos;</span>&gt;<span class="stringliteral">&apos;,gt);</span>
<a name="l00260"></a>00260 <span class="stringliteral"></span>
<a name="l00261"></a>00261 <span class="stringliteral"> std::cout &lt;&lt; &quot;&lt;varlistentry&gt;&quot; &lt;&lt; std::endl;</span>
<a name="l00262"></a>00262 <span class="stringliteral"></span>
<a name="l00263"></a>00263 <span class="stringliteral"> if ( !a-&gt;getFlag().empty() )</span>
<a name="l00264"></a>00264 <span class="stringliteral"> {</span>
<a name="l00265"></a>00265 <span class="stringliteral"> std::cout &lt;&lt; &quot;&lt;term&gt;&quot; &lt;&lt; std::endl;</span>
<a name="l00266"></a>00266 <span class="stringliteral"> std::cout &lt;&lt; &quot;&lt;option&gt;&quot;;</span>
<a name="l00267"></a>00267 <span class="stringliteral"> std::cout &lt;&lt; a-&gt;flagStartChar() &lt;&lt; a-&gt;getFlag();</span>
<a name="l00268"></a>00268 <span class="stringliteral"> std::cout &lt;&lt; &quot;&lt;/option&gt;&quot; &lt;&lt; std::endl;</span>
<a name="l00269"></a>00269 <span class="stringliteral"> std::cout &lt;&lt; &quot;&lt;/term&gt;&quot; &lt;&lt; std::endl;</span>
<a name="l00270"></a>00270 <span class="stringliteral"> }</span>
<a name="l00271"></a>00271 <span class="stringliteral"></span>
<a name="l00272"></a>00272 <span class="stringliteral"> std::cout &lt;&lt; &quot;&lt;term&gt;&quot; &lt;&lt; std::endl;</span>
<a name="l00273"></a>00273 <span class="stringliteral"> std::cout &lt;&lt; &quot;&lt;option&gt;&quot;;</span>
<a name="l00274"></a>00274 <span class="stringliteral"> std::cout &lt;&lt; a-&gt;nameStartString() &lt;&lt; a-&gt;getName();</span>
<a name="l00275"></a>00275 <span class="stringliteral"> if ( a-&gt;isValueRequired() )</span>
<a name="l00276"></a>00276 <span class="stringliteral"> {</span>
<a name="l00277"></a>00277 <span class="stringliteral"> std::string arg = a-&gt;shortID();</span>
<a name="l00278"></a>00278 <span class="stringliteral"> removeChar(arg,&apos;</span>[<span class="stringliteral">&apos;);</span>
<a name="l00279"></a>00279 <span class="stringliteral"> removeChar(arg,&apos;</span>]<span class="stringliteral">&apos;);</span>
<a name="l00280"></a>00280 <span class="stringliteral"> removeChar(arg,&apos;</span>&lt;<span class="stringliteral">&apos;);</span>
<a name="l00281"></a>00281 <span class="stringliteral"> removeChar(arg,&apos;</span>&gt;<span class="stringliteral">&apos;);</span>
<a name="l00282"></a>00282 <span class="stringliteral"> arg.erase(0, arg.find_last_of(theDelimiter) + 1);</span>
<a name="l00283"></a>00283 <span class="stringliteral"> std::cout &lt;&lt; theDelimiter;</span>
<a name="l00284"></a>00284 <span class="stringliteral"> std::cout &lt;&lt; &quot;&lt;replaceable&gt;&quot; &lt;&lt; arg &lt;&lt; &quot;&lt;/replaceable&gt;&quot;;</span>
<a name="l00285"></a>00285 <span class="stringliteral"> }</span>
<a name="l00286"></a>00286 <span class="stringliteral"> std::cout &lt;&lt; &quot;&lt;/option&gt;&quot; &lt;&lt; std::endl;</span>
<a name="l00287"></a>00287 <span class="stringliteral"> std::cout &lt;&lt; &quot;&lt;/term&gt;&quot; &lt;&lt; std::endl;</span>
<a name="l00288"></a>00288 <span class="stringliteral"></span>
<a name="l00289"></a>00289 <span class="stringliteral"> std::cout &lt;&lt; &quot;&lt;listitem&gt;&quot; &lt;&lt; std::endl;</span>
<a name="l00290"></a>00290 <span class="stringliteral"> std::cout &lt;&lt; &quot;&lt;para&gt;&quot; &lt;&lt; std::endl;</span>
<a name="l00291"></a>00291 <span class="stringliteral"> std::cout &lt;&lt; desc &lt;&lt; std::endl;</span>
<a name="l00292"></a>00292 <span class="stringliteral"> std::cout &lt;&lt; &quot;&lt;/para&gt;&quot; &lt;&lt; std::endl;</span>
<a name="l00293"></a>00293 <span class="stringliteral"> std::cout &lt;&lt; &quot;&lt;/listitem&gt;&quot; &lt;&lt; std::endl;</span>
<a name="l00294"></a>00294 <span class="stringliteral"></span>
<a name="l00295"></a>00295 <span class="stringliteral"> std::cout &lt;&lt; &quot;&lt;/varlistentry&gt;&quot; &lt;&lt; std::endl;</span>
<a name="l00296"></a>00296 <span class="stringliteral">}</span>
<a name="l00297"></a>00297 <span class="stringliteral"></span>
<a name="l00298"></a>00298 <span class="stringliteral">} //namespace TCLAP</span>
<a name="l00299"></a>00299 <span class="stringliteral">#endif </span>
</pre></div></div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Sat Apr 16 15:34:24 2011 for tclap by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.0 </small></address>
</body>
</html>

View File

@ -0,0 +1,45 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>tclap: HelpVisitor.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.0 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
<li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="contents">
<h1>HelpVisitor.h File Reference</h1><code>#include &lt;<a class="el" href="CmdLineInterface_8h_source.html">tclap/CmdLineInterface.h</a>&gt;</code><br/>
<code>#include &lt;<a class="el" href="CmdLineOutput_8h_source.html">tclap/CmdLineOutput.h</a>&gt;</code><br/>
<code>#include &lt;<a class="el" href="Visitor_8h_source.html">tclap/Visitor.h</a>&gt;</code><br/>
<p><a href="HelpVisitor_8h_source.html">Go to the source code of this file.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Classes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTCLAP_1_1HelpVisitor.html">TCLAP::HelpVisitor</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">A <a class="el" href="classTCLAP_1_1Visitor.html" title="A base class that defines the interface for visitors.">Visitor</a> object that calls the usage method of the given <a class="el" href="classTCLAP_1_1CmdLineOutput.html" title="The interface that any output object must implement.">CmdLineOutput</a> object for the specified <a class="el" href="classTCLAP_1_1CmdLine.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLine</a> object. <a href="classTCLAP_1_1HelpVisitor.html#_details">More...</a><br/></td></tr>
<tr><td colspan="2"><h2>Namespaces</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">namespace &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceTCLAP.html">TCLAP</a></td></tr>
</table>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Sat Apr 16 15:34:24 2011 for tclap by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.0 </small></address>
</body>
</html>

View File

@ -0,0 +1,85 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>tclap: HelpVisitor.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.0 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
<li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
</ul>
</div>
<h1>HelpVisitor.h</h1><a href="HelpVisitor_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
<a name="l00002"></a>00002 <span class="comment">/****************************************************************************** </span>
<a name="l00003"></a>00003 <span class="comment"> * </span>
<a name="l00004"></a>00004 <span class="comment"> * file: HelpVisitor.h</span>
<a name="l00005"></a>00005 <span class="comment"> * </span>
<a name="l00006"></a>00006 <span class="comment"> * Copyright (c) 2003, Michael E. Smoot .</span>
<a name="l00007"></a>00007 <span class="comment"> * All rights reverved.</span>
<a name="l00008"></a>00008 <span class="comment"> * </span>
<a name="l00009"></a>00009 <span class="comment"> * See the file COPYING in the top directory of this distribution for</span>
<a name="l00010"></a>00010 <span class="comment"> * more information.</span>
<a name="l00011"></a>00011 <span class="comment"> * </span>
<a name="l00012"></a>00012 <span class="comment"> * THE SOFTWARE IS PROVIDED _AS IS_, WITHOUT WARRANTY OF ANY KIND, EXPRESS </span>
<a name="l00013"></a>00013 <span class="comment"> * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, </span>
<a name="l00014"></a>00014 <span class="comment"> * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL </span>
<a name="l00015"></a>00015 <span class="comment"> * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER </span>
<a name="l00016"></a>00016 <span class="comment"> * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING </span>
<a name="l00017"></a>00017 <span class="comment"> * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER </span>
<a name="l00018"></a>00018 <span class="comment"> * DEALINGS IN THE SOFTWARE. </span>
<a name="l00019"></a>00019 <span class="comment"> * </span>
<a name="l00020"></a>00020 <span class="comment"> *****************************************************************************/</span>
<a name="l00021"></a>00021
<a name="l00022"></a>00022 <span class="preprocessor">#ifndef TCLAP_HELP_VISITOR_H</span>
<a name="l00023"></a>00023 <span class="preprocessor"></span><span class="preprocessor">#define TCLAP_HELP_VISITOR_H</span>
<a name="l00024"></a>00024 <span class="preprocessor"></span>
<a name="l00025"></a>00025 <span class="preprocessor">#include &lt;<a class="code" href="CmdLineInterface_8h.html">tclap/CmdLineInterface.h</a>&gt;</span>
<a name="l00026"></a>00026 <span class="preprocessor">#include &lt;<a class="code" href="CmdLineOutput_8h.html">tclap/CmdLineOutput.h</a>&gt;</span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;<a class="code" href="Visitor_8h.html">tclap/Visitor.h</a>&gt;</span>
<a name="l00028"></a>00028
<a name="l00029"></a>00029 <span class="keyword">namespace </span>TCLAP {
<a name="l00030"></a>00030
<a name="l00035"></a><a class="code" href="classTCLAP_1_1HelpVisitor.html">00035</a> <span class="keyword">class </span><a class="code" href="classTCLAP_1_1HelpVisitor.html" title="A Visitor object that calls the usage method of the given CmdLineOutput object for...">HelpVisitor</a>: <span class="keyword">public</span> <a class="code" href="classTCLAP_1_1Visitor.html" title="A base class that defines the interface for visitors.">Visitor</a>
<a name="l00036"></a>00036 {
<a name="l00037"></a>00037 <span class="keyword">private</span>:
<a name="l00041"></a>00041 <a class="code" href="classTCLAP_1_1HelpVisitor.html" title="A Visitor object that calls the usage method of the given CmdLineOutput object for...">HelpVisitor</a>(<span class="keyword">const</span> <a class="code" href="classTCLAP_1_1HelpVisitor.html" title="A Visitor object that calls the usage method of the given CmdLineOutput object for...">HelpVisitor</a>&amp; rhs);
<a name="l00042"></a>00042 <a class="code" href="classTCLAP_1_1HelpVisitor.html" title="A Visitor object that calls the usage method of the given CmdLineOutput object for...">HelpVisitor</a>&amp; operator=(<span class="keyword">const</span> <a class="code" href="classTCLAP_1_1HelpVisitor.html" title="A Visitor object that calls the usage method of the given CmdLineOutput object for...">HelpVisitor</a>&amp; rhs);
<a name="l00043"></a>00043
<a name="l00044"></a>00044 <span class="keyword">protected</span>:
<a name="l00045"></a>00045
<a name="l00049"></a><a class="code" href="classTCLAP_1_1HelpVisitor.html#afc7e0402f4e09ab6eff91680ea87ea57">00049</a> <a class="code" href="classTCLAP_1_1CmdLineInterface.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLineInterface</a>* <a class="code" href="classTCLAP_1_1HelpVisitor.html#afc7e0402f4e09ab6eff91680ea87ea57" title="The CmdLine the output will be generated for.">_cmd</a>;
<a name="l00050"></a>00050
<a name="l00054"></a><a class="code" href="classTCLAP_1_1HelpVisitor.html#ae12c2d2208b64377a6360fb335454877">00054</a> <a class="code" href="classTCLAP_1_1CmdLineOutput.html" title="The interface that any output object must implement.">CmdLineOutput</a>** <a class="code" href="classTCLAP_1_1HelpVisitor.html#ae12c2d2208b64377a6360fb335454877" title="The output object.">_out</a>;
<a name="l00055"></a>00055
<a name="l00056"></a>00056 <span class="keyword">public</span>:
<a name="l00057"></a>00057
<a name="l00063"></a><a class="code" href="classTCLAP_1_1HelpVisitor.html#a425e96efa6950b1949f1f81d4ff133f1">00063</a> <a class="code" href="classTCLAP_1_1HelpVisitor.html" title="A Visitor object that calls the usage method of the given CmdLineOutput object for...">HelpVisitor</a>(<a class="code" href="classTCLAP_1_1CmdLineInterface.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLineInterface</a>* cmd, <a class="code" href="classTCLAP_1_1CmdLineOutput.html" title="The interface that any output object must implement.">CmdLineOutput</a>** out)
<a name="l00064"></a>00064 : <a class="code" href="classTCLAP_1_1Visitor.html" title="A base class that defines the interface for visitors.">Visitor</a>(), <a class="code" href="classTCLAP_1_1HelpVisitor.html#afc7e0402f4e09ab6eff91680ea87ea57" title="The CmdLine the output will be generated for.">_cmd</a>( cmd ), <a class="code" href="classTCLAP_1_1HelpVisitor.html#ae12c2d2208b64377a6360fb335454877" title="The output object.">_out</a>( out ) { }
<a name="l00065"></a>00065
<a name="l00070"></a><a class="code" href="classTCLAP_1_1HelpVisitor.html#a157294efe254edb2b713b7c458aad3f2">00070</a> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1HelpVisitor.html#a157294efe254edb2b713b7c458aad3f2" title="Calls the usage method of the CmdLineOutput for the specified CmdLine.">visit</a>() { (*_out)-&gt;usage(*<a class="code" href="classTCLAP_1_1HelpVisitor.html#afc7e0402f4e09ab6eff91680ea87ea57" title="The CmdLine the output will be generated for.">_cmd</a>); <span class="keywordflow">throw</span> <a class="code" href="classTCLAP_1_1ExitException.html">ExitException</a>(0); }
<a name="l00071"></a>00071
<a name="l00072"></a>00072 };
<a name="l00073"></a>00073
<a name="l00074"></a>00074 }
<a name="l00075"></a>00075
<a name="l00076"></a>00076 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Sat Apr 16 15:34:24 2011 for tclap by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.0 </small></address>
</body>
</html>

View File

@ -0,0 +1,44 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>tclap: IgnoreRestVisitor.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.0 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
<li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="contents">
<h1>IgnoreRestVisitor.h File Reference</h1><code>#include &lt;<a class="el" href="Visitor_8h_source.html">tclap/Visitor.h</a>&gt;</code><br/>
<code>#include &lt;<a class="el" href="Arg_8h_source.html">tclap/Arg.h</a>&gt;</code><br/>
<p><a href="IgnoreRestVisitor_8h_source.html">Go to the source code of this file.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Classes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTCLAP_1_1IgnoreRestVisitor.html">TCLAP::IgnoreRestVisitor</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">A Vistor that tells the <a class="el" href="classTCLAP_1_1CmdLine.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLine</a> to begin ignoring arguments after this one is parsed. <a href="classTCLAP_1_1IgnoreRestVisitor.html#_details">More...</a><br/></td></tr>
<tr><td colspan="2"><h2>Namespaces</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">namespace &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceTCLAP.html">TCLAP</a></td></tr>
</table>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Sat Apr 16 15:34:24 2011 for tclap by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.0 </small></address>
</body>
</html>

View File

@ -0,0 +1,73 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>tclap: IgnoreRestVisitor.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.0 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
<li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
</ul>
</div>
<h1>IgnoreRestVisitor.h</h1><a href="IgnoreRestVisitor_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
<a name="l00002"></a>00002 <span class="comment">/****************************************************************************** </span>
<a name="l00003"></a>00003 <span class="comment"> * </span>
<a name="l00004"></a>00004 <span class="comment"> * file: IgnoreRestVisitor.h</span>
<a name="l00005"></a>00005 <span class="comment"> * </span>
<a name="l00006"></a>00006 <span class="comment"> * Copyright (c) 2003, Michael E. Smoot .</span>
<a name="l00007"></a>00007 <span class="comment"> * All rights reverved.</span>
<a name="l00008"></a>00008 <span class="comment"> * </span>
<a name="l00009"></a>00009 <span class="comment"> * See the file COPYING in the top directory of this distribution for</span>
<a name="l00010"></a>00010 <span class="comment"> * more information.</span>
<a name="l00011"></a>00011 <span class="comment"> * </span>
<a name="l00012"></a>00012 <span class="comment"> * THE SOFTWARE IS PROVIDED _AS IS_, WITHOUT WARRANTY OF ANY KIND, EXPRESS </span>
<a name="l00013"></a>00013 <span class="comment"> * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, </span>
<a name="l00014"></a>00014 <span class="comment"> * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL </span>
<a name="l00015"></a>00015 <span class="comment"> * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER </span>
<a name="l00016"></a>00016 <span class="comment"> * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING </span>
<a name="l00017"></a>00017 <span class="comment"> * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER </span>
<a name="l00018"></a>00018 <span class="comment"> * DEALINGS IN THE SOFTWARE. </span>
<a name="l00019"></a>00019 <span class="comment"> * </span>
<a name="l00020"></a>00020 <span class="comment"> *****************************************************************************/</span>
<a name="l00021"></a>00021
<a name="l00022"></a>00022
<a name="l00023"></a>00023 <span class="preprocessor">#ifndef TCLAP_IGNORE_REST_VISITOR_H</span>
<a name="l00024"></a>00024 <span class="preprocessor"></span><span class="preprocessor">#define TCLAP_IGNORE_REST_VISITOR_H</span>
<a name="l00025"></a>00025 <span class="preprocessor"></span>
<a name="l00026"></a>00026 <span class="preprocessor">#include &lt;<a class="code" href="Visitor_8h.html">tclap/Visitor.h</a>&gt;</span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;<a class="code" href="Arg_8h.html">tclap/Arg.h</a>&gt;</span>
<a name="l00028"></a>00028
<a name="l00029"></a>00029 <span class="keyword">namespace </span>TCLAP {
<a name="l00030"></a>00030
<a name="l00035"></a><a class="code" href="classTCLAP_1_1IgnoreRestVisitor.html">00035</a> <span class="keyword">class </span><a class="code" href="classTCLAP_1_1IgnoreRestVisitor.html" title="A Vistor that tells the CmdLine to begin ignoring arguments after this one is parsed...">IgnoreRestVisitor</a>: <span class="keyword">public</span> <a class="code" href="classTCLAP_1_1Visitor.html" title="A base class that defines the interface for visitors.">Visitor</a>
<a name="l00036"></a>00036 {
<a name="l00037"></a>00037 <span class="keyword">public</span>:
<a name="l00038"></a>00038
<a name="l00042"></a><a class="code" href="classTCLAP_1_1IgnoreRestVisitor.html#a4cd949b7aeff99fba4a8494e02a1cb01">00042</a> <a class="code" href="classTCLAP_1_1IgnoreRestVisitor.html#a4cd949b7aeff99fba4a8494e02a1cb01" title="Constructor.">IgnoreRestVisitor</a>() : <a class="code" href="classTCLAP_1_1Visitor.html" title="A base class that defines the interface for visitors.">Visitor</a>() {}
<a name="l00043"></a>00043
<a name="l00047"></a><a class="code" href="classTCLAP_1_1IgnoreRestVisitor.html#ac2a054ed72b16608a32021c65a600722">00047</a> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1IgnoreRestVisitor.html#ac2a054ed72b16608a32021c65a600722" title="Sets Arg::_ignoreRest.">visit</a>() { <a class="code" href="classTCLAP_1_1Arg.html#a24165d31c1ec70777fb201356b6cdf6a" title="Begin ignoring arguments since the &amp;quot;--&amp;quot; argument was specified.">Arg::beginIgnoring</a>(); }
<a name="l00048"></a>00048 };
<a name="l00049"></a>00049
<a name="l00050"></a>00050 }
<a name="l00051"></a>00051
<a name="l00052"></a>00052 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Sat Apr 16 15:34:24 2011 for tclap by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.0 </small></address>
</body>
</html>

View File

@ -0,0 +1,46 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>tclap: MultiArg.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.0 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
<li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="contents">
<h1>MultiArg.h File Reference</h1><code>#include &lt;string&gt;</code><br/>
<code>#include &lt;vector&gt;</code><br/>
<code>#include &lt;<a class="el" href="Arg_8h_source.html">tclap/Arg.h</a>&gt;</code><br/>
<code>#include &lt;<a class="el" href="Constraint_8h_source.html">tclap/Constraint.h</a>&gt;</code><br/>
<p><a href="MultiArg_8h_source.html">Go to the source code of this file.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Classes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTCLAP_1_1MultiArg.html">TCLAP::MultiArg&lt; T &gt;</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">An argument that allows multiple values of type T to be specified. <a href="classTCLAP_1_1MultiArg.html#_details">More...</a><br/></td></tr>
<tr><td colspan="2"><h2>Namespaces</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">namespace &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceTCLAP.html">TCLAP</a></td></tr>
</table>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Sat Apr 16 15:34:24 2011 for tclap by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.0 </small></address>
</body>
</html>

View File

@ -0,0 +1,327 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>tclap: MultiArg.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.0 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
<li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
</ul>
</div>
<h1>MultiArg.h</h1><a href="MultiArg_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/****************************************************************************** </span>
<a name="l00002"></a>00002 <span class="comment"> * </span>
<a name="l00003"></a>00003 <span class="comment"> * file: MultiArg.h</span>
<a name="l00004"></a>00004 <span class="comment"> * </span>
<a name="l00005"></a>00005 <span class="comment"> * Copyright (c) 2003, Michael E. Smoot .</span>
<a name="l00006"></a>00006 <span class="comment"> * Copyright (c) 2004, Michael E. Smoot, Daniel Aarno.</span>
<a name="l00007"></a>00007 <span class="comment"> * All rights reverved.</span>
<a name="l00008"></a>00008 <span class="comment"> * </span>
<a name="l00009"></a>00009 <span class="comment"> * See the file COPYING in the top directory of this distribution for</span>
<a name="l00010"></a>00010 <span class="comment"> * more information.</span>
<a name="l00011"></a>00011 <span class="comment"> * </span>
<a name="l00012"></a>00012 <span class="comment"> * THE SOFTWARE IS PROVIDED _AS IS_, WITHOUT WARRANTY OF ANY KIND, EXPRESS </span>
<a name="l00013"></a>00013 <span class="comment"> * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, </span>
<a name="l00014"></a>00014 <span class="comment"> * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL </span>
<a name="l00015"></a>00015 <span class="comment"> * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER </span>
<a name="l00016"></a>00016 <span class="comment"> * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING </span>
<a name="l00017"></a>00017 <span class="comment"> * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER </span>
<a name="l00018"></a>00018 <span class="comment"> * DEALINGS IN THE SOFTWARE. </span>
<a name="l00019"></a>00019 <span class="comment"> * </span>
<a name="l00020"></a>00020 <span class="comment"> *****************************************************************************/</span>
<a name="l00021"></a>00021
<a name="l00022"></a>00022
<a name="l00023"></a>00023 <span class="preprocessor">#ifndef TCLAP_MULTIPLE_ARGUMENT_H</span>
<a name="l00024"></a>00024 <span class="preprocessor"></span><span class="preprocessor">#define TCLAP_MULTIPLE_ARGUMENT_H</span>
<a name="l00025"></a>00025 <span class="preprocessor"></span>
<a name="l00026"></a>00026 <span class="preprocessor">#include &lt;string&gt;</span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;vector&gt;</span>
<a name="l00028"></a>00028
<a name="l00029"></a>00029 <span class="preprocessor">#include &lt;<a class="code" href="Arg_8h.html">tclap/Arg.h</a>&gt;</span>
<a name="l00030"></a>00030 <span class="preprocessor">#include &lt;<a class="code" href="Constraint_8h.html">tclap/Constraint.h</a>&gt;</span>
<a name="l00031"></a>00031
<a name="l00032"></a>00032 <span class="keyword">namespace </span>TCLAP {
<a name="l00038"></a>00038 <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;
<a name="l00039"></a><a class="code" href="classTCLAP_1_1MultiArg.html">00039</a> <span class="keyword">class </span><a class="code" href="classTCLAP_1_1MultiArg.html" title="An argument that allows multiple values of type T to be specified.">MultiArg</a> : <span class="keyword">public</span> <a class="code" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a>
<a name="l00040"></a>00040 {
<a name="l00041"></a>00041 <span class="keyword">public</span>:
<a name="l00042"></a><a class="code" href="classTCLAP_1_1MultiArg.html#adae435f03fdde769bca57327487aab78">00042</a> <span class="keyword">typedef</span> std::vector&lt;T&gt; <a class="code" href="classTCLAP_1_1MultiArg.html#adae435f03fdde769bca57327487aab78">container_type</a>;
<a name="l00043"></a><a class="code" href="classTCLAP_1_1MultiArg.html#a34196784baca2bd5aa079d639d49a7ca">00043</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> container_type::iterator <a class="code" href="classTCLAP_1_1MultiArg.html#a34196784baca2bd5aa079d639d49a7ca">iterator</a>;
<a name="l00044"></a><a class="code" href="classTCLAP_1_1MultiArg.html#a3f8e9e8f5dcc7d3e6a518f42134cf64f">00044</a> <span class="keyword">typedef</span> <span class="keyword">typename</span> container_type::const_iterator <a class="code" href="classTCLAP_1_1MultiArg.html#a3f8e9e8f5dcc7d3e6a518f42134cf64f">const_iterator</a>;
<a name="l00045"></a>00045
<a name="l00046"></a>00046 <span class="keyword">protected</span>:
<a name="l00047"></a>00047
<a name="l00051"></a><a class="code" href="classTCLAP_1_1MultiArg.html#aabcab153e09608343713a6ffef431783">00051</a> std::vector&lt;T&gt; <a class="code" href="classTCLAP_1_1MultiArg.html#aabcab153e09608343713a6ffef431783" title="The list of values parsed from the CmdLine.">_values</a>;
<a name="l00052"></a>00052
<a name="l00056"></a><a class="code" href="classTCLAP_1_1MultiArg.html#a0f6a2b04fe15d1ede95165fc6e1949e8">00056</a> std::string <a class="code" href="classTCLAP_1_1MultiArg.html#a0f6a2b04fe15d1ede95165fc6e1949e8" title="The description of type T to be used in the usage.">_typeDesc</a>;
<a name="l00057"></a>00057
<a name="l00061"></a><a class="code" href="classTCLAP_1_1MultiArg.html#afc754048b66bc3a251268947273ea906">00061</a> <a class="code" href="classTCLAP_1_1Constraint.html" title="The interface that defines the interaction between the Arg and Constraint.">Constraint&lt;T&gt;</a>* <a class="code" href="classTCLAP_1_1MultiArg.html#afc754048b66bc3a251268947273ea906" title="A list of constraint on this Arg.">_constraint</a>;
<a name="l00062"></a>00062
<a name="l00069"></a>00069 <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1MultiArg.html#a26cbf5e86ac66d876f9285f1fda22470" title="Extracts the value from the string.">_extractValue</a>( <span class="keyword">const</span> std::string&amp; val );
<a name="l00070"></a>00070
<a name="l00074"></a><a class="code" href="classTCLAP_1_1MultiArg.html#a93a3ef586f763d46839c0e737689b85f">00074</a> <span class="keywordtype">bool</span> <a class="code" href="classTCLAP_1_1MultiArg.html#a93a3ef586f763d46839c0e737689b85f" title="Used by XorHandler to decide whether to keep parsing for this arg.">_allowMore</a>;
<a name="l00075"></a>00075
<a name="l00076"></a>00076 <span class="keyword">public</span>:
<a name="l00077"></a>00077
<a name="l00095"></a>00095 <a class="code" href="classTCLAP_1_1MultiArg.html#a49b5437c7f06cd6864c07dc59814a953" title="Constructor.">MultiArg</a>( <span class="keyword">const</span> std::string&amp; flag,
<a name="l00096"></a>00096 <span class="keyword">const</span> std::string&amp; name,
<a name="l00097"></a>00097 <span class="keyword">const</span> std::string&amp; desc,
<a name="l00098"></a>00098 <span class="keywordtype">bool</span> req,
<a name="l00099"></a>00099 <span class="keyword">const</span> std::string&amp; typeDesc,
<a name="l00100"></a>00100 <a class="code" href="classTCLAP_1_1Visitor.html" title="A base class that defines the interface for visitors.">Visitor</a>* v = NULL);
<a name="l00101"></a>00101
<a name="l00120"></a>00120 <a class="code" href="classTCLAP_1_1MultiArg.html#a49b5437c7f06cd6864c07dc59814a953" title="Constructor.">MultiArg</a>( <span class="keyword">const</span> std::string&amp; flag,
<a name="l00121"></a>00121 <span class="keyword">const</span> std::string&amp; name,
<a name="l00122"></a>00122 <span class="keyword">const</span> std::string&amp; desc,
<a name="l00123"></a>00123 <span class="keywordtype">bool</span> req,
<a name="l00124"></a>00124 <span class="keyword">const</span> std::string&amp; typeDesc,
<a name="l00125"></a>00125 <a class="code" href="classTCLAP_1_1CmdLineInterface.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLineInterface</a>&amp; parser,
<a name="l00126"></a>00126 <a class="code" href="classTCLAP_1_1Visitor.html" title="A base class that defines the interface for visitors.">Visitor</a>* v = NULL );
<a name="l00127"></a>00127
<a name="l00143"></a>00143 <a class="code" href="classTCLAP_1_1MultiArg.html#a49b5437c7f06cd6864c07dc59814a953" title="Constructor.">MultiArg</a>( <span class="keyword">const</span> std::string&amp; flag,
<a name="l00144"></a>00144 <span class="keyword">const</span> std::string&amp; name,
<a name="l00145"></a>00145 <span class="keyword">const</span> std::string&amp; desc,
<a name="l00146"></a>00146 <span class="keywordtype">bool</span> req,
<a name="l00147"></a>00147 <a class="code" href="classTCLAP_1_1Constraint.html" title="The interface that defines the interaction between the Arg and Constraint.">Constraint&lt;T&gt;</a>* constraint,
<a name="l00148"></a>00148 <a class="code" href="classTCLAP_1_1Visitor.html" title="A base class that defines the interface for visitors.">Visitor</a>* v = NULL );
<a name="l00149"></a>00149
<a name="l00166"></a>00166 <a class="code" href="classTCLAP_1_1MultiArg.html#a49b5437c7f06cd6864c07dc59814a953" title="Constructor.">MultiArg</a>( <span class="keyword">const</span> std::string&amp; flag,
<a name="l00167"></a>00167 <span class="keyword">const</span> std::string&amp; name,
<a name="l00168"></a>00168 <span class="keyword">const</span> std::string&amp; desc,
<a name="l00169"></a>00169 <span class="keywordtype">bool</span> req,
<a name="l00170"></a>00170 <a class="code" href="classTCLAP_1_1Constraint.html" title="The interface that defines the interaction between the Arg and Constraint.">Constraint&lt;T&gt;</a>* constraint,
<a name="l00171"></a>00171 <a class="code" href="classTCLAP_1_1CmdLineInterface.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLineInterface</a>&amp; parser,
<a name="l00172"></a>00172 <a class="code" href="classTCLAP_1_1Visitor.html" title="A base class that defines the interface for visitors.">Visitor</a>* v = NULL );
<a name="l00173"></a>00173
<a name="l00182"></a>00182 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classTCLAP_1_1MultiArg.html#a344d3cf2128c510f92825e421ea667c7" title="Handles the processing of the argument.">processArg</a>(<span class="keywordtype">int</span>* i, std::vector&lt;std::string&gt;&amp; args);
<a name="l00183"></a>00183
<a name="l00188"></a>00188 <span class="keyword">const</span> std::vector&lt;T&gt;&amp; <a class="code" href="classTCLAP_1_1MultiArg.html#aff4ff7f8d854dd668aaaf80511d8002b" title="Returns a vector of type T containing the values parsed from the command line.">getValue</a>();
<a name="l00189"></a>00189
<a name="l00194"></a><a class="code" href="classTCLAP_1_1MultiArg.html#a48058500cdc9ef8b9c2c9e6394ab499d">00194</a> <a class="code" href="classTCLAP_1_1MultiArg.html#a3f8e9e8f5dcc7d3e6a518f42134cf64f">const_iterator</a> <a class="code" href="classTCLAP_1_1MultiArg.html#a48058500cdc9ef8b9c2c9e6394ab499d" title="Returns an iterator over the values parsed from the command line.">begin</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classTCLAP_1_1MultiArg.html#aabcab153e09608343713a6ffef431783" title="The list of values parsed from the CmdLine.">_values</a>.begin(); }
<a name="l00195"></a>00195
<a name="l00200"></a><a class="code" href="classTCLAP_1_1MultiArg.html#ac30e414b799158ff6710fb1e7ce83aee">00200</a> <a class="code" href="classTCLAP_1_1MultiArg.html#a3f8e9e8f5dcc7d3e6a518f42134cf64f">const_iterator</a> <a class="code" href="classTCLAP_1_1MultiArg.html#ac30e414b799158ff6710fb1e7ce83aee" title="Returns the end of the values parsed from the command line.">end</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classTCLAP_1_1MultiArg.html#aabcab153e09608343713a6ffef431783" title="The list of values parsed from the CmdLine.">_values</a>.end(); }
<a name="l00201"></a>00201
<a name="l00206"></a>00206 <span class="keyword">virtual</span> std::string <a class="code" href="classTCLAP_1_1MultiArg.html#ac2c962112704b899f4c8b8565f2c4bb3" title="Returns the a short id string.">shortID</a>(<span class="keyword">const</span> std::string&amp; val=<span class="stringliteral">&quot;val&quot;</span>) <span class="keyword">const</span>;
<a name="l00207"></a>00207
<a name="l00212"></a>00212 <span class="keyword">virtual</span> std::string <a class="code" href="classTCLAP_1_1MultiArg.html#a16c00fbce6876bceabb3dab4723f7e79" title="Returns the a long id string.">longID</a>(<span class="keyword">const</span> std::string&amp; val=<span class="stringliteral">&quot;val&quot;</span>) <span class="keyword">const</span>;
<a name="l00213"></a>00213
<a name="l00218"></a>00218 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classTCLAP_1_1MultiArg.html#a3cb7fec92f3d70e0e455c6bc33fbebab" title="Once we&amp;#39;ve matched the first value, then the arg is no longer required.">isRequired</a>() <span class="keyword">const</span>;
<a name="l00219"></a>00219
<a name="l00220"></a>00220 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classTCLAP_1_1MultiArg.html#ab05097627c81cd65975fa1b99fae9bd0" title="Used for MultiArgs and XorHandler to determine whether args can still be set.">allowMore</a>();
<a name="l00221"></a>00221
<a name="l00222"></a>00222 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1MultiArg.html#ab21f01f22978a1c0eea716399e9ff89b" title="Clears the Arg object and allows it to be reused by new command lines.">reset</a>();
<a name="l00223"></a>00223
<a name="l00224"></a>00224 <span class="keyword">private</span>:
<a name="l00228"></a>00228 <a class="code" href="classTCLAP_1_1MultiArg.html" title="An argument that allows multiple values of type T to be specified.">MultiArg&lt;T&gt;</a>(<span class="keyword">const</span> <a class="code" href="classTCLAP_1_1MultiArg.html" title="An argument that allows multiple values of type T to be specified.">MultiArg&lt;T&gt;</a>&amp; rhs);
<a name="l00229"></a>00229 <a class="code" href="classTCLAP_1_1MultiArg.html" title="An argument that allows multiple values of type T to be specified.">MultiArg&lt;T&gt;</a>&amp; operator=(<span class="keyword">const</span> <a class="code" href="classTCLAP_1_1MultiArg.html" title="An argument that allows multiple values of type T to be specified.">MultiArg&lt;T&gt;</a>&amp; rhs);
<a name="l00230"></a>00230
<a name="l00231"></a>00231 };
<a name="l00232"></a>00232
<a name="l00233"></a>00233 <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;
<a name="l00234"></a><a class="code" href="classTCLAP_1_1MultiArg.html#a49b5437c7f06cd6864c07dc59814a953">00234</a> <a class="code" href="classTCLAP_1_1MultiArg.html#a49b5437c7f06cd6864c07dc59814a953" title="Constructor.">MultiArg&lt;T&gt;::MultiArg</a>(<span class="keyword">const</span> std::string&amp; flag,
<a name="l00235"></a>00235 <span class="keyword">const</span> std::string&amp; name,
<a name="l00236"></a>00236 <span class="keyword">const</span> std::string&amp; desc,
<a name="l00237"></a>00237 <span class="keywordtype">bool</span> req,
<a name="l00238"></a>00238 <span class="keyword">const</span> std::string&amp; typeDesc,
<a name="l00239"></a>00239 <a class="code" href="classTCLAP_1_1Visitor.html" title="A base class that defines the interface for visitors.">Visitor</a>* v) :
<a name="l00240"></a>00240 <a class="code" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a>( flag, name, desc, req, true, v ),
<a name="l00241"></a>00241 _values(std::vector&lt;T&gt;()),
<a name="l00242"></a>00242 _typeDesc( typeDesc ),
<a name="l00243"></a>00243 _constraint( NULL ),
<a name="l00244"></a>00244 _allowMore(false)
<a name="l00245"></a>00245 {
<a name="l00246"></a>00246 <a class="code" href="classTCLAP_1_1Arg.html#a13130a9a5d22c57a6d42a8883c9b1e0f">_acceptsMultipleValues</a> = <span class="keyword">true</span>;
<a name="l00247"></a>00247 }
<a name="l00248"></a>00248
<a name="l00249"></a>00249 <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;
<a name="l00250"></a><a class="code" href="classTCLAP_1_1MultiArg.html#a48c90a873389280f72fb5d6ef707b400">00250</a> <a class="code" href="classTCLAP_1_1MultiArg.html#a49b5437c7f06cd6864c07dc59814a953" title="Constructor.">MultiArg&lt;T&gt;::MultiArg</a>(<span class="keyword">const</span> std::string&amp; flag,
<a name="l00251"></a>00251 <span class="keyword">const</span> std::string&amp; name,
<a name="l00252"></a>00252 <span class="keyword">const</span> std::string&amp; desc,
<a name="l00253"></a>00253 <span class="keywordtype">bool</span> req,
<a name="l00254"></a>00254 <span class="keyword">const</span> std::string&amp; typeDesc,
<a name="l00255"></a>00255 <a class="code" href="classTCLAP_1_1CmdLineInterface.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLineInterface</a>&amp; parser,
<a name="l00256"></a>00256 <a class="code" href="classTCLAP_1_1Visitor.html" title="A base class that defines the interface for visitors.">Visitor</a>* v)
<a name="l00257"></a>00257 : <a class="code" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a>( flag, name, desc, req, true, v ),
<a name="l00258"></a>00258 _values(std::vector&lt;T&gt;()),
<a name="l00259"></a>00259 _typeDesc( typeDesc ),
<a name="l00260"></a>00260 _constraint( NULL ),
<a name="l00261"></a>00261 _allowMore(false)
<a name="l00262"></a>00262 {
<a name="l00263"></a>00263 parser.<a class="code" href="classTCLAP_1_1CmdLineInterface.html#a13b29ab754c030185e58f779dc355631" title="Adds an argument to the list of arguments to be parsed.">add</a>( <span class="keyword">this</span> );
<a name="l00264"></a>00264 <a class="code" href="classTCLAP_1_1Arg.html#a13130a9a5d22c57a6d42a8883c9b1e0f">_acceptsMultipleValues</a> = <span class="keyword">true</span>;
<a name="l00265"></a>00265 }
<a name="l00266"></a>00266
<a name="l00270"></a>00270 <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;
<a name="l00271"></a><a class="code" href="classTCLAP_1_1MultiArg.html#a38b1e32a8189356bd1e5ec7c2d43c1a3">00271</a> <a class="code" href="classTCLAP_1_1MultiArg.html#a49b5437c7f06cd6864c07dc59814a953" title="Constructor.">MultiArg&lt;T&gt;::MultiArg</a>(<span class="keyword">const</span> std::string&amp; flag,
<a name="l00272"></a>00272 <span class="keyword">const</span> std::string&amp; name,
<a name="l00273"></a>00273 <span class="keyword">const</span> std::string&amp; desc,
<a name="l00274"></a>00274 <span class="keywordtype">bool</span> req,
<a name="l00275"></a>00275 <a class="code" href="classTCLAP_1_1Constraint.html" title="The interface that defines the interaction between the Arg and Constraint.">Constraint&lt;T&gt;</a>* constraint,
<a name="l00276"></a>00276 <a class="code" href="classTCLAP_1_1Visitor.html" title="A base class that defines the interface for visitors.">Visitor</a>* v)
<a name="l00277"></a>00277 : <a class="code" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a>( flag, name, desc, req, true, v ),
<a name="l00278"></a>00278 _values(std::vector&lt;T&gt;()),
<a name="l00279"></a>00279 _typeDesc( constraint-&gt;shortID() ),
<a name="l00280"></a>00280 _constraint( constraint ),
<a name="l00281"></a>00281 _allowMore(false)
<a name="l00282"></a>00282 {
<a name="l00283"></a>00283 <a class="code" href="classTCLAP_1_1Arg.html#a13130a9a5d22c57a6d42a8883c9b1e0f">_acceptsMultipleValues</a> = <span class="keyword">true</span>;
<a name="l00284"></a>00284 }
<a name="l00285"></a>00285
<a name="l00286"></a>00286 <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;
<a name="l00287"></a><a class="code" href="classTCLAP_1_1MultiArg.html#ad4fcd892de2f1ef275c30dc499215208">00287</a> <a class="code" href="classTCLAP_1_1MultiArg.html#a49b5437c7f06cd6864c07dc59814a953" title="Constructor.">MultiArg&lt;T&gt;::MultiArg</a>(<span class="keyword">const</span> std::string&amp; flag,
<a name="l00288"></a>00288 <span class="keyword">const</span> std::string&amp; name,
<a name="l00289"></a>00289 <span class="keyword">const</span> std::string&amp; desc,
<a name="l00290"></a>00290 <span class="keywordtype">bool</span> req,
<a name="l00291"></a>00291 <a class="code" href="classTCLAP_1_1Constraint.html" title="The interface that defines the interaction between the Arg and Constraint.">Constraint&lt;T&gt;</a>* constraint,
<a name="l00292"></a>00292 <a class="code" href="classTCLAP_1_1CmdLineInterface.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLineInterface</a>&amp; parser,
<a name="l00293"></a>00293 <a class="code" href="classTCLAP_1_1Visitor.html" title="A base class that defines the interface for visitors.">Visitor</a>* v)
<a name="l00294"></a>00294 : <a class="code" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a>( flag, name, desc, req, true, v ),
<a name="l00295"></a>00295 _values(std::vector&lt;T&gt;()),
<a name="l00296"></a>00296 _typeDesc( constraint-&gt;shortID() ),
<a name="l00297"></a>00297 _constraint( constraint ),
<a name="l00298"></a>00298 _allowMore(false)
<a name="l00299"></a>00299 {
<a name="l00300"></a>00300 parser.<a class="code" href="classTCLAP_1_1CmdLineInterface.html#a13b29ab754c030185e58f779dc355631" title="Adds an argument to the list of arguments to be parsed.">add</a>( <span class="keyword">this</span> );
<a name="l00301"></a>00301 <a class="code" href="classTCLAP_1_1Arg.html#a13130a9a5d22c57a6d42a8883c9b1e0f">_acceptsMultipleValues</a> = <span class="keyword">true</span>;
<a name="l00302"></a>00302 }
<a name="l00303"></a>00303
<a name="l00304"></a>00304 <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;
<a name="l00305"></a><a class="code" href="classTCLAP_1_1MultiArg.html#aff4ff7f8d854dd668aaaf80511d8002b">00305</a> <span class="keyword">const</span> std::vector&lt;T&gt;&amp; <a class="code" href="classTCLAP_1_1MultiArg.html#aff4ff7f8d854dd668aaaf80511d8002b" title="Returns a vector of type T containing the values parsed from the command line.">MultiArg&lt;T&gt;::getValue</a>() { <span class="keywordflow">return</span> <a class="code" href="classTCLAP_1_1MultiArg.html#aabcab153e09608343713a6ffef431783" title="The list of values parsed from the CmdLine.">_values</a>; }
<a name="l00306"></a>00306
<a name="l00307"></a>00307 <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;
<a name="l00308"></a><a class="code" href="classTCLAP_1_1MultiArg.html#a344d3cf2128c510f92825e421ea667c7">00308</a> <span class="keywordtype">bool</span> <a class="code" href="classTCLAP_1_1MultiArg.html#a344d3cf2128c510f92825e421ea667c7" title="Handles the processing of the argument.">MultiArg&lt;T&gt;::processArg</a>(<span class="keywordtype">int</span> *i, std::vector&lt;std::string&gt;&amp; args)
<a name="l00309"></a>00309 {
<a name="l00310"></a>00310 <span class="keywordflow">if</span> ( <a class="code" href="classTCLAP_1_1Arg.html#a9832bb7564f4ab472bd51b7b1bbc683f" title="Whether this argument can be ignored, if desired.">_ignoreable</a> &amp;&amp; <a class="code" href="classTCLAP_1_1Arg.html#a4d412155b8f9b4956e64e91c48e55a3b" title="Whether to ignore the rest.">Arg::ignoreRest</a>() )
<a name="l00311"></a>00311 <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00312"></a>00312
<a name="l00313"></a>00313 <span class="keywordflow">if</span> ( <a class="code" href="classTCLAP_1_1Arg.html#a2eb0ffefe163218bdc8b4b7a33a974a7" title="Checks whether a given string has blank chars, indicating that it is a combined SwitchArg...">_hasBlanks</a>( args[*i] ) )
<a name="l00314"></a>00314 <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00315"></a>00315
<a name="l00316"></a>00316 std::string flag = args[*i];
<a name="l00317"></a>00317 std::string value = <span class="stringliteral">&quot;&quot;</span>;
<a name="l00318"></a>00318
<a name="l00319"></a>00319 <a class="code" href="classTCLAP_1_1Arg.html#a54595328e81f5fb77859563690faab25" title="Trims a value off of the flag.">trimFlag</a>( flag, value );
<a name="l00320"></a>00320
<a name="l00321"></a>00321 <span class="keywordflow">if</span> ( <a class="code" href="classTCLAP_1_1Arg.html#aac37b1b734b477e5d16f2037dba9c125" title="A method that tests whether a string matches this argument.">argMatches</a>( flag ) )
<a name="l00322"></a>00322 {
<a name="l00323"></a>00323 <span class="keywordflow">if</span> ( <a class="code" href="classTCLAP_1_1Arg.html#aadef6ca7e40f5b3d3fd03186976aea7e" title="The delimiter that separates an argument flag/name from the value.">Arg::delimiter</a>() != <span class="charliteral">&apos; &apos;</span> &amp;&amp; value == <span class="stringliteral">&quot;&quot;</span> )
<a name="l00324"></a>00324 <span class="keywordflow">throw</span>( <a class="code" href="classTCLAP_1_1ArgParseException.html" title="Thrown from within the child Arg classes when it fails to properly parse the argument...">ArgParseException</a>(
<a name="l00325"></a>00325 <span class="stringliteral">&quot;Couldn&apos;t find delimiter for this argument!&quot;</span>,
<a name="l00326"></a>00326 <a class="code" href="classTCLAP_1_1Arg.html#ac98a357568c21f0eb6ca2220b8a3d4a2" title="Returns a simple string representation of the argument.">toString</a>() ) );
<a name="l00327"></a>00327
<a name="l00328"></a>00328 <span class="comment">// always take the first one, regardless of start string</span>
<a name="l00329"></a>00329 <span class="keywordflow">if</span> ( value == <span class="stringliteral">&quot;&quot;</span> )
<a name="l00330"></a>00330 {
<a name="l00331"></a>00331 (*i)++;
<a name="l00332"></a>00332 <span class="keywordflow">if</span> ( static_cast&lt;unsigned int&gt;(*i) &lt; args.size() )
<a name="l00333"></a>00333 <a class="code" href="classTCLAP_1_1MultiArg.html#a26cbf5e86ac66d876f9285f1fda22470" title="Extracts the value from the string.">_extractValue</a>( args[*i] );
<a name="l00334"></a>00334 <span class="keywordflow">else</span>
<a name="l00335"></a>00335 <span class="keywordflow">throw</span>( <a class="code" href="classTCLAP_1_1ArgParseException.html" title="Thrown from within the child Arg classes when it fails to properly parse the argument...">ArgParseException</a>(<span class="stringliteral">&quot;Missing a value for this argument!&quot;</span>,
<a name="l00336"></a>00336 <a class="code" href="classTCLAP_1_1Arg.html#ac98a357568c21f0eb6ca2220b8a3d4a2" title="Returns a simple string representation of the argument.">toString</a>() ) );
<a name="l00337"></a>00337 }
<a name="l00338"></a>00338 <span class="keywordflow">else</span>
<a name="l00339"></a>00339 <a class="code" href="classTCLAP_1_1MultiArg.html#a26cbf5e86ac66d876f9285f1fda22470" title="Extracts the value from the string.">_extractValue</a>( value );
<a name="l00340"></a>00340
<a name="l00341"></a>00341 <span class="comment">/*</span>
<a name="l00342"></a>00342 <span class="comment"> // continuing taking the args until we hit one with a start string </span>
<a name="l00343"></a>00343 <span class="comment"> while ( (unsigned int)(*i)+1 &lt; args.size() &amp;&amp;</span>
<a name="l00344"></a>00344 <span class="comment"> args[(*i)+1].find_first_of( Arg::flagStartString() ) != 0 &amp;&amp;</span>
<a name="l00345"></a>00345 <span class="comment"> args[(*i)+1].find_first_of( Arg::nameStartString() ) != 0 ) </span>
<a name="l00346"></a>00346 <span class="comment"> _extractValue( args[++(*i)] );</span>
<a name="l00347"></a>00347 <span class="comment"> */</span>
<a name="l00348"></a>00348
<a name="l00349"></a>00349 <a class="code" href="classTCLAP_1_1Arg.html#a829e32129857d2683e5791a5df1208ec" title="Indicates whether the argument has been set.">_alreadySet</a> = <span class="keyword">true</span>;
<a name="l00350"></a>00350 <a class="code" href="classTCLAP_1_1Arg.html#aa963d0d4c8cb297e1f4cf74143bf6d1b" title="Performs the special handling described by the Vistitor.">_checkWithVisitor</a>();
<a name="l00351"></a>00351
<a name="l00352"></a>00352 <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00353"></a>00353 }
<a name="l00354"></a>00354 <span class="keywordflow">else</span>
<a name="l00355"></a>00355 <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00356"></a>00356 }
<a name="l00357"></a>00357
<a name="l00361"></a>00361 <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;
<a name="l00362"></a><a class="code" href="classTCLAP_1_1MultiArg.html#ac2c962112704b899f4c8b8565f2c4bb3">00362</a> std::string <a class="code" href="classTCLAP_1_1MultiArg.html#ac2c962112704b899f4c8b8565f2c4bb3" title="Returns the a short id string.">MultiArg&lt;T&gt;::shortID</a>(<span class="keyword">const</span> std::string&amp; val)<span class="keyword"> const</span>
<a name="l00363"></a>00363 <span class="keyword"></span>{
<a name="l00364"></a>00364 <span class="keyword">static_cast&lt;</span><span class="keywordtype">void</span><span class="keyword">&gt;</span>(val); <span class="comment">// Ignore input, don&apos;t warn</span>
<a name="l00365"></a>00365 <span class="keywordflow">return</span> <a class="code" href="classTCLAP_1_1MultiArg.html#ac2c962112704b899f4c8b8565f2c4bb3" title="Returns the a short id string.">Arg::shortID</a>(<a class="code" href="classTCLAP_1_1MultiArg.html#a0f6a2b04fe15d1ede95165fc6e1949e8" title="The description of type T to be used in the usage.">_typeDesc</a>) + <span class="stringliteral">&quot; ... &quot;</span>;
<a name="l00366"></a>00366 }
<a name="l00367"></a>00367
<a name="l00371"></a>00371 <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;
<a name="l00372"></a><a class="code" href="classTCLAP_1_1MultiArg.html#a16c00fbce6876bceabb3dab4723f7e79">00372</a> std::string <a class="code" href="classTCLAP_1_1MultiArg.html#a16c00fbce6876bceabb3dab4723f7e79" title="Returns the a long id string.">MultiArg&lt;T&gt;::longID</a>(<span class="keyword">const</span> std::string&amp; val)<span class="keyword"> const</span>
<a name="l00373"></a>00373 <span class="keyword"></span>{
<a name="l00374"></a>00374 <span class="keyword">static_cast&lt;</span><span class="keywordtype">void</span><span class="keyword">&gt;</span>(val); <span class="comment">// Ignore input, don&apos;t warn</span>
<a name="l00375"></a>00375 <span class="keywordflow">return</span> <a class="code" href="classTCLAP_1_1MultiArg.html#a16c00fbce6876bceabb3dab4723f7e79" title="Returns the a long id string.">Arg::longID</a>(<a class="code" href="classTCLAP_1_1MultiArg.html#a0f6a2b04fe15d1ede95165fc6e1949e8" title="The description of type T to be used in the usage.">_typeDesc</a>) + <span class="stringliteral">&quot; (accepted multiple times)&quot;</span>;
<a name="l00376"></a>00376 }
<a name="l00377"></a>00377
<a name="l00382"></a>00382 <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;
<a name="l00383"></a><a class="code" href="classTCLAP_1_1MultiArg.html#a3cb7fec92f3d70e0e455c6bc33fbebab">00383</a> <span class="keywordtype">bool</span> <a class="code" href="classTCLAP_1_1MultiArg.html#a3cb7fec92f3d70e0e455c6bc33fbebab" title="Once we&amp;#39;ve matched the first value, then the arg is no longer required.">MultiArg&lt;T&gt;::isRequired</a>()<span class="keyword"> const</span>
<a name="l00384"></a>00384 <span class="keyword"></span>{
<a name="l00385"></a>00385 <span class="keywordflow">if</span> ( <a class="code" href="classTCLAP_1_1Arg.html#ad16408bd1ca4d8b1d14d6c5129545a84" title="Indicating whether the argument is required.">_required</a> )
<a name="l00386"></a>00386 {
<a name="l00387"></a>00387 <span class="keywordflow">if</span> ( <a class="code" href="classTCLAP_1_1MultiArg.html#aabcab153e09608343713a6ffef431783" title="The list of values parsed from the CmdLine.">_values</a>.size() &gt; 1 )
<a name="l00388"></a>00388 <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00389"></a>00389 <span class="keywordflow">else</span>
<a name="l00390"></a>00390 <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00391"></a>00391 }
<a name="l00392"></a>00392 <span class="keywordflow">else</span>
<a name="l00393"></a>00393 <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00394"></a>00394
<a name="l00395"></a>00395 }
<a name="l00396"></a>00396
<a name="l00397"></a>00397 <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;
<a name="l00398"></a><a class="code" href="classTCLAP_1_1MultiArg.html#a26cbf5e86ac66d876f9285f1fda22470">00398</a> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1MultiArg.html#a26cbf5e86ac66d876f9285f1fda22470" title="Extracts the value from the string.">MultiArg&lt;T&gt;::_extractValue</a>( <span class="keyword">const</span> std::string&amp; val )
<a name="l00399"></a>00399 {
<a name="l00400"></a>00400 <span class="keywordflow">try</span> {
<a name="l00401"></a>00401 T tmp;
<a name="l00402"></a>00402 <a class="code" href="namespaceTCLAP.html#a80473f9a24db31df0206504c2cdf0a8d">ExtractValue</a>(tmp, val, <span class="keyword">typename</span> <a class="code" href="structTCLAP_1_1ArgTraits.html" title="Arg traits are used to get compile type specialization when parsing argument values...">ArgTraits&lt;T&gt;::ValueCategory</a>());
<a name="l00403"></a>00403 <a class="code" href="classTCLAP_1_1MultiArg.html#aabcab153e09608343713a6ffef431783" title="The list of values parsed from the CmdLine.">_values</a>.push_back(tmp);
<a name="l00404"></a>00404 } <span class="keywordflow">catch</span>( <a class="code" href="classTCLAP_1_1ArgParseException.html" title="Thrown from within the child Arg classes when it fails to properly parse the argument...">ArgParseException</a> &amp;e) {
<a name="l00405"></a>00405 <span class="keywordflow">throw</span> <a class="code" href="classTCLAP_1_1ArgParseException.html" title="Thrown from within the child Arg classes when it fails to properly parse the argument...">ArgParseException</a>(e.<a class="code" href="classTCLAP_1_1ArgException.html#a0656dab88a7129bc288821bacd653d08" title="Returns the error text.">error</a>(), <a class="code" href="classTCLAP_1_1Arg.html#ac98a357568c21f0eb6ca2220b8a3d4a2" title="Returns a simple string representation of the argument.">toString</a>());
<a name="l00406"></a>00406 }
<a name="l00407"></a>00407
<a name="l00408"></a>00408 <span class="keywordflow">if</span> ( <a class="code" href="classTCLAP_1_1MultiArg.html#afc754048b66bc3a251268947273ea906" title="A list of constraint on this Arg.">_constraint</a> != NULL )
<a name="l00409"></a>00409 <span class="keywordflow">if</span> ( ! <a class="code" href="classTCLAP_1_1MultiArg.html#afc754048b66bc3a251268947273ea906" title="A list of constraint on this Arg.">_constraint</a>-&gt;check( <a class="code" href="classTCLAP_1_1MultiArg.html#aabcab153e09608343713a6ffef431783" title="The list of values parsed from the CmdLine.">_values</a>.back() ) )
<a name="l00410"></a>00410 <span class="keywordflow">throw</span>( <a class="code" href="classTCLAP_1_1CmdLineParseException.html" title="Thrown from CmdLine when the arguments on the command line are not properly specified...">CmdLineParseException</a>( <span class="stringliteral">&quot;Value &apos;&quot;</span> + val +
<a name="l00411"></a>00411 <span class="stringliteral">&quot;&apos; does not meet constraint: &quot;</span> +
<a name="l00412"></a>00412 <a class="code" href="classTCLAP_1_1MultiArg.html#afc754048b66bc3a251268947273ea906" title="A list of constraint on this Arg.">_constraint</a>-&gt;description(),
<a name="l00413"></a>00413 <a class="code" href="classTCLAP_1_1Arg.html#ac98a357568c21f0eb6ca2220b8a3d4a2" title="Returns a simple string representation of the argument.">toString</a>() ) );
<a name="l00414"></a>00414 }
<a name="l00415"></a>00415
<a name="l00416"></a>00416 <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;
<a name="l00417"></a><a class="code" href="classTCLAP_1_1MultiArg.html#ab05097627c81cd65975fa1b99fae9bd0">00417</a> <span class="keywordtype">bool</span> <a class="code" href="classTCLAP_1_1MultiArg.html#ab05097627c81cd65975fa1b99fae9bd0" title="Used for MultiArgs and XorHandler to determine whether args can still be set.">MultiArg&lt;T&gt;::allowMore</a>()
<a name="l00418"></a>00418 {
<a name="l00419"></a>00419 <span class="keywordtype">bool</span> am = <a class="code" href="classTCLAP_1_1MultiArg.html#a93a3ef586f763d46839c0e737689b85f" title="Used by XorHandler to decide whether to keep parsing for this arg.">_allowMore</a>;
<a name="l00420"></a>00420 <a class="code" href="classTCLAP_1_1MultiArg.html#a93a3ef586f763d46839c0e737689b85f" title="Used by XorHandler to decide whether to keep parsing for this arg.">_allowMore</a> = <span class="keyword">true</span>;
<a name="l00421"></a>00421 <span class="keywordflow">return</span> am;
<a name="l00422"></a>00422 }
<a name="l00423"></a>00423
<a name="l00424"></a>00424 <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;
<a name="l00425"></a><a class="code" href="classTCLAP_1_1MultiArg.html#ab21f01f22978a1c0eea716399e9ff89b">00425</a> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1MultiArg.html#ab21f01f22978a1c0eea716399e9ff89b" title="Clears the Arg object and allows it to be reused by new command lines.">MultiArg&lt;T&gt;::reset</a>()
<a name="l00426"></a>00426 {
<a name="l00427"></a>00427 <a class="code" href="classTCLAP_1_1MultiArg.html#ab21f01f22978a1c0eea716399e9ff89b" title="Clears the Arg object and allows it to be reused by new command lines.">Arg::reset</a>();
<a name="l00428"></a>00428 <a class="code" href="classTCLAP_1_1MultiArg.html#aabcab153e09608343713a6ffef431783" title="The list of values parsed from the CmdLine.">_values</a>.clear();
<a name="l00429"></a>00429 }
<a name="l00430"></a>00430
<a name="l00431"></a>00431 } <span class="comment">// namespace TCLAP</span>
<a name="l00432"></a>00432
<a name="l00433"></a>00433 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Sat Apr 16 15:34:24 2011 for tclap by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.0 </small></address>
</body>
</html>

View File

@ -0,0 +1,45 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>tclap: MultiSwitchArg.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.0 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
<li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="contents">
<h1>MultiSwitchArg.h File Reference</h1><code>#include &lt;string&gt;</code><br/>
<code>#include &lt;vector&gt;</code><br/>
<code>#include &lt;<a class="el" href="SwitchArg_8h_source.html">tclap/SwitchArg.h</a>&gt;</code><br/>
<p><a href="MultiSwitchArg_8h_source.html">Go to the source code of this file.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Classes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTCLAP_1_1MultiSwitchArg.html">TCLAP::MultiSwitchArg</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">A multiple switch argument. <a href="classTCLAP_1_1MultiSwitchArg.html#_details">More...</a><br/></td></tr>
<tr><td colspan="2"><h2>Namespaces</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">namespace &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceTCLAP.html">TCLAP</a></td></tr>
</table>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Sat Apr 16 15:34:24 2011 for tclap by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.0 </small></address>
</body>
</html>

View File

@ -0,0 +1,188 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>tclap: MultiSwitchArg.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.0 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
<li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
</ul>
</div>
<h1>MultiSwitchArg.h</h1><a href="MultiSwitchArg_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
<a name="l00002"></a>00002 <span class="comment">/****************************************************************************** </span>
<a name="l00003"></a>00003 <span class="comment">*</span>
<a name="l00004"></a>00004 <span class="comment">* file: MultiSwitchArg.h</span>
<a name="l00005"></a>00005 <span class="comment">*</span>
<a name="l00006"></a>00006 <span class="comment">* Copyright (c) 2003, Michael E. Smoot .</span>
<a name="l00007"></a>00007 <span class="comment">* Copyright (c) 2004, Michael E. Smoot, Daniel Aarno.</span>
<a name="l00008"></a>00008 <span class="comment">* Copyright (c) 2005, Michael E. Smoot, Daniel Aarno, Erik Zeek.</span>
<a name="l00009"></a>00009 <span class="comment">* All rights reverved.</span>
<a name="l00010"></a>00010 <span class="comment">*</span>
<a name="l00011"></a>00011 <span class="comment">* See the file COPYING in the top directory of this distribution for</span>
<a name="l00012"></a>00012 <span class="comment">* more information.</span>
<a name="l00013"></a>00013 <span class="comment">*</span>
<a name="l00014"></a>00014 <span class="comment">* THE SOFTWARE IS PROVIDED _AS IS_, WITHOUT WARRANTY OF ANY KIND, EXPRESS</span>
<a name="l00015"></a>00015 <span class="comment">* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,</span>
<a name="l00016"></a>00016 <span class="comment">* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL</span>
<a name="l00017"></a>00017 <span class="comment">* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER</span>
<a name="l00018"></a>00018 <span class="comment">* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING</span>
<a name="l00019"></a>00019 <span class="comment">* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER</span>
<a name="l00020"></a>00020 <span class="comment">* DEALINGS IN THE SOFTWARE.</span>
<a name="l00021"></a>00021 <span class="comment">*</span>
<a name="l00022"></a>00022 <span class="comment">*****************************************************************************/</span>
<a name="l00023"></a>00023
<a name="l00024"></a>00024
<a name="l00025"></a>00025 <span class="preprocessor">#ifndef TCLAP_MULTI_SWITCH_ARG_H</span>
<a name="l00026"></a>00026 <span class="preprocessor"></span><span class="preprocessor">#define TCLAP_MULTI_SWITCH_ARG_H</span>
<a name="l00027"></a>00027 <span class="preprocessor"></span>
<a name="l00028"></a>00028 <span class="preprocessor">#include &lt;string&gt;</span>
<a name="l00029"></a>00029 <span class="preprocessor">#include &lt;vector&gt;</span>
<a name="l00030"></a>00030
<a name="l00031"></a>00031 <span class="preprocessor">#include &lt;<a class="code" href="SwitchArg_8h.html">tclap/SwitchArg.h</a>&gt;</span>
<a name="l00032"></a>00032
<a name="l00033"></a>00033 <span class="keyword">namespace </span>TCLAP {
<a name="l00034"></a>00034
<a name="l00039"></a><a class="code" href="classTCLAP_1_1MultiSwitchArg.html">00039</a> <span class="keyword">class </span><a class="code" href="classTCLAP_1_1MultiSwitchArg.html" title="A multiple switch argument.">MultiSwitchArg</a> : <span class="keyword">public</span> <a class="code" href="classTCLAP_1_1SwitchArg.html" title="A simple switch argument.">SwitchArg</a>
<a name="l00040"></a>00040 {
<a name="l00041"></a>00041 <span class="keyword">protected</span>:
<a name="l00042"></a>00042
<a name="l00046"></a><a class="code" href="classTCLAP_1_1MultiSwitchArg.html#ab488d4bcdde96fc9edea87ee9b6f5839">00046</a> <span class="keywordtype">int</span> <a class="code" href="classTCLAP_1_1MultiSwitchArg.html#ab488d4bcdde96fc9edea87ee9b6f5839" title="The value of the switch.">_value</a>;
<a name="l00047"></a>00047
<a name="l00052"></a><a class="code" href="classTCLAP_1_1MultiSwitchArg.html#afcd5b3e418e455af3d31aec1e300bb74">00052</a> <span class="keywordtype">int</span> <a class="code" href="classTCLAP_1_1MultiSwitchArg.html#afcd5b3e418e455af3d31aec1e300bb74" title="Used to support the reset() method so that ValueArg can be reset to their constructed...">_default</a>;
<a name="l00053"></a>00053
<a name="l00054"></a>00054 <span class="keyword">public</span>:
<a name="l00055"></a>00055
<a name="l00069"></a>00069 <a class="code" href="classTCLAP_1_1MultiSwitchArg.html#a37db9658517f206fd69936e1458d59b0" title="MultiSwitchArg constructor.">MultiSwitchArg</a>(<span class="keyword">const</span> std::string&amp; flag,
<a name="l00070"></a>00070 <span class="keyword">const</span> std::string&amp; name,
<a name="l00071"></a>00071 <span class="keyword">const</span> std::string&amp; desc,
<a name="l00072"></a>00072 <span class="keywordtype">int</span> init = 0,
<a name="l00073"></a>00073 <a class="code" href="classTCLAP_1_1Visitor.html" title="A base class that defines the interface for visitors.">Visitor</a>* v = NULL);
<a name="l00074"></a>00074
<a name="l00075"></a>00075
<a name="l00090"></a>00090 <a class="code" href="classTCLAP_1_1MultiSwitchArg.html#a37db9658517f206fd69936e1458d59b0" title="MultiSwitchArg constructor.">MultiSwitchArg</a>(<span class="keyword">const</span> std::string&amp; flag,
<a name="l00091"></a>00091 <span class="keyword">const</span> std::string&amp; name,
<a name="l00092"></a>00092 <span class="keyword">const</span> std::string&amp; desc,
<a name="l00093"></a>00093 <a class="code" href="classTCLAP_1_1CmdLineInterface.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLineInterface</a>&amp; parser,
<a name="l00094"></a>00094 <span class="keywordtype">int</span> init = 0,
<a name="l00095"></a>00095 <a class="code" href="classTCLAP_1_1Visitor.html" title="A base class that defines the interface for visitors.">Visitor</a>* v = NULL);
<a name="l00096"></a>00096
<a name="l00097"></a>00097
<a name="l00106"></a>00106 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classTCLAP_1_1MultiSwitchArg.html#a91c3d349570f21d8af6dc90767d747a2" title="Handles the processing of the argument.">processArg</a>(<span class="keywordtype">int</span>* i, std::vector&lt;std::string&gt;&amp; args);
<a name="l00107"></a>00107
<a name="l00111"></a>00111 <span class="keywordtype">int</span> <a class="code" href="classTCLAP_1_1MultiSwitchArg.html#a0389e414c11ebbab4a88dfbbf3af18bd" title="Returns int, the number of times the switch has been set.">getValue</a>();
<a name="l00112"></a>00112
<a name="l00116"></a>00116 std::string <a class="code" href="classTCLAP_1_1MultiSwitchArg.html#a083c07003f948691e94ce94d0b6376ed" title="Returns the shortID for this Arg.">shortID</a>(<span class="keyword">const</span> std::string&amp; val) <span class="keyword">const</span>;
<a name="l00117"></a>00117
<a name="l00121"></a>00121 std::string <a class="code" href="classTCLAP_1_1MultiSwitchArg.html#a0b0aacc09c93462bab4347f86db0fccd" title="Returns the longID for this Arg.">longID</a>(<span class="keyword">const</span> std::string&amp; val) <span class="keyword">const</span>;
<a name="l00122"></a>00122
<a name="l00123"></a>00123 <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1MultiSwitchArg.html#ac320530811dbca7fdcb2a41ab252fce4" title="Clears the Arg object and allows it to be reused by new command lines.">reset</a>();
<a name="l00124"></a>00124
<a name="l00125"></a>00125 };
<a name="l00126"></a>00126
<a name="l00128"></a>00128 <span class="comment">//BEGIN MultiSwitchArg.cpp</span>
<a name="l00130"></a><a class="code" href="classTCLAP_1_1MultiSwitchArg.html#a37db9658517f206fd69936e1458d59b0">00130</a> <span class="comment"></span><span class="keyword">inline</span> <a class="code" href="classTCLAP_1_1MultiSwitchArg.html#a37db9658517f206fd69936e1458d59b0" title="MultiSwitchArg constructor.">MultiSwitchArg::MultiSwitchArg</a>(<span class="keyword">const</span> std::string&amp; flag,
<a name="l00131"></a>00131 <span class="keyword">const</span> std::string&amp; name,
<a name="l00132"></a>00132 <span class="keyword">const</span> std::string&amp; desc,
<a name="l00133"></a>00133 <span class="keywordtype">int</span> init,
<a name="l00134"></a>00134 <a class="code" href="classTCLAP_1_1Visitor.html" title="A base class that defines the interface for visitors.">Visitor</a>* v )
<a name="l00135"></a>00135 : <a class="code" href="classTCLAP_1_1SwitchArg.html" title="A simple switch argument.">SwitchArg</a>(flag, name, desc, false, v),
<a name="l00136"></a>00136 _value( init ),
<a name="l00137"></a>00137 _default( init )
<a name="l00138"></a>00138 { }
<a name="l00139"></a>00139
<a name="l00140"></a><a class="code" href="classTCLAP_1_1MultiSwitchArg.html#a0443d4a222630ac45aa67e40f2de3541">00140</a> <span class="keyword">inline</span> <a class="code" href="classTCLAP_1_1MultiSwitchArg.html#a37db9658517f206fd69936e1458d59b0" title="MultiSwitchArg constructor.">MultiSwitchArg::MultiSwitchArg</a>(<span class="keyword">const</span> std::string&amp; flag,
<a name="l00141"></a>00141 <span class="keyword">const</span> std::string&amp; name,
<a name="l00142"></a>00142 <span class="keyword">const</span> std::string&amp; desc,
<a name="l00143"></a>00143 <a class="code" href="classTCLAP_1_1CmdLineInterface.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLineInterface</a>&amp; parser,
<a name="l00144"></a>00144 <span class="keywordtype">int</span> init,
<a name="l00145"></a>00145 <a class="code" href="classTCLAP_1_1Visitor.html" title="A base class that defines the interface for visitors.">Visitor</a>* v )
<a name="l00146"></a>00146 : <a class="code" href="classTCLAP_1_1SwitchArg.html" title="A simple switch argument.">SwitchArg</a>(flag, name, desc, false, v),
<a name="l00147"></a>00147 _value( init ),
<a name="l00148"></a>00148 _default( init )
<a name="l00149"></a>00149 {
<a name="l00150"></a>00150 parser.<a class="code" href="classTCLAP_1_1CmdLineInterface.html#a13b29ab754c030185e58f779dc355631" title="Adds an argument to the list of arguments to be parsed.">add</a>( <span class="keyword">this</span> );
<a name="l00151"></a>00151 }
<a name="l00152"></a>00152
<a name="l00153"></a><a class="code" href="classTCLAP_1_1MultiSwitchArg.html#a0389e414c11ebbab4a88dfbbf3af18bd">00153</a> <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="classTCLAP_1_1MultiSwitchArg.html#a0389e414c11ebbab4a88dfbbf3af18bd" title="Returns int, the number of times the switch has been set.">MultiSwitchArg::getValue</a>() { <span class="keywordflow">return</span> <a class="code" href="classTCLAP_1_1MultiSwitchArg.html#ab488d4bcdde96fc9edea87ee9b6f5839" title="The value of the switch.">_value</a>; }
<a name="l00154"></a>00154
<a name="l00155"></a><a class="code" href="classTCLAP_1_1MultiSwitchArg.html#a91c3d349570f21d8af6dc90767d747a2">00155</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classTCLAP_1_1MultiSwitchArg.html#a91c3d349570f21d8af6dc90767d747a2" title="Handles the processing of the argument.">MultiSwitchArg::processArg</a>(<span class="keywordtype">int</span> *i, std::vector&lt;std::string&gt;&amp; args)
<a name="l00156"></a>00156 {
<a name="l00157"></a>00157 <span class="keywordflow">if</span> ( <a class="code" href="classTCLAP_1_1Arg.html#a9832bb7564f4ab472bd51b7b1bbc683f" title="Whether this argument can be ignored, if desired.">_ignoreable</a> &amp;&amp; <a class="code" href="classTCLAP_1_1Arg.html#a4d412155b8f9b4956e64e91c48e55a3b" title="Whether to ignore the rest.">Arg::ignoreRest</a>() )
<a name="l00158"></a>00158 <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00159"></a>00159
<a name="l00160"></a>00160 <span class="keywordflow">if</span> ( <a class="code" href="classTCLAP_1_1Arg.html#aac37b1b734b477e5d16f2037dba9c125" title="A method that tests whether a string matches this argument.">argMatches</a>( args[*i] ))
<a name="l00161"></a>00161 {
<a name="l00162"></a>00162 <span class="comment">// so the isSet() method will work</span>
<a name="l00163"></a>00163 <a class="code" href="classTCLAP_1_1Arg.html#a829e32129857d2683e5791a5df1208ec" title="Indicates whether the argument has been set.">_alreadySet</a> = <span class="keyword">true</span>;
<a name="l00164"></a>00164
<a name="l00165"></a>00165 <span class="comment">// Matched argument: increment value.</span>
<a name="l00166"></a>00166 ++<a class="code" href="classTCLAP_1_1MultiSwitchArg.html#ab488d4bcdde96fc9edea87ee9b6f5839" title="The value of the switch.">_value</a>;
<a name="l00167"></a>00167
<a name="l00168"></a>00168 <a class="code" href="classTCLAP_1_1Arg.html#aa963d0d4c8cb297e1f4cf74143bf6d1b" title="Performs the special handling described by the Vistitor.">_checkWithVisitor</a>();
<a name="l00169"></a>00169
<a name="l00170"></a>00170 <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00171"></a>00171 }
<a name="l00172"></a>00172 <span class="keywordflow">else</span> <span class="keywordflow">if</span> ( <a class="code" href="classTCLAP_1_1SwitchArg.html#af5fbd44d462539941b09e960034d692c" title="Checks a string to see if any of the chars in the string match the flag for this...">combinedSwitchesMatch</a>( args[*i] ) )
<a name="l00173"></a>00173 {
<a name="l00174"></a>00174 <span class="comment">// so the isSet() method will work</span>
<a name="l00175"></a>00175 <a class="code" href="classTCLAP_1_1Arg.html#a829e32129857d2683e5791a5df1208ec" title="Indicates whether the argument has been set.">_alreadySet</a> = <span class="keyword">true</span>;
<a name="l00176"></a>00176
<a name="l00177"></a>00177 <span class="comment">// Matched argument: increment value.</span>
<a name="l00178"></a>00178 ++<a class="code" href="classTCLAP_1_1MultiSwitchArg.html#ab488d4bcdde96fc9edea87ee9b6f5839" title="The value of the switch.">_value</a>;
<a name="l00179"></a>00179
<a name="l00180"></a>00180 <span class="comment">// Check for more in argument and increment value.</span>
<a name="l00181"></a>00181 <span class="keywordflow">while</span> ( <a class="code" href="classTCLAP_1_1SwitchArg.html#af5fbd44d462539941b09e960034d692c" title="Checks a string to see if any of the chars in the string match the flag for this...">combinedSwitchesMatch</a>( args[*i] ) )
<a name="l00182"></a>00182 ++<a class="code" href="classTCLAP_1_1MultiSwitchArg.html#ab488d4bcdde96fc9edea87ee9b6f5839" title="The value of the switch.">_value</a>;
<a name="l00183"></a>00183
<a name="l00184"></a>00184 <a class="code" href="classTCLAP_1_1Arg.html#aa963d0d4c8cb297e1f4cf74143bf6d1b" title="Performs the special handling described by the Vistitor.">_checkWithVisitor</a>();
<a name="l00185"></a>00185
<a name="l00186"></a>00186 <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00187"></a>00187 }
<a name="l00188"></a>00188 <span class="keywordflow">else</span>
<a name="l00189"></a>00189 <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00190"></a>00190 }
<a name="l00191"></a>00191
<a name="l00192"></a>00192 <span class="keyword">inline</span> std::string
<a name="l00193"></a><a class="code" href="classTCLAP_1_1MultiSwitchArg.html#a083c07003f948691e94ce94d0b6376ed">00193</a> <a class="code" href="classTCLAP_1_1MultiSwitchArg.html#a083c07003f948691e94ce94d0b6376ed" title="Returns the shortID for this Arg.">MultiSwitchArg::shortID</a>(<span class="keyword">const</span> std::string&amp; val)<span class="keyword"> const</span>
<a name="l00194"></a>00194 <span class="keyword"></span>{
<a name="l00195"></a>00195 <span class="keywordflow">return</span> <a class="code" href="classTCLAP_1_1MultiSwitchArg.html#a083c07003f948691e94ce94d0b6376ed" title="Returns the shortID for this Arg.">Arg::shortID</a>(val) + <span class="stringliteral">&quot; ... &quot;</span>;
<a name="l00196"></a>00196 }
<a name="l00197"></a>00197
<a name="l00198"></a>00198 <span class="keyword">inline</span> std::string
<a name="l00199"></a><a class="code" href="classTCLAP_1_1MultiSwitchArg.html#a0b0aacc09c93462bab4347f86db0fccd">00199</a> <a class="code" href="classTCLAP_1_1MultiSwitchArg.html#a0b0aacc09c93462bab4347f86db0fccd" title="Returns the longID for this Arg.">MultiSwitchArg::longID</a>(<span class="keyword">const</span> std::string&amp; val)<span class="keyword"> const</span>
<a name="l00200"></a>00200 <span class="keyword"></span>{
<a name="l00201"></a>00201 <span class="keywordflow">return</span> <a class="code" href="classTCLAP_1_1MultiSwitchArg.html#a0b0aacc09c93462bab4347f86db0fccd" title="Returns the longID for this Arg.">Arg::longID</a>(val) + <span class="stringliteral">&quot; (accepted multiple times)&quot;</span>;
<a name="l00202"></a>00202 }
<a name="l00203"></a>00203
<a name="l00204"></a>00204 <span class="keyword">inline</span> <span class="keywordtype">void</span>
<a name="l00205"></a><a class="code" href="classTCLAP_1_1MultiSwitchArg.html#ac320530811dbca7fdcb2a41ab252fce4">00205</a> <a class="code" href="classTCLAP_1_1MultiSwitchArg.html#ac320530811dbca7fdcb2a41ab252fce4" title="Clears the Arg object and allows it to be reused by new command lines.">MultiSwitchArg::reset</a>()
<a name="l00206"></a>00206 {
<a name="l00207"></a>00207 <a class="code" href="classTCLAP_1_1MultiSwitchArg.html#ab488d4bcdde96fc9edea87ee9b6f5839" title="The value of the switch.">MultiSwitchArg::_value</a> = <a class="code" href="classTCLAP_1_1MultiSwitchArg.html#afcd5b3e418e455af3d31aec1e300bb74" title="Used to support the reset() method so that ValueArg can be reset to their constructed...">MultiSwitchArg::_default</a>;
<a name="l00208"></a>00208 }
<a name="l00209"></a>00209
<a name="l00211"></a>00211 <span class="comment">//END MultiSwitchArg.cpp</span>
<a name="l00213"></a>00213 <span class="comment"></span>
<a name="l00214"></a>00214 } <span class="comment">//namespace TCLAP</span>
<a name="l00215"></a>00215
<a name="l00216"></a>00216 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Sat Apr 16 15:34:24 2011 for tclap by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.0 </small></address>
</body>
</html>

View File

@ -0,0 +1,42 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>tclap: OptionalUnlabeledTracker.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.0 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
<li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="contents">
<h1>OptionalUnlabeledTracker.h File Reference</h1><code>#include &lt;string&gt;</code><br/>
<p><a href="OptionalUnlabeledTracker_8h_source.html">Go to the source code of this file.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Classes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTCLAP_1_1OptionalUnlabeledTracker.html">TCLAP::OptionalUnlabeledTracker</a></td></tr>
<tr><td colspan="2"><h2>Namespaces</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">namespace &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceTCLAP.html">TCLAP</a></td></tr>
</table>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Sat Apr 16 15:34:24 2011 for tclap by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.0 </small></address>
</body>
</html>

View File

@ -0,0 +1,93 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>tclap: OptionalUnlabeledTracker.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.0 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
<li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
</ul>
</div>
<h1>OptionalUnlabeledTracker.h</h1><a href="OptionalUnlabeledTracker_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
<a name="l00002"></a>00002
<a name="l00003"></a>00003 <span class="comment">/****************************************************************************** </span>
<a name="l00004"></a>00004 <span class="comment"> * </span>
<a name="l00005"></a>00005 <span class="comment"> * file: OptionalUnlabeledTracker.h</span>
<a name="l00006"></a>00006 <span class="comment"> * </span>
<a name="l00007"></a>00007 <span class="comment"> * Copyright (c) 2005, Michael E. Smoot .</span>
<a name="l00008"></a>00008 <span class="comment"> * All rights reverved.</span>
<a name="l00009"></a>00009 <span class="comment"> * </span>
<a name="l00010"></a>00010 <span class="comment"> * See the file COPYING in the top directory of this distribution for</span>
<a name="l00011"></a>00011 <span class="comment"> * more information.</span>
<a name="l00012"></a>00012 <span class="comment"> * </span>
<a name="l00013"></a>00013 <span class="comment"> * THE SOFTWARE IS PROVIDED _AS IS_, WITHOUT WARRANTY OF ANY KIND, EXPRESS </span>
<a name="l00014"></a>00014 <span class="comment"> * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, </span>
<a name="l00015"></a>00015 <span class="comment"> * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL </span>
<a name="l00016"></a>00016 <span class="comment"> * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER </span>
<a name="l00017"></a>00017 <span class="comment"> * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING </span>
<a name="l00018"></a>00018 <span class="comment"> * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER </span>
<a name="l00019"></a>00019 <span class="comment"> * DEALINGS IN THE SOFTWARE. </span>
<a name="l00020"></a>00020 <span class="comment"> * </span>
<a name="l00021"></a>00021 <span class="comment"> *****************************************************************************/</span>
<a name="l00022"></a>00022
<a name="l00023"></a>00023
<a name="l00024"></a>00024 <span class="preprocessor">#ifndef TCLAP_OPTIONAL_UNLABELED_TRACKER_H</span>
<a name="l00025"></a>00025 <span class="preprocessor"></span><span class="preprocessor">#define TCLAP_OPTIONAL_UNLABELED_TRACKER_H</span>
<a name="l00026"></a>00026 <span class="preprocessor"></span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;string&gt;</span>
<a name="l00028"></a>00028
<a name="l00029"></a>00029 <span class="keyword">namespace </span>TCLAP {
<a name="l00030"></a>00030
<a name="l00031"></a><a class="code" href="classTCLAP_1_1OptionalUnlabeledTracker.html">00031</a> <span class="keyword">class </span><a class="code" href="classTCLAP_1_1OptionalUnlabeledTracker.html">OptionalUnlabeledTracker</a>
<a name="l00032"></a>00032 {
<a name="l00033"></a>00033
<a name="l00034"></a>00034 <span class="keyword">public</span>:
<a name="l00035"></a>00035
<a name="l00036"></a>00036 <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1OptionalUnlabeledTracker.html#a59bfa7d01b45d4796500470c9218e390">check</a>( <span class="keywordtype">bool</span> req, <span class="keyword">const</span> std::string&amp; argName );
<a name="l00037"></a>00037
<a name="l00038"></a><a class="code" href="classTCLAP_1_1OptionalUnlabeledTracker.html#aca1fc2a02fbde351cce7ea05f0e6ef89">00038</a> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1OptionalUnlabeledTracker.html#aca1fc2a02fbde351cce7ea05f0e6ef89">gotOptional</a>() { alreadyOptionalRef() = <span class="keyword">true</span>; }
<a name="l00039"></a>00039
<a name="l00040"></a><a class="code" href="classTCLAP_1_1OptionalUnlabeledTracker.html#a50fc04586196c0861491968fcdadf48b">00040</a> <span class="keyword">static</span> <span class="keywordtype">bool</span>&amp; <a class="code" href="classTCLAP_1_1OptionalUnlabeledTracker.html#a50fc04586196c0861491968fcdadf48b">alreadyOptional</a>() { <span class="keywordflow">return</span> alreadyOptionalRef(); }
<a name="l00041"></a>00041
<a name="l00042"></a>00042 <span class="keyword">private</span>:
<a name="l00043"></a>00043
<a name="l00044"></a>00044 <span class="keyword">static</span> <span class="keywordtype">bool</span>&amp; alreadyOptionalRef() { <span class="keyword">static</span> <span class="keywordtype">bool</span> ct = <span class="keyword">false</span>; <span class="keywordflow">return</span> ct; }
<a name="l00045"></a>00045 };
<a name="l00046"></a>00046
<a name="l00047"></a>00047
<a name="l00048"></a><a class="code" href="classTCLAP_1_1OptionalUnlabeledTracker.html#a59bfa7d01b45d4796500470c9218e390">00048</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1OptionalUnlabeledTracker.html#a59bfa7d01b45d4796500470c9218e390">OptionalUnlabeledTracker::check</a>( <span class="keywordtype">bool</span> req, <span class="keyword">const</span> std::string&amp; argName )
<a name="l00049"></a>00049 {
<a name="l00050"></a>00050 <span class="keywordflow">if</span> ( <a class="code" href="classTCLAP_1_1OptionalUnlabeledTracker.html#a50fc04586196c0861491968fcdadf48b">OptionalUnlabeledTracker::alreadyOptional</a>() )
<a name="l00051"></a>00051 <span class="keywordflow">throw</span>( <a class="code" href="classTCLAP_1_1SpecificationException.html" title="Thrown from Arg and CmdLine when an Arg is improperly specified, e.g.">SpecificationException</a>(
<a name="l00052"></a>00052 <span class="stringliteral">&quot;You can&apos;t specify ANY Unlabeled Arg following an optional Unlabeled Arg&quot;</span>,
<a name="l00053"></a>00053 argName ) );
<a name="l00054"></a>00054
<a name="l00055"></a>00055 <span class="keywordflow">if</span> ( !req )
<a name="l00056"></a>00056 <a class="code" href="classTCLAP_1_1OptionalUnlabeledTracker.html#aca1fc2a02fbde351cce7ea05f0e6ef89">OptionalUnlabeledTracker::gotOptional</a>();
<a name="l00057"></a>00057 }
<a name="l00058"></a>00058
<a name="l00059"></a>00059
<a name="l00060"></a>00060 } <span class="comment">// namespace TCLAP</span>
<a name="l00061"></a>00061
<a name="l00062"></a>00062 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Sat Apr 16 15:34:24 2011 for tclap by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.0 </small></address>
</body>
</html>

View File

@ -0,0 +1,69 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>tclap: StandardTraits.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.0 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
<li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="contents">
<h1>StandardTraits.h File Reference</h1>
<p><a href="StandardTraits_8h_source.html">Go to the source code of this file.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Classes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structTCLAP_1_1ArgTraits_3_01long_01_4.html">TCLAP::ArgTraits&lt; long &gt;</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">longs have value-like semantics. <a href="structTCLAP_1_1ArgTraits_3_01long_01_4.html#_details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structTCLAP_1_1ArgTraits_3_01int_01_4.html">TCLAP::ArgTraits&lt; int &gt;</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">ints have value-like semantics. <a href="structTCLAP_1_1ArgTraits_3_01int_01_4.html#_details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structTCLAP_1_1ArgTraits_3_01short_01_4.html">TCLAP::ArgTraits&lt; short &gt;</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">shorts have value-like semantics. <a href="structTCLAP_1_1ArgTraits_3_01short_01_4.html#_details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structTCLAP_1_1ArgTraits_3_01char_01_4.html">TCLAP::ArgTraits&lt; char &gt;</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">chars have value-like semantics. <a href="structTCLAP_1_1ArgTraits_3_01char_01_4.html#_details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structTCLAP_1_1ArgTraits_3_01unsigned_01long_01_4.html">TCLAP::ArgTraits&lt; unsigned long &gt;</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">unsigned longs have value-like semantics. <a href="structTCLAP_1_1ArgTraits_3_01unsigned_01long_01_4.html#_details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structTCLAP_1_1ArgTraits_3_01unsigned_01int_01_4.html">TCLAP::ArgTraits&lt; unsigned int &gt;</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">unsigned ints have value-like semantics. <a href="structTCLAP_1_1ArgTraits_3_01unsigned_01int_01_4.html#_details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structTCLAP_1_1ArgTraits_3_01unsigned_01short_01_4.html">TCLAP::ArgTraits&lt; unsigned short &gt;</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">unsigned shorts have value-like semantics. <a href="structTCLAP_1_1ArgTraits_3_01unsigned_01short_01_4.html#_details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structTCLAP_1_1ArgTraits_3_01unsigned_01char_01_4.html">TCLAP::ArgTraits&lt; unsigned char &gt;</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">unsigned chars have value-like semantics. <a href="structTCLAP_1_1ArgTraits_3_01unsigned_01char_01_4.html#_details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structTCLAP_1_1ArgTraits_3_01float_01_4.html">TCLAP::ArgTraits&lt; float &gt;</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">floats have value-like semantics. <a href="structTCLAP_1_1ArgTraits_3_01float_01_4.html#_details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structTCLAP_1_1ArgTraits_3_01double_01_4.html">TCLAP::ArgTraits&lt; double &gt;</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">doubles have value-like semantics. <a href="structTCLAP_1_1ArgTraits_3_01double_01_4.html#_details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structTCLAP_1_1ArgTraits_3_01bool_01_4.html">TCLAP::ArgTraits&lt; bool &gt;</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">bools have value-like semantics. <a href="structTCLAP_1_1ArgTraits_3_01bool_01_4.html#_details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structTCLAP_1_1ArgTraits_3_01wchar__t_01_4.html">TCLAP::ArgTraits&lt; wchar_t &gt;</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">wchar_ts have value-like semantics. <a href="structTCLAP_1_1ArgTraits_3_01wchar__t_01_4.html#_details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structTCLAP_1_1ArgTraits_3_01std_1_1string_01_4.html">TCLAP::ArgTraits&lt; std::string &gt;</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Strings have string like argument traits. <a href="structTCLAP_1_1ArgTraits_3_01std_1_1string_01_4.html#_details">More...</a><br/></td></tr>
<tr><td colspan="2"><h2>Namespaces</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">namespace &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceTCLAP.html">TCLAP</a></td></tr>
<tr><td colspan="2"><h2>Functions</h2></td></tr>
<tr><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr><td class="memTemplItemLeft" align="right" valign="top">void&nbsp;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceTCLAP.html#a06cca5c0de2e5803a67c63cde60a2dfb">TCLAP::SetString</a> (T &amp;dst, const std::string &amp;src)</td></tr>
</table>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Sat Apr 16 15:34:24 2011 for tclap by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.0 </small></address>
</body>
</html>

View File

@ -0,0 +1,194 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>tclap: StandardTraits.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.0 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
<li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
</ul>
</div>
<h1>StandardTraits.h</h1><a href="StandardTraits_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// -*- Mode: c++; c-basic-offset: 4; tab-width: 4; -*-</span>
<a name="l00002"></a>00002
<a name="l00003"></a>00003 <span class="comment">/******************************************************************************</span>
<a name="l00004"></a>00004 <span class="comment"> *</span>
<a name="l00005"></a>00005 <span class="comment"> * file: StandardTraits.h</span>
<a name="l00006"></a>00006 <span class="comment"> *</span>
<a name="l00007"></a>00007 <span class="comment"> * Copyright (c) 2007, Daniel Aarno, Michael E. Smoot .</span>
<a name="l00008"></a>00008 <span class="comment"> * All rights reverved.</span>
<a name="l00009"></a>00009 <span class="comment"> *</span>
<a name="l00010"></a>00010 <span class="comment"> * See the file COPYING in the top directory of this distribution for</span>
<a name="l00011"></a>00011 <span class="comment"> * more information.</span>
<a name="l00012"></a>00012 <span class="comment"> *</span>
<a name="l00013"></a>00013 <span class="comment"> * THE SOFTWARE IS PROVIDED _AS IS_, WITHOUT WARRANTY OF ANY KIND, EXPRESS</span>
<a name="l00014"></a>00014 <span class="comment"> * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,</span>
<a name="l00015"></a>00015 <span class="comment"> * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL</span>
<a name="l00016"></a>00016 <span class="comment"> * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER</span>
<a name="l00017"></a>00017 <span class="comment"> * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING</span>
<a name="l00018"></a>00018 <span class="comment"> * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER</span>
<a name="l00019"></a>00019 <span class="comment"> * DEALINGS IN THE SOFTWARE.</span>
<a name="l00020"></a>00020 <span class="comment"> *</span>
<a name="l00021"></a>00021 <span class="comment"> *****************************************************************************/</span>
<a name="l00022"></a>00022
<a name="l00023"></a>00023 <span class="comment">// This is an internal tclap file, you should probably not have to</span>
<a name="l00024"></a>00024 <span class="comment">// include this directly</span>
<a name="l00025"></a>00025
<a name="l00026"></a>00026 <span class="preprocessor">#ifndef TCLAP_STANDARD_TRAITS_H</span>
<a name="l00027"></a>00027 <span class="preprocessor"></span><span class="preprocessor">#define TCLAP_STANDARD_TRAITS_H</span>
<a name="l00028"></a>00028 <span class="preprocessor"></span>
<a name="l00029"></a>00029 <span class="preprocessor">#ifdef HAVE_CONFIG_H</span>
<a name="l00030"></a>00030 <span class="preprocessor"></span><span class="preprocessor">#include &lt;config.h&gt;</span> <span class="comment">// To check for long long</span>
<a name="l00031"></a>00031 <span class="preprocessor">#endif</span>
<a name="l00032"></a>00032 <span class="preprocessor"></span>
<a name="l00033"></a>00033 <span class="comment">// If Microsoft has already typedef&apos;d wchar_t as an unsigned </span>
<a name="l00034"></a>00034 <span class="comment">// short, then compiles will break because it&apos;s as if we&apos;re</span>
<a name="l00035"></a>00035 <span class="comment">// creating ArgTraits twice for unsigned short. Thus...</span>
<a name="l00036"></a>00036 <span class="preprocessor">#ifdef _MSC_VER</span>
<a name="l00037"></a>00037 <span class="preprocessor"></span><span class="preprocessor">#ifndef _NATIVE_WCHAR_T_DEFINED</span>
<a name="l00038"></a>00038 <span class="preprocessor"></span><span class="preprocessor">#define TCLAP_DONT_DECLARE_WCHAR_T_ARGTRAITS</span>
<a name="l00039"></a>00039 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00040"></a>00040 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00041"></a>00041 <span class="preprocessor"></span>
<a name="l00042"></a>00042 <span class="keyword">namespace </span>TCLAP {
<a name="l00043"></a>00043
<a name="l00044"></a>00044 <span class="comment">// ======================================================================</span>
<a name="l00045"></a>00045 <span class="comment">// Integer types</span>
<a name="l00046"></a>00046 <span class="comment">// ======================================================================</span>
<a name="l00047"></a>00047
<a name="l00051"></a>00051 <span class="keyword">template</span>&lt;&gt;
<a name="l00052"></a><a class="code" href="structTCLAP_1_1ArgTraits_3_01long_01_4.html">00052</a> <span class="keyword">struct </span><a class="code" href="structTCLAP_1_1ArgTraits.html" title="Arg traits are used to get compile type specialization when parsing argument values...">ArgTraits</a>&lt;long&gt; {
<a name="l00053"></a><a class="code" href="structTCLAP_1_1ArgTraits_3_01long_01_4.html#a942d9a1e813bc3f82b51a2dcedb7316d">00053</a> <span class="keyword">typedef</span> <a class="code" href="structTCLAP_1_1ValueLike.html" title="A value like argument value type is a value that can be set using operator&amp;gt;&amp;gt;...">ValueLike</a> <a class="code" href="structTCLAP_1_1ValueLike.html" title="A value like argument value type is a value that can be set using operator&amp;gt;&amp;gt;...">ValueCategory</a>;
<a name="l00054"></a>00054 };
<a name="l00055"></a>00055
<a name="l00059"></a>00059 <span class="keyword">template</span>&lt;&gt;
<a name="l00060"></a><a class="code" href="structTCLAP_1_1ArgTraits_3_01int_01_4.html">00060</a> <span class="keyword">struct </span><a class="code" href="structTCLAP_1_1ArgTraits.html" title="Arg traits are used to get compile type specialization when parsing argument values...">ArgTraits</a>&lt;int&gt; {
<a name="l00061"></a><a class="code" href="structTCLAP_1_1ArgTraits_3_01int_01_4.html#a8e577764b626e9e928d71567123d92a9">00061</a> <span class="keyword">typedef</span> <a class="code" href="structTCLAP_1_1ValueLike.html" title="A value like argument value type is a value that can be set using operator&amp;gt;&amp;gt;...">ValueLike</a> <a class="code" href="structTCLAP_1_1ValueLike.html" title="A value like argument value type is a value that can be set using operator&amp;gt;&amp;gt;...">ValueCategory</a>;
<a name="l00062"></a>00062 };
<a name="l00063"></a>00063
<a name="l00067"></a>00067 <span class="keyword">template</span>&lt;&gt;
<a name="l00068"></a><a class="code" href="structTCLAP_1_1ArgTraits_3_01short_01_4.html">00068</a> <span class="keyword">struct </span><a class="code" href="structTCLAP_1_1ArgTraits.html" title="Arg traits are used to get compile type specialization when parsing argument values...">ArgTraits</a>&lt;short&gt; {
<a name="l00069"></a><a class="code" href="structTCLAP_1_1ArgTraits_3_01short_01_4.html#a99f5d76501b120d6455b528aa7bf6896">00069</a> <span class="keyword">typedef</span> <a class="code" href="structTCLAP_1_1ValueLike.html" title="A value like argument value type is a value that can be set using operator&amp;gt;&amp;gt;...">ValueLike</a> <a class="code" href="structTCLAP_1_1ValueLike.html" title="A value like argument value type is a value that can be set using operator&amp;gt;&amp;gt;...">ValueCategory</a>;
<a name="l00070"></a>00070 };
<a name="l00071"></a>00071
<a name="l00075"></a>00075 <span class="keyword">template</span>&lt;&gt;
<a name="l00076"></a><a class="code" href="structTCLAP_1_1ArgTraits_3_01char_01_4.html">00076</a> <span class="keyword">struct </span><a class="code" href="structTCLAP_1_1ArgTraits.html" title="Arg traits are used to get compile type specialization when parsing argument values...">ArgTraits</a>&lt;char&gt; {
<a name="l00077"></a><a class="code" href="structTCLAP_1_1ArgTraits_3_01char_01_4.html#a36f7fe1b3b1649ef8ec08ef7d6fc3160">00077</a> <span class="keyword">typedef</span> <a class="code" href="structTCLAP_1_1ValueLike.html" title="A value like argument value type is a value that can be set using operator&amp;gt;&amp;gt;...">ValueLike</a> <a class="code" href="structTCLAP_1_1ValueLike.html" title="A value like argument value type is a value that can be set using operator&amp;gt;&amp;gt;...">ValueCategory</a>;
<a name="l00078"></a>00078 };
<a name="l00079"></a>00079
<a name="l00080"></a>00080 <span class="preprocessor">#ifdef HAVE_LONG_LONG</span>
<a name="l00081"></a>00081 <span class="preprocessor"></span>
<a name="l00084"></a>00084 <span class="keyword">template</span>&lt;&gt;
<a name="l00085"></a>00085 <span class="keyword">struct </span><a class="code" href="structTCLAP_1_1ArgTraits.html" title="Arg traits are used to get compile type specialization when parsing argument values...">ArgTraits</a>&lt;long long&gt; {
<a name="l00086"></a>00086 <span class="keyword">typedef</span> <a class="code" href="structTCLAP_1_1ValueLike.html" title="A value like argument value type is a value that can be set using operator&amp;gt;&amp;gt;...">ValueLike</a> <a class="code" href="structTCLAP_1_1ArgTraits.html#a346532973520fc820d6b3e5406dfa8f6">ValueCategory</a>;
<a name="l00087"></a>00087 };
<a name="l00088"></a>00088 <span class="preprocessor">#endif</span>
<a name="l00089"></a>00089 <span class="preprocessor"></span>
<a name="l00090"></a>00090 <span class="comment">// ======================================================================</span>
<a name="l00091"></a>00091 <span class="comment">// Unsigned integer types</span>
<a name="l00092"></a>00092 <span class="comment">// ======================================================================</span>
<a name="l00093"></a>00093
<a name="l00097"></a>00097 <span class="keyword">template</span>&lt;&gt;
<a name="l00098"></a><a class="code" href="structTCLAP_1_1ArgTraits_3_01unsigned_01long_01_4.html">00098</a> <span class="keyword">struct </span><a class="code" href="structTCLAP_1_1ArgTraits.html" title="Arg traits are used to get compile type specialization when parsing argument values...">ArgTraits</a>&lt;unsigned long&gt; {
<a name="l00099"></a><a class="code" href="structTCLAP_1_1ArgTraits_3_01unsigned_01long_01_4.html#aa6aeb6243e6fbf8b5aba659083baa1ac">00099</a> <span class="keyword">typedef</span> <a class="code" href="structTCLAP_1_1ValueLike.html" title="A value like argument value type is a value that can be set using operator&amp;gt;&amp;gt;...">ValueLike</a> <a class="code" href="structTCLAP_1_1ValueLike.html" title="A value like argument value type is a value that can be set using operator&amp;gt;&amp;gt;...">ValueCategory</a>;
<a name="l00100"></a>00100 };
<a name="l00101"></a>00101
<a name="l00105"></a>00105 <span class="keyword">template</span>&lt;&gt;
<a name="l00106"></a><a class="code" href="structTCLAP_1_1ArgTraits_3_01unsigned_01int_01_4.html">00106</a> <span class="keyword">struct </span><a class="code" href="structTCLAP_1_1ArgTraits.html" title="Arg traits are used to get compile type specialization when parsing argument values...">ArgTraits</a>&lt;unsigned int&gt; {
<a name="l00107"></a><a class="code" href="structTCLAP_1_1ArgTraits_3_01unsigned_01int_01_4.html#ae95cdc132665581c458fc64c7e7a0490">00107</a> <span class="keyword">typedef</span> <a class="code" href="structTCLAP_1_1ValueLike.html" title="A value like argument value type is a value that can be set using operator&amp;gt;&amp;gt;...">ValueLike</a> <a class="code" href="structTCLAP_1_1ValueLike.html" title="A value like argument value type is a value that can be set using operator&amp;gt;&amp;gt;...">ValueCategory</a>;
<a name="l00108"></a>00108 };
<a name="l00109"></a>00109
<a name="l00113"></a>00113 <span class="keyword">template</span>&lt;&gt;
<a name="l00114"></a><a class="code" href="structTCLAP_1_1ArgTraits_3_01unsigned_01short_01_4.html">00114</a> <span class="keyword">struct </span><a class="code" href="structTCLAP_1_1ArgTraits.html" title="Arg traits are used to get compile type specialization when parsing argument values...">ArgTraits</a>&lt;unsigned short&gt; {
<a name="l00115"></a><a class="code" href="structTCLAP_1_1ArgTraits_3_01unsigned_01short_01_4.html#a0efa2ce53e9cb98dc4a58dda24127d3a">00115</a> <span class="keyword">typedef</span> <a class="code" href="structTCLAP_1_1ValueLike.html" title="A value like argument value type is a value that can be set using operator&amp;gt;&amp;gt;...">ValueLike</a> <a class="code" href="structTCLAP_1_1ValueLike.html" title="A value like argument value type is a value that can be set using operator&amp;gt;&amp;gt;...">ValueCategory</a>;
<a name="l00116"></a>00116 };
<a name="l00117"></a>00117
<a name="l00121"></a>00121 <span class="keyword">template</span>&lt;&gt;
<a name="l00122"></a><a class="code" href="structTCLAP_1_1ArgTraits_3_01unsigned_01char_01_4.html">00122</a> <span class="keyword">struct </span><a class="code" href="structTCLAP_1_1ArgTraits.html" title="Arg traits are used to get compile type specialization when parsing argument values...">ArgTraits</a>&lt;unsigned char&gt; {
<a name="l00123"></a><a class="code" href="structTCLAP_1_1ArgTraits_3_01unsigned_01char_01_4.html#a3cba1e41ab04d31c7b68b1c5e6e227aa">00123</a> <span class="keyword">typedef</span> <a class="code" href="structTCLAP_1_1ValueLike.html" title="A value like argument value type is a value that can be set using operator&amp;gt;&amp;gt;...">ValueLike</a> <a class="code" href="structTCLAP_1_1ValueLike.html" title="A value like argument value type is a value that can be set using operator&amp;gt;&amp;gt;...">ValueCategory</a>;
<a name="l00124"></a>00124 };
<a name="l00125"></a>00125
<a name="l00126"></a>00126 <span class="comment">// Microsoft implements size_t awkwardly. </span>
<a name="l00127"></a>00127 <span class="preprocessor">#if defined(_MSC_VER) &amp;&amp; defined(_M_X64)</span>
<a name="l00128"></a>00128 <span class="preprocessor"></span>
<a name="l00131"></a>00131 <span class="keyword">template</span>&lt;&gt;
<a name="l00132"></a>00132 <span class="keyword">struct </span><a class="code" href="structTCLAP_1_1ArgTraits.html" title="Arg traits are used to get compile type specialization when parsing argument values...">ArgTraits</a>&lt;size_t&gt; {
<a name="l00133"></a>00133 <span class="keyword">typedef</span> <a class="code" href="structTCLAP_1_1ValueLike.html" title="A value like argument value type is a value that can be set using operator&amp;gt;&amp;gt;...">ValueLike</a> <a class="code" href="structTCLAP_1_1ArgTraits.html#a346532973520fc820d6b3e5406dfa8f6">ValueCategory</a>;
<a name="l00134"></a>00134 };
<a name="l00135"></a>00135 <span class="preprocessor">#endif</span>
<a name="l00136"></a>00136 <span class="preprocessor"></span>
<a name="l00137"></a>00137
<a name="l00138"></a>00138 <span class="preprocessor">#ifdef HAVE_LONG_LONG</span>
<a name="l00139"></a>00139 <span class="preprocessor"></span>
<a name="l00142"></a>00142 <span class="keyword">template</span>&lt;&gt;
<a name="l00143"></a>00143 <span class="keyword">struct </span>ArgTraits&lt;unsigned long long&gt; {
<a name="l00144"></a>00144 <span class="keyword">typedef</span> ValueLike <a class="code" href="structTCLAP_1_1ArgTraits.html#a346532973520fc820d6b3e5406dfa8f6">ValueCategory</a>;
<a name="l00145"></a>00145 };
<a name="l00146"></a>00146 <span class="preprocessor">#endif</span>
<a name="l00147"></a>00147 <span class="preprocessor"></span>
<a name="l00148"></a>00148 <span class="comment">// ======================================================================</span>
<a name="l00149"></a>00149 <span class="comment">// Float types</span>
<a name="l00150"></a>00150 <span class="comment">// ======================================================================</span>
<a name="l00151"></a>00151
<a name="l00155"></a>00155 <span class="keyword">template</span>&lt;&gt;
<a name="l00156"></a><a class="code" href="structTCLAP_1_1ArgTraits_3_01float_01_4.html">00156</a> <span class="keyword">struct </span><a class="code" href="structTCLAP_1_1ArgTraits.html" title="Arg traits are used to get compile type specialization when parsing argument values...">ArgTraits</a>&lt;float&gt; {
<a name="l00157"></a><a class="code" href="structTCLAP_1_1ArgTraits_3_01float_01_4.html#ace983d74b1b28caa692840da15313acf">00157</a> <span class="keyword">typedef</span> <a class="code" href="structTCLAP_1_1ValueLike.html" title="A value like argument value type is a value that can be set using operator&amp;gt;&amp;gt;...">ValueLike</a> <a class="code" href="structTCLAP_1_1ValueLike.html" title="A value like argument value type is a value that can be set using operator&amp;gt;&amp;gt;...">ValueCategory</a>;
<a name="l00158"></a>00158 };
<a name="l00159"></a>00159
<a name="l00163"></a>00163 <span class="keyword">template</span>&lt;&gt;
<a name="l00164"></a><a class="code" href="structTCLAP_1_1ArgTraits_3_01double_01_4.html">00164</a> <span class="keyword">struct </span><a class="code" href="structTCLAP_1_1ArgTraits.html" title="Arg traits are used to get compile type specialization when parsing argument values...">ArgTraits</a>&lt;double&gt; {
<a name="l00165"></a><a class="code" href="structTCLAP_1_1ArgTraits_3_01double_01_4.html#a06ac5f8ebfcbc537e9ce57b96836dd3d">00165</a> <span class="keyword">typedef</span> <a class="code" href="structTCLAP_1_1ValueLike.html" title="A value like argument value type is a value that can be set using operator&amp;gt;&amp;gt;...">ValueLike</a> <a class="code" href="structTCLAP_1_1ValueLike.html" title="A value like argument value type is a value that can be set using operator&amp;gt;&amp;gt;...">ValueCategory</a>;
<a name="l00166"></a>00166 };
<a name="l00167"></a>00167
<a name="l00168"></a>00168 <span class="comment">// ======================================================================</span>
<a name="l00169"></a>00169 <span class="comment">// Other types</span>
<a name="l00170"></a>00170 <span class="comment">// ======================================================================</span>
<a name="l00171"></a>00171
<a name="l00175"></a>00175 <span class="keyword">template</span>&lt;&gt;
<a name="l00176"></a><a class="code" href="structTCLAP_1_1ArgTraits_3_01bool_01_4.html">00176</a> <span class="keyword">struct </span><a class="code" href="structTCLAP_1_1ArgTraits.html" title="Arg traits are used to get compile type specialization when parsing argument values...">ArgTraits</a>&lt;bool&gt; {
<a name="l00177"></a><a class="code" href="structTCLAP_1_1ArgTraits_3_01bool_01_4.html#a86efe13e981aaef96d37ec465a8409a7">00177</a> <span class="keyword">typedef</span> <a class="code" href="structTCLAP_1_1ValueLike.html" title="A value like argument value type is a value that can be set using operator&amp;gt;&amp;gt;...">ValueLike</a> <a class="code" href="structTCLAP_1_1ValueLike.html" title="A value like argument value type is a value that can be set using operator&amp;gt;&amp;gt;...">ValueCategory</a>;
<a name="l00178"></a>00178 };
<a name="l00179"></a>00179
<a name="l00180"></a>00180
<a name="l00184"></a>00184 <span class="preprocessor">#ifndef TCLAP_DONT_DECLARE_WCHAR_T_ARGTRAITS</span>
<a name="l00185"></a>00185 <span class="preprocessor"></span><span class="keyword">template</span>&lt;&gt;
<a name="l00186"></a><a class="code" href="structTCLAP_1_1ArgTraits_3_01wchar__t_01_4.html">00186</a> <span class="keyword">struct </span><a class="code" href="structTCLAP_1_1ArgTraits.html" title="Arg traits are used to get compile type specialization when parsing argument values...">ArgTraits</a>&lt;wchar_t&gt; {
<a name="l00187"></a><a class="code" href="structTCLAP_1_1ArgTraits_3_01wchar__t_01_4.html#a49a311297a394637af4d8d64eda7f442">00187</a> <span class="keyword">typedef</span> <a class="code" href="structTCLAP_1_1ValueLike.html" title="A value like argument value type is a value that can be set using operator&amp;gt;&amp;gt;...">ValueLike</a> <a class="code" href="structTCLAP_1_1ValueLike.html" title="A value like argument value type is a value that can be set using operator&amp;gt;&amp;gt;...">ValueCategory</a>;
<a name="l00188"></a>00188 };
<a name="l00189"></a>00189 <span class="preprocessor">#endif</span>
<a name="l00190"></a>00190 <span class="preprocessor"></span>
<a name="l00194"></a>00194 <span class="keyword">template</span>&lt;&gt;
<a name="l00195"></a><a class="code" href="structTCLAP_1_1ArgTraits_3_01std_1_1string_01_4.html">00195</a> <span class="keyword">struct </span><a class="code" href="structTCLAP_1_1ArgTraits.html" title="Arg traits are used to get compile type specialization when parsing argument values...">ArgTraits</a>&lt;std::string&gt; {
<a name="l00196"></a><a class="code" href="structTCLAP_1_1ArgTraits_3_01std_1_1string_01_4.html#a719adeb18786516dd4b2a16525cf4536">00196</a> <span class="keyword">typedef</span> <a class="code" href="structTCLAP_1_1StringLike.html" title="A string like argument value type is a value that can be set using operator=(string)...">StringLike</a> <a class="code" href="structTCLAP_1_1StringLike.html" title="A string like argument value type is a value that can be set using operator=(string)...">ValueCategory</a>;
<a name="l00197"></a>00197 };
<a name="l00198"></a>00198
<a name="l00199"></a>00199 <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;
<a name="l00200"></a><a class="code" href="namespaceTCLAP.html#a06cca5c0de2e5803a67c63cde60a2dfb">00200</a> <span class="keywordtype">void</span> <a class="code" href="namespaceTCLAP.html#a06cca5c0de2e5803a67c63cde60a2dfb">SetString</a>(T &amp;dst, <span class="keyword">const</span> std::string &amp;src)
<a name="l00201"></a>00201 {
<a name="l00202"></a>00202 dst = src;
<a name="l00203"></a>00203 }
<a name="l00204"></a>00204
<a name="l00205"></a>00205 } <span class="comment">// namespace</span>
<a name="l00206"></a>00206
<a name="l00207"></a>00207 <span class="preprocessor">#endif</span>
<a name="l00208"></a>00208 <span class="preprocessor"></span>
</pre></div></div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Sat Apr 16 15:34:24 2011 for tclap by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.0 </small></address>
</body>
</html>

View File

@ -0,0 +1,51 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>tclap: StdOutput.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.0 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
<li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="contents">
<h1>StdOutput.h File Reference</h1><code>#include &lt;string&gt;</code><br/>
<code>#include &lt;vector&gt;</code><br/>
<code>#include &lt;list&gt;</code><br/>
<code>#include &lt;iostream&gt;</code><br/>
<code>#include &lt;algorithm&gt;</code><br/>
<code>#include &lt;<a class="el" href="CmdLineInterface_8h_source.html">tclap/CmdLineInterface.h</a>&gt;</code><br/>
<code>#include &lt;<a class="el" href="CmdLineOutput_8h_source.html">tclap/CmdLineOutput.h</a>&gt;</code><br/>
<code>#include &lt;<a class="el" href="XorHandler_8h_source.html">tclap/XorHandler.h</a>&gt;</code><br/>
<code>#include &lt;<a class="el" href="Arg_8h_source.html">tclap/Arg.h</a>&gt;</code><br/>
<p><a href="StdOutput_8h_source.html">Go to the source code of this file.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Classes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTCLAP_1_1StdOutput.html">TCLAP::StdOutput</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">A class that isolates any output from the <a class="el" href="classTCLAP_1_1CmdLine.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLine</a> object so that it may be easily modified. <a href="classTCLAP_1_1StdOutput.html#_details">More...</a><br/></td></tr>
<tr><td colspan="2"><h2>Namespaces</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">namespace &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceTCLAP.html">TCLAP</a></td></tr>
</table>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Sat Apr 16 15:34:24 2011 for tclap by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.0 </small></address>
</body>
</html>

View File

@ -0,0 +1,287 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>tclap: StdOutput.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.0 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
<li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
</ul>
</div>
<h1>StdOutput.h</h1><a href="StdOutput_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// -*- Mode: c++; c-basic-offset: 4; tab-width: 4; -*-</span>
<a name="l00002"></a>00002
<a name="l00003"></a>00003 <span class="comment">/****************************************************************************** </span>
<a name="l00004"></a>00004 <span class="comment"> * </span>
<a name="l00005"></a>00005 <span class="comment"> * file: StdOutput.h</span>
<a name="l00006"></a>00006 <span class="comment"> * </span>
<a name="l00007"></a>00007 <span class="comment"> * Copyright (c) 2004, Michael E. Smoot</span>
<a name="l00008"></a>00008 <span class="comment"> * All rights reverved.</span>
<a name="l00009"></a>00009 <span class="comment"> * </span>
<a name="l00010"></a>00010 <span class="comment"> * See the file COPYING in the top directory of this distribution for</span>
<a name="l00011"></a>00011 <span class="comment"> * more information.</span>
<a name="l00012"></a>00012 <span class="comment"> * </span>
<a name="l00013"></a>00013 <span class="comment"> * THE SOFTWARE IS PROVIDED _AS IS_, WITHOUT WARRANTY OF ANY KIND, EXPRESS </span>
<a name="l00014"></a>00014 <span class="comment"> * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, </span>
<a name="l00015"></a>00015 <span class="comment"> * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL </span>
<a name="l00016"></a>00016 <span class="comment"> * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER </span>
<a name="l00017"></a>00017 <span class="comment"> * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING </span>
<a name="l00018"></a>00018 <span class="comment"> * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER </span>
<a name="l00019"></a>00019 <span class="comment"> * DEALINGS IN THE SOFTWARE. </span>
<a name="l00020"></a>00020 <span class="comment"> * </span>
<a name="l00021"></a>00021 <span class="comment"> *****************************************************************************/</span>
<a name="l00022"></a>00022
<a name="l00023"></a>00023 <span class="preprocessor">#ifndef TCLAP_STDCMDLINEOUTPUT_H</span>
<a name="l00024"></a>00024 <span class="preprocessor"></span><span class="preprocessor">#define TCLAP_STDCMDLINEOUTPUT_H</span>
<a name="l00025"></a>00025 <span class="preprocessor"></span>
<a name="l00026"></a>00026 <span class="preprocessor">#include &lt;string&gt;</span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;vector&gt;</span>
<a name="l00028"></a>00028 <span class="preprocessor">#include &lt;list&gt;</span>
<a name="l00029"></a>00029 <span class="preprocessor">#include &lt;iostream&gt;</span>
<a name="l00030"></a>00030 <span class="preprocessor">#include &lt;algorithm&gt;</span>
<a name="l00031"></a>00031
<a name="l00032"></a>00032 <span class="preprocessor">#include &lt;<a class="code" href="CmdLineInterface_8h.html">tclap/CmdLineInterface.h</a>&gt;</span>
<a name="l00033"></a>00033 <span class="preprocessor">#include &lt;<a class="code" href="CmdLineOutput_8h.html">tclap/CmdLineOutput.h</a>&gt;</span>
<a name="l00034"></a>00034 <span class="preprocessor">#include &lt;<a class="code" href="XorHandler_8h.html">tclap/XorHandler.h</a>&gt;</span>
<a name="l00035"></a>00035 <span class="preprocessor">#include &lt;<a class="code" href="Arg_8h.html">tclap/Arg.h</a>&gt;</span>
<a name="l00036"></a>00036
<a name="l00037"></a>00037 <span class="keyword">namespace </span>TCLAP {
<a name="l00038"></a>00038
<a name="l00043"></a><a class="code" href="classTCLAP_1_1StdOutput.html">00043</a> <span class="keyword">class </span><a class="code" href="classTCLAP_1_1StdOutput.html" title="A class that isolates any output from the CmdLine object so that it may be easily...">StdOutput</a> : <span class="keyword">public</span> <a class="code" href="classTCLAP_1_1CmdLineOutput.html" title="The interface that any output object must implement.">CmdLineOutput</a>
<a name="l00044"></a>00044 {
<a name="l00045"></a>00045
<a name="l00046"></a>00046 <span class="keyword">public</span>:
<a name="l00047"></a>00047
<a name="l00053"></a>00053 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1StdOutput.html#aeb10eb400e0ee45f2cde689bef606b49" title="Prints the usage to stdout.">usage</a>(<a class="code" href="classTCLAP_1_1CmdLineInterface.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLineInterface</a>&amp; c);
<a name="l00054"></a>00054
<a name="l00060"></a>00060 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1StdOutput.html#a768111a59af4753ac6e5ace3ec99482e" title="Prints the version to stdout.">version</a>(<a class="code" href="classTCLAP_1_1CmdLineInterface.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLineInterface</a>&amp; c);
<a name="l00061"></a>00061
<a name="l00068"></a>00068 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1StdOutput.html#a9afc267e012c3ac42c8b1afe01f98556" title="Prints (to stderr) an error message, short usage Can be overridden to produce alternative...">failure</a>(<a class="code" href="classTCLAP_1_1CmdLineInterface.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLineInterface</a>&amp; c,
<a name="l00069"></a>00069 <a class="code" href="classTCLAP_1_1ArgException.html" title="A simple class that defines and argument exception.">ArgException</a>&amp; e );
<a name="l00070"></a>00070
<a name="l00071"></a>00071 <span class="keyword">protected</span>:
<a name="l00072"></a>00072
<a name="l00078"></a>00078 <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1StdOutput.html#a60fa57587838d506d907f08800f2631c" title="Writes a brief usage message with short args.">_shortUsage</a>( <a class="code" href="classTCLAP_1_1CmdLineInterface.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLineInterface</a>&amp; c, std::ostream&amp; os ) <span class="keyword">const</span>;
<a name="l00079"></a>00079
<a name="l00086"></a>00086 <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1StdOutput.html#ace725aebd685c16f464d697e85e0327d" title="Writes a longer usage message with long and short args, provides descriptions and...">_longUsage</a>( <a class="code" href="classTCLAP_1_1CmdLineInterface.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLineInterface</a>&amp; c, std::ostream&amp; os ) <span class="keyword">const</span>;
<a name="l00087"></a>00087
<a name="l00099"></a>00099 <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1StdOutput.html#a38661be8895e07c442c2c3138b7444a2" title="This function inserts line breaks and indents long strings according the params input...">spacePrint</a>( std::ostream&amp; os,
<a name="l00100"></a>00100 <span class="keyword">const</span> std::string&amp; s,
<a name="l00101"></a>00101 <span class="keywordtype">int</span> maxWidth,
<a name="l00102"></a>00102 <span class="keywordtype">int</span> indentSpaces,
<a name="l00103"></a>00103 <span class="keywordtype">int</span> secondLineOffset ) <span class="keyword">const</span>;
<a name="l00104"></a>00104
<a name="l00105"></a>00105 };
<a name="l00106"></a>00106
<a name="l00107"></a>00107
<a name="l00108"></a><a class="code" href="classTCLAP_1_1StdOutput.html#a768111a59af4753ac6e5ace3ec99482e">00108</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1StdOutput.html#a768111a59af4753ac6e5ace3ec99482e" title="Prints the version to stdout.">StdOutput::version</a>(<a class="code" href="classTCLAP_1_1CmdLineInterface.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLineInterface</a>&amp; _cmd)
<a name="l00109"></a>00109 {
<a name="l00110"></a>00110 std::string progName = _cmd.<a class="code" href="classTCLAP_1_1CmdLineInterface.html#a1a5672df72a6b5021cd70b37c4dbd0a7" title="Returns the program name string.">getProgramName</a>();
<a name="l00111"></a>00111 std::string xversion = _cmd.<a class="code" href="classTCLAP_1_1CmdLineInterface.html#a0a552fa57212800dfb8aec84fb07b8bb" title="Returns the version string.">getVersion</a>();
<a name="l00112"></a>00112
<a name="l00113"></a>00113 std::cout &lt;&lt; std::endl &lt;&lt; progName &lt;&lt; <span class="stringliteral">&quot; version: &quot;</span>
<a name="l00114"></a>00114 &lt;&lt; xversion &lt;&lt; std::endl &lt;&lt; std::endl;
<a name="l00115"></a>00115 }
<a name="l00116"></a>00116
<a name="l00117"></a><a class="code" href="classTCLAP_1_1StdOutput.html#aeb10eb400e0ee45f2cde689bef606b49">00117</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1StdOutput.html#aeb10eb400e0ee45f2cde689bef606b49" title="Prints the usage to stdout.">StdOutput::usage</a>(<a class="code" href="classTCLAP_1_1CmdLineInterface.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLineInterface</a>&amp; _cmd )
<a name="l00118"></a>00118 {
<a name="l00119"></a>00119 std::cout &lt;&lt; std::endl &lt;&lt; <span class="stringliteral">&quot;USAGE: &quot;</span> &lt;&lt; std::endl &lt;&lt; std::endl;
<a name="l00120"></a>00120
<a name="l00121"></a>00121 <a class="code" href="classTCLAP_1_1StdOutput.html#a60fa57587838d506d907f08800f2631c" title="Writes a brief usage message with short args.">_shortUsage</a>( _cmd, std::cout );
<a name="l00122"></a>00122
<a name="l00123"></a>00123 std::cout &lt;&lt; std::endl &lt;&lt; std::endl &lt;&lt; <span class="stringliteral">&quot;Where: &quot;</span> &lt;&lt; std::endl &lt;&lt; std::endl;
<a name="l00124"></a>00124
<a name="l00125"></a>00125 <a class="code" href="classTCLAP_1_1StdOutput.html#ace725aebd685c16f464d697e85e0327d" title="Writes a longer usage message with long and short args, provides descriptions and...">_longUsage</a>( _cmd, std::cout );
<a name="l00126"></a>00126
<a name="l00127"></a>00127 std::cout &lt;&lt; std::endl;
<a name="l00128"></a>00128
<a name="l00129"></a>00129 }
<a name="l00130"></a>00130
<a name="l00131"></a><a class="code" href="classTCLAP_1_1StdOutput.html#a9afc267e012c3ac42c8b1afe01f98556">00131</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1StdOutput.html#a9afc267e012c3ac42c8b1afe01f98556" title="Prints (to stderr) an error message, short usage Can be overridden to produce alternative...">StdOutput::failure</a>( <a class="code" href="classTCLAP_1_1CmdLineInterface.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLineInterface</a>&amp; _cmd,
<a name="l00132"></a>00132 <a class="code" href="classTCLAP_1_1ArgException.html" title="A simple class that defines and argument exception.">ArgException</a>&amp; e )
<a name="l00133"></a>00133 {
<a name="l00134"></a>00134 std::string progName = _cmd.<a class="code" href="classTCLAP_1_1CmdLineInterface.html#a1a5672df72a6b5021cd70b37c4dbd0a7" title="Returns the program name string.">getProgramName</a>();
<a name="l00135"></a>00135
<a name="l00136"></a>00136 std::cerr &lt;&lt; <span class="stringliteral">&quot;PARSE ERROR: &quot;</span> &lt;&lt; e.<a class="code" href="classTCLAP_1_1ArgException.html#a18ffd1ad34c1799865f8e03df4ebdff1" title="Returns the argument id.">argId</a>() &lt;&lt; std::endl
<a name="l00137"></a>00137 &lt;&lt; <span class="stringliteral">&quot; &quot;</span> &lt;&lt; e.<a class="code" href="classTCLAP_1_1ArgException.html#a0656dab88a7129bc288821bacd653d08" title="Returns the error text.">error</a>() &lt;&lt; std::endl &lt;&lt; std::endl;
<a name="l00138"></a>00138
<a name="l00139"></a>00139 <span class="keywordflow">if</span> ( _cmd.<a class="code" href="classTCLAP_1_1CmdLineInterface.html#a441b06b764836a62083b163508210905" title="Indicates whether or not the help and version switches were created automatically...">hasHelpAndVersion</a>() )
<a name="l00140"></a>00140 {
<a name="l00141"></a>00141 std::cerr &lt;&lt; <span class="stringliteral">&quot;Brief USAGE: &quot;</span> &lt;&lt; std::endl;
<a name="l00142"></a>00142
<a name="l00143"></a>00143 <a class="code" href="classTCLAP_1_1StdOutput.html#a60fa57587838d506d907f08800f2631c" title="Writes a brief usage message with short args.">_shortUsage</a>( _cmd, std::cerr );
<a name="l00144"></a>00144
<a name="l00145"></a>00145 std::cerr &lt;&lt; std::endl &lt;&lt; <span class="stringliteral">&quot;For complete USAGE and HELP type: &quot;</span>
<a name="l00146"></a>00146 &lt;&lt; std::endl &lt;&lt; <span class="stringliteral">&quot; &quot;</span> &lt;&lt; progName &lt;&lt; <span class="stringliteral">&quot; --help&quot;</span>
<a name="l00147"></a>00147 &lt;&lt; std::endl &lt;&lt; std::endl;
<a name="l00148"></a>00148 }
<a name="l00149"></a>00149 <span class="keywordflow">else</span>
<a name="l00150"></a>00150 <a class="code" href="classTCLAP_1_1StdOutput.html#aeb10eb400e0ee45f2cde689bef606b49" title="Prints the usage to stdout.">usage</a>(_cmd);
<a name="l00151"></a>00151
<a name="l00152"></a>00152 <span class="keywordflow">throw</span> <a class="code" href="classTCLAP_1_1ExitException.html">ExitException</a>(1);
<a name="l00153"></a>00153 }
<a name="l00154"></a>00154
<a name="l00155"></a>00155 <span class="keyword">inline</span> <span class="keywordtype">void</span>
<a name="l00156"></a><a class="code" href="classTCLAP_1_1StdOutput.html#a60fa57587838d506d907f08800f2631c">00156</a> <a class="code" href="classTCLAP_1_1StdOutput.html#a60fa57587838d506d907f08800f2631c" title="Writes a brief usage message with short args.">StdOutput::_shortUsage</a>( <a class="code" href="classTCLAP_1_1CmdLineInterface.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLineInterface</a>&amp; _cmd,
<a name="l00157"></a>00157 std::ostream&amp; os )<span class="keyword"> const</span>
<a name="l00158"></a>00158 <span class="keyword"></span>{
<a name="l00159"></a>00159 std::list&lt;Arg*&gt; argList = _cmd.<a class="code" href="classTCLAP_1_1CmdLineInterface.html#a4de8d988f5a6f3007c4dfb0fc9dad476" title="Returns the argList.">getArgList</a>();
<a name="l00160"></a>00160 std::string progName = _cmd.<a class="code" href="classTCLAP_1_1CmdLineInterface.html#a1a5672df72a6b5021cd70b37c4dbd0a7" title="Returns the program name string.">getProgramName</a>();
<a name="l00161"></a>00161 <a class="code" href="classTCLAP_1_1XorHandler.html" title="This class handles lists of Arg&amp;#39;s that are to be XOR&amp;#39;d on the command line...">XorHandler</a> xorHandler = _cmd.<a class="code" href="classTCLAP_1_1CmdLineInterface.html#a11ce9c77a1111960741f05e343849e4e" title="Returns the XorHandler.">getXorHandler</a>();
<a name="l00162"></a>00162 std::vector&lt; std::vector&lt;Arg*&gt; &gt; xorList = xorHandler.<a class="code" href="classTCLAP_1_1XorHandler.html#a0e0d95c697d227cc51f82424b8530182">getXorList</a>();
<a name="l00163"></a>00163
<a name="l00164"></a>00164 std::string s = progName + <span class="stringliteral">&quot; &quot;</span>;
<a name="l00165"></a>00165
<a name="l00166"></a>00166 <span class="comment">// first the xor</span>
<a name="l00167"></a>00167 <span class="keywordflow">for</span> ( <span class="keywordtype">int</span> i = 0; <span class="keyword">static_cast&lt;</span><span class="keywordtype">unsigned</span> <span class="keywordtype">int</span><span class="keyword">&gt;</span>(i) &lt; xorList.size(); i++ )
<a name="l00168"></a>00168 {
<a name="l00169"></a>00169 s += <span class="stringliteral">&quot; {&quot;</span>;
<a name="l00170"></a>00170 <span class="keywordflow">for</span> ( <a class="code" href="namespaceTCLAP.html#a04213af1ffc3178ce5f771d21d5164a2" title="Typedef of an Arg vector iterator.">ArgVectorIterator</a> it = xorList[i].begin();
<a name="l00171"></a>00171 it != xorList[i].end(); it++ )
<a name="l00172"></a>00172 s += (*it)-&gt;shortID() + <span class="stringliteral">&quot;|&quot;</span>;
<a name="l00173"></a>00173
<a name="l00174"></a>00174 s[s.length()-1] = <span class="charliteral">&apos;}&apos;</span>;
<a name="l00175"></a>00175 }
<a name="l00176"></a>00176
<a name="l00177"></a>00177 <span class="comment">// then the rest</span>
<a name="l00178"></a>00178 <span class="keywordflow">for</span> (<a class="code" href="namespaceTCLAP.html#aa7d6a803e0690c3c8b1db57c145648c5" title="Typedef of an Arg list iterator.">ArgListIterator</a> it = argList.begin(); it != argList.end(); it++)
<a name="l00179"></a>00179 <span class="keywordflow">if</span> ( !xorHandler.<a class="code" href="classTCLAP_1_1XorHandler.html#a1a74fab4667cc591a1e3094c91bc942d" title="Simply checks whether the Arg is contained in one of the arg lists.">contains</a>( (*it) ) )
<a name="l00180"></a>00180 s += <span class="stringliteral">&quot; &quot;</span> + (*it)-&gt;shortID();
<a name="l00181"></a>00181
<a name="l00182"></a>00182 <span class="comment">// if the program name is too long, then adjust the second line offset </span>
<a name="l00183"></a>00183 <span class="keywordtype">int</span> secondLineOffset = <span class="keyword">static_cast&lt;</span><span class="keywordtype">int</span><span class="keyword">&gt;</span>(progName.length()) + 2;
<a name="l00184"></a>00184 <span class="keywordflow">if</span> ( secondLineOffset &gt; 75/2 )
<a name="l00185"></a>00185 secondLineOffset = <span class="keyword">static_cast&lt;</span><span class="keywordtype">int</span><span class="keyword">&gt;</span>(75/2);
<a name="l00186"></a>00186
<a name="l00187"></a>00187 <a class="code" href="classTCLAP_1_1StdOutput.html#a38661be8895e07c442c2c3138b7444a2" title="This function inserts line breaks and indents long strings according the params input...">spacePrint</a>( os, s, 75, 3, secondLineOffset );
<a name="l00188"></a>00188 }
<a name="l00189"></a>00189
<a name="l00190"></a>00190 <span class="keyword">inline</span> <span class="keywordtype">void</span>
<a name="l00191"></a><a class="code" href="classTCLAP_1_1StdOutput.html#ace725aebd685c16f464d697e85e0327d">00191</a> <a class="code" href="classTCLAP_1_1StdOutput.html#ace725aebd685c16f464d697e85e0327d" title="Writes a longer usage message with long and short args, provides descriptions and...">StdOutput::_longUsage</a>( <a class="code" href="classTCLAP_1_1CmdLineInterface.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLineInterface</a>&amp; _cmd,
<a name="l00192"></a>00192 std::ostream&amp; os )<span class="keyword"> const</span>
<a name="l00193"></a>00193 <span class="keyword"></span>{
<a name="l00194"></a>00194 std::list&lt;Arg*&gt; argList = _cmd.<a class="code" href="classTCLAP_1_1CmdLineInterface.html#a4de8d988f5a6f3007c4dfb0fc9dad476" title="Returns the argList.">getArgList</a>();
<a name="l00195"></a>00195 std::string message = _cmd.<a class="code" href="classTCLAP_1_1CmdLineInterface.html#a30175a2567f7ab78a2c6bbea9269a2fa" title="Returns the message string.">getMessage</a>();
<a name="l00196"></a>00196 <a class="code" href="classTCLAP_1_1XorHandler.html" title="This class handles lists of Arg&amp;#39;s that are to be XOR&amp;#39;d on the command line...">XorHandler</a> xorHandler = _cmd.<a class="code" href="classTCLAP_1_1CmdLineInterface.html#a11ce9c77a1111960741f05e343849e4e" title="Returns the XorHandler.">getXorHandler</a>();
<a name="l00197"></a>00197 std::vector&lt; std::vector&lt;Arg*&gt; &gt; xorList = xorHandler.<a class="code" href="classTCLAP_1_1XorHandler.html#a0e0d95c697d227cc51f82424b8530182">getXorList</a>();
<a name="l00198"></a>00198
<a name="l00199"></a>00199 <span class="comment">// first the xor </span>
<a name="l00200"></a>00200 <span class="keywordflow">for</span> ( <span class="keywordtype">int</span> i = 0; <span class="keyword">static_cast&lt;</span><span class="keywordtype">unsigned</span> <span class="keywordtype">int</span><span class="keyword">&gt;</span>(i) &lt; xorList.size(); i++ )
<a name="l00201"></a>00201 {
<a name="l00202"></a>00202 <span class="keywordflow">for</span> ( <a class="code" href="namespaceTCLAP.html#a04213af1ffc3178ce5f771d21d5164a2" title="Typedef of an Arg vector iterator.">ArgVectorIterator</a> it = xorList[i].begin();
<a name="l00203"></a>00203 it != xorList[i].end();
<a name="l00204"></a>00204 it++ )
<a name="l00205"></a>00205 {
<a name="l00206"></a>00206 <a class="code" href="classTCLAP_1_1StdOutput.html#a38661be8895e07c442c2c3138b7444a2" title="This function inserts line breaks and indents long strings according the params input...">spacePrint</a>( os, (*it)-&gt;longID(), 75, 3, 3 );
<a name="l00207"></a>00207 <a class="code" href="classTCLAP_1_1StdOutput.html#a38661be8895e07c442c2c3138b7444a2" title="This function inserts line breaks and indents long strings according the params input...">spacePrint</a>( os, (*it)-&gt;getDescription(), 75, 5, 0 );
<a name="l00208"></a>00208
<a name="l00209"></a>00209 <span class="keywordflow">if</span> ( it+1 != xorList[i].end() )
<a name="l00210"></a>00210 <a class="code" href="classTCLAP_1_1StdOutput.html#a38661be8895e07c442c2c3138b7444a2" title="This function inserts line breaks and indents long strings according the params input...">spacePrint</a>(os, <span class="stringliteral">&quot;-- OR --&quot;</span>, 75, 9, 0);
<a name="l00211"></a>00211 }
<a name="l00212"></a>00212 os &lt;&lt; std::endl &lt;&lt; std::endl;
<a name="l00213"></a>00213 }
<a name="l00214"></a>00214
<a name="l00215"></a>00215 <span class="comment">// then the rest</span>
<a name="l00216"></a>00216 <span class="keywordflow">for</span> (<a class="code" href="namespaceTCLAP.html#aa7d6a803e0690c3c8b1db57c145648c5" title="Typedef of an Arg list iterator.">ArgListIterator</a> it = argList.begin(); it != argList.end(); it++)
<a name="l00217"></a>00217 <span class="keywordflow">if</span> ( !xorHandler.<a class="code" href="classTCLAP_1_1XorHandler.html#a1a74fab4667cc591a1e3094c91bc942d" title="Simply checks whether the Arg is contained in one of the arg lists.">contains</a>( (*it) ) )
<a name="l00218"></a>00218 {
<a name="l00219"></a>00219 <a class="code" href="classTCLAP_1_1StdOutput.html#a38661be8895e07c442c2c3138b7444a2" title="This function inserts line breaks and indents long strings according the params input...">spacePrint</a>( os, (*it)-&gt;longID(), 75, 3, 3 );
<a name="l00220"></a>00220 <a class="code" href="classTCLAP_1_1StdOutput.html#a38661be8895e07c442c2c3138b7444a2" title="This function inserts line breaks and indents long strings according the params input...">spacePrint</a>( os, (*it)-&gt;getDescription(), 75, 5, 0 );
<a name="l00221"></a>00221 os &lt;&lt; std::endl;
<a name="l00222"></a>00222 }
<a name="l00223"></a>00223
<a name="l00224"></a>00224 os &lt;&lt; std::endl;
<a name="l00225"></a>00225
<a name="l00226"></a>00226 <a class="code" href="classTCLAP_1_1StdOutput.html#a38661be8895e07c442c2c3138b7444a2" title="This function inserts line breaks and indents long strings according the params input...">spacePrint</a>( os, message, 75, 3, 0 );
<a name="l00227"></a>00227 }
<a name="l00228"></a>00228
<a name="l00229"></a><a class="code" href="classTCLAP_1_1StdOutput.html#a38661be8895e07c442c2c3138b7444a2">00229</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1StdOutput.html#a38661be8895e07c442c2c3138b7444a2" title="This function inserts line breaks and indents long strings according the params input...">StdOutput::spacePrint</a>( std::ostream&amp; os,
<a name="l00230"></a>00230 <span class="keyword">const</span> std::string&amp; s,
<a name="l00231"></a>00231 <span class="keywordtype">int</span> maxWidth,
<a name="l00232"></a>00232 <span class="keywordtype">int</span> indentSpaces,
<a name="l00233"></a>00233 <span class="keywordtype">int</span> secondLineOffset )<span class="keyword"> const</span>
<a name="l00234"></a>00234 <span class="keyword"></span>{
<a name="l00235"></a>00235 <span class="keywordtype">int</span> len = <span class="keyword">static_cast&lt;</span><span class="keywordtype">int</span><span class="keyword">&gt;</span>(s.length());
<a name="l00236"></a>00236
<a name="l00237"></a>00237 <span class="keywordflow">if</span> ( (len + indentSpaces &gt; maxWidth) &amp;&amp; maxWidth &gt; 0 )
<a name="l00238"></a>00238 {
<a name="l00239"></a>00239 <span class="keywordtype">int</span> allowedLen = maxWidth - indentSpaces;
<a name="l00240"></a>00240 <span class="keywordtype">int</span> start = 0;
<a name="l00241"></a>00241 <span class="keywordflow">while</span> ( start &lt; len )
<a name="l00242"></a>00242 {
<a name="l00243"></a>00243 <span class="comment">// find the substring length</span>
<a name="l00244"></a>00244 <span class="comment">// int stringLen = std::min&lt;int&gt;( len - start, allowedLen );</span>
<a name="l00245"></a>00245 <span class="comment">// doing it this way to support a VisualC++ 2005 bug </span>
<a name="l00246"></a>00246 <span class="keyword">using namespace </span>std;
<a name="l00247"></a>00247 <span class="keywordtype">int</span> stringLen = min&lt;int&gt;( len - start, allowedLen );
<a name="l00248"></a>00248
<a name="l00249"></a>00249 <span class="comment">// trim the length so it doesn&apos;t end in middle of a word</span>
<a name="l00250"></a>00250 <span class="keywordflow">if</span> ( stringLen == allowedLen )
<a name="l00251"></a>00251 <span class="keywordflow">while</span> ( stringLen &gt;= 0 &amp;&amp;
<a name="l00252"></a>00252 s[stringLen+start] != <span class="charliteral">&apos; &apos;</span> &amp;&amp;
<a name="l00253"></a>00253 s[stringLen+start] != <span class="charliteral">&apos;,&apos;</span> &amp;&amp;
<a name="l00254"></a>00254 s[stringLen+start] != <span class="charliteral">&apos;|&apos;</span> )
<a name="l00255"></a>00255 stringLen--;
<a name="l00256"></a>00256
<a name="l00257"></a>00257 <span class="comment">// ok, the word is longer than the line, so just split </span>
<a name="l00258"></a>00258 <span class="comment">// wherever the line ends</span>
<a name="l00259"></a>00259 <span class="keywordflow">if</span> ( stringLen &lt;= 0 )
<a name="l00260"></a>00260 stringLen = allowedLen;
<a name="l00261"></a>00261
<a name="l00262"></a>00262 <span class="comment">// check for newlines</span>
<a name="l00263"></a>00263 <span class="keywordflow">for</span> ( <span class="keywordtype">int</span> i = 0; i &lt; stringLen; i++ )
<a name="l00264"></a>00264 <span class="keywordflow">if</span> ( s[start+i] == <span class="charliteral">&apos;\n&apos;</span> )
<a name="l00265"></a>00265 stringLen = i+1;
<a name="l00266"></a>00266
<a name="l00267"></a>00267 <span class="comment">// print the indent </span>
<a name="l00268"></a>00268 <span class="keywordflow">for</span> ( <span class="keywordtype">int</span> i = 0; i &lt; indentSpaces; i++ )
<a name="l00269"></a>00269 os &lt;&lt; <span class="stringliteral">&quot; &quot;</span>;
<a name="l00270"></a>00270
<a name="l00271"></a>00271 <span class="keywordflow">if</span> ( start == 0 )
<a name="l00272"></a>00272 {
<a name="l00273"></a>00273 <span class="comment">// handle second line offsets</span>
<a name="l00274"></a>00274 indentSpaces += secondLineOffset;
<a name="l00275"></a>00275
<a name="l00276"></a>00276 <span class="comment">// adjust allowed len</span>
<a name="l00277"></a>00277 allowedLen -= secondLineOffset;
<a name="l00278"></a>00278 }
<a name="l00279"></a>00279
<a name="l00280"></a>00280 os &lt;&lt; s.substr(start,stringLen) &lt;&lt; std::endl;
<a name="l00281"></a>00281
<a name="l00282"></a>00282 <span class="comment">// so we don&apos;t start a line with a space</span>
<a name="l00283"></a>00283 <span class="keywordflow">while</span> ( s[stringLen+start] == <span class="charliteral">&apos; &apos;</span> &amp;&amp; start &lt; len )
<a name="l00284"></a>00284 start++;
<a name="l00285"></a>00285
<a name="l00286"></a>00286 start += stringLen;
<a name="l00287"></a>00287 }
<a name="l00288"></a>00288 }
<a name="l00289"></a>00289 <span class="keywordflow">else</span>
<a name="l00290"></a>00290 {
<a name="l00291"></a>00291 <span class="keywordflow">for</span> ( <span class="keywordtype">int</span> i = 0; i &lt; indentSpaces; i++ )
<a name="l00292"></a>00292 os &lt;&lt; <span class="stringliteral">&quot; &quot;</span>;
<a name="l00293"></a>00293 os &lt;&lt; s &lt;&lt; std::endl;
<a name="l00294"></a>00294 }
<a name="l00295"></a>00295 }
<a name="l00296"></a>00296
<a name="l00297"></a>00297 } <span class="comment">//namespace TCLAP</span>
<a name="l00298"></a>00298 <span class="preprocessor">#endif </span>
</pre></div></div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Sat Apr 16 15:34:24 2011 for tclap by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.0 </small></address>
</body>
</html>

View File

@ -0,0 +1,45 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>tclap: SwitchArg.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.0 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
<li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="contents">
<h1>SwitchArg.h File Reference</h1><code>#include &lt;string&gt;</code><br/>
<code>#include &lt;vector&gt;</code><br/>
<code>#include &lt;<a class="el" href="Arg_8h_source.html">tclap/Arg.h</a>&gt;</code><br/>
<p><a href="SwitchArg_8h_source.html">Go to the source code of this file.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Classes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTCLAP_1_1SwitchArg.html">TCLAP::SwitchArg</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">A simple switch argument. <a href="classTCLAP_1_1SwitchArg.html#_details">More...</a><br/></td></tr>
<tr><td colspan="2"><h2>Namespaces</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">namespace &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceTCLAP.html">TCLAP</a></td></tr>
</table>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Sat Apr 16 15:34:24 2011 for tclap by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.0 </small></address>
</body>
</html>

View File

@ -0,0 +1,234 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>tclap: SwitchArg.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.0 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
<li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
</ul>
</div>
<h1>SwitchArg.h</h1><a href="SwitchArg_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
<a name="l00002"></a>00002 <span class="comment">/****************************************************************************** </span>
<a name="l00003"></a>00003 <span class="comment"> * </span>
<a name="l00004"></a>00004 <span class="comment"> * file: SwitchArg.h</span>
<a name="l00005"></a>00005 <span class="comment"> * </span>
<a name="l00006"></a>00006 <span class="comment"> * Copyright (c) 2003, Michael E. Smoot .</span>
<a name="l00007"></a>00007 <span class="comment"> * Copyright (c) 2004, Michael E. Smoot, Daniel Aarno.</span>
<a name="l00008"></a>00008 <span class="comment"> * All rights reverved.</span>
<a name="l00009"></a>00009 <span class="comment"> * </span>
<a name="l00010"></a>00010 <span class="comment"> * See the file COPYING in the top directory of this distribution for</span>
<a name="l00011"></a>00011 <span class="comment"> * more information.</span>
<a name="l00012"></a>00012 <span class="comment"> * </span>
<a name="l00013"></a>00013 <span class="comment"> * THE SOFTWARE IS PROVIDED _AS IS_, WITHOUT WARRANTY OF ANY KIND, EXPRESS </span>
<a name="l00014"></a>00014 <span class="comment"> * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, </span>
<a name="l00015"></a>00015 <span class="comment"> * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL </span>
<a name="l00016"></a>00016 <span class="comment"> * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER </span>
<a name="l00017"></a>00017 <span class="comment"> * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING </span>
<a name="l00018"></a>00018 <span class="comment"> * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER </span>
<a name="l00019"></a>00019 <span class="comment"> * DEALINGS IN THE SOFTWARE. </span>
<a name="l00020"></a>00020 <span class="comment"> * </span>
<a name="l00021"></a>00021 <span class="comment"> *****************************************************************************/</span>
<a name="l00022"></a>00022
<a name="l00023"></a>00023
<a name="l00024"></a>00024 <span class="preprocessor">#ifndef TCLAP_SWITCH_ARG_H</span>
<a name="l00025"></a>00025 <span class="preprocessor"></span><span class="preprocessor">#define TCLAP_SWITCH_ARG_H</span>
<a name="l00026"></a>00026 <span class="preprocessor"></span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;string&gt;</span>
<a name="l00028"></a>00028 <span class="preprocessor">#include &lt;vector&gt;</span>
<a name="l00029"></a>00029
<a name="l00030"></a>00030 <span class="preprocessor">#include &lt;<a class="code" href="Arg_8h.html">tclap/Arg.h</a>&gt;</span>
<a name="l00031"></a>00031
<a name="l00032"></a>00032 <span class="keyword">namespace </span>TCLAP {
<a name="l00033"></a>00033
<a name="l00039"></a><a class="code" href="classTCLAP_1_1SwitchArg.html">00039</a> <span class="keyword">class </span><a class="code" href="classTCLAP_1_1SwitchArg.html" title="A simple switch argument.">SwitchArg</a> : <span class="keyword">public</span> <a class="code" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a>
<a name="l00040"></a>00040 {
<a name="l00041"></a>00041 <span class="keyword">protected</span>:
<a name="l00042"></a>00042
<a name="l00046"></a><a class="code" href="classTCLAP_1_1SwitchArg.html#a0389ecebecc504d9756703d46e8cf3ca">00046</a> <span class="keywordtype">bool</span> <a class="code" href="classTCLAP_1_1SwitchArg.html#a0389ecebecc504d9756703d46e8cf3ca" title="The value of the switch.">_value</a>;
<a name="l00047"></a>00047
<a name="l00052"></a><a class="code" href="classTCLAP_1_1SwitchArg.html#ae25a99eb06fc2ee75a3b98edba1d5d8d">00052</a> <span class="keywordtype">bool</span> <a class="code" href="classTCLAP_1_1SwitchArg.html#ae25a99eb06fc2ee75a3b98edba1d5d8d" title="Used to support the reset() method so that ValueArg can be reset to their constructed...">_default</a>;
<a name="l00053"></a>00053
<a name="l00054"></a>00054 <span class="keyword">public</span>:
<a name="l00055"></a>00055
<a name="l00068"></a>00068 <a class="code" href="classTCLAP_1_1SwitchArg.html#a3895b036fa2d36e4fcfa41dfcdb298c1" title="SwitchArg constructor.">SwitchArg</a>(<span class="keyword">const</span> std::string&amp; flag,
<a name="l00069"></a>00069 <span class="keyword">const</span> std::string&amp; name,
<a name="l00070"></a>00070 <span class="keyword">const</span> std::string&amp; desc,
<a name="l00071"></a>00071 <span class="keywordtype">bool</span> def = <span class="keyword">false</span>,
<a name="l00072"></a>00072 <a class="code" href="classTCLAP_1_1Visitor.html" title="A base class that defines the interface for visitors.">Visitor</a>* v = NULL);
<a name="l00073"></a>00073
<a name="l00074"></a>00074
<a name="l00088"></a>00088 <a class="code" href="classTCLAP_1_1SwitchArg.html#a3895b036fa2d36e4fcfa41dfcdb298c1" title="SwitchArg constructor.">SwitchArg</a>(<span class="keyword">const</span> std::string&amp; flag,
<a name="l00089"></a>00089 <span class="keyword">const</span> std::string&amp; name,
<a name="l00090"></a>00090 <span class="keyword">const</span> std::string&amp; desc,
<a name="l00091"></a>00091 <a class="code" href="classTCLAP_1_1CmdLineInterface.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLineInterface</a>&amp; parser,
<a name="l00092"></a>00092 <span class="keywordtype">bool</span> def = <span class="keyword">false</span>,
<a name="l00093"></a>00093 <a class="code" href="classTCLAP_1_1Visitor.html" title="A base class that defines the interface for visitors.">Visitor</a>* v = NULL);
<a name="l00094"></a>00094
<a name="l00095"></a>00095
<a name="l00104"></a>00104 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classTCLAP_1_1SwitchArg.html#a624f98df6c4907efec95ffc353e9d08c" title="Handles the processing of the argument.">processArg</a>(<span class="keywordtype">int</span>* i, std::vector&lt;std::string&gt;&amp; args);
<a name="l00105"></a>00105
<a name="l00110"></a>00110 <span class="keywordtype">bool</span> <a class="code" href="classTCLAP_1_1SwitchArg.html#af5fbd44d462539941b09e960034d692c" title="Checks a string to see if any of the chars in the string match the flag for this...">combinedSwitchesMatch</a>(std::string&amp; combined);
<a name="l00111"></a>00111
<a name="l00115"></a>00115 <span class="keywordtype">bool</span> <a class="code" href="classTCLAP_1_1SwitchArg.html#aed1bc8a81a9bda4013cfcf407ccc7716" title="Returns bool, whether or not the switch has been set.">getValue</a>();
<a name="l00116"></a>00116
<a name="l00117"></a>00117 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1SwitchArg.html#af8561d903ec3c11f5f2175e6db179d9c" title="Clears the Arg object and allows it to be reused by new command lines.">reset</a>();
<a name="l00118"></a>00118
<a name="l00119"></a>00119 <span class="keyword">private</span>:
<a name="l00124"></a>00124 <span class="keywordtype">bool</span> lastCombined(std::string&amp; combined);
<a name="l00125"></a>00125
<a name="l00129"></a>00129 <span class="keywordtype">void</span> commonProcessing();
<a name="l00130"></a>00130 };
<a name="l00131"></a>00131
<a name="l00133"></a>00133 <span class="comment">//BEGIN SwitchArg.cpp</span>
<a name="l00135"></a><a class="code" href="classTCLAP_1_1SwitchArg.html#a3895b036fa2d36e4fcfa41dfcdb298c1">00135</a> <span class="comment"></span><span class="keyword">inline</span> <a class="code" href="classTCLAP_1_1SwitchArg.html#a3895b036fa2d36e4fcfa41dfcdb298c1" title="SwitchArg constructor.">SwitchArg::SwitchArg</a>(<span class="keyword">const</span> std::string&amp; flag,
<a name="l00136"></a>00136 <span class="keyword">const</span> std::string&amp; name,
<a name="l00137"></a>00137 <span class="keyword">const</span> std::string&amp; desc,
<a name="l00138"></a>00138 <span class="keywordtype">bool</span> default_val,
<a name="l00139"></a>00139 <a class="code" href="classTCLAP_1_1Visitor.html" title="A base class that defines the interface for visitors.">Visitor</a>* v )
<a name="l00140"></a>00140 : <a class="code" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a>(flag, name, desc, false, false, v),
<a name="l00141"></a>00141 _value( default_val ),
<a name="l00142"></a>00142 _default( default_val )
<a name="l00143"></a>00143 { }
<a name="l00144"></a>00144
<a name="l00145"></a><a class="code" href="classTCLAP_1_1SwitchArg.html#af7e9628155772af0686f6a2114dfe78b">00145</a> <span class="keyword">inline</span> <a class="code" href="classTCLAP_1_1SwitchArg.html#a3895b036fa2d36e4fcfa41dfcdb298c1" title="SwitchArg constructor.">SwitchArg::SwitchArg</a>(<span class="keyword">const</span> std::string&amp; flag,
<a name="l00146"></a>00146 <span class="keyword">const</span> std::string&amp; name,
<a name="l00147"></a>00147 <span class="keyword">const</span> std::string&amp; desc,
<a name="l00148"></a>00148 <a class="code" href="classTCLAP_1_1CmdLineInterface.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLineInterface</a>&amp; parser,
<a name="l00149"></a>00149 <span class="keywordtype">bool</span> default_val,
<a name="l00150"></a>00150 <a class="code" href="classTCLAP_1_1Visitor.html" title="A base class that defines the interface for visitors.">Visitor</a>* v )
<a name="l00151"></a>00151 : <a class="code" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a>(flag, name, desc, false, false, v),
<a name="l00152"></a>00152 _value( default_val ),
<a name="l00153"></a>00153 _default(default_val)
<a name="l00154"></a>00154 {
<a name="l00155"></a>00155 parser.<a class="code" href="classTCLAP_1_1CmdLineInterface.html#a13b29ab754c030185e58f779dc355631" title="Adds an argument to the list of arguments to be parsed.">add</a>( <span class="keyword">this</span> );
<a name="l00156"></a>00156 }
<a name="l00157"></a>00157
<a name="l00158"></a><a class="code" href="classTCLAP_1_1SwitchArg.html#aed1bc8a81a9bda4013cfcf407ccc7716">00158</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classTCLAP_1_1SwitchArg.html#aed1bc8a81a9bda4013cfcf407ccc7716" title="Returns bool, whether or not the switch has been set.">SwitchArg::getValue</a>() { <span class="keywordflow">return</span> <a class="code" href="classTCLAP_1_1SwitchArg.html#a0389ecebecc504d9756703d46e8cf3ca" title="The value of the switch.">_value</a>; }
<a name="l00159"></a>00159
<a name="l00160"></a>00160 <span class="keyword">inline</span> <span class="keywordtype">bool</span> SwitchArg::lastCombined(std::string&amp; combinedSwitches )
<a name="l00161"></a>00161 {
<a name="l00162"></a>00162 <span class="keywordflow">for</span> ( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 1; i &lt; combinedSwitches.length(); i++ )
<a name="l00163"></a>00163 <span class="keywordflow">if</span> ( combinedSwitches[i] != <a class="code" href="classTCLAP_1_1Arg.html#a0abd38f46dbf7d267078134a4817fbb2" title="The char used as a place holder when SwitchArgs are combined.">Arg::blankChar</a>() )
<a name="l00164"></a>00164 <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00165"></a>00165
<a name="l00166"></a>00166 <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00167"></a>00167 }
<a name="l00168"></a>00168
<a name="l00169"></a><a class="code" href="classTCLAP_1_1SwitchArg.html#af5fbd44d462539941b09e960034d692c">00169</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classTCLAP_1_1SwitchArg.html#af5fbd44d462539941b09e960034d692c" title="Checks a string to see if any of the chars in the string match the flag for this...">SwitchArg::combinedSwitchesMatch</a>(std::string&amp; combinedSwitches )
<a name="l00170"></a>00170 {
<a name="l00171"></a>00171 <span class="comment">// make sure this is actually a combined switch</span>
<a name="l00172"></a>00172 <span class="keywordflow">if</span> ( combinedSwitches.length() &gt; 0 &amp;&amp;
<a name="l00173"></a>00173 combinedSwitches[0] != <a class="code" href="classTCLAP_1_1Arg.html#af8e739295b0f75028e7bff6d670d97a1">Arg::flagStartString</a>()[0] )
<a name="l00174"></a>00174 <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00175"></a>00175
<a name="l00176"></a>00176 <span class="comment">// make sure it isn&apos;t a long name </span>
<a name="l00177"></a>00177 <span class="keywordflow">if</span> ( combinedSwitches.substr( 0, <a class="code" href="classTCLAP_1_1Arg.html#a1df2134870528b80f9f35347fef6fd14">Arg::nameStartString</a>().length() ) ==
<a name="l00178"></a>00178 <a class="code" href="classTCLAP_1_1Arg.html#a1df2134870528b80f9f35347fef6fd14">Arg::nameStartString</a>() )
<a name="l00179"></a>00179 <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00180"></a>00180
<a name="l00181"></a>00181 <span class="comment">// make sure the delimiter isn&apos;t in the string </span>
<a name="l00182"></a>00182 <span class="keywordflow">if</span> ( combinedSwitches.find_first_of( <a class="code" href="classTCLAP_1_1Arg.html#aadef6ca7e40f5b3d3fd03186976aea7e" title="The delimiter that separates an argument flag/name from the value.">Arg::delimiter</a>() ) != std::string::npos )
<a name="l00183"></a>00183 <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00184"></a>00184
<a name="l00185"></a>00185 <span class="comment">// ok, we&apos;re not specifying a ValueArg, so we know that we have</span>
<a name="l00186"></a>00186 <span class="comment">// a combined switch list. </span>
<a name="l00187"></a>00187 <span class="keywordflow">for</span> ( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 1; i &lt; combinedSwitches.length(); i++ )
<a name="l00188"></a>00188 <span class="keywordflow">if</span> ( <a class="code" href="classTCLAP_1_1Arg.html#ae68407a0a8223023ad0ae3b9dc7986f5" title="The single char flag used to identify the argument.">_flag</a>.length() &gt; 0 &amp;&amp;
<a name="l00189"></a>00189 combinedSwitches[i] == <a class="code" href="classTCLAP_1_1Arg.html#ae68407a0a8223023ad0ae3b9dc7986f5" title="The single char flag used to identify the argument.">_flag</a>[0] &amp;&amp;
<a name="l00190"></a>00190 <a class="code" href="classTCLAP_1_1Arg.html#ae68407a0a8223023ad0ae3b9dc7986f5" title="The single char flag used to identify the argument.">_flag</a>[0] != <a class="code" href="classTCLAP_1_1Arg.html#af8e739295b0f75028e7bff6d670d97a1">Arg::flagStartString</a>()[0] )
<a name="l00191"></a>00191 {
<a name="l00192"></a>00192 <span class="comment">// update the combined switches so this one is no longer present</span>
<a name="l00193"></a>00193 <span class="comment">// this is necessary so that no unlabeled args are matched</span>
<a name="l00194"></a>00194 <span class="comment">// later in the processing.</span>
<a name="l00195"></a>00195 <span class="comment">//combinedSwitches.erase(i,1);</span>
<a name="l00196"></a>00196 combinedSwitches[i] = <a class="code" href="classTCLAP_1_1Arg.html#a0abd38f46dbf7d267078134a4817fbb2" title="The char used as a place holder when SwitchArgs are combined.">Arg::blankChar</a>();
<a name="l00197"></a>00197 <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00198"></a>00198 }
<a name="l00199"></a>00199
<a name="l00200"></a>00200 <span class="comment">// none of the switches passed in the list match. </span>
<a name="l00201"></a>00201 <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00202"></a>00202 }
<a name="l00203"></a>00203
<a name="l00204"></a>00204 <span class="keyword">inline</span> <span class="keywordtype">void</span> SwitchArg::commonProcessing()
<a name="l00205"></a>00205 {
<a name="l00206"></a>00206 <span class="keywordflow">if</span> ( <a class="code" href="classTCLAP_1_1Arg.html#ab413bd1d8a7ecf3c89672ee23ef791ba" title="Indicates that the arg was set as part of an XOR and not on the command line.">_xorSet</a> )
<a name="l00207"></a>00207 <span class="keywordflow">throw</span>(<a class="code" href="classTCLAP_1_1CmdLineParseException.html" title="Thrown from CmdLine when the arguments on the command line are not properly specified...">CmdLineParseException</a>(
<a name="l00208"></a>00208 <span class="stringliteral">&quot;Mutually exclusive argument already set!&quot;</span>, <a class="code" href="classTCLAP_1_1Arg.html#ac98a357568c21f0eb6ca2220b8a3d4a2" title="Returns a simple string representation of the argument.">toString</a>()));
<a name="l00209"></a>00209
<a name="l00210"></a>00210 <span class="keywordflow">if</span> ( <a class="code" href="classTCLAP_1_1Arg.html#a829e32129857d2683e5791a5df1208ec" title="Indicates whether the argument has been set.">_alreadySet</a> )
<a name="l00211"></a>00211 <span class="keywordflow">throw</span>(<a class="code" href="classTCLAP_1_1CmdLineParseException.html" title="Thrown from CmdLine when the arguments on the command line are not properly specified...">CmdLineParseException</a>(<span class="stringliteral">&quot;Argument already set!&quot;</span>, <a class="code" href="classTCLAP_1_1Arg.html#ac98a357568c21f0eb6ca2220b8a3d4a2" title="Returns a simple string representation of the argument.">toString</a>()));
<a name="l00212"></a>00212
<a name="l00213"></a>00213 <a class="code" href="classTCLAP_1_1Arg.html#a829e32129857d2683e5791a5df1208ec" title="Indicates whether the argument has been set.">_alreadySet</a> = <span class="keyword">true</span>;
<a name="l00214"></a>00214
<a name="l00215"></a>00215 <span class="keywordflow">if</span> ( <a class="code" href="classTCLAP_1_1SwitchArg.html#a0389ecebecc504d9756703d46e8cf3ca" title="The value of the switch.">_value</a> == <span class="keyword">true</span> )
<a name="l00216"></a>00216 <a class="code" href="classTCLAP_1_1SwitchArg.html#a0389ecebecc504d9756703d46e8cf3ca" title="The value of the switch.">_value</a> = <span class="keyword">false</span>;
<a name="l00217"></a>00217 <span class="keywordflow">else</span>
<a name="l00218"></a>00218 <a class="code" href="classTCLAP_1_1SwitchArg.html#a0389ecebecc504d9756703d46e8cf3ca" title="The value of the switch.">_value</a> = <span class="keyword">true</span>;
<a name="l00219"></a>00219
<a name="l00220"></a>00220 <a class="code" href="classTCLAP_1_1Arg.html#aa963d0d4c8cb297e1f4cf74143bf6d1b" title="Performs the special handling described by the Vistitor.">_checkWithVisitor</a>();
<a name="l00221"></a>00221 }
<a name="l00222"></a>00222
<a name="l00223"></a><a class="code" href="classTCLAP_1_1SwitchArg.html#a624f98df6c4907efec95ffc353e9d08c">00223</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classTCLAP_1_1SwitchArg.html#a624f98df6c4907efec95ffc353e9d08c" title="Handles the processing of the argument.">SwitchArg::processArg</a>(<span class="keywordtype">int</span> *i, std::vector&lt;std::string&gt;&amp; args)
<a name="l00224"></a>00224 {
<a name="l00225"></a>00225 <span class="keywordflow">if</span> ( <a class="code" href="classTCLAP_1_1Arg.html#a9832bb7564f4ab472bd51b7b1bbc683f" title="Whether this argument can be ignored, if desired.">_ignoreable</a> &amp;&amp; <a class="code" href="classTCLAP_1_1Arg.html#a4d412155b8f9b4956e64e91c48e55a3b" title="Whether to ignore the rest.">Arg::ignoreRest</a>() )
<a name="l00226"></a>00226 <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00227"></a>00227
<a name="l00228"></a>00228 <span class="comment">// if the whole string matches the flag or name string</span>
<a name="l00229"></a>00229 <span class="keywordflow">if</span> ( <a class="code" href="classTCLAP_1_1Arg.html#aac37b1b734b477e5d16f2037dba9c125" title="A method that tests whether a string matches this argument.">argMatches</a>( args[*i] ) )
<a name="l00230"></a>00230 {
<a name="l00231"></a>00231 commonProcessing();
<a name="l00232"></a>00232
<a name="l00233"></a>00233 <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00234"></a>00234 }
<a name="l00235"></a>00235 <span class="comment">// if a substring matches the flag as part of a combination</span>
<a name="l00236"></a>00236 <span class="keywordflow">else</span> <span class="keywordflow">if</span> ( <a class="code" href="classTCLAP_1_1SwitchArg.html#af5fbd44d462539941b09e960034d692c" title="Checks a string to see if any of the chars in the string match the flag for this...">combinedSwitchesMatch</a>( args[*i] ) )
<a name="l00237"></a>00237 {
<a name="l00238"></a>00238 <span class="comment">// check again to ensure we don&apos;t misinterpret </span>
<a name="l00239"></a>00239 <span class="comment">// this as a MultiSwitchArg </span>
<a name="l00240"></a>00240 <span class="keywordflow">if</span> ( <a class="code" href="classTCLAP_1_1SwitchArg.html#af5fbd44d462539941b09e960034d692c" title="Checks a string to see if any of the chars in the string match the flag for this...">combinedSwitchesMatch</a>( args[*i] ) )
<a name="l00241"></a>00241 <span class="keywordflow">throw</span>(<a class="code" href="classTCLAP_1_1CmdLineParseException.html" title="Thrown from CmdLine when the arguments on the command line are not properly specified...">CmdLineParseException</a>(<span class="stringliteral">&quot;Argument already set!&quot;</span>,
<a name="l00242"></a>00242 <a class="code" href="classTCLAP_1_1Arg.html#ac98a357568c21f0eb6ca2220b8a3d4a2" title="Returns a simple string representation of the argument.">toString</a>()));
<a name="l00243"></a>00243
<a name="l00244"></a>00244 commonProcessing();
<a name="l00245"></a>00245
<a name="l00246"></a>00246 <span class="comment">// We only want to return true if we&apos;ve found the last combined</span>
<a name="l00247"></a>00247 <span class="comment">// match in the string, otherwise we return true so that other </span>
<a name="l00248"></a>00248 <span class="comment">// switches in the combination will have a chance to match.</span>
<a name="l00249"></a>00249 <span class="keywordflow">return</span> lastCombined( args[*i] );
<a name="l00250"></a>00250 }
<a name="l00251"></a>00251 <span class="keywordflow">else</span>
<a name="l00252"></a>00252 <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00253"></a>00253 }
<a name="l00254"></a>00254
<a name="l00255"></a><a class="code" href="classTCLAP_1_1SwitchArg.html#af8561d903ec3c11f5f2175e6db179d9c">00255</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1SwitchArg.html#af8561d903ec3c11f5f2175e6db179d9c" title="Clears the Arg object and allows it to be reused by new command lines.">SwitchArg::reset</a>()
<a name="l00256"></a>00256 {
<a name="l00257"></a>00257 <a class="code" href="classTCLAP_1_1SwitchArg.html#af8561d903ec3c11f5f2175e6db179d9c" title="Clears the Arg object and allows it to be reused by new command lines.">Arg::reset</a>();
<a name="l00258"></a>00258 <a class="code" href="classTCLAP_1_1SwitchArg.html#a0389ecebecc504d9756703d46e8cf3ca" title="The value of the switch.">_value</a> = <a class="code" href="classTCLAP_1_1SwitchArg.html#ae25a99eb06fc2ee75a3b98edba1d5d8d" title="Used to support the reset() method so that ValueArg can be reset to their constructed...">_default</a>;
<a name="l00259"></a>00259 }
<a name="l00261"></a>00261 <span class="comment">//End SwitchArg.cpp</span>
<a name="l00263"></a>00263 <span class="comment"></span>
<a name="l00264"></a>00264 } <span class="comment">//namespace TCLAP</span>
<a name="l00265"></a>00265
<a name="l00266"></a>00266 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Sat Apr 16 15:34:24 2011 for tclap by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.0 </small></address>
</body>
</html>

View File

@ -0,0 +1,46 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>tclap: UnlabeledMultiArg.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.0 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
<li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="contents">
<h1>UnlabeledMultiArg.h File Reference</h1><code>#include &lt;string&gt;</code><br/>
<code>#include &lt;vector&gt;</code><br/>
<code>#include &lt;<a class="el" href="MultiArg_8h_source.html">tclap/MultiArg.h</a>&gt;</code><br/>
<code>#include &lt;<a class="el" href="OptionalUnlabeledTracker_8h_source.html">tclap/OptionalUnlabeledTracker.h</a>&gt;</code><br/>
<p><a href="UnlabeledMultiArg_8h_source.html">Go to the source code of this file.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Classes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTCLAP_1_1UnlabeledMultiArg.html">TCLAP::UnlabeledMultiArg&lt; T &gt;</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Just like a <a class="el" href="classTCLAP_1_1MultiArg.html" title="An argument that allows multiple values of type T to be specified.">MultiArg</a>, except that the arguments are unlabeled. <a href="classTCLAP_1_1UnlabeledMultiArg.html#_details">More...</a><br/></td></tr>
<tr><td colspan="2"><h2>Namespaces</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">namespace &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceTCLAP.html">TCLAP</a></td></tr>
</table>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Sat Apr 16 15:34:24 2011 for tclap by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.0 </small></address>
</body>
</html>

View File

@ -0,0 +1,237 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>tclap: UnlabeledMultiArg.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.0 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
<li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
</ul>
</div>
<h1>UnlabeledMultiArg.h</h1><a href="UnlabeledMultiArg_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
<a name="l00002"></a>00002 <span class="comment">/****************************************************************************** </span>
<a name="l00003"></a>00003 <span class="comment"> * </span>
<a name="l00004"></a>00004 <span class="comment"> * file: UnlabeledMultiArg.h</span>
<a name="l00005"></a>00005 <span class="comment"> * </span>
<a name="l00006"></a>00006 <span class="comment"> * Copyright (c) 2003, Michael E. Smoot.</span>
<a name="l00007"></a>00007 <span class="comment"> * All rights reverved.</span>
<a name="l00008"></a>00008 <span class="comment"> * </span>
<a name="l00009"></a>00009 <span class="comment"> * See the file COPYING in the top directory of this distribution for</span>
<a name="l00010"></a>00010 <span class="comment"> * more information.</span>
<a name="l00011"></a>00011 <span class="comment"> * </span>
<a name="l00012"></a>00012 <span class="comment"> * THE SOFTWARE IS PROVIDED _AS IS_, WITHOUT WARRANTY OF ANY KIND, EXPRESS </span>
<a name="l00013"></a>00013 <span class="comment"> * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, </span>
<a name="l00014"></a>00014 <span class="comment"> * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL </span>
<a name="l00015"></a>00015 <span class="comment"> * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER </span>
<a name="l00016"></a>00016 <span class="comment"> * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING </span>
<a name="l00017"></a>00017 <span class="comment"> * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER </span>
<a name="l00018"></a>00018 <span class="comment"> * DEALINGS IN THE SOFTWARE. </span>
<a name="l00019"></a>00019 <span class="comment"> * </span>
<a name="l00020"></a>00020 <span class="comment"> *****************************************************************************/</span>
<a name="l00021"></a>00021
<a name="l00022"></a>00022
<a name="l00023"></a>00023 <span class="preprocessor">#ifndef TCLAP_MULTIPLE_UNLABELED_ARGUMENT_H</span>
<a name="l00024"></a>00024 <span class="preprocessor"></span><span class="preprocessor">#define TCLAP_MULTIPLE_UNLABELED_ARGUMENT_H</span>
<a name="l00025"></a>00025 <span class="preprocessor"></span>
<a name="l00026"></a>00026 <span class="preprocessor">#include &lt;string&gt;</span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;vector&gt;</span>
<a name="l00028"></a>00028
<a name="l00029"></a>00029 <span class="preprocessor">#include &lt;<a class="code" href="MultiArg_8h.html">tclap/MultiArg.h</a>&gt;</span>
<a name="l00030"></a>00030 <span class="preprocessor">#include &lt;<a class="code" href="OptionalUnlabeledTracker_8h.html">tclap/OptionalUnlabeledTracker.h</a>&gt;</span>
<a name="l00031"></a>00031
<a name="l00032"></a>00032 <span class="keyword">namespace </span>TCLAP {
<a name="l00033"></a>00033
<a name="l00039"></a>00039 <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;
<a name="l00040"></a><a class="code" href="classTCLAP_1_1UnlabeledMultiArg.html">00040</a> <span class="keyword">class </span><a class="code" href="classTCLAP_1_1UnlabeledMultiArg.html" title="Just like a MultiArg, except that the arguments are unlabeled.">UnlabeledMultiArg</a> : <span class="keyword">public</span> <a class="code" href="classTCLAP_1_1MultiArg.html" title="An argument that allows multiple values of type T to be specified.">MultiArg</a>&lt;T&gt;
<a name="l00041"></a>00041 {
<a name="l00042"></a>00042
<a name="l00043"></a>00043 <span class="comment">// If compiler has two stage name lookup (as gcc &gt;= 3.4 does)</span>
<a name="l00044"></a>00044 <span class="comment">// this is requried to prevent undef. symbols</span>
<a name="l00045"></a>00045 <span class="keyword">using</span> <a class="code" href="classTCLAP_1_1MultiArg.html" title="An argument that allows multiple values of type T to be specified.">MultiArg&lt;T&gt;::_ignoreable</a>;
<a name="l00046"></a>00046 <span class="keyword">using</span> <a class="code" href="classTCLAP_1_1MultiArg.html" title="An argument that allows multiple values of type T to be specified.">MultiArg&lt;T&gt;::_hasBlanks</a>;
<a name="l00047"></a>00047 <span class="keyword">using</span> <a class="code" href="classTCLAP_1_1MultiArg.html" title="An argument that allows multiple values of type T to be specified.">MultiArg&lt;T&gt;::_extractValue</a>;
<a name="l00048"></a>00048 <span class="keyword">using</span> <a class="code" href="classTCLAP_1_1MultiArg.html" title="An argument that allows multiple values of type T to be specified.">MultiArg&lt;T&gt;::_typeDesc</a>;
<a name="l00049"></a>00049 <span class="keyword">using</span> <a class="code" href="classTCLAP_1_1MultiArg.html" title="An argument that allows multiple values of type T to be specified.">MultiArg&lt;T&gt;::_name</a>;
<a name="l00050"></a>00050 <span class="keyword">using</span> <a class="code" href="classTCLAP_1_1MultiArg.html" title="An argument that allows multiple values of type T to be specified.">MultiArg&lt;T&gt;::_description</a>;
<a name="l00051"></a>00051 <span class="keyword">using</span> <a class="code" href="classTCLAP_1_1MultiArg.html" title="An argument that allows multiple values of type T to be specified.">MultiArg&lt;T&gt;::_alreadySet</a>;
<a name="l00052"></a>00052 <span class="keyword">using</span> <a class="code" href="classTCLAP_1_1MultiArg.html" title="An argument that allows multiple values of type T to be specified.">MultiArg&lt;T&gt;::toString</a>;
<a name="l00053"></a>00053
<a name="l00054"></a>00054 <span class="keyword">public</span>:
<a name="l00055"></a>00055
<a name="l00073"></a>00073 <a class="code" href="classTCLAP_1_1UnlabeledMultiArg.html#a776c124bf343d0ecfb73e7cc28423807" title="Constructor.">UnlabeledMultiArg</a>( <span class="keyword">const</span> std::string&amp; name,
<a name="l00074"></a>00074 <span class="keyword">const</span> std::string&amp; desc,
<a name="l00075"></a>00075 <span class="keywordtype">bool</span> req,
<a name="l00076"></a>00076 <span class="keyword">const</span> std::string&amp; typeDesc,
<a name="l00077"></a>00077 <span class="keywordtype">bool</span> ignoreable = <span class="keyword">false</span>,
<a name="l00078"></a>00078 <a class="code" href="classTCLAP_1_1Visitor.html" title="A base class that defines the interface for visitors.">Visitor</a>* v = NULL );
<a name="l00097"></a>00097 <a class="code" href="classTCLAP_1_1UnlabeledMultiArg.html#a776c124bf343d0ecfb73e7cc28423807" title="Constructor.">UnlabeledMultiArg</a>( <span class="keyword">const</span> std::string&amp; name,
<a name="l00098"></a>00098 <span class="keyword">const</span> std::string&amp; desc,
<a name="l00099"></a>00099 <span class="keywordtype">bool</span> req,
<a name="l00100"></a>00100 <span class="keyword">const</span> std::string&amp; typeDesc,
<a name="l00101"></a>00101 <a class="code" href="classTCLAP_1_1CmdLineInterface.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLineInterface</a>&amp; parser,
<a name="l00102"></a>00102 <span class="keywordtype">bool</span> ignoreable = <span class="keyword">false</span>,
<a name="l00103"></a>00103 <a class="code" href="classTCLAP_1_1Visitor.html" title="A base class that defines the interface for visitors.">Visitor</a>* v = NULL );
<a name="l00104"></a>00104
<a name="l00120"></a>00120 <a class="code" href="classTCLAP_1_1UnlabeledMultiArg.html#a776c124bf343d0ecfb73e7cc28423807" title="Constructor.">UnlabeledMultiArg</a>( <span class="keyword">const</span> std::string&amp; name,
<a name="l00121"></a>00121 <span class="keyword">const</span> std::string&amp; desc,
<a name="l00122"></a>00122 <span class="keywordtype">bool</span> req,
<a name="l00123"></a>00123 <a class="code" href="classTCLAP_1_1Constraint.html" title="The interface that defines the interaction between the Arg and Constraint.">Constraint&lt;T&gt;</a>* constraint,
<a name="l00124"></a>00124 <span class="keywordtype">bool</span> ignoreable = <span class="keyword">false</span>,
<a name="l00125"></a>00125 <a class="code" href="classTCLAP_1_1Visitor.html" title="A base class that defines the interface for visitors.">Visitor</a>* v = NULL );
<a name="l00126"></a>00126
<a name="l00143"></a>00143 <a class="code" href="classTCLAP_1_1UnlabeledMultiArg.html#a776c124bf343d0ecfb73e7cc28423807" title="Constructor.">UnlabeledMultiArg</a>( <span class="keyword">const</span> std::string&amp; name,
<a name="l00144"></a>00144 <span class="keyword">const</span> std::string&amp; desc,
<a name="l00145"></a>00145 <span class="keywordtype">bool</span> req,
<a name="l00146"></a>00146 <a class="code" href="classTCLAP_1_1Constraint.html" title="The interface that defines the interaction between the Arg and Constraint.">Constraint&lt;T&gt;</a>* constraint,
<a name="l00147"></a>00147 <a class="code" href="classTCLAP_1_1CmdLineInterface.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLineInterface</a>&amp; parser,
<a name="l00148"></a>00148 <span class="keywordtype">bool</span> ignoreable = <span class="keyword">false</span>,
<a name="l00149"></a>00149 <a class="code" href="classTCLAP_1_1Visitor.html" title="A base class that defines the interface for visitors.">Visitor</a>* v = NULL );
<a name="l00150"></a>00150
<a name="l00159"></a>00159 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classTCLAP_1_1UnlabeledMultiArg.html#aa5a35665519518dcb60e53d3a4858802" title="Handles the processing of the argument.">processArg</a>(<span class="keywordtype">int</span>* i, std::vector&lt;std::string&gt;&amp; args);
<a name="l00160"></a>00160
<a name="l00165"></a>00165 <span class="keyword">virtual</span> std::string <a class="code" href="classTCLAP_1_1UnlabeledMultiArg.html#a5971af8f29fa4d798ffde3293504c15b" title="Returns the a short id string.">shortID</a>(<span class="keyword">const</span> std::string&amp; val=<span class="stringliteral">&quot;val&quot;</span>) <span class="keyword">const</span>;
<a name="l00166"></a>00166
<a name="l00171"></a>00171 <span class="keyword">virtual</span> std::string <a class="code" href="classTCLAP_1_1UnlabeledMultiArg.html#a1e7262967b850fb30e1003890a45f1ca" title="Returns the a long id string.">longID</a>(<span class="keyword">const</span> std::string&amp; val=<span class="stringliteral">&quot;val&quot;</span>) <span class="keyword">const</span>;
<a name="l00172"></a>00172
<a name="l00177"></a>00177 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classTCLAP_1_1UnlabeledMultiArg.html#a059fa00203a9f643a10334fedbd43e39" title="Opertor ==.">operator==</a>(<span class="keyword">const</span> <a class="code" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a>&amp; a) <span class="keyword">const</span>;
<a name="l00178"></a>00178
<a name="l00183"></a>00183 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1UnlabeledMultiArg.html#a290b15792de11abb5a4cf1c312d6a0d7" title="Pushes this to back of list rather than front.">addToList</a>( std::list&lt;Arg*&gt;&amp; argList ) <span class="keyword">const</span>;
<a name="l00184"></a>00184 };
<a name="l00185"></a>00185
<a name="l00186"></a>00186 <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;
<a name="l00187"></a><a class="code" href="classTCLAP_1_1UnlabeledMultiArg.html#a776c124bf343d0ecfb73e7cc28423807">00187</a> <a class="code" href="classTCLAP_1_1UnlabeledMultiArg.html#a776c124bf343d0ecfb73e7cc28423807" title="Constructor.">UnlabeledMultiArg&lt;T&gt;::UnlabeledMultiArg</a>(<span class="keyword">const</span> std::string&amp; name,
<a name="l00188"></a>00188 <span class="keyword">const</span> std::string&amp; desc,
<a name="l00189"></a>00189 <span class="keywordtype">bool</span> req,
<a name="l00190"></a>00190 <span class="keyword">const</span> std::string&amp; typeDesc,
<a name="l00191"></a>00191 <span class="keywordtype">bool</span> ignoreable,
<a name="l00192"></a>00192 <a class="code" href="classTCLAP_1_1Visitor.html" title="A base class that defines the interface for visitors.">Visitor</a>* v)
<a name="l00193"></a>00193 : <a class="code" href="classTCLAP_1_1MultiArg.html" title="An argument that allows multiple values of type T to be specified.">MultiArg</a>&lt;T&gt;(<span class="stringliteral">&quot;&quot;</span>, name, desc, req, typeDesc, v)
<a name="l00194"></a>00194 {
<a name="l00195"></a>00195 <a class="code" href="classTCLAP_1_1Arg.html#a9832bb7564f4ab472bd51b7b1bbc683f" title="Whether this argument can be ignored, if desired.">_ignoreable</a> = ignoreable;
<a name="l00196"></a>00196 <a class="code" href="classTCLAP_1_1OptionalUnlabeledTracker.html#a59bfa7d01b45d4796500470c9218e390">OptionalUnlabeledTracker::check</a>(<span class="keyword">true</span>, <a class="code" href="classTCLAP_1_1Arg.html#ac98a357568c21f0eb6ca2220b8a3d4a2" title="Returns a simple string representation of the argument.">toString</a>());
<a name="l00197"></a>00197 }
<a name="l00198"></a>00198
<a name="l00199"></a>00199 <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;
<a name="l00200"></a><a class="code" href="classTCLAP_1_1UnlabeledMultiArg.html#a5c81005897f6b9673b39f5d1107f4074">00200</a> <a class="code" href="classTCLAP_1_1UnlabeledMultiArg.html#a776c124bf343d0ecfb73e7cc28423807" title="Constructor.">UnlabeledMultiArg&lt;T&gt;::UnlabeledMultiArg</a>(<span class="keyword">const</span> std::string&amp; name,
<a name="l00201"></a>00201 <span class="keyword">const</span> std::string&amp; desc,
<a name="l00202"></a>00202 <span class="keywordtype">bool</span> req,
<a name="l00203"></a>00203 <span class="keyword">const</span> std::string&amp; typeDesc,
<a name="l00204"></a>00204 <a class="code" href="classTCLAP_1_1CmdLineInterface.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLineInterface</a>&amp; parser,
<a name="l00205"></a>00205 <span class="keywordtype">bool</span> ignoreable,
<a name="l00206"></a>00206 <a class="code" href="classTCLAP_1_1Visitor.html" title="A base class that defines the interface for visitors.">Visitor</a>* v)
<a name="l00207"></a>00207 : <a class="code" href="classTCLAP_1_1MultiArg.html" title="An argument that allows multiple values of type T to be specified.">MultiArg</a>&lt;T&gt;(<span class="stringliteral">&quot;&quot;</span>, name, desc, req, typeDesc, v)
<a name="l00208"></a>00208 {
<a name="l00209"></a>00209 <a class="code" href="classTCLAP_1_1Arg.html#a9832bb7564f4ab472bd51b7b1bbc683f" title="Whether this argument can be ignored, if desired.">_ignoreable</a> = ignoreable;
<a name="l00210"></a>00210 <a class="code" href="classTCLAP_1_1OptionalUnlabeledTracker.html#a59bfa7d01b45d4796500470c9218e390">OptionalUnlabeledTracker::check</a>(<span class="keyword">true</span>, <a class="code" href="classTCLAP_1_1Arg.html#ac98a357568c21f0eb6ca2220b8a3d4a2" title="Returns a simple string representation of the argument.">toString</a>());
<a name="l00211"></a>00211 parser.<a class="code" href="classTCLAP_1_1CmdLineInterface.html#a13b29ab754c030185e58f779dc355631" title="Adds an argument to the list of arguments to be parsed.">add</a>( <span class="keyword">this</span> );
<a name="l00212"></a>00212 }
<a name="l00213"></a>00213
<a name="l00214"></a>00214
<a name="l00215"></a>00215 <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;
<a name="l00216"></a><a class="code" href="classTCLAP_1_1UnlabeledMultiArg.html#aa065c76cd23b4acfe62c4b31d73dcf87">00216</a> <a class="code" href="classTCLAP_1_1UnlabeledMultiArg.html#a776c124bf343d0ecfb73e7cc28423807" title="Constructor.">UnlabeledMultiArg&lt;T&gt;::UnlabeledMultiArg</a>(<span class="keyword">const</span> std::string&amp; name,
<a name="l00217"></a>00217 <span class="keyword">const</span> std::string&amp; desc,
<a name="l00218"></a>00218 <span class="keywordtype">bool</span> req,
<a name="l00219"></a>00219 <a class="code" href="classTCLAP_1_1Constraint.html" title="The interface that defines the interaction between the Arg and Constraint.">Constraint&lt;T&gt;</a>* constraint,
<a name="l00220"></a>00220 <span class="keywordtype">bool</span> ignoreable,
<a name="l00221"></a>00221 <a class="code" href="classTCLAP_1_1Visitor.html" title="A base class that defines the interface for visitors.">Visitor</a>* v)
<a name="l00222"></a>00222 : <a class="code" href="classTCLAP_1_1MultiArg.html" title="An argument that allows multiple values of type T to be specified.">MultiArg</a>&lt;T&gt;(<span class="stringliteral">&quot;&quot;</span>, name, desc, req, constraint, v)
<a name="l00223"></a>00223 {
<a name="l00224"></a>00224 <a class="code" href="classTCLAP_1_1Arg.html#a9832bb7564f4ab472bd51b7b1bbc683f" title="Whether this argument can be ignored, if desired.">_ignoreable</a> = ignoreable;
<a name="l00225"></a>00225 <a class="code" href="classTCLAP_1_1OptionalUnlabeledTracker.html#a59bfa7d01b45d4796500470c9218e390">OptionalUnlabeledTracker::check</a>(<span class="keyword">true</span>, <a class="code" href="classTCLAP_1_1Arg.html#ac98a357568c21f0eb6ca2220b8a3d4a2" title="Returns a simple string representation of the argument.">toString</a>());
<a name="l00226"></a>00226 }
<a name="l00227"></a>00227
<a name="l00228"></a>00228 <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;
<a name="l00229"></a><a class="code" href="classTCLAP_1_1UnlabeledMultiArg.html#ad3d8c37cd3c71deb2275b48115a59f11">00229</a> <a class="code" href="classTCLAP_1_1UnlabeledMultiArg.html#a776c124bf343d0ecfb73e7cc28423807" title="Constructor.">UnlabeledMultiArg&lt;T&gt;::UnlabeledMultiArg</a>(<span class="keyword">const</span> std::string&amp; name,
<a name="l00230"></a>00230 <span class="keyword">const</span> std::string&amp; desc,
<a name="l00231"></a>00231 <span class="keywordtype">bool</span> req,
<a name="l00232"></a>00232 <a class="code" href="classTCLAP_1_1Constraint.html" title="The interface that defines the interaction between the Arg and Constraint.">Constraint&lt;T&gt;</a>* constraint,
<a name="l00233"></a>00233 <a class="code" href="classTCLAP_1_1CmdLineInterface.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLineInterface</a>&amp; parser,
<a name="l00234"></a>00234 <span class="keywordtype">bool</span> ignoreable,
<a name="l00235"></a>00235 <a class="code" href="classTCLAP_1_1Visitor.html" title="A base class that defines the interface for visitors.">Visitor</a>* v)
<a name="l00236"></a>00236 : <a class="code" href="classTCLAP_1_1MultiArg.html" title="An argument that allows multiple values of type T to be specified.">MultiArg</a>&lt;T&gt;(<span class="stringliteral">&quot;&quot;</span>, name, desc, req, constraint, v)
<a name="l00237"></a>00237 {
<a name="l00238"></a>00238 <a class="code" href="classTCLAP_1_1Arg.html#a9832bb7564f4ab472bd51b7b1bbc683f" title="Whether this argument can be ignored, if desired.">_ignoreable</a> = ignoreable;
<a name="l00239"></a>00239 <a class="code" href="classTCLAP_1_1OptionalUnlabeledTracker.html#a59bfa7d01b45d4796500470c9218e390">OptionalUnlabeledTracker::check</a>(<span class="keyword">true</span>, <a class="code" href="classTCLAP_1_1Arg.html#ac98a357568c21f0eb6ca2220b8a3d4a2" title="Returns a simple string representation of the argument.">toString</a>());
<a name="l00240"></a>00240 parser.<a class="code" href="classTCLAP_1_1CmdLineInterface.html#a13b29ab754c030185e58f779dc355631" title="Adds an argument to the list of arguments to be parsed.">add</a>( <span class="keyword">this</span> );
<a name="l00241"></a>00241 }
<a name="l00242"></a>00242
<a name="l00243"></a>00243
<a name="l00244"></a>00244 <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;
<a name="l00245"></a><a class="code" href="classTCLAP_1_1UnlabeledMultiArg.html#aa5a35665519518dcb60e53d3a4858802">00245</a> <span class="keywordtype">bool</span> <a class="code" href="classTCLAP_1_1UnlabeledMultiArg.html#aa5a35665519518dcb60e53d3a4858802" title="Handles the processing of the argument.">UnlabeledMultiArg&lt;T&gt;::processArg</a>(<span class="keywordtype">int</span> *i, std::vector&lt;std::string&gt;&amp; args)
<a name="l00246"></a>00246 {
<a name="l00247"></a>00247
<a name="l00248"></a>00248 <span class="keywordflow">if</span> ( <a class="code" href="classTCLAP_1_1Arg.html#a2eb0ffefe163218bdc8b4b7a33a974a7" title="Checks whether a given string has blank chars, indicating that it is a combined SwitchArg...">_hasBlanks</a>( args[*i] ) )
<a name="l00249"></a>00249 <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00250"></a>00250
<a name="l00251"></a>00251 <span class="comment">// never ignore an unlabeled multi arg</span>
<a name="l00252"></a>00252
<a name="l00253"></a>00253
<a name="l00254"></a>00254 <span class="comment">// always take the first value, regardless of the start string </span>
<a name="l00255"></a>00255 <a class="code" href="classTCLAP_1_1MultiArg.html#a26cbf5e86ac66d876f9285f1fda22470" title="Extracts the value from the string.">_extractValue</a>( args[(*i)] );
<a name="l00256"></a>00256
<a name="l00257"></a>00257 <span class="comment">/*</span>
<a name="l00258"></a>00258 <span class="comment"> // continue taking args until we hit the end or a start string </span>
<a name="l00259"></a>00259 <span class="comment"> while ( (unsigned int)(*i)+1 &lt; args.size() &amp;&amp;</span>
<a name="l00260"></a>00260 <span class="comment"> args[(*i)+1].find_first_of( Arg::flagStartString() ) != 0 &amp;&amp;</span>
<a name="l00261"></a>00261 <span class="comment"> args[(*i)+1].find_first_of( Arg::nameStartString() ) != 0 ) </span>
<a name="l00262"></a>00262 <span class="comment"> _extractValue( args[++(*i)] );</span>
<a name="l00263"></a>00263 <span class="comment"> */</span>
<a name="l00264"></a>00264
<a name="l00265"></a>00265 <a class="code" href="classTCLAP_1_1Arg.html#a829e32129857d2683e5791a5df1208ec" title="Indicates whether the argument has been set.">_alreadySet</a> = <span class="keyword">true</span>;
<a name="l00266"></a>00266
<a name="l00267"></a>00267 <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00268"></a>00268 }
<a name="l00269"></a>00269
<a name="l00270"></a>00270 <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;
<a name="l00271"></a><a class="code" href="classTCLAP_1_1UnlabeledMultiArg.html#a5971af8f29fa4d798ffde3293504c15b">00271</a> std::string <a class="code" href="classTCLAP_1_1UnlabeledMultiArg.html#a5971af8f29fa4d798ffde3293504c15b" title="Returns the a short id string.">UnlabeledMultiArg&lt;T&gt;::shortID</a>(<span class="keyword">const</span> std::string&amp; val)<span class="keyword"> const</span>
<a name="l00272"></a>00272 <span class="keyword"></span>{
<a name="l00273"></a>00273 <span class="keyword">static_cast&lt;</span><span class="keywordtype">void</span><span class="keyword">&gt;</span>(val); <span class="comment">// Ignore input, don&apos;t warn</span>
<a name="l00274"></a>00274 <span class="keywordflow">return</span> std::string(<span class="stringliteral">&quot;&lt;&quot;</span>) + <a class="code" href="classTCLAP_1_1MultiArg.html#a0f6a2b04fe15d1ede95165fc6e1949e8" title="The description of type T to be used in the usage.">_typeDesc</a> + <span class="stringliteral">&quot;&gt; ...&quot;</span>;
<a name="l00275"></a>00275 }
<a name="l00276"></a>00276
<a name="l00277"></a>00277 <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;
<a name="l00278"></a><a class="code" href="classTCLAP_1_1UnlabeledMultiArg.html#a1e7262967b850fb30e1003890a45f1ca">00278</a> std::string <a class="code" href="classTCLAP_1_1UnlabeledMultiArg.html#a1e7262967b850fb30e1003890a45f1ca" title="Returns the a long id string.">UnlabeledMultiArg&lt;T&gt;::longID</a>(<span class="keyword">const</span> std::string&amp; val)<span class="keyword"> const</span>
<a name="l00279"></a>00279 <span class="keyword"></span>{
<a name="l00280"></a>00280 <span class="keyword">static_cast&lt;</span><span class="keywordtype">void</span><span class="keyword">&gt;</span>(val); <span class="comment">// Ignore input, don&apos;t warn</span>
<a name="l00281"></a>00281 <span class="keywordflow">return</span> std::string(<span class="stringliteral">&quot;&lt;&quot;</span>) + <a class="code" href="classTCLAP_1_1MultiArg.html#a0f6a2b04fe15d1ede95165fc6e1949e8" title="The description of type T to be used in the usage.">_typeDesc</a> + <span class="stringliteral">&quot;&gt; (accepted multiple times)&quot;</span>;
<a name="l00282"></a>00282 }
<a name="l00283"></a>00283
<a name="l00284"></a>00284 <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;
<a name="l00285"></a><a class="code" href="classTCLAP_1_1UnlabeledMultiArg.html#a059fa00203a9f643a10334fedbd43e39">00285</a> <span class="keywordtype">bool</span> <a class="code" href="classTCLAP_1_1UnlabeledMultiArg.html#a059fa00203a9f643a10334fedbd43e39" title="Opertor ==.">UnlabeledMultiArg&lt;T&gt;::operator==</a>(<span class="keyword">const</span> <a class="code" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a>&amp; a)<span class="keyword"> const</span>
<a name="l00286"></a>00286 <span class="keyword"></span>{
<a name="l00287"></a>00287 <span class="keywordflow">if</span> ( <a class="code" href="classTCLAP_1_1Arg.html#ac0f138057a99fb5d94ff4acb41a083aa" title="A single work namd indentifying the argument.">_name</a> == a.<a class="code" href="classTCLAP_1_1Arg.html#a641ced141a56c74fee11d3e3a808f731" title="Returns the argument name.">getName</a>() || <a class="code" href="classTCLAP_1_1Arg.html#a9882fe256eaab01ac53db54ac657d272" title="Description of the argument.">_description</a> == a.<a class="code" href="classTCLAP_1_1Arg.html#a1943999fadcb4f28cecd6ba55ed0b085" title="Returns the argument description.">getDescription</a>() )
<a name="l00288"></a>00288 <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00289"></a>00289 <span class="keywordflow">else</span>
<a name="l00290"></a>00290 <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00291"></a>00291 }
<a name="l00292"></a>00292
<a name="l00293"></a>00293 <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;
<a name="l00294"></a><a class="code" href="classTCLAP_1_1UnlabeledMultiArg.html#a290b15792de11abb5a4cf1c312d6a0d7">00294</a> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1UnlabeledMultiArg.html#a290b15792de11abb5a4cf1c312d6a0d7" title="Pushes this to back of list rather than front.">UnlabeledMultiArg&lt;T&gt;::addToList</a>( std::list&lt;Arg*&gt;&amp; argList )<span class="keyword"> const</span>
<a name="l00295"></a>00295 <span class="keyword"></span>{
<a name="l00296"></a>00296 argList.push_back( const_cast&lt;Arg*&gt;(static_cast&lt;const Arg* const&gt;(<span class="keyword">this</span>)) );
<a name="l00297"></a>00297 }
<a name="l00298"></a>00298
<a name="l00299"></a>00299 }
<a name="l00300"></a>00300
<a name="l00301"></a>00301 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Sat Apr 16 15:34:24 2011 for tclap by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.0 </small></address>
</body>
</html>

View File

@ -0,0 +1,46 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>tclap: UnlabeledValueArg.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.0 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
<li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="contents">
<h1>UnlabeledValueArg.h File Reference</h1><code>#include &lt;string&gt;</code><br/>
<code>#include &lt;vector&gt;</code><br/>
<code>#include &lt;<a class="el" href="ValueArg_8h_source.html">tclap/ValueArg.h</a>&gt;</code><br/>
<code>#include &lt;<a class="el" href="OptionalUnlabeledTracker_8h_source.html">tclap/OptionalUnlabeledTracker.h</a>&gt;</code><br/>
<p><a href="UnlabeledValueArg_8h_source.html">Go to the source code of this file.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Classes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTCLAP_1_1UnlabeledValueArg.html">TCLAP::UnlabeledValueArg&lt; T &gt;</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The basic unlabeled argument that parses a value. <a href="classTCLAP_1_1UnlabeledValueArg.html#_details">More...</a><br/></td></tr>
<tr><td colspan="2"><h2>Namespaces</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">namespace &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceTCLAP.html">TCLAP</a></td></tr>
</table>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Sat Apr 16 15:34:24 2011 for tclap by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.0 </small></address>
</body>
</html>

View File

@ -0,0 +1,244 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>tclap: UnlabeledValueArg.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.0 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
<li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
</ul>
</div>
<h1>UnlabeledValueArg.h</h1><a href="UnlabeledValueArg_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
<a name="l00002"></a>00002 <span class="comment">/****************************************************************************** </span>
<a name="l00003"></a>00003 <span class="comment"> * </span>
<a name="l00004"></a>00004 <span class="comment"> * file: UnlabeledValueArg.h</span>
<a name="l00005"></a>00005 <span class="comment"> * </span>
<a name="l00006"></a>00006 <span class="comment"> * Copyright (c) 2003, Michael E. Smoot .</span>
<a name="l00007"></a>00007 <span class="comment"> * Copyright (c) 2004, Michael E. Smoot, Daniel Aarno.</span>
<a name="l00008"></a>00008 <span class="comment"> * All rights reverved.</span>
<a name="l00009"></a>00009 <span class="comment"> * </span>
<a name="l00010"></a>00010 <span class="comment"> * See the file COPYING in the top directory of this distribution for</span>
<a name="l00011"></a>00011 <span class="comment"> * more information.</span>
<a name="l00012"></a>00012 <span class="comment"> * </span>
<a name="l00013"></a>00013 <span class="comment"> * THE SOFTWARE IS PROVIDED _AS IS_, WITHOUT WARRANTY OF ANY KIND, EXPRESS </span>
<a name="l00014"></a>00014 <span class="comment"> * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, </span>
<a name="l00015"></a>00015 <span class="comment"> * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL </span>
<a name="l00016"></a>00016 <span class="comment"> * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER </span>
<a name="l00017"></a>00017 <span class="comment"> * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING </span>
<a name="l00018"></a>00018 <span class="comment"> * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER </span>
<a name="l00019"></a>00019 <span class="comment"> * DEALINGS IN THE SOFTWARE. </span>
<a name="l00020"></a>00020 <span class="comment"> * </span>
<a name="l00021"></a>00021 <span class="comment"> *****************************************************************************/</span>
<a name="l00022"></a>00022
<a name="l00023"></a>00023
<a name="l00024"></a>00024 <span class="preprocessor">#ifndef TCLAP_UNLABELED_VALUE_ARGUMENT_H</span>
<a name="l00025"></a>00025 <span class="preprocessor"></span><span class="preprocessor">#define TCLAP_UNLABELED_VALUE_ARGUMENT_H</span>
<a name="l00026"></a>00026 <span class="preprocessor"></span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;string&gt;</span>
<a name="l00028"></a>00028 <span class="preprocessor">#include &lt;vector&gt;</span>
<a name="l00029"></a>00029
<a name="l00030"></a>00030 <span class="preprocessor">#include &lt;<a class="code" href="ValueArg_8h.html">tclap/ValueArg.h</a>&gt;</span>
<a name="l00031"></a>00031 <span class="preprocessor">#include &lt;<a class="code" href="OptionalUnlabeledTracker_8h.html">tclap/OptionalUnlabeledTracker.h</a>&gt;</span>
<a name="l00032"></a>00032
<a name="l00033"></a>00033
<a name="l00034"></a>00034 <span class="keyword">namespace </span>TCLAP {
<a name="l00035"></a>00035
<a name="l00042"></a>00042 <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;
<a name="l00043"></a><a class="code" href="classTCLAP_1_1UnlabeledValueArg.html">00043</a> <span class="keyword">class </span><a class="code" href="classTCLAP_1_1UnlabeledValueArg.html" title="The basic unlabeled argument that parses a value.">UnlabeledValueArg</a> : <span class="keyword">public</span> <a class="code" href="classTCLAP_1_1ValueArg.html" title="The basic labeled argument that parses a value.">ValueArg</a>&lt;T&gt;
<a name="l00044"></a>00044 {
<a name="l00045"></a>00045
<a name="l00046"></a>00046 <span class="comment">// If compiler has two stage name lookup (as gcc &gt;= 3.4 does)</span>
<a name="l00047"></a>00047 <span class="comment">// this is requried to prevent undef. symbols</span>
<a name="l00048"></a>00048 <span class="keyword">using</span> <a class="code" href="classTCLAP_1_1ValueArg.html" title="The basic labeled argument that parses a value.">ValueArg&lt;T&gt;::_ignoreable</a>;
<a name="l00049"></a>00049 <span class="keyword">using</span> <a class="code" href="classTCLAP_1_1ValueArg.html" title="The basic labeled argument that parses a value.">ValueArg&lt;T&gt;::_hasBlanks</a>;
<a name="l00050"></a>00050 <span class="keyword">using</span> <a class="code" href="classTCLAP_1_1ValueArg.html" title="The basic labeled argument that parses a value.">ValueArg&lt;T&gt;::_extractValue</a>;
<a name="l00051"></a>00051 <span class="keyword">using</span> <a class="code" href="classTCLAP_1_1ValueArg.html" title="The basic labeled argument that parses a value.">ValueArg&lt;T&gt;::_typeDesc</a>;
<a name="l00052"></a>00052 <span class="keyword">using</span> <a class="code" href="classTCLAP_1_1ValueArg.html" title="The basic labeled argument that parses a value.">ValueArg&lt;T&gt;::_name</a>;
<a name="l00053"></a>00053 <span class="keyword">using</span> <a class="code" href="classTCLAP_1_1ValueArg.html" title="The basic labeled argument that parses a value.">ValueArg&lt;T&gt;::_description</a>;
<a name="l00054"></a>00054 <span class="keyword">using</span> <a class="code" href="classTCLAP_1_1ValueArg.html" title="The basic labeled argument that parses a value.">ValueArg&lt;T&gt;::_alreadySet</a>;
<a name="l00055"></a>00055 <span class="keyword">using</span> <a class="code" href="classTCLAP_1_1ValueArg.html" title="The basic labeled argument that parses a value.">ValueArg&lt;T&gt;::toString</a>;
<a name="l00056"></a>00056
<a name="l00057"></a>00057 <span class="keyword">public</span>:
<a name="l00058"></a>00058
<a name="l00080"></a>00080 <a class="code" href="classTCLAP_1_1UnlabeledValueArg.html#acba2fddd0719ccd90f48fcf06aaffbee" title="UnlabeledValueArg constructor.">UnlabeledValueArg</a>( <span class="keyword">const</span> std::string&amp; name,
<a name="l00081"></a>00081 <span class="keyword">const</span> std::string&amp; desc,
<a name="l00082"></a>00082 <span class="keywordtype">bool</span> req,
<a name="l00083"></a>00083 T value,
<a name="l00084"></a>00084 <span class="keyword">const</span> std::string&amp; typeDesc,
<a name="l00085"></a>00085 <span class="keywordtype">bool</span> ignoreable = <span class="keyword">false</span>,
<a name="l00086"></a>00086 <a class="code" href="classTCLAP_1_1Visitor.html" title="A base class that defines the interface for visitors.">Visitor</a>* v = NULL);
<a name="l00087"></a>00087
<a name="l00110"></a>00110 <a class="code" href="classTCLAP_1_1UnlabeledValueArg.html#acba2fddd0719ccd90f48fcf06aaffbee" title="UnlabeledValueArg constructor.">UnlabeledValueArg</a>( <span class="keyword">const</span> std::string&amp; name,
<a name="l00111"></a>00111 <span class="keyword">const</span> std::string&amp; desc,
<a name="l00112"></a>00112 <span class="keywordtype">bool</span> req,
<a name="l00113"></a>00113 T value,
<a name="l00114"></a>00114 <span class="keyword">const</span> std::string&amp; typeDesc,
<a name="l00115"></a>00115 <a class="code" href="classTCLAP_1_1CmdLineInterface.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLineInterface</a>&amp; parser,
<a name="l00116"></a>00116 <span class="keywordtype">bool</span> ignoreable = <span class="keyword">false</span>,
<a name="l00117"></a>00117 <a class="code" href="classTCLAP_1_1Visitor.html" title="A base class that defines the interface for visitors.">Visitor</a>* v = NULL );
<a name="l00118"></a>00118
<a name="l00138"></a>00138 <a class="code" href="classTCLAP_1_1UnlabeledValueArg.html#acba2fddd0719ccd90f48fcf06aaffbee" title="UnlabeledValueArg constructor.">UnlabeledValueArg</a>( <span class="keyword">const</span> std::string&amp; name,
<a name="l00139"></a>00139 <span class="keyword">const</span> std::string&amp; desc,
<a name="l00140"></a>00140 <span class="keywordtype">bool</span> req,
<a name="l00141"></a>00141 T value,
<a name="l00142"></a>00142 <a class="code" href="classTCLAP_1_1Constraint.html" title="The interface that defines the interaction between the Arg and Constraint.">Constraint&lt;T&gt;</a>* constraint,
<a name="l00143"></a>00143 <span class="keywordtype">bool</span> ignoreable = <span class="keyword">false</span>,
<a name="l00144"></a>00144 <a class="code" href="classTCLAP_1_1Visitor.html" title="A base class that defines the interface for visitors.">Visitor</a>* v = NULL );
<a name="l00145"></a>00145
<a name="l00146"></a>00146
<a name="l00167"></a>00167 <a class="code" href="classTCLAP_1_1UnlabeledValueArg.html#acba2fddd0719ccd90f48fcf06aaffbee" title="UnlabeledValueArg constructor.">UnlabeledValueArg</a>( <span class="keyword">const</span> std::string&amp; name,
<a name="l00168"></a>00168 <span class="keyword">const</span> std::string&amp; desc,
<a name="l00169"></a>00169 <span class="keywordtype">bool</span> req,
<a name="l00170"></a>00170 T value,
<a name="l00171"></a>00171 <a class="code" href="classTCLAP_1_1Constraint.html" title="The interface that defines the interaction between the Arg and Constraint.">Constraint&lt;T&gt;</a>* constraint,
<a name="l00172"></a>00172 <a class="code" href="classTCLAP_1_1CmdLineInterface.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLineInterface</a>&amp; parser,
<a name="l00173"></a>00173 <span class="keywordtype">bool</span> ignoreable = <span class="keyword">false</span>,
<a name="l00174"></a>00174 <a class="code" href="classTCLAP_1_1Visitor.html" title="A base class that defines the interface for visitors.">Visitor</a>* v = NULL);
<a name="l00175"></a>00175
<a name="l00184"></a>00184 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classTCLAP_1_1UnlabeledValueArg.html#ad853d7950a659b0d4ee2cda3f61261fd" title="Handles the processing of the argument.">processArg</a>(<span class="keywordtype">int</span>* i, std::vector&lt;std::string&gt;&amp; args);
<a name="l00185"></a>00185
<a name="l00189"></a>00189 <span class="keyword">virtual</span> std::string <a class="code" href="classTCLAP_1_1UnlabeledValueArg.html#abda4d1d695003ba165b6797e03007a99" title="Overrides shortID for specific behavior.">shortID</a>(<span class="keyword">const</span> std::string&amp; val=<span class="stringliteral">&quot;val&quot;</span>) <span class="keyword">const</span>;
<a name="l00190"></a>00190
<a name="l00194"></a>00194 <span class="keyword">virtual</span> std::string <a class="code" href="classTCLAP_1_1UnlabeledValueArg.html#ade738f42a7867324ce780b0c240b0460" title="Overrides longID for specific behavior.">longID</a>(<span class="keyword">const</span> std::string&amp; val=<span class="stringliteral">&quot;val&quot;</span>) <span class="keyword">const</span>;
<a name="l00195"></a>00195
<a name="l00199"></a>00199 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classTCLAP_1_1UnlabeledValueArg.html#a74632cd4d169481518cb1a871f97b412" title="Overrides operator== for specific behavior.">operator==</a>(<span class="keyword">const</span> <a class="code" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a>&amp; a ) <span class="keyword">const</span>;
<a name="l00200"></a>00200
<a name="l00205"></a>00205 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1UnlabeledValueArg.html#a8670fc7797254e602d302318063f3515" title="Instead of pushing to the front of list, push to the back.">addToList</a>( std::list&lt;Arg*&gt;&amp; argList ) <span class="keyword">const</span>;
<a name="l00206"></a>00206
<a name="l00207"></a>00207 };
<a name="l00208"></a>00208
<a name="l00212"></a>00212 <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;
<a name="l00213"></a><a class="code" href="classTCLAP_1_1UnlabeledValueArg.html#acba2fddd0719ccd90f48fcf06aaffbee">00213</a> <a class="code" href="classTCLAP_1_1UnlabeledValueArg.html#acba2fddd0719ccd90f48fcf06aaffbee" title="UnlabeledValueArg constructor.">UnlabeledValueArg&lt;T&gt;::UnlabeledValueArg</a>(<span class="keyword">const</span> std::string&amp; name,
<a name="l00214"></a>00214 <span class="keyword">const</span> std::string&amp; desc,
<a name="l00215"></a>00215 <span class="keywordtype">bool</span> req,
<a name="l00216"></a>00216 T val,
<a name="l00217"></a>00217 <span class="keyword">const</span> std::string&amp; typeDesc,
<a name="l00218"></a>00218 <span class="keywordtype">bool</span> ignoreable,
<a name="l00219"></a>00219 <a class="code" href="classTCLAP_1_1Visitor.html" title="A base class that defines the interface for visitors.">Visitor</a>* v)
<a name="l00220"></a>00220 : <a class="code" href="classTCLAP_1_1ValueArg.html" title="The basic labeled argument that parses a value.">ValueArg</a>&lt;T&gt;(<span class="stringliteral">&quot;&quot;</span>, name, desc, req, val, typeDesc, v)
<a name="l00221"></a>00221 {
<a name="l00222"></a>00222 <a class="code" href="classTCLAP_1_1Arg.html#a9832bb7564f4ab472bd51b7b1bbc683f" title="Whether this argument can be ignored, if desired.">_ignoreable</a> = ignoreable;
<a name="l00223"></a>00223
<a name="l00224"></a>00224 <a class="code" href="classTCLAP_1_1OptionalUnlabeledTracker.html#a59bfa7d01b45d4796500470c9218e390">OptionalUnlabeledTracker::check</a>(req, <a class="code" href="classTCLAP_1_1Arg.html#ac98a357568c21f0eb6ca2220b8a3d4a2" title="Returns a simple string representation of the argument.">toString</a>());
<a name="l00225"></a>00225
<a name="l00226"></a>00226 }
<a name="l00227"></a>00227
<a name="l00228"></a>00228 <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;
<a name="l00229"></a><a class="code" href="classTCLAP_1_1UnlabeledValueArg.html#a9eafea8158d27a5af48e92f62debcf65">00229</a> <a class="code" href="classTCLAP_1_1UnlabeledValueArg.html#acba2fddd0719ccd90f48fcf06aaffbee" title="UnlabeledValueArg constructor.">UnlabeledValueArg&lt;T&gt;::UnlabeledValueArg</a>(<span class="keyword">const</span> std::string&amp; name,
<a name="l00230"></a>00230 <span class="keyword">const</span> std::string&amp; desc,
<a name="l00231"></a>00231 <span class="keywordtype">bool</span> req,
<a name="l00232"></a>00232 T val,
<a name="l00233"></a>00233 <span class="keyword">const</span> std::string&amp; typeDesc,
<a name="l00234"></a>00234 <a class="code" href="classTCLAP_1_1CmdLineInterface.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLineInterface</a>&amp; parser,
<a name="l00235"></a>00235 <span class="keywordtype">bool</span> ignoreable,
<a name="l00236"></a>00236 <a class="code" href="classTCLAP_1_1Visitor.html" title="A base class that defines the interface for visitors.">Visitor</a>* v)
<a name="l00237"></a>00237 : <a class="code" href="classTCLAP_1_1ValueArg.html" title="The basic labeled argument that parses a value.">ValueArg</a>&lt;T&gt;(<span class="stringliteral">&quot;&quot;</span>, name, desc, req, val, typeDesc, v)
<a name="l00238"></a>00238 {
<a name="l00239"></a>00239 <a class="code" href="classTCLAP_1_1Arg.html#a9832bb7564f4ab472bd51b7b1bbc683f" title="Whether this argument can be ignored, if desired.">_ignoreable</a> = ignoreable;
<a name="l00240"></a>00240 <a class="code" href="classTCLAP_1_1OptionalUnlabeledTracker.html#a59bfa7d01b45d4796500470c9218e390">OptionalUnlabeledTracker::check</a>(req, <a class="code" href="classTCLAP_1_1Arg.html#ac98a357568c21f0eb6ca2220b8a3d4a2" title="Returns a simple string representation of the argument.">toString</a>());
<a name="l00241"></a>00241 parser.<a class="code" href="classTCLAP_1_1CmdLineInterface.html#a13b29ab754c030185e58f779dc355631" title="Adds an argument to the list of arguments to be parsed.">add</a>( <span class="keyword">this</span> );
<a name="l00242"></a>00242 }
<a name="l00243"></a>00243
<a name="l00247"></a>00247 <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;
<a name="l00248"></a><a class="code" href="classTCLAP_1_1UnlabeledValueArg.html#a2aa148ef6a2016bb3f32a33a7c644404">00248</a> <a class="code" href="classTCLAP_1_1UnlabeledValueArg.html#acba2fddd0719ccd90f48fcf06aaffbee" title="UnlabeledValueArg constructor.">UnlabeledValueArg&lt;T&gt;::UnlabeledValueArg</a>(<span class="keyword">const</span> std::string&amp; name,
<a name="l00249"></a>00249 <span class="keyword">const</span> std::string&amp; desc,
<a name="l00250"></a>00250 <span class="keywordtype">bool</span> req,
<a name="l00251"></a>00251 T val,
<a name="l00252"></a>00252 <a class="code" href="classTCLAP_1_1Constraint.html" title="The interface that defines the interaction between the Arg and Constraint.">Constraint&lt;T&gt;</a>* constraint,
<a name="l00253"></a>00253 <span class="keywordtype">bool</span> ignoreable,
<a name="l00254"></a>00254 <a class="code" href="classTCLAP_1_1Visitor.html" title="A base class that defines the interface for visitors.">Visitor</a>* v)
<a name="l00255"></a>00255 : <a class="code" href="classTCLAP_1_1ValueArg.html" title="The basic labeled argument that parses a value.">ValueArg</a>&lt;T&gt;(<span class="stringliteral">&quot;&quot;</span>, name, desc, req, val, constraint, v)
<a name="l00256"></a>00256 {
<a name="l00257"></a>00257 <a class="code" href="classTCLAP_1_1Arg.html#a9832bb7564f4ab472bd51b7b1bbc683f" title="Whether this argument can be ignored, if desired.">_ignoreable</a> = ignoreable;
<a name="l00258"></a>00258 <a class="code" href="classTCLAP_1_1OptionalUnlabeledTracker.html#a59bfa7d01b45d4796500470c9218e390">OptionalUnlabeledTracker::check</a>(req, <a class="code" href="classTCLAP_1_1Arg.html#ac98a357568c21f0eb6ca2220b8a3d4a2" title="Returns a simple string representation of the argument.">toString</a>());
<a name="l00259"></a>00259 }
<a name="l00260"></a>00260
<a name="l00261"></a>00261 <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;
<a name="l00262"></a><a class="code" href="classTCLAP_1_1UnlabeledValueArg.html#afd3af78fccd14f2654e9b2f981ead12f">00262</a> <a class="code" href="classTCLAP_1_1UnlabeledValueArg.html#acba2fddd0719ccd90f48fcf06aaffbee" title="UnlabeledValueArg constructor.">UnlabeledValueArg&lt;T&gt;::UnlabeledValueArg</a>(<span class="keyword">const</span> std::string&amp; name,
<a name="l00263"></a>00263 <span class="keyword">const</span> std::string&amp; desc,
<a name="l00264"></a>00264 <span class="keywordtype">bool</span> req,
<a name="l00265"></a>00265 T val,
<a name="l00266"></a>00266 <a class="code" href="classTCLAP_1_1Constraint.html" title="The interface that defines the interaction between the Arg and Constraint.">Constraint&lt;T&gt;</a>* constraint,
<a name="l00267"></a>00267 <a class="code" href="classTCLAP_1_1CmdLineInterface.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLineInterface</a>&amp; parser,
<a name="l00268"></a>00268 <span class="keywordtype">bool</span> ignoreable,
<a name="l00269"></a>00269 <a class="code" href="classTCLAP_1_1Visitor.html" title="A base class that defines the interface for visitors.">Visitor</a>* v)
<a name="l00270"></a>00270 : <a class="code" href="classTCLAP_1_1ValueArg.html" title="The basic labeled argument that parses a value.">ValueArg</a>&lt;T&gt;(<span class="stringliteral">&quot;&quot;</span>, name, desc, req, val, constraint, v)
<a name="l00271"></a>00271 {
<a name="l00272"></a>00272 <a class="code" href="classTCLAP_1_1Arg.html#a9832bb7564f4ab472bd51b7b1bbc683f" title="Whether this argument can be ignored, if desired.">_ignoreable</a> = ignoreable;
<a name="l00273"></a>00273 <a class="code" href="classTCLAP_1_1OptionalUnlabeledTracker.html#a59bfa7d01b45d4796500470c9218e390">OptionalUnlabeledTracker::check</a>(req, <a class="code" href="classTCLAP_1_1Arg.html#ac98a357568c21f0eb6ca2220b8a3d4a2" title="Returns a simple string representation of the argument.">toString</a>());
<a name="l00274"></a>00274 parser.<a class="code" href="classTCLAP_1_1CmdLineInterface.html#a13b29ab754c030185e58f779dc355631" title="Adds an argument to the list of arguments to be parsed.">add</a>( <span class="keyword">this</span> );
<a name="l00275"></a>00275 }
<a name="l00276"></a>00276
<a name="l00280"></a>00280 <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;
<a name="l00281"></a><a class="code" href="classTCLAP_1_1UnlabeledValueArg.html#ad853d7950a659b0d4ee2cda3f61261fd">00281</a> <span class="keywordtype">bool</span> <a class="code" href="classTCLAP_1_1UnlabeledValueArg.html#ad853d7950a659b0d4ee2cda3f61261fd" title="Handles the processing of the argument.">UnlabeledValueArg&lt;T&gt;::processArg</a>(<span class="keywordtype">int</span> *i, std::vector&lt;std::string&gt;&amp; args)
<a name="l00282"></a>00282 {
<a name="l00283"></a>00283
<a name="l00284"></a>00284 <span class="keywordflow">if</span> ( <a class="code" href="classTCLAP_1_1Arg.html#a829e32129857d2683e5791a5df1208ec" title="Indicates whether the argument has been set.">_alreadySet</a> )
<a name="l00285"></a>00285 <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00286"></a>00286
<a name="l00287"></a>00287 <span class="keywordflow">if</span> ( <a class="code" href="classTCLAP_1_1Arg.html#a2eb0ffefe163218bdc8b4b7a33a974a7" title="Checks whether a given string has blank chars, indicating that it is a combined SwitchArg...">_hasBlanks</a>( args[*i] ) )
<a name="l00288"></a>00288 <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00289"></a>00289
<a name="l00290"></a>00290 <span class="comment">// never ignore an unlabeled arg</span>
<a name="l00291"></a>00291
<a name="l00292"></a>00292 <a class="code" href="classTCLAP_1_1ValueArg.html#af0ecdb6537febfcaa322e7131d2b3bf8" title="Extracts the value from the string.">_extractValue</a>( args[*i] );
<a name="l00293"></a>00293 <a class="code" href="classTCLAP_1_1Arg.html#a829e32129857d2683e5791a5df1208ec" title="Indicates whether the argument has been set.">_alreadySet</a> = <span class="keyword">true</span>;
<a name="l00294"></a>00294 <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00295"></a>00295 }
<a name="l00296"></a>00296
<a name="l00300"></a>00300 <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;
<a name="l00301"></a><a class="code" href="classTCLAP_1_1UnlabeledValueArg.html#abda4d1d695003ba165b6797e03007a99">00301</a> std::string <a class="code" href="classTCLAP_1_1UnlabeledValueArg.html#abda4d1d695003ba165b6797e03007a99" title="Overrides shortID for specific behavior.">UnlabeledValueArg&lt;T&gt;::shortID</a>(<span class="keyword">const</span> std::string&amp; val)<span class="keyword"> const</span>
<a name="l00302"></a>00302 <span class="keyword"></span>{
<a name="l00303"></a>00303 <span class="keyword">static_cast&lt;</span><span class="keywordtype">void</span><span class="keyword">&gt;</span>(val); <span class="comment">// Ignore input, don&apos;t warn</span>
<a name="l00304"></a>00304 <span class="keywordflow">return</span> std::string(<span class="stringliteral">&quot;&lt;&quot;</span>) + <a class="code" href="classTCLAP_1_1ValueArg.html#a78c5e5b67ce4bcebb57c886d9aa49259" title="A human readable description of the type to be parsed.">_typeDesc</a> + <span class="stringliteral">&quot;&gt;&quot;</span>;
<a name="l00305"></a>00305 }
<a name="l00306"></a>00306
<a name="l00310"></a>00310 <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;
<a name="l00311"></a><a class="code" href="classTCLAP_1_1UnlabeledValueArg.html#ade738f42a7867324ce780b0c240b0460">00311</a> std::string <a class="code" href="classTCLAP_1_1UnlabeledValueArg.html#ade738f42a7867324ce780b0c240b0460" title="Overrides longID for specific behavior.">UnlabeledValueArg&lt;T&gt;::longID</a>(<span class="keyword">const</span> std::string&amp; val)<span class="keyword"> const</span>
<a name="l00312"></a>00312 <span class="keyword"></span>{
<a name="l00313"></a>00313 <span class="keyword">static_cast&lt;</span><span class="keywordtype">void</span><span class="keyword">&gt;</span>(val); <span class="comment">// Ignore input, don&apos;t warn</span>
<a name="l00314"></a>00314
<a name="l00315"></a>00315 <span class="comment">// Ideally we would like to be able to use RTTI to return the name</span>
<a name="l00316"></a>00316 <span class="comment">// of the type required for this argument. However, g++ at least, </span>
<a name="l00317"></a>00317 <span class="comment">// doesn&apos;t appear to return terribly useful &quot;names&quot; of the types. </span>
<a name="l00318"></a>00318 <span class="keywordflow">return</span> std::string(<span class="stringliteral">&quot;&lt;&quot;</span>) + <a class="code" href="classTCLAP_1_1ValueArg.html#a78c5e5b67ce4bcebb57c886d9aa49259" title="A human readable description of the type to be parsed.">_typeDesc</a> + <span class="stringliteral">&quot;&gt;&quot;</span>;
<a name="l00319"></a>00319 }
<a name="l00320"></a>00320
<a name="l00324"></a>00324 <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;
<a name="l00325"></a><a class="code" href="classTCLAP_1_1UnlabeledValueArg.html#a74632cd4d169481518cb1a871f97b412">00325</a> <span class="keywordtype">bool</span> <a class="code" href="classTCLAP_1_1UnlabeledValueArg.html#a74632cd4d169481518cb1a871f97b412" title="Overrides operator== for specific behavior.">UnlabeledValueArg&lt;T&gt;::operator==</a>(<span class="keyword">const</span> <a class="code" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a>&amp; a )<span class="keyword"> const</span>
<a name="l00326"></a>00326 <span class="keyword"></span>{
<a name="l00327"></a>00327 <span class="keywordflow">if</span> ( <a class="code" href="classTCLAP_1_1Arg.html#ac0f138057a99fb5d94ff4acb41a083aa" title="A single work namd indentifying the argument.">_name</a> == a.<a class="code" href="classTCLAP_1_1Arg.html#a641ced141a56c74fee11d3e3a808f731" title="Returns the argument name.">getName</a>() || <a class="code" href="classTCLAP_1_1Arg.html#a9882fe256eaab01ac53db54ac657d272" title="Description of the argument.">_description</a> == a.<a class="code" href="classTCLAP_1_1Arg.html#a1943999fadcb4f28cecd6ba55ed0b085" title="Returns the argument description.">getDescription</a>() )
<a name="l00328"></a>00328 <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00329"></a>00329 <span class="keywordflow">else</span>
<a name="l00330"></a>00330 <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00331"></a>00331 }
<a name="l00332"></a>00332
<a name="l00333"></a>00333 <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;
<a name="l00334"></a><a class="code" href="classTCLAP_1_1UnlabeledValueArg.html#a8670fc7797254e602d302318063f3515">00334</a> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1UnlabeledValueArg.html#a8670fc7797254e602d302318063f3515" title="Instead of pushing to the front of list, push to the back.">UnlabeledValueArg&lt;T&gt;::addToList</a>( std::list&lt;Arg*&gt;&amp; argList )<span class="keyword"> const</span>
<a name="l00335"></a>00335 <span class="keyword"></span>{
<a name="l00336"></a>00336 argList.push_back( const_cast&lt;Arg*&gt;(static_cast&lt;const Arg* const&gt;(<span class="keyword">this</span>)) );
<a name="l00337"></a>00337 }
<a name="l00338"></a>00338
<a name="l00339"></a>00339 }
<a name="l00340"></a>00340 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Sat Apr 16 15:34:24 2011 for tclap by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.0 </small></address>
</body>
</html>

View File

@ -0,0 +1,46 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>tclap: ValueArg.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.0 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
<li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="contents">
<h1>ValueArg.h File Reference</h1><code>#include &lt;string&gt;</code><br/>
<code>#include &lt;vector&gt;</code><br/>
<code>#include &lt;<a class="el" href="Arg_8h_source.html">tclap/Arg.h</a>&gt;</code><br/>
<code>#include &lt;<a class="el" href="Constraint_8h_source.html">tclap/Constraint.h</a>&gt;</code><br/>
<p><a href="ValueArg_8h_source.html">Go to the source code of this file.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Classes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTCLAP_1_1ValueArg.html">TCLAP::ValueArg&lt; T &gt;</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The basic labeled argument that parses a value. <a href="classTCLAP_1_1ValueArg.html#_details">More...</a><br/></td></tr>
<tr><td colspan="2"><h2>Namespaces</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">namespace &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceTCLAP.html">TCLAP</a></td></tr>
</table>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Sat Apr 16 15:34:24 2011 for tclap by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.0 </small></address>
</body>
</html>

View File

@ -0,0 +1,295 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>tclap: ValueArg.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.0 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
<li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
</ul>
</div>
<h1>ValueArg.h</h1><a href="ValueArg_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/****************************************************************************** </span>
<a name="l00002"></a>00002 <span class="comment"> * </span>
<a name="l00003"></a>00003 <span class="comment"> * file: ValueArg.h</span>
<a name="l00004"></a>00004 <span class="comment"> * </span>
<a name="l00005"></a>00005 <span class="comment"> * Copyright (c) 2003, Michael E. Smoot .</span>
<a name="l00006"></a>00006 <span class="comment"> * Copyright (c) 2004, Michael E. Smoot, Daniel Aarno.</span>
<a name="l00007"></a>00007 <span class="comment"> * All rights reverved.</span>
<a name="l00008"></a>00008 <span class="comment"> * </span>
<a name="l00009"></a>00009 <span class="comment"> * See the file COPYING in the top directory of this distribution for</span>
<a name="l00010"></a>00010 <span class="comment"> * more information.</span>
<a name="l00011"></a>00011 <span class="comment"> * </span>
<a name="l00012"></a>00012 <span class="comment"> * THE SOFTWARE IS PROVIDED _AS IS_, WITHOUT WARRANTY OF ANY KIND, EXPRESS </span>
<a name="l00013"></a>00013 <span class="comment"> * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, </span>
<a name="l00014"></a>00014 <span class="comment"> * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL </span>
<a name="l00015"></a>00015 <span class="comment"> * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER </span>
<a name="l00016"></a>00016 <span class="comment"> * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING </span>
<a name="l00017"></a>00017 <span class="comment"> * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER </span>
<a name="l00018"></a>00018 <span class="comment"> * DEALINGS IN THE SOFTWARE. </span>
<a name="l00019"></a>00019 <span class="comment"> * </span>
<a name="l00020"></a>00020 <span class="comment"> *****************************************************************************/</span>
<a name="l00021"></a>00021
<a name="l00022"></a>00022
<a name="l00023"></a>00023 <span class="preprocessor">#ifndef TCLAP_VALUE_ARGUMENT_H</span>
<a name="l00024"></a>00024 <span class="preprocessor"></span><span class="preprocessor">#define TCLAP_VALUE_ARGUMENT_H</span>
<a name="l00025"></a>00025 <span class="preprocessor"></span>
<a name="l00026"></a>00026 <span class="preprocessor">#include &lt;string&gt;</span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;vector&gt;</span>
<a name="l00028"></a>00028
<a name="l00029"></a>00029 <span class="preprocessor">#include &lt;<a class="code" href="Arg_8h.html">tclap/Arg.h</a>&gt;</span>
<a name="l00030"></a>00030 <span class="preprocessor">#include &lt;<a class="code" href="Constraint_8h.html">tclap/Constraint.h</a>&gt;</span>
<a name="l00031"></a>00031
<a name="l00032"></a>00032 <span class="keyword">namespace </span>TCLAP {
<a name="l00033"></a>00033
<a name="l00042"></a>00042 <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;
<a name="l00043"></a><a class="code" href="classTCLAP_1_1ValueArg.html">00043</a> <span class="keyword">class </span><a class="code" href="classTCLAP_1_1ValueArg.html" title="The basic labeled argument that parses a value.">ValueArg</a> : <span class="keyword">public</span> <a class="code" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a>
<a name="l00044"></a>00044 {
<a name="l00045"></a>00045 <span class="keyword">protected</span>:
<a name="l00046"></a>00046
<a name="l00052"></a><a class="code" href="classTCLAP_1_1ValueArg.html#a45d5fdfce5865c02e6663f7438d485c7">00052</a> T <a class="code" href="classTCLAP_1_1ValueArg.html#a45d5fdfce5865c02e6663f7438d485c7" title="The value parsed from the command line.">_value</a>;
<a name="l00053"></a>00053
<a name="l00058"></a><a class="code" href="classTCLAP_1_1ValueArg.html#a118e3a7932700a8e3626d8f9ee2e0c95">00058</a> T <a class="code" href="classTCLAP_1_1ValueArg.html#a118e3a7932700a8e3626d8f9ee2e0c95" title="Used to support the reset() method so that ValueArg can be reset to their constructed...">_default</a>;
<a name="l00059"></a>00059
<a name="l00067"></a><a class="code" href="classTCLAP_1_1ValueArg.html#a78c5e5b67ce4bcebb57c886d9aa49259">00067</a> std::string <a class="code" href="classTCLAP_1_1ValueArg.html#a78c5e5b67ce4bcebb57c886d9aa49259" title="A human readable description of the type to be parsed.">_typeDesc</a>;
<a name="l00068"></a>00068
<a name="l00072"></a><a class="code" href="classTCLAP_1_1ValueArg.html#aa383908cff37688cf7493d46c840d03b">00072</a> <a class="code" href="classTCLAP_1_1Constraint.html" title="The interface that defines the interaction between the Arg and Constraint.">Constraint&lt;T&gt;</a>* <a class="code" href="classTCLAP_1_1ValueArg.html#aa383908cff37688cf7493d46c840d03b" title="A Constraint this Arg must conform to.">_constraint</a>;
<a name="l00073"></a>00073
<a name="l00080"></a>00080 <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1ValueArg.html#af0ecdb6537febfcaa322e7131d2b3bf8" title="Extracts the value from the string.">_extractValue</a>( <span class="keyword">const</span> std::string&amp; val );
<a name="l00081"></a>00081
<a name="l00082"></a>00082 <span class="keyword">public</span>:
<a name="l00083"></a>00083
<a name="l00107"></a>00107 <a class="code" href="classTCLAP_1_1ValueArg.html#ab2818435a1749bee3233b1f364dabf09" title="Labeled ValueArg constructor.">ValueArg</a>( <span class="keyword">const</span> std::string&amp; flag,
<a name="l00108"></a>00108 <span class="keyword">const</span> std::string&amp; name,
<a name="l00109"></a>00109 <span class="keyword">const</span> std::string&amp; desc,
<a name="l00110"></a>00110 <span class="keywordtype">bool</span> req,
<a name="l00111"></a>00111 T value,
<a name="l00112"></a>00112 <span class="keyword">const</span> std::string&amp; typeDesc,
<a name="l00113"></a>00113 <a class="code" href="classTCLAP_1_1Visitor.html" title="A base class that defines the interface for visitors.">Visitor</a>* v = NULL);
<a name="l00114"></a>00114
<a name="l00115"></a>00115
<a name="l00140"></a>00140 <a class="code" href="classTCLAP_1_1ValueArg.html#ab2818435a1749bee3233b1f364dabf09" title="Labeled ValueArg constructor.">ValueArg</a>( <span class="keyword">const</span> std::string&amp; flag,
<a name="l00141"></a>00141 <span class="keyword">const</span> std::string&amp; name,
<a name="l00142"></a>00142 <span class="keyword">const</span> std::string&amp; desc,
<a name="l00143"></a>00143 <span class="keywordtype">bool</span> req,
<a name="l00144"></a>00144 T value,
<a name="l00145"></a>00145 <span class="keyword">const</span> std::string&amp; typeDesc,
<a name="l00146"></a>00146 <a class="code" href="classTCLAP_1_1CmdLineInterface.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLineInterface</a>&amp; parser,
<a name="l00147"></a>00147 <a class="code" href="classTCLAP_1_1Visitor.html" title="A base class that defines the interface for visitors.">Visitor</a>* v = NULL );
<a name="l00148"></a>00148
<a name="l00171"></a>00171 <a class="code" href="classTCLAP_1_1ValueArg.html#ab2818435a1749bee3233b1f364dabf09" title="Labeled ValueArg constructor.">ValueArg</a>( <span class="keyword">const</span> std::string&amp; flag,
<a name="l00172"></a>00172 <span class="keyword">const</span> std::string&amp; name,
<a name="l00173"></a>00173 <span class="keyword">const</span> std::string&amp; desc,
<a name="l00174"></a>00174 <span class="keywordtype">bool</span> req,
<a name="l00175"></a>00175 T value,
<a name="l00176"></a>00176 <a class="code" href="classTCLAP_1_1Constraint.html" title="The interface that defines the interaction between the Arg and Constraint.">Constraint&lt;T&gt;</a>* constraint,
<a name="l00177"></a>00177 <a class="code" href="classTCLAP_1_1CmdLineInterface.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLineInterface</a>&amp; parser,
<a name="l00178"></a>00178 <a class="code" href="classTCLAP_1_1Visitor.html" title="A base class that defines the interface for visitors.">Visitor</a>* v = NULL );
<a name="l00179"></a>00179
<a name="l00201"></a>00201 <a class="code" href="classTCLAP_1_1ValueArg.html#ab2818435a1749bee3233b1f364dabf09" title="Labeled ValueArg constructor.">ValueArg</a>( <span class="keyword">const</span> std::string&amp; flag,
<a name="l00202"></a>00202 <span class="keyword">const</span> std::string&amp; name,
<a name="l00203"></a>00203 <span class="keyword">const</span> std::string&amp; desc,
<a name="l00204"></a>00204 <span class="keywordtype">bool</span> req,
<a name="l00205"></a>00205 T value,
<a name="l00206"></a>00206 <a class="code" href="classTCLAP_1_1Constraint.html" title="The interface that defines the interaction between the Arg and Constraint.">Constraint&lt;T&gt;</a>* constraint,
<a name="l00207"></a>00207 <a class="code" href="classTCLAP_1_1Visitor.html" title="A base class that defines the interface for visitors.">Visitor</a>* v = NULL );
<a name="l00208"></a>00208
<a name="l00218"></a>00218 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classTCLAP_1_1ValueArg.html#a71e6ee7c7324724b6fc067c5ffe31160" title="Handles the processing of the argument.">processArg</a>(<span class="keywordtype">int</span>* i, std::vector&lt;std::string&gt;&amp; args);
<a name="l00219"></a>00219
<a name="l00223"></a>00223 T&amp; <a class="code" href="classTCLAP_1_1ValueArg.html#a46900b79f4549a37003120be284adfee" title="Returns the value of the argument.">getValue</a>() ;
<a name="l00224"></a>00224
<a name="l00229"></a>00229 <span class="keyword">virtual</span> std::string <a class="code" href="classTCLAP_1_1ValueArg.html#abb1eb22814d0a0da49c5f8bb57362d09" title="Specialization of shortID.">shortID</a>(<span class="keyword">const</span> std::string&amp; val = <span class="stringliteral">&quot;val&quot;</span>) <span class="keyword">const</span>;
<a name="l00230"></a>00230
<a name="l00235"></a>00235 <span class="keyword">virtual</span> std::string <a class="code" href="classTCLAP_1_1ValueArg.html#a586d25c04c39ddf0e589605d79f72f8a" title="Specialization of longID.">longID</a>(<span class="keyword">const</span> std::string&amp; val = <span class="stringliteral">&quot;val&quot;</span>) <span class="keyword">const</span>;
<a name="l00236"></a>00236
<a name="l00237"></a>00237 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1ValueArg.html#a1bc480b71c4d8ac3646e796af8fb6e14" title="Clears the Arg object and allows it to be reused by new command lines.">reset</a>() ;
<a name="l00238"></a>00238
<a name="l00239"></a>00239 <span class="keyword">private</span>:
<a name="l00243"></a>00243 <a class="code" href="classTCLAP_1_1ValueArg.html" title="The basic labeled argument that parses a value.">ValueArg&lt;T&gt;</a>(<span class="keyword">const</span> <a class="code" href="classTCLAP_1_1ValueArg.html" title="The basic labeled argument that parses a value.">ValueArg&lt;T&gt;</a>&amp; rhs);
<a name="l00244"></a>00244 <a class="code" href="classTCLAP_1_1ValueArg.html" title="The basic labeled argument that parses a value.">ValueArg&lt;T&gt;</a>&amp; operator=(<span class="keyword">const</span> <a class="code" href="classTCLAP_1_1ValueArg.html" title="The basic labeled argument that parses a value.">ValueArg&lt;T&gt;</a>&amp; rhs);
<a name="l00245"></a>00245 };
<a name="l00246"></a>00246
<a name="l00247"></a>00247
<a name="l00251"></a>00251 <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;
<a name="l00252"></a><a class="code" href="classTCLAP_1_1ValueArg.html#ab2818435a1749bee3233b1f364dabf09">00252</a> <a class="code" href="classTCLAP_1_1ValueArg.html#ab2818435a1749bee3233b1f364dabf09" title="Labeled ValueArg constructor.">ValueArg&lt;T&gt;::ValueArg</a>(<span class="keyword">const</span> std::string&amp; flag,
<a name="l00253"></a>00253 <span class="keyword">const</span> std::string&amp; name,
<a name="l00254"></a>00254 <span class="keyword">const</span> std::string&amp; desc,
<a name="l00255"></a>00255 <span class="keywordtype">bool</span> req,
<a name="l00256"></a>00256 T val,
<a name="l00257"></a>00257 <span class="keyword">const</span> std::string&amp; typeDesc,
<a name="l00258"></a>00258 <a class="code" href="classTCLAP_1_1Visitor.html" title="A base class that defines the interface for visitors.">Visitor</a>* v)
<a name="l00259"></a>00259 : <a class="code" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a>(flag, name, desc, req, true, v),
<a name="l00260"></a>00260 _value( val ),
<a name="l00261"></a>00261 _default( val ),
<a name="l00262"></a>00262 _typeDesc( typeDesc ),
<a name="l00263"></a>00263 _constraint( NULL )
<a name="l00264"></a>00264 { }
<a name="l00265"></a>00265
<a name="l00266"></a>00266 <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;
<a name="l00267"></a><a class="code" href="classTCLAP_1_1ValueArg.html#a3b34856ee6613ccabe60d2c5a6cc714f">00267</a> <a class="code" href="classTCLAP_1_1ValueArg.html#ab2818435a1749bee3233b1f364dabf09" title="Labeled ValueArg constructor.">ValueArg&lt;T&gt;::ValueArg</a>(<span class="keyword">const</span> std::string&amp; flag,
<a name="l00268"></a>00268 <span class="keyword">const</span> std::string&amp; name,
<a name="l00269"></a>00269 <span class="keyword">const</span> std::string&amp; desc,
<a name="l00270"></a>00270 <span class="keywordtype">bool</span> req,
<a name="l00271"></a>00271 T val,
<a name="l00272"></a>00272 <span class="keyword">const</span> std::string&amp; typeDesc,
<a name="l00273"></a>00273 <a class="code" href="classTCLAP_1_1CmdLineInterface.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLineInterface</a>&amp; parser,
<a name="l00274"></a>00274 <a class="code" href="classTCLAP_1_1Visitor.html" title="A base class that defines the interface for visitors.">Visitor</a>* v)
<a name="l00275"></a>00275 : <a class="code" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a>(flag, name, desc, req, true, v),
<a name="l00276"></a>00276 _value( val ),
<a name="l00277"></a>00277 _default( val ),
<a name="l00278"></a>00278 _typeDesc( typeDesc ),
<a name="l00279"></a>00279 _constraint( NULL )
<a name="l00280"></a>00280 {
<a name="l00281"></a>00281 parser.<a class="code" href="classTCLAP_1_1CmdLineInterface.html#a13b29ab754c030185e58f779dc355631" title="Adds an argument to the list of arguments to be parsed.">add</a>( <span class="keyword">this</span> );
<a name="l00282"></a>00282 }
<a name="l00283"></a>00283
<a name="l00284"></a>00284 <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;
<a name="l00285"></a><a class="code" href="classTCLAP_1_1ValueArg.html#a152c816b8bdb19efada14e8aec9bd05c">00285</a> <a class="code" href="classTCLAP_1_1ValueArg.html#ab2818435a1749bee3233b1f364dabf09" title="Labeled ValueArg constructor.">ValueArg&lt;T&gt;::ValueArg</a>(<span class="keyword">const</span> std::string&amp; flag,
<a name="l00286"></a>00286 <span class="keyword">const</span> std::string&amp; name,
<a name="l00287"></a>00287 <span class="keyword">const</span> std::string&amp; desc,
<a name="l00288"></a>00288 <span class="keywordtype">bool</span> req,
<a name="l00289"></a>00289 T val,
<a name="l00290"></a>00290 <a class="code" href="classTCLAP_1_1Constraint.html" title="The interface that defines the interaction between the Arg and Constraint.">Constraint&lt;T&gt;</a>* constraint,
<a name="l00291"></a>00291 <a class="code" href="classTCLAP_1_1Visitor.html" title="A base class that defines the interface for visitors.">Visitor</a>* v)
<a name="l00292"></a>00292 : <a class="code" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a>(flag, name, desc, req, true, v),
<a name="l00293"></a>00293 _value( val ),
<a name="l00294"></a>00294 _default( val ),
<a name="l00295"></a>00295 _typeDesc( constraint-&gt;shortID() ),
<a name="l00296"></a>00296 _constraint( constraint )
<a name="l00297"></a>00297 { }
<a name="l00298"></a>00298
<a name="l00299"></a>00299 <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;
<a name="l00300"></a><a class="code" href="classTCLAP_1_1ValueArg.html#aa054e7649b5d9db4861eed344a8f5840">00300</a> <a class="code" href="classTCLAP_1_1ValueArg.html#ab2818435a1749bee3233b1f364dabf09" title="Labeled ValueArg constructor.">ValueArg&lt;T&gt;::ValueArg</a>(<span class="keyword">const</span> std::string&amp; flag,
<a name="l00301"></a>00301 <span class="keyword">const</span> std::string&amp; name,
<a name="l00302"></a>00302 <span class="keyword">const</span> std::string&amp; desc,
<a name="l00303"></a>00303 <span class="keywordtype">bool</span> req,
<a name="l00304"></a>00304 T val,
<a name="l00305"></a>00305 <a class="code" href="classTCLAP_1_1Constraint.html" title="The interface that defines the interaction between the Arg and Constraint.">Constraint&lt;T&gt;</a>* constraint,
<a name="l00306"></a>00306 <a class="code" href="classTCLAP_1_1CmdLineInterface.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLineInterface</a>&amp; parser,
<a name="l00307"></a>00307 <a class="code" href="classTCLAP_1_1Visitor.html" title="A base class that defines the interface for visitors.">Visitor</a>* v)
<a name="l00308"></a>00308 : <a class="code" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a>(flag, name, desc, req, true, v),
<a name="l00309"></a>00309 _value( val ),
<a name="l00310"></a>00310 _default( val ),
<a name="l00311"></a>00311 _typeDesc( constraint-&gt;shortID() ),
<a name="l00312"></a>00312 _constraint( constraint )
<a name="l00313"></a>00313 {
<a name="l00314"></a>00314 parser.<a class="code" href="classTCLAP_1_1CmdLineInterface.html#a13b29ab754c030185e58f779dc355631" title="Adds an argument to the list of arguments to be parsed.">add</a>( <span class="keyword">this</span> );
<a name="l00315"></a>00315 }
<a name="l00316"></a>00316
<a name="l00317"></a>00317
<a name="l00321"></a>00321 <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;
<a name="l00322"></a><a class="code" href="classTCLAP_1_1ValueArg.html#a46900b79f4549a37003120be284adfee">00322</a> T&amp; <a class="code" href="classTCLAP_1_1ValueArg.html#a46900b79f4549a37003120be284adfee" title="Returns the value of the argument.">ValueArg&lt;T&gt;::getValue</a>() { <span class="keywordflow">return</span> <a class="code" href="classTCLAP_1_1ValueArg.html#a45d5fdfce5865c02e6663f7438d485c7" title="The value parsed from the command line.">_value</a>; }
<a name="l00323"></a>00323
<a name="l00327"></a>00327 <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;
<a name="l00328"></a><a class="code" href="classTCLAP_1_1ValueArg.html#a71e6ee7c7324724b6fc067c5ffe31160">00328</a> <span class="keywordtype">bool</span> <a class="code" href="classTCLAP_1_1ValueArg.html#a71e6ee7c7324724b6fc067c5ffe31160" title="Handles the processing of the argument.">ValueArg&lt;T&gt;::processArg</a>(<span class="keywordtype">int</span> *i, std::vector&lt;std::string&gt;&amp; args)
<a name="l00329"></a>00329 {
<a name="l00330"></a>00330 <span class="keywordflow">if</span> ( <a class="code" href="classTCLAP_1_1Arg.html#a9832bb7564f4ab472bd51b7b1bbc683f" title="Whether this argument can be ignored, if desired.">_ignoreable</a> &amp;&amp; <a class="code" href="classTCLAP_1_1Arg.html#a4d412155b8f9b4956e64e91c48e55a3b" title="Whether to ignore the rest.">Arg::ignoreRest</a>() )
<a name="l00331"></a>00331 <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00332"></a>00332
<a name="l00333"></a>00333 <span class="keywordflow">if</span> ( <a class="code" href="classTCLAP_1_1Arg.html#a2eb0ffefe163218bdc8b4b7a33a974a7" title="Checks whether a given string has blank chars, indicating that it is a combined SwitchArg...">_hasBlanks</a>( args[*i] ) )
<a name="l00334"></a>00334 <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00335"></a>00335
<a name="l00336"></a>00336 std::string flag = args[*i];
<a name="l00337"></a>00337
<a name="l00338"></a>00338 std::string value = <span class="stringliteral">&quot;&quot;</span>;
<a name="l00339"></a>00339 <a class="code" href="classTCLAP_1_1Arg.html#a54595328e81f5fb77859563690faab25" title="Trims a value off of the flag.">trimFlag</a>( flag, value );
<a name="l00340"></a>00340
<a name="l00341"></a>00341 <span class="keywordflow">if</span> ( <a class="code" href="classTCLAP_1_1Arg.html#aac37b1b734b477e5d16f2037dba9c125" title="A method that tests whether a string matches this argument.">argMatches</a>( flag ) )
<a name="l00342"></a>00342 {
<a name="l00343"></a>00343 <span class="keywordflow">if</span> ( <a class="code" href="classTCLAP_1_1Arg.html#a829e32129857d2683e5791a5df1208ec" title="Indicates whether the argument has been set.">_alreadySet</a> )
<a name="l00344"></a>00344 {
<a name="l00345"></a>00345 <span class="keywordflow">if</span> ( <a class="code" href="classTCLAP_1_1Arg.html#ab413bd1d8a7ecf3c89672ee23ef791ba" title="Indicates that the arg was set as part of an XOR and not on the command line.">_xorSet</a> )
<a name="l00346"></a>00346 <span class="keywordflow">throw</span>( <a class="code" href="classTCLAP_1_1CmdLineParseException.html" title="Thrown from CmdLine when the arguments on the command line are not properly specified...">CmdLineParseException</a>(
<a name="l00347"></a>00347 <span class="stringliteral">&quot;Mutually exclusive argument already set!&quot;</span>,
<a name="l00348"></a>00348 <a class="code" href="classTCLAP_1_1Arg.html#ac98a357568c21f0eb6ca2220b8a3d4a2" title="Returns a simple string representation of the argument.">toString</a>()) );
<a name="l00349"></a>00349 <span class="keywordflow">else</span>
<a name="l00350"></a>00350 <span class="keywordflow">throw</span>( <a class="code" href="classTCLAP_1_1CmdLineParseException.html" title="Thrown from CmdLine when the arguments on the command line are not properly specified...">CmdLineParseException</a>(<span class="stringliteral">&quot;Argument already set!&quot;</span>,
<a name="l00351"></a>00351 <a class="code" href="classTCLAP_1_1Arg.html#ac98a357568c21f0eb6ca2220b8a3d4a2" title="Returns a simple string representation of the argument.">toString</a>()) );
<a name="l00352"></a>00352 }
<a name="l00353"></a>00353
<a name="l00354"></a>00354 <span class="keywordflow">if</span> ( <a class="code" href="classTCLAP_1_1Arg.html#aadef6ca7e40f5b3d3fd03186976aea7e" title="The delimiter that separates an argument flag/name from the value.">Arg::delimiter</a>() != <span class="charliteral">&apos; &apos;</span> &amp;&amp; value == <span class="stringliteral">&quot;&quot;</span> )
<a name="l00355"></a>00355 <span class="keywordflow">throw</span>( <a class="code" href="classTCLAP_1_1ArgParseException.html" title="Thrown from within the child Arg classes when it fails to properly parse the argument...">ArgParseException</a>(
<a name="l00356"></a>00356 <span class="stringliteral">&quot;Couldn&apos;t find delimiter for this argument!&quot;</span>,
<a name="l00357"></a>00357 <a class="code" href="classTCLAP_1_1Arg.html#ac98a357568c21f0eb6ca2220b8a3d4a2" title="Returns a simple string representation of the argument.">toString</a>() ) );
<a name="l00358"></a>00358
<a name="l00359"></a>00359 <span class="keywordflow">if</span> ( value == <span class="stringliteral">&quot;&quot;</span> )
<a name="l00360"></a>00360 {
<a name="l00361"></a>00361 (*i)++;
<a name="l00362"></a>00362 <span class="keywordflow">if</span> ( static_cast&lt;unsigned int&gt;(*i) &lt; args.size() )
<a name="l00363"></a>00363 <a class="code" href="classTCLAP_1_1ValueArg.html#af0ecdb6537febfcaa322e7131d2b3bf8" title="Extracts the value from the string.">_extractValue</a>( args[*i] );
<a name="l00364"></a>00364 <span class="keywordflow">else</span>
<a name="l00365"></a>00365 <span class="keywordflow">throw</span>( <a class="code" href="classTCLAP_1_1ArgParseException.html" title="Thrown from within the child Arg classes when it fails to properly parse the argument...">ArgParseException</a>(<span class="stringliteral">&quot;Missing a value for this argument!&quot;</span>,
<a name="l00366"></a>00366 <a class="code" href="classTCLAP_1_1Arg.html#ac98a357568c21f0eb6ca2220b8a3d4a2" title="Returns a simple string representation of the argument.">toString</a>() ) );
<a name="l00367"></a>00367 }
<a name="l00368"></a>00368 <span class="keywordflow">else</span>
<a name="l00369"></a>00369 <a class="code" href="classTCLAP_1_1ValueArg.html#af0ecdb6537febfcaa322e7131d2b3bf8" title="Extracts the value from the string.">_extractValue</a>( value );
<a name="l00370"></a>00370
<a name="l00371"></a>00371 <a class="code" href="classTCLAP_1_1Arg.html#a829e32129857d2683e5791a5df1208ec" title="Indicates whether the argument has been set.">_alreadySet</a> = <span class="keyword">true</span>;
<a name="l00372"></a>00372 <a class="code" href="classTCLAP_1_1Arg.html#aa963d0d4c8cb297e1f4cf74143bf6d1b" title="Performs the special handling described by the Vistitor.">_checkWithVisitor</a>();
<a name="l00373"></a>00373 <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00374"></a>00374 }
<a name="l00375"></a>00375 <span class="keywordflow">else</span>
<a name="l00376"></a>00376 <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00377"></a>00377 }
<a name="l00378"></a>00378
<a name="l00382"></a>00382 <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;
<a name="l00383"></a><a class="code" href="classTCLAP_1_1ValueArg.html#abb1eb22814d0a0da49c5f8bb57362d09">00383</a> std::string <a class="code" href="classTCLAP_1_1ValueArg.html#abb1eb22814d0a0da49c5f8bb57362d09" title="Specialization of shortID.">ValueArg&lt;T&gt;::shortID</a>(<span class="keyword">const</span> std::string&amp; val)<span class="keyword"> const</span>
<a name="l00384"></a>00384 <span class="keyword"></span>{
<a name="l00385"></a>00385 <span class="keyword">static_cast&lt;</span><span class="keywordtype">void</span><span class="keyword">&gt;</span>(val); <span class="comment">// Ignore input, don&apos;t warn</span>
<a name="l00386"></a>00386 <span class="keywordflow">return</span> <a class="code" href="classTCLAP_1_1ValueArg.html#abb1eb22814d0a0da49c5f8bb57362d09" title="Specialization of shortID.">Arg::shortID</a>( <a class="code" href="classTCLAP_1_1ValueArg.html#a78c5e5b67ce4bcebb57c886d9aa49259" title="A human readable description of the type to be parsed.">_typeDesc</a> );
<a name="l00387"></a>00387 }
<a name="l00388"></a>00388
<a name="l00392"></a>00392 <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;
<a name="l00393"></a><a class="code" href="classTCLAP_1_1ValueArg.html#a586d25c04c39ddf0e589605d79f72f8a">00393</a> std::string <a class="code" href="classTCLAP_1_1ValueArg.html#a586d25c04c39ddf0e589605d79f72f8a" title="Specialization of longID.">ValueArg&lt;T&gt;::longID</a>(<span class="keyword">const</span> std::string&amp; val)<span class="keyword"> const</span>
<a name="l00394"></a>00394 <span class="keyword"></span>{
<a name="l00395"></a>00395 <span class="keyword">static_cast&lt;</span><span class="keywordtype">void</span><span class="keyword">&gt;</span>(val); <span class="comment">// Ignore input, don&apos;t warn</span>
<a name="l00396"></a>00396 <span class="keywordflow">return</span> <a class="code" href="classTCLAP_1_1ValueArg.html#a586d25c04c39ddf0e589605d79f72f8a" title="Specialization of longID.">Arg::longID</a>( <a class="code" href="classTCLAP_1_1ValueArg.html#a78c5e5b67ce4bcebb57c886d9aa49259" title="A human readable description of the type to be parsed.">_typeDesc</a> );
<a name="l00397"></a>00397 }
<a name="l00398"></a>00398
<a name="l00399"></a>00399 <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;
<a name="l00400"></a><a class="code" href="classTCLAP_1_1ValueArg.html#af0ecdb6537febfcaa322e7131d2b3bf8">00400</a> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1ValueArg.html#af0ecdb6537febfcaa322e7131d2b3bf8" title="Extracts the value from the string.">ValueArg&lt;T&gt;::_extractValue</a>( <span class="keyword">const</span> std::string&amp; val )
<a name="l00401"></a>00401 {
<a name="l00402"></a>00402 <span class="keywordflow">try</span> {
<a name="l00403"></a>00403 <a class="code" href="namespaceTCLAP.html#a80473f9a24db31df0206504c2cdf0a8d">ExtractValue</a>(<a class="code" href="classTCLAP_1_1ValueArg.html#a45d5fdfce5865c02e6663f7438d485c7" title="The value parsed from the command line.">_value</a>, val, <span class="keyword">typename</span> <a class="code" href="structTCLAP_1_1ArgTraits.html" title="Arg traits are used to get compile type specialization when parsing argument values...">ArgTraits&lt;T&gt;::ValueCategory</a>());
<a name="l00404"></a>00404 } <span class="keywordflow">catch</span>( <a class="code" href="classTCLAP_1_1ArgParseException.html" title="Thrown from within the child Arg classes when it fails to properly parse the argument...">ArgParseException</a> &amp;e) {
<a name="l00405"></a>00405 <span class="keywordflow">throw</span> <a class="code" href="classTCLAP_1_1ArgParseException.html" title="Thrown from within the child Arg classes when it fails to properly parse the argument...">ArgParseException</a>(e.<a class="code" href="classTCLAP_1_1ArgException.html#a0656dab88a7129bc288821bacd653d08" title="Returns the error text.">error</a>(), <a class="code" href="classTCLAP_1_1Arg.html#ac98a357568c21f0eb6ca2220b8a3d4a2" title="Returns a simple string representation of the argument.">toString</a>());
<a name="l00406"></a>00406 }
<a name="l00407"></a>00407
<a name="l00408"></a>00408 <span class="keywordflow">if</span> ( <a class="code" href="classTCLAP_1_1ValueArg.html#aa383908cff37688cf7493d46c840d03b" title="A Constraint this Arg must conform to.">_constraint</a> != NULL )
<a name="l00409"></a>00409 <span class="keywordflow">if</span> ( ! <a class="code" href="classTCLAP_1_1ValueArg.html#aa383908cff37688cf7493d46c840d03b" title="A Constraint this Arg must conform to.">_constraint</a>-&gt;check( <a class="code" href="classTCLAP_1_1ValueArg.html#a45d5fdfce5865c02e6663f7438d485c7" title="The value parsed from the command line.">_value</a> ) )
<a name="l00410"></a>00410 <span class="keywordflow">throw</span>( <a class="code" href="classTCLAP_1_1CmdLineParseException.html" title="Thrown from CmdLine when the arguments on the command line are not properly specified...">CmdLineParseException</a>( <span class="stringliteral">&quot;Value &apos;&quot;</span> + val +
<a name="l00411"></a>00411 + <span class="stringliteral">&quot;&apos; does not meet constraint: &quot;</span>
<a name="l00412"></a>00412 + <a class="code" href="classTCLAP_1_1ValueArg.html#aa383908cff37688cf7493d46c840d03b" title="A Constraint this Arg must conform to.">_constraint</a>-&gt;description(),
<a name="l00413"></a>00413 <a class="code" href="classTCLAP_1_1Arg.html#ac98a357568c21f0eb6ca2220b8a3d4a2" title="Returns a simple string representation of the argument.">toString</a>() ) );
<a name="l00414"></a>00414 }
<a name="l00415"></a>00415
<a name="l00416"></a>00416 <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;
<a name="l00417"></a><a class="code" href="classTCLAP_1_1ValueArg.html#a1bc480b71c4d8ac3646e796af8fb6e14">00417</a> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1ValueArg.html#a1bc480b71c4d8ac3646e796af8fb6e14" title="Clears the Arg object and allows it to be reused by new command lines.">ValueArg&lt;T&gt;::reset</a>()
<a name="l00418"></a>00418 {
<a name="l00419"></a>00419 <a class="code" href="classTCLAP_1_1ValueArg.html#a1bc480b71c4d8ac3646e796af8fb6e14" title="Clears the Arg object and allows it to be reused by new command lines.">Arg::reset</a>();
<a name="l00420"></a>00420 <a class="code" href="classTCLAP_1_1ValueArg.html#a45d5fdfce5865c02e6663f7438d485c7" title="The value parsed from the command line.">_value</a> = <a class="code" href="classTCLAP_1_1ValueArg.html#a118e3a7932700a8e3626d8f9ee2e0c95" title="Used to support the reset() method so that ValueArg can be reset to their constructed...">_default</a>;
<a name="l00421"></a>00421 }
<a name="l00422"></a>00422
<a name="l00423"></a>00423 } <span class="comment">// namespace TCLAP</span>
<a name="l00424"></a>00424
<a name="l00425"></a>00425 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Sat Apr 16 15:34:24 2011 for tclap by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.0 </small></address>
</body>
</html>

View File

@ -0,0 +1,64 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>tclap: ValuesConstraint.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.0 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
<li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="contents">
<h1>ValuesConstraint.h File Reference</h1><code>#include &lt;string&gt;</code><br/>
<code>#include &lt;vector&gt;</code><br/>
<code>#include &lt;<a class="el" href="Constraint_8h_source.html">tclap/Constraint.h</a>&gt;</code><br/>
<code>#include &lt;sstream&gt;</code><br/>
<p><a href="ValuesConstraint_8h_source.html">Go to the source code of this file.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Classes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTCLAP_1_1ValuesConstraint.html">TCLAP::ValuesConstraint&lt; T &gt;</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">A <a class="el" href="classTCLAP_1_1Constraint.html" title="The interface that defines the interaction between the Arg and Constraint.">Constraint</a> that constrains the <a class="el" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a> to only those values specified in the constraint. <a href="classTCLAP_1_1ValuesConstraint.html#_details">More...</a><br/></td></tr>
<tr><td colspan="2"><h2>Namespaces</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">namespace &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceTCLAP.html">TCLAP</a></td></tr>
<tr><td colspan="2"><h2>Defines</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ValuesConstraint_8h.html#a91e904e6e4f21f803c49113b934e6966">HAVE_SSTREAM</a></td></tr>
</table>
<hr/><h2>Define Documentation</h2>
<a class="anchor" id="a91e904e6e4f21f803c49113b934e6966"></a><!-- doxytag: member="ValuesConstraint.h::HAVE_SSTREAM" ref="a91e904e6e4f21f803c49113b934e6966" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define HAVE_SSTREAM</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Definition at line <a class="el" href="ValuesConstraint_8h_source.html#l00033">33</a> of file <a class="el" href="ValuesConstraint_8h_source.html">ValuesConstraint.h</a>.</p>
</div>
</div>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Sat Apr 16 15:34:24 2011 for tclap by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.0 </small></address>
</body>
</html>

View File

@ -0,0 +1,151 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>tclap: ValuesConstraint.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.0 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
<li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
</ul>
</div>
<h1>ValuesConstraint.h</h1><a href="ValuesConstraint_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
<a name="l00002"></a>00002
<a name="l00003"></a>00003 <span class="comment">/****************************************************************************** </span>
<a name="l00004"></a>00004 <span class="comment"> * </span>
<a name="l00005"></a>00005 <span class="comment"> * file: ValuesConstraint.h</span>
<a name="l00006"></a>00006 <span class="comment"> * </span>
<a name="l00007"></a>00007 <span class="comment"> * Copyright (c) 2005, Michael E. Smoot</span>
<a name="l00008"></a>00008 <span class="comment"> * All rights reverved.</span>
<a name="l00009"></a>00009 <span class="comment"> * </span>
<a name="l00010"></a>00010 <span class="comment"> * See the file COPYING in the top directory of this distribution for</span>
<a name="l00011"></a>00011 <span class="comment"> * more information.</span>
<a name="l00012"></a>00012 <span class="comment"> * </span>
<a name="l00013"></a>00013 <span class="comment"> * THE SOFTWARE IS PROVIDED _AS IS_, WITHOUT WARRANTY OF ANY KIND, EXPRESS </span>
<a name="l00014"></a>00014 <span class="comment"> * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, </span>
<a name="l00015"></a>00015 <span class="comment"> * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL </span>
<a name="l00016"></a>00016 <span class="comment"> * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER </span>
<a name="l00017"></a>00017 <span class="comment"> * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING </span>
<a name="l00018"></a>00018 <span class="comment"> * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER </span>
<a name="l00019"></a>00019 <span class="comment"> * DEALINGS IN THE SOFTWARE. </span>
<a name="l00020"></a>00020 <span class="comment"> * </span>
<a name="l00021"></a>00021 <span class="comment"> *****************************************************************************/</span>
<a name="l00022"></a>00022
<a name="l00023"></a>00023 <span class="preprocessor">#ifndef TCLAP_VALUESCONSTRAINT_H</span>
<a name="l00024"></a>00024 <span class="preprocessor"></span><span class="preprocessor">#define TCLAP_VALUESCONSTRAINT_H</span>
<a name="l00025"></a>00025 <span class="preprocessor"></span>
<a name="l00026"></a>00026 <span class="preprocessor">#include &lt;string&gt;</span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;vector&gt;</span>
<a name="l00028"></a>00028 <span class="preprocessor">#include &lt;<a class="code" href="Constraint_8h.html">tclap/Constraint.h</a>&gt;</span>
<a name="l00029"></a>00029
<a name="l00030"></a>00030 <span class="preprocessor">#ifdef HAVE_CONFIG_H</span>
<a name="l00031"></a>00031 <span class="preprocessor"></span><span class="preprocessor">#include &lt;config.h&gt;</span>
<a name="l00032"></a>00032 <span class="preprocessor">#else</span>
<a name="l00033"></a><a class="code" href="ValuesConstraint_8h.html#a91e904e6e4f21f803c49113b934e6966">00033</a> <span class="preprocessor"></span><span class="preprocessor">#define HAVE_SSTREAM</span>
<a name="l00034"></a>00034 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00035"></a>00035 <span class="preprocessor"></span>
<a name="l00036"></a>00036 <span class="preprocessor">#if defined(HAVE_SSTREAM)</span>
<a name="l00037"></a>00037 <span class="preprocessor"></span><span class="preprocessor">#include &lt;sstream&gt;</span>
<a name="l00038"></a>00038 <span class="preprocessor">#elif defined(HAVE_STRSTREAM)</span>
<a name="l00039"></a>00039 <span class="preprocessor"></span><span class="preprocessor">#include &lt;strstream&gt;</span>
<a name="l00040"></a>00040 <span class="preprocessor">#else</span>
<a name="l00041"></a>00041 <span class="preprocessor"></span><span class="preprocessor">#error &quot;Need a stringstream (sstream or strstream) to compile!&quot;</span>
<a name="l00042"></a>00042 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00043"></a>00043 <span class="preprocessor"></span>
<a name="l00044"></a>00044 <span class="keyword">namespace </span>TCLAP {
<a name="l00045"></a>00045
<a name="l00050"></a>00050 <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;
<a name="l00051"></a><a class="code" href="classTCLAP_1_1ValuesConstraint.html">00051</a> <span class="keyword">class </span><a class="code" href="classTCLAP_1_1ValuesConstraint.html" title="A Constraint that constrains the Arg to only those values specified in the constraint...">ValuesConstraint</a> : <span class="keyword">public</span> <a class="code" href="classTCLAP_1_1Constraint.html" title="The interface that defines the interaction between the Arg and Constraint.">Constraint</a>&lt;T&gt;
<a name="l00052"></a>00052 {
<a name="l00053"></a>00053
<a name="l00054"></a>00054 <span class="keyword">public</span>:
<a name="l00055"></a>00055
<a name="l00060"></a>00060 <a class="code" href="classTCLAP_1_1ValuesConstraint.html#a8ab127461012bb1dcfac159e17105db9" title="Constructor.">ValuesConstraint</a>(std::vector&lt;T&gt;&amp; allowed);
<a name="l00061"></a>00061
<a name="l00065"></a><a class="code" href="classTCLAP_1_1ValuesConstraint.html#a9b0c218300a9e0937386f2e566ba21bd">00065</a> <span class="keyword">virtual</span> <a class="code" href="classTCLAP_1_1ValuesConstraint.html#a9b0c218300a9e0937386f2e566ba21bd" title="Virtual destructor.">~ValuesConstraint</a>() {}
<a name="l00066"></a>00066
<a name="l00070"></a>00070 <span class="keyword">virtual</span> std::string <a class="code" href="classTCLAP_1_1ValuesConstraint.html#a07b08c05a7bfcbe5815895353ffef1d5" title="Returns a description of the Constraint.">description</a>() <span class="keyword">const</span>;
<a name="l00071"></a>00071
<a name="l00075"></a>00075 <span class="keyword">virtual</span> std::string <a class="code" href="classTCLAP_1_1ValuesConstraint.html#a1bbe12afcb1f185ee7ac808d69e2d345" title="Returns the short ID for the Constraint.">shortID</a>() <span class="keyword">const</span>;
<a name="l00076"></a>00076
<a name="l00082"></a>00082 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classTCLAP_1_1ValuesConstraint.html#ae132b185413cf5dea5cc040f60e7ede6" title="The method used to verify that the value parsed from the command line meets the constraint...">check</a>(<span class="keyword">const</span> T&amp; value) <span class="keyword">const</span>;
<a name="l00083"></a>00083
<a name="l00084"></a>00084 <span class="keyword">protected</span>:
<a name="l00085"></a>00085
<a name="l00089"></a><a class="code" href="classTCLAP_1_1ValuesConstraint.html#ac43fa83688358c0ad06157053cce347a">00089</a> std::vector&lt;T&gt; <a class="code" href="classTCLAP_1_1ValuesConstraint.html#ac43fa83688358c0ad06157053cce347a" title="The list of valid values.">_allowed</a>;
<a name="l00090"></a>00090
<a name="l00094"></a><a class="code" href="classTCLAP_1_1ValuesConstraint.html#a6ebc63fa5eea116a50aa5f76aee56fd6">00094</a> std::string <a class="code" href="classTCLAP_1_1ValuesConstraint.html#a6ebc63fa5eea116a50aa5f76aee56fd6" title="The string used to describe the allowed values of this constraint.">_typeDesc</a>;
<a name="l00095"></a>00095
<a name="l00096"></a>00096 };
<a name="l00097"></a>00097
<a name="l00098"></a>00098 <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;
<a name="l00099"></a><a class="code" href="classTCLAP_1_1ValuesConstraint.html#a8ab127461012bb1dcfac159e17105db9">00099</a> <a class="code" href="classTCLAP_1_1ValuesConstraint.html#a8ab127461012bb1dcfac159e17105db9" title="Constructor.">ValuesConstraint&lt;T&gt;::ValuesConstraint</a>(std::vector&lt;T&gt;&amp; allowed)
<a name="l00100"></a>00100 : _allowed(allowed),
<a name="l00101"></a>00101 _typeDesc(<span class="stringliteral">&quot;&quot;</span>)
<a name="l00102"></a>00102 {
<a name="l00103"></a>00103 <span class="keywordflow">for</span> ( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i &lt; <a class="code" href="classTCLAP_1_1ValuesConstraint.html#ac43fa83688358c0ad06157053cce347a" title="The list of valid values.">_allowed</a>.size(); i++ )
<a name="l00104"></a>00104 {
<a name="l00105"></a>00105
<a name="l00106"></a>00106 <span class="preprocessor">#if defined(HAVE_SSTREAM)</span>
<a name="l00107"></a>00107 <span class="preprocessor"></span> std::ostringstream os;
<a name="l00108"></a>00108 <span class="preprocessor">#elif defined(HAVE_STRSTREAM)</span>
<a name="l00109"></a>00109 <span class="preprocessor"></span> std::ostrstream os;
<a name="l00110"></a>00110 <span class="preprocessor">#else</span>
<a name="l00111"></a>00111 <span class="preprocessor"></span><span class="preprocessor">#error &quot;Need a stringstream (sstream or strstream) to compile!&quot;</span>
<a name="l00112"></a>00112 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00113"></a>00113 <span class="preprocessor"></span>
<a name="l00114"></a>00114 os &lt;&lt; <a class="code" href="classTCLAP_1_1ValuesConstraint.html#ac43fa83688358c0ad06157053cce347a" title="The list of valid values.">_allowed</a>[i];
<a name="l00115"></a>00115
<a name="l00116"></a>00116 std::string temp( os.str() );
<a name="l00117"></a>00117
<a name="l00118"></a>00118 <span class="keywordflow">if</span> ( i &gt; 0 )
<a name="l00119"></a>00119 <a class="code" href="classTCLAP_1_1ValuesConstraint.html#a6ebc63fa5eea116a50aa5f76aee56fd6" title="The string used to describe the allowed values of this constraint.">_typeDesc</a> += <span class="stringliteral">&quot;|&quot;</span>;
<a name="l00120"></a>00120 <a class="code" href="classTCLAP_1_1ValuesConstraint.html#a6ebc63fa5eea116a50aa5f76aee56fd6" title="The string used to describe the allowed values of this constraint.">_typeDesc</a> += temp;
<a name="l00121"></a>00121 }
<a name="l00122"></a>00122 }
<a name="l00123"></a>00123
<a name="l00124"></a>00124 <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;
<a name="l00125"></a><a class="code" href="classTCLAP_1_1ValuesConstraint.html#ae132b185413cf5dea5cc040f60e7ede6">00125</a> <span class="keywordtype">bool</span> <a class="code" href="classTCLAP_1_1ValuesConstraint.html#ae132b185413cf5dea5cc040f60e7ede6" title="The method used to verify that the value parsed from the command line meets the constraint...">ValuesConstraint&lt;T&gt;::check</a>( <span class="keyword">const</span> T&amp; val )<span class="keyword"> const</span>
<a name="l00126"></a>00126 <span class="keyword"></span>{
<a name="l00127"></a>00127 <span class="keywordflow">if</span> ( std::find(<a class="code" href="classTCLAP_1_1ValuesConstraint.html#ac43fa83688358c0ad06157053cce347a" title="The list of valid values.">_allowed</a>.begin(),<a class="code" href="classTCLAP_1_1ValuesConstraint.html#ac43fa83688358c0ad06157053cce347a" title="The list of valid values.">_allowed</a>.end(),val) == <a class="code" href="classTCLAP_1_1ValuesConstraint.html#ac43fa83688358c0ad06157053cce347a" title="The list of valid values.">_allowed</a>.end() )
<a name="l00128"></a>00128 <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00129"></a>00129 <span class="keywordflow">else</span>
<a name="l00130"></a>00130 <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00131"></a>00131 }
<a name="l00132"></a>00132
<a name="l00133"></a>00133 <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;
<a name="l00134"></a><a class="code" href="classTCLAP_1_1ValuesConstraint.html#a1bbe12afcb1f185ee7ac808d69e2d345">00134</a> std::string <a class="code" href="classTCLAP_1_1ValuesConstraint.html#a1bbe12afcb1f185ee7ac808d69e2d345" title="Returns the short ID for the Constraint.">ValuesConstraint&lt;T&gt;::shortID</a>()<span class="keyword"> const</span>
<a name="l00135"></a>00135 <span class="keyword"></span>{
<a name="l00136"></a>00136 <span class="keywordflow">return</span> <a class="code" href="classTCLAP_1_1ValuesConstraint.html#a6ebc63fa5eea116a50aa5f76aee56fd6" title="The string used to describe the allowed values of this constraint.">_typeDesc</a>;
<a name="l00137"></a>00137 }
<a name="l00138"></a>00138
<a name="l00139"></a>00139 <span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;
<a name="l00140"></a><a class="code" href="classTCLAP_1_1ValuesConstraint.html#a07b08c05a7bfcbe5815895353ffef1d5">00140</a> std::string <a class="code" href="classTCLAP_1_1ValuesConstraint.html#a07b08c05a7bfcbe5815895353ffef1d5" title="Returns a description of the Constraint.">ValuesConstraint&lt;T&gt;::description</a>()<span class="keyword"> const</span>
<a name="l00141"></a>00141 <span class="keyword"></span>{
<a name="l00142"></a>00142 <span class="keywordflow">return</span> <a class="code" href="classTCLAP_1_1ValuesConstraint.html#a6ebc63fa5eea116a50aa5f76aee56fd6" title="The string used to describe the allowed values of this constraint.">_typeDesc</a>;
<a name="l00143"></a>00143 }
<a name="l00144"></a>00144
<a name="l00145"></a>00145
<a name="l00146"></a>00146 } <span class="comment">//namespace TCLAP</span>
<a name="l00147"></a>00147 <span class="preprocessor">#endif </span>
<a name="l00148"></a>00148 <span class="preprocessor"></span>
</pre></div></div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Sat Apr 16 15:34:24 2011 for tclap by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.0 </small></address>
</body>
</html>

View File

@ -0,0 +1,45 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>tclap: VersionVisitor.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.0 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
<li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="contents">
<h1>VersionVisitor.h File Reference</h1><code>#include &lt;<a class="el" href="CmdLineInterface_8h_source.html">tclap/CmdLineInterface.h</a>&gt;</code><br/>
<code>#include &lt;<a class="el" href="CmdLineOutput_8h_source.html">tclap/CmdLineOutput.h</a>&gt;</code><br/>
<code>#include &lt;<a class="el" href="Visitor_8h_source.html">tclap/Visitor.h</a>&gt;</code><br/>
<p><a href="VersionVisitor_8h_source.html">Go to the source code of this file.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Classes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTCLAP_1_1VersionVisitor.html">TCLAP::VersionVisitor</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">A Vistor that will call the version method of the given <a class="el" href="classTCLAP_1_1CmdLineOutput.html" title="The interface that any output object must implement.">CmdLineOutput</a> for the specified <a class="el" href="classTCLAP_1_1CmdLine.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLine</a> object and then exit. <a href="classTCLAP_1_1VersionVisitor.html#_details">More...</a><br/></td></tr>
<tr><td colspan="2"><h2>Namespaces</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">namespace &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceTCLAP.html">TCLAP</a></td></tr>
</table>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Sat Apr 16 15:34:24 2011 for tclap by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.0 </small></address>
</body>
</html>

View File

@ -0,0 +1,90 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>tclap: VersionVisitor.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.0 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
<li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
</ul>
</div>
<h1>VersionVisitor.h</h1><a href="VersionVisitor_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// -*- Mode: c++; c-basic-offset: 4; tab-width: 4; -*-</span>
<a name="l00002"></a>00002
<a name="l00003"></a>00003 <span class="comment">/****************************************************************************** </span>
<a name="l00004"></a>00004 <span class="comment"> * </span>
<a name="l00005"></a>00005 <span class="comment"> * file: VersionVisitor.h</span>
<a name="l00006"></a>00006 <span class="comment"> * </span>
<a name="l00007"></a>00007 <span class="comment"> * Copyright (c) 2003, Michael E. Smoot .</span>
<a name="l00008"></a>00008 <span class="comment"> * All rights reverved.</span>
<a name="l00009"></a>00009 <span class="comment"> * </span>
<a name="l00010"></a>00010 <span class="comment"> * See the file COPYING in the top directory of this distribution for</span>
<a name="l00011"></a>00011 <span class="comment"> * more information.</span>
<a name="l00012"></a>00012 <span class="comment"> * </span>
<a name="l00013"></a>00013 <span class="comment"> * THE SOFTWARE IS PROVIDED _AS IS_, WITHOUT WARRANTY OF ANY KIND, EXPRESS </span>
<a name="l00014"></a>00014 <span class="comment"> * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, </span>
<a name="l00015"></a>00015 <span class="comment"> * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL </span>
<a name="l00016"></a>00016 <span class="comment"> * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER </span>
<a name="l00017"></a>00017 <span class="comment"> * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING </span>
<a name="l00018"></a>00018 <span class="comment"> * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER </span>
<a name="l00019"></a>00019 <span class="comment"> * DEALINGS IN THE SOFTWARE. </span>
<a name="l00020"></a>00020 <span class="comment"> * </span>
<a name="l00021"></a>00021 <span class="comment"> *****************************************************************************/</span>
<a name="l00022"></a>00022
<a name="l00023"></a>00023
<a name="l00024"></a>00024 <span class="preprocessor">#ifndef TCLAP_VERSION_VISITOR_H</span>
<a name="l00025"></a>00025 <span class="preprocessor"></span><span class="preprocessor">#define TCLAP_VERSION_VISITOR_H</span>
<a name="l00026"></a>00026 <span class="preprocessor"></span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;<a class="code" href="CmdLineInterface_8h.html">tclap/CmdLineInterface.h</a>&gt;</span>
<a name="l00028"></a>00028 <span class="preprocessor">#include &lt;<a class="code" href="CmdLineOutput_8h.html">tclap/CmdLineOutput.h</a>&gt;</span>
<a name="l00029"></a>00029 <span class="preprocessor">#include &lt;<a class="code" href="Visitor_8h.html">tclap/Visitor.h</a>&gt;</span>
<a name="l00030"></a>00030
<a name="l00031"></a>00031 <span class="keyword">namespace </span>TCLAP {
<a name="l00032"></a>00032
<a name="l00037"></a><a class="code" href="classTCLAP_1_1VersionVisitor.html">00037</a> <span class="keyword">class </span><a class="code" href="classTCLAP_1_1VersionVisitor.html" title="A Vistor that will call the version method of the given CmdLineOutput for the specified...">VersionVisitor</a>: <span class="keyword">public</span> <a class="code" href="classTCLAP_1_1Visitor.html" title="A base class that defines the interface for visitors.">Visitor</a>
<a name="l00038"></a>00038 {
<a name="l00039"></a>00039 <span class="keyword">private</span>:
<a name="l00043"></a>00043 <a class="code" href="classTCLAP_1_1VersionVisitor.html" title="A Vistor that will call the version method of the given CmdLineOutput for the specified...">VersionVisitor</a>(<span class="keyword">const</span> <a class="code" href="classTCLAP_1_1VersionVisitor.html" title="A Vistor that will call the version method of the given CmdLineOutput for the specified...">VersionVisitor</a>&amp; rhs);
<a name="l00044"></a>00044 <a class="code" href="classTCLAP_1_1VersionVisitor.html" title="A Vistor that will call the version method of the given CmdLineOutput for the specified...">VersionVisitor</a>&amp; operator=(<span class="keyword">const</span> <a class="code" href="classTCLAP_1_1VersionVisitor.html" title="A Vistor that will call the version method of the given CmdLineOutput for the specified...">VersionVisitor</a>&amp; rhs);
<a name="l00045"></a>00045
<a name="l00046"></a>00046 <span class="keyword">protected</span>:
<a name="l00047"></a>00047
<a name="l00051"></a><a class="code" href="classTCLAP_1_1VersionVisitor.html#ac789d900e73daa8b4b53a1e9b80b756e">00051</a> <a class="code" href="classTCLAP_1_1CmdLineInterface.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLineInterface</a>* <a class="code" href="classTCLAP_1_1VersionVisitor.html#ac789d900e73daa8b4b53a1e9b80b756e" title="The CmdLine of interest.">_cmd</a>;
<a name="l00052"></a>00052
<a name="l00056"></a><a class="code" href="classTCLAP_1_1VersionVisitor.html#ab4c9f44a2bd62830e42f79b35ac4d300">00056</a> <a class="code" href="classTCLAP_1_1CmdLineOutput.html" title="The interface that any output object must implement.">CmdLineOutput</a>** <a class="code" href="classTCLAP_1_1VersionVisitor.html#ab4c9f44a2bd62830e42f79b35ac4d300" title="The output object.">_out</a>;
<a name="l00057"></a>00057
<a name="l00058"></a>00058 <span class="keyword">public</span>:
<a name="l00059"></a>00059
<a name="l00065"></a><a class="code" href="classTCLAP_1_1VersionVisitor.html#a6e5c16f245e2333dcc568dc9c4e6d537">00065</a> <a class="code" href="classTCLAP_1_1VersionVisitor.html" title="A Vistor that will call the version method of the given CmdLineOutput for the specified...">VersionVisitor</a>( <a class="code" href="classTCLAP_1_1CmdLineInterface.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLineInterface</a>* cmd, <a class="code" href="classTCLAP_1_1CmdLineOutput.html" title="The interface that any output object must implement.">CmdLineOutput</a>** out )
<a name="l00066"></a>00066 : <a class="code" href="classTCLAP_1_1Visitor.html" title="A base class that defines the interface for visitors.">Visitor</a>(), <a class="code" href="classTCLAP_1_1VersionVisitor.html#ac789d900e73daa8b4b53a1e9b80b756e" title="The CmdLine of interest.">_cmd</a>( cmd ), <a class="code" href="classTCLAP_1_1VersionVisitor.html#ab4c9f44a2bd62830e42f79b35ac4d300" title="The output object.">_out</a>( out ) { }
<a name="l00067"></a>00067
<a name="l00072"></a><a class="code" href="classTCLAP_1_1VersionVisitor.html#a30b0d5bd22ac41364d027b94bded4fc0">00072</a> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1VersionVisitor.html#a30b0d5bd22ac41364d027b94bded4fc0" title="Calls the version method of the output object using the specified CmdLine.">visit</a>() {
<a name="l00073"></a>00073 (*_out)-&gt;version(*<a class="code" href="classTCLAP_1_1VersionVisitor.html#ac789d900e73daa8b4b53a1e9b80b756e" title="The CmdLine of interest.">_cmd</a>);
<a name="l00074"></a>00074 <span class="keywordflow">throw</span> <a class="code" href="classTCLAP_1_1ExitException.html">ExitException</a>(0);
<a name="l00075"></a>00075 }
<a name="l00076"></a>00076
<a name="l00077"></a>00077 };
<a name="l00078"></a>00078
<a name="l00079"></a>00079 }
<a name="l00080"></a>00080
<a name="l00081"></a>00081 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Sat Apr 16 15:34:24 2011 for tclap by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.0 </small></address>
</body>
</html>

View File

@ -0,0 +1,42 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>tclap: Visitor.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.0 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
<li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="contents">
<h1>Visitor.h File Reference</h1>
<p><a href="Visitor_8h_source.html">Go to the source code of this file.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Classes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTCLAP_1_1Visitor.html">TCLAP::Visitor</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">A base class that defines the interface for visitors. <a href="classTCLAP_1_1Visitor.html#_details">More...</a><br/></td></tr>
<tr><td colspan="2"><h2>Namespaces</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">namespace &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceTCLAP.html">TCLAP</a></td></tr>
</table>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Sat Apr 16 15:34:24 2011 for tclap by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.0 </small></address>
</body>
</html>

View File

@ -0,0 +1,72 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>tclap: Visitor.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.0 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
<li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
</ul>
</div>
<h1>Visitor.h</h1><a href="Visitor_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
<a name="l00002"></a>00002 <span class="comment">/****************************************************************************** </span>
<a name="l00003"></a>00003 <span class="comment"> * </span>
<a name="l00004"></a>00004 <span class="comment"> * file: Visitor.h</span>
<a name="l00005"></a>00005 <span class="comment"> * </span>
<a name="l00006"></a>00006 <span class="comment"> * Copyright (c) 2003, Michael E. Smoot .</span>
<a name="l00007"></a>00007 <span class="comment"> * All rights reverved.</span>
<a name="l00008"></a>00008 <span class="comment"> * </span>
<a name="l00009"></a>00009 <span class="comment"> * See the file COPYING in the top directory of this distribution for</span>
<a name="l00010"></a>00010 <span class="comment"> * more information.</span>
<a name="l00011"></a>00011 <span class="comment"> * </span>
<a name="l00012"></a>00012 <span class="comment"> * THE SOFTWARE IS PROVIDED _AS IS_, WITHOUT WARRANTY OF ANY KIND, EXPRESS </span>
<a name="l00013"></a>00013 <span class="comment"> * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, </span>
<a name="l00014"></a>00014 <span class="comment"> * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL </span>
<a name="l00015"></a>00015 <span class="comment"> * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER </span>
<a name="l00016"></a>00016 <span class="comment"> * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING </span>
<a name="l00017"></a>00017 <span class="comment"> * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER </span>
<a name="l00018"></a>00018 <span class="comment"> * DEALINGS IN THE SOFTWARE. </span>
<a name="l00019"></a>00019 <span class="comment"> * </span>
<a name="l00020"></a>00020 <span class="comment"> *****************************************************************************/</span>
<a name="l00021"></a>00021
<a name="l00022"></a>00022
<a name="l00023"></a>00023 <span class="preprocessor">#ifndef TCLAP_VISITOR_H</span>
<a name="l00024"></a>00024 <span class="preprocessor"></span><span class="preprocessor">#define TCLAP_VISITOR_H</span>
<a name="l00025"></a>00025 <span class="preprocessor"></span>
<a name="l00026"></a>00026 <span class="keyword">namespace </span>TCLAP {
<a name="l00027"></a>00027
<a name="l00031"></a><a class="code" href="classTCLAP_1_1Visitor.html">00031</a> <span class="keyword">class </span><a class="code" href="classTCLAP_1_1Visitor.html" title="A base class that defines the interface for visitors.">Visitor</a>
<a name="l00032"></a>00032 {
<a name="l00033"></a>00033 <span class="keyword">public</span>:
<a name="l00034"></a>00034
<a name="l00038"></a><a class="code" href="classTCLAP_1_1Visitor.html#a0d7198eaa0989abe3898ffd59dff7801">00038</a> <a class="code" href="classTCLAP_1_1Visitor.html#a0d7198eaa0989abe3898ffd59dff7801" title="Constructor.">Visitor</a>() { }
<a name="l00039"></a>00039
<a name="l00043"></a><a class="code" href="classTCLAP_1_1Visitor.html#ace7cbebaab5dfc0ba1f17cd360dd6a55">00043</a> <span class="keyword">virtual</span> <a class="code" href="classTCLAP_1_1Visitor.html#ace7cbebaab5dfc0ba1f17cd360dd6a55" title="Destructor.">~Visitor</a>() { }
<a name="l00044"></a>00044
<a name="l00048"></a><a class="code" href="classTCLAP_1_1Visitor.html#a08625664637579a24ba2f0ab3e713670">00048</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1Visitor.html#a08625664637579a24ba2f0ab3e713670" title="Does nothing.">visit</a>() { }
<a name="l00049"></a>00049 };
<a name="l00050"></a>00050
<a name="l00051"></a>00051 }
<a name="l00052"></a>00052
<a name="l00053"></a>00053 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Sat Apr 16 15:34:24 2011 for tclap by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.0 </small></address>
</body>
</html>

View File

@ -0,0 +1,47 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>tclap: XorHandler.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.0 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
<li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="contents">
<h1>XorHandler.h File Reference</h1><code>#include &lt;<a class="el" href="Arg_8h_source.html">tclap/Arg.h</a>&gt;</code><br/>
<code>#include &lt;string&gt;</code><br/>
<code>#include &lt;vector&gt;</code><br/>
<code>#include &lt;algorithm&gt;</code><br/>
<code>#include &lt;iostream&gt;</code><br/>
<p><a href="XorHandler_8h_source.html">Go to the source code of this file.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Classes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTCLAP_1_1XorHandler.html">TCLAP::XorHandler</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This class handles lists of Arg's that are to be XOR'd on the command line. <a href="classTCLAP_1_1XorHandler.html#_details">More...</a><br/></td></tr>
<tr><td colspan="2"><h2>Namespaces</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">namespace &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceTCLAP.html">TCLAP</a></td></tr>
</table>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Sat Apr 16 15:34:24 2011 for tclap by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.0 </small></address>
</body>
</html>

View File

@ -0,0 +1,160 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>tclap: XorHandler.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.0 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
<li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
</ul>
</div>
<h1>XorHandler.h</h1><a href="XorHandler_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
<a name="l00002"></a>00002 <span class="comment">/****************************************************************************** </span>
<a name="l00003"></a>00003 <span class="comment"> * </span>
<a name="l00004"></a>00004 <span class="comment"> * file: XorHandler.h</span>
<a name="l00005"></a>00005 <span class="comment"> * </span>
<a name="l00006"></a>00006 <span class="comment"> * Copyright (c) 2003, Michael E. Smoot .</span>
<a name="l00007"></a>00007 <span class="comment"> * Copyright (c) 2004, Michael E. Smoot, Daniel Aarno.</span>
<a name="l00008"></a>00008 <span class="comment"> * All rights reverved.</span>
<a name="l00009"></a>00009 <span class="comment"> * </span>
<a name="l00010"></a>00010 <span class="comment"> * See the file COPYING in the top directory of this distribution for</span>
<a name="l00011"></a>00011 <span class="comment"> * more information.</span>
<a name="l00012"></a>00012 <span class="comment"> * </span>
<a name="l00013"></a>00013 <span class="comment"> * THE SOFTWARE IS PROVIDED _AS IS_, WITHOUT WARRANTY OF ANY KIND, EXPRESS </span>
<a name="l00014"></a>00014 <span class="comment"> * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, </span>
<a name="l00015"></a>00015 <span class="comment"> * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL </span>
<a name="l00016"></a>00016 <span class="comment"> * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER </span>
<a name="l00017"></a>00017 <span class="comment"> * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING </span>
<a name="l00018"></a>00018 <span class="comment"> * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER </span>
<a name="l00019"></a>00019 <span class="comment"> * DEALINGS IN THE SOFTWARE. </span>
<a name="l00020"></a>00020 <span class="comment"> * </span>
<a name="l00021"></a>00021 <span class="comment"> *****************************************************************************/</span>
<a name="l00022"></a>00022
<a name="l00023"></a>00023 <span class="preprocessor">#ifndef TCLAP_XORHANDLER_H</span>
<a name="l00024"></a>00024 <span class="preprocessor"></span><span class="preprocessor">#define TCLAP_XORHANDLER_H</span>
<a name="l00025"></a>00025 <span class="preprocessor"></span>
<a name="l00026"></a>00026 <span class="preprocessor">#include &lt;<a class="code" href="Arg_8h.html">tclap/Arg.h</a>&gt;</span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;string&gt;</span>
<a name="l00028"></a>00028 <span class="preprocessor">#include &lt;vector&gt;</span>
<a name="l00029"></a>00029 <span class="preprocessor">#include &lt;algorithm&gt;</span>
<a name="l00030"></a>00030 <span class="preprocessor">#include &lt;iostream&gt;</span>
<a name="l00031"></a>00031
<a name="l00032"></a>00032 <span class="keyword">namespace </span>TCLAP {
<a name="l00033"></a>00033
<a name="l00038"></a><a class="code" href="classTCLAP_1_1XorHandler.html">00038</a> <span class="keyword">class </span><a class="code" href="classTCLAP_1_1XorHandler.html" title="This class handles lists of Arg&amp;#39;s that are to be XOR&amp;#39;d on the command line...">XorHandler</a>
<a name="l00039"></a>00039 {
<a name="l00040"></a>00040 <span class="keyword">protected</span>:
<a name="l00041"></a>00041
<a name="l00045"></a><a class="code" href="classTCLAP_1_1XorHandler.html#a4ebd5b96e23a0ab03bdd431fe622d4e1">00045</a> std::vector&lt; std::vector&lt;Arg*&gt; &gt; <a class="code" href="classTCLAP_1_1XorHandler.html#a4ebd5b96e23a0ab03bdd431fe622d4e1" title="The list of of lists of Arg&amp;#39;s to be or&amp;#39;d together.">_orList</a>;
<a name="l00046"></a>00046
<a name="l00047"></a>00047 <span class="keyword">public</span>:
<a name="l00048"></a>00048
<a name="l00052"></a><a class="code" href="classTCLAP_1_1XorHandler.html#a195391f50b7fe5eb939c2f6d236f571e">00052</a> <a class="code" href="classTCLAP_1_1XorHandler.html#a195391f50b7fe5eb939c2f6d236f571e" title="Constructor.">XorHandler</a>( ) : <a class="code" href="classTCLAP_1_1XorHandler.html#a4ebd5b96e23a0ab03bdd431fe622d4e1" title="The list of of lists of Arg&amp;#39;s to be or&amp;#39;d together.">_orList</a>(std::vector&lt; std::vector&lt;<a class="code" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a>*&gt; &gt;()) {}
<a name="l00053"></a>00053
<a name="l00058"></a>00058 <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1XorHandler.html#a76f156bf36a8aede334801aa242f31b9" title="Add a list of Arg*&amp;#39;s that will be orred together.">add</a>( std::vector&lt;Arg*&gt;&amp; ors );
<a name="l00059"></a>00059
<a name="l00067"></a>00067 <span class="keywordtype">int</span> <a class="code" href="classTCLAP_1_1XorHandler.html#a3df7722e4c4c5d331de69fc902336b00" title="Checks whether the specified Arg is in one of the xor lists and if it does match...">check</a>( <span class="keyword">const</span> <a class="code" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a>* a );
<a name="l00068"></a>00068
<a name="l00072"></a>00072 std::string <a class="code" href="classTCLAP_1_1XorHandler.html#aca185a80e9df6e4250a230fa5aec7891" title="Returns the XOR specific short usage.">shortUsage</a>();
<a name="l00073"></a>00073
<a name="l00078"></a>00078 <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1XorHandler.html#a257a855934eb343a0fad3c4e5fe5ff57" title="Prints the XOR specific long usage.">printLongUsage</a>(std::ostream&amp; os);
<a name="l00079"></a>00079
<a name="l00085"></a>00085 <span class="keywordtype">bool</span> <a class="code" href="classTCLAP_1_1XorHandler.html#a1a74fab4667cc591a1e3094c91bc942d" title="Simply checks whether the Arg is contained in one of the arg lists.">contains</a>( <span class="keyword">const</span> <a class="code" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a>* a );
<a name="l00086"></a>00086
<a name="l00087"></a>00087 std::vector&lt; std::vector&lt;Arg*&gt; &gt;&amp; <a class="code" href="classTCLAP_1_1XorHandler.html#a0e0d95c697d227cc51f82424b8530182">getXorList</a>();
<a name="l00088"></a>00088
<a name="l00089"></a>00089 };
<a name="l00090"></a>00090
<a name="l00091"></a>00091
<a name="l00093"></a>00093 <span class="comment">//BEGIN XOR.cpp</span>
<a name="l00095"></a><a class="code" href="classTCLAP_1_1XorHandler.html#a76f156bf36a8aede334801aa242f31b9">00095</a> <span class="comment"></span><span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1XorHandler.html#a76f156bf36a8aede334801aa242f31b9" title="Add a list of Arg*&amp;#39;s that will be orred together.">XorHandler::add</a>( std::vector&lt;Arg*&gt;&amp; ors )
<a name="l00096"></a>00096 {
<a name="l00097"></a>00097 <a class="code" href="classTCLAP_1_1XorHandler.html#a4ebd5b96e23a0ab03bdd431fe622d4e1" title="The list of of lists of Arg&amp;#39;s to be or&amp;#39;d together.">_orList</a>.push_back( ors );
<a name="l00098"></a>00098 }
<a name="l00099"></a>00099
<a name="l00100"></a><a class="code" href="classTCLAP_1_1XorHandler.html#a3df7722e4c4c5d331de69fc902336b00">00100</a> <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="classTCLAP_1_1XorHandler.html#a3df7722e4c4c5d331de69fc902336b00" title="Checks whether the specified Arg is in one of the xor lists and if it does match...">XorHandler::check</a>( <span class="keyword">const</span> <a class="code" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a>* a )
<a name="l00101"></a>00101 {
<a name="l00102"></a>00102 <span class="comment">// iterate over each XOR list</span>
<a name="l00103"></a>00103 <span class="keywordflow">for</span> ( <span class="keywordtype">int</span> i = 0; <span class="keyword">static_cast&lt;</span><span class="keywordtype">unsigned</span> <span class="keywordtype">int</span><span class="keyword">&gt;</span>(i) &lt; <a class="code" href="classTCLAP_1_1XorHandler.html#a4ebd5b96e23a0ab03bdd431fe622d4e1" title="The list of of lists of Arg&amp;#39;s to be or&amp;#39;d together.">_orList</a>.size(); i++ )
<a name="l00104"></a>00104 {
<a name="l00105"></a>00105 <span class="comment">// if the XOR list contains the arg..</span>
<a name="l00106"></a>00106 <a class="code" href="namespaceTCLAP.html#a04213af1ffc3178ce5f771d21d5164a2" title="Typedef of an Arg vector iterator.">ArgVectorIterator</a> ait = std::find( <a class="code" href="classTCLAP_1_1XorHandler.html#a4ebd5b96e23a0ab03bdd431fe622d4e1" title="The list of of lists of Arg&amp;#39;s to be or&amp;#39;d together.">_orList</a>[i].begin(),
<a name="l00107"></a>00107 <a class="code" href="classTCLAP_1_1XorHandler.html#a4ebd5b96e23a0ab03bdd431fe622d4e1" title="The list of of lists of Arg&amp;#39;s to be or&amp;#39;d together.">_orList</a>[i].end(), a );
<a name="l00108"></a>00108 <span class="keywordflow">if</span> ( ait != <a class="code" href="classTCLAP_1_1XorHandler.html#a4ebd5b96e23a0ab03bdd431fe622d4e1" title="The list of of lists of Arg&amp;#39;s to be or&amp;#39;d together.">_orList</a>[i].end() )
<a name="l00109"></a>00109 {
<a name="l00110"></a>00110 <span class="comment">// first check to see if a mutually exclusive switch</span>
<a name="l00111"></a>00111 <span class="comment">// has not already been set</span>
<a name="l00112"></a>00112 <span class="keywordflow">for</span> ( <a class="code" href="namespaceTCLAP.html#a04213af1ffc3178ce5f771d21d5164a2" title="Typedef of an Arg vector iterator.">ArgVectorIterator</a> it = <a class="code" href="classTCLAP_1_1XorHandler.html#a4ebd5b96e23a0ab03bdd431fe622d4e1" title="The list of of lists of Arg&amp;#39;s to be or&amp;#39;d together.">_orList</a>[i].begin();
<a name="l00113"></a>00113 it != <a class="code" href="classTCLAP_1_1XorHandler.html#a4ebd5b96e23a0ab03bdd431fe622d4e1" title="The list of of lists of Arg&amp;#39;s to be or&amp;#39;d together.">_orList</a>[i].end();
<a name="l00114"></a>00114 it++ )
<a name="l00115"></a>00115 <span class="keywordflow">if</span> ( a != (*it) &amp;&amp; (*it)-&gt;<a class="code" href="classTCLAP_1_1Arg.html#a6af7a1e92b5d92fc2d90c1a95aab4384" title="Indicates whether the argument has already been set.">isSet</a>() )
<a name="l00116"></a>00116 <span class="keywordflow">throw</span>(<a class="code" href="classTCLAP_1_1CmdLineParseException.html" title="Thrown from CmdLine when the arguments on the command line are not properly specified...">CmdLineParseException</a>(
<a name="l00117"></a>00117 <span class="stringliteral">&quot;Mutually exclusive argument already set!&quot;</span>,
<a name="l00118"></a>00118 (*it)-&gt;toString()));
<a name="l00119"></a>00119
<a name="l00120"></a>00120 <span class="comment">// go through and set each arg that is not a</span>
<a name="l00121"></a>00121 <span class="keywordflow">for</span> ( <a class="code" href="namespaceTCLAP.html#a04213af1ffc3178ce5f771d21d5164a2" title="Typedef of an Arg vector iterator.">ArgVectorIterator</a> it = <a class="code" href="classTCLAP_1_1XorHandler.html#a4ebd5b96e23a0ab03bdd431fe622d4e1" title="The list of of lists of Arg&amp;#39;s to be or&amp;#39;d together.">_orList</a>[i].begin();
<a name="l00122"></a>00122 it != <a class="code" href="classTCLAP_1_1XorHandler.html#a4ebd5b96e23a0ab03bdd431fe622d4e1" title="The list of of lists of Arg&amp;#39;s to be or&amp;#39;d together.">_orList</a>[i].end();
<a name="l00123"></a>00123 it++ )
<a name="l00124"></a>00124 <span class="keywordflow">if</span> ( a != (*it) )
<a name="l00125"></a>00125 (*it)-&gt;xorSet();
<a name="l00126"></a>00126
<a name="l00127"></a>00127 <span class="comment">// return the number of required args that have now been set</span>
<a name="l00128"></a>00128 <span class="keywordflow">if</span> ( (*ait)-&gt;allowMore() )
<a name="l00129"></a>00129 <span class="keywordflow">return</span> 0;
<a name="l00130"></a>00130 <span class="keywordflow">else</span>
<a name="l00131"></a>00131 <span class="keywordflow">return</span> <span class="keyword">static_cast&lt;</span><span class="keywordtype">int</span><span class="keyword">&gt;</span>(<a class="code" href="classTCLAP_1_1XorHandler.html#a4ebd5b96e23a0ab03bdd431fe622d4e1" title="The list of of lists of Arg&amp;#39;s to be or&amp;#39;d together.">_orList</a>[i].size());
<a name="l00132"></a>00132 }
<a name="l00133"></a>00133 }
<a name="l00134"></a>00134
<a name="l00135"></a>00135 <span class="keywordflow">if</span> ( a-&gt;<a class="code" href="classTCLAP_1_1Arg.html#a00a3cfdb2b6e9a111ad39cbd4978b96c" title="Indicates whether the argument is required.">isRequired</a>() )
<a name="l00136"></a>00136 <span class="keywordflow">return</span> 1;
<a name="l00137"></a>00137 <span class="keywordflow">else</span>
<a name="l00138"></a>00138 <span class="keywordflow">return</span> 0;
<a name="l00139"></a>00139 }
<a name="l00140"></a>00140
<a name="l00141"></a><a class="code" href="classTCLAP_1_1XorHandler.html#a1a74fab4667cc591a1e3094c91bc942d">00141</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> <a class="code" href="classTCLAP_1_1XorHandler.html#a1a74fab4667cc591a1e3094c91bc942d" title="Simply checks whether the Arg is contained in one of the arg lists.">XorHandler::contains</a>( <span class="keyword">const</span> <a class="code" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a>* a )
<a name="l00142"></a>00142 {
<a name="l00143"></a>00143 <span class="keywordflow">for</span> ( <span class="keywordtype">int</span> i = 0; <span class="keyword">static_cast&lt;</span><span class="keywordtype">unsigned</span> <span class="keywordtype">int</span><span class="keyword">&gt;</span>(i) &lt; <a class="code" href="classTCLAP_1_1XorHandler.html#a4ebd5b96e23a0ab03bdd431fe622d4e1" title="The list of of lists of Arg&amp;#39;s to be or&amp;#39;d together.">_orList</a>.size(); i++ )
<a name="l00144"></a>00144 <span class="keywordflow">for</span> ( <a class="code" href="namespaceTCLAP.html#a04213af1ffc3178ce5f771d21d5164a2" title="Typedef of an Arg vector iterator.">ArgVectorIterator</a> it = <a class="code" href="classTCLAP_1_1XorHandler.html#a4ebd5b96e23a0ab03bdd431fe622d4e1" title="The list of of lists of Arg&amp;#39;s to be or&amp;#39;d together.">_orList</a>[i].begin();
<a name="l00145"></a>00145 it != <a class="code" href="classTCLAP_1_1XorHandler.html#a4ebd5b96e23a0ab03bdd431fe622d4e1" title="The list of of lists of Arg&amp;#39;s to be or&amp;#39;d together.">_orList</a>[i].end();
<a name="l00146"></a>00146 it++ )
<a name="l00147"></a>00147 <span class="keywordflow">if</span> ( a == (*it) )
<a name="l00148"></a>00148 <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00149"></a>00149
<a name="l00150"></a>00150 <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00151"></a>00151 }
<a name="l00152"></a>00152
<a name="l00153"></a><a class="code" href="classTCLAP_1_1XorHandler.html#a0e0d95c697d227cc51f82424b8530182">00153</a> <span class="keyword">inline</span> std::vector&lt; std::vector&lt;Arg*&gt; &gt;&amp; <a class="code" href="classTCLAP_1_1XorHandler.html#a0e0d95c697d227cc51f82424b8530182">XorHandler::getXorList</a>()
<a name="l00154"></a>00154 {
<a name="l00155"></a>00155 <span class="keywordflow">return</span> <a class="code" href="classTCLAP_1_1XorHandler.html#a4ebd5b96e23a0ab03bdd431fe622d4e1" title="The list of of lists of Arg&amp;#39;s to be or&amp;#39;d together.">_orList</a>;
<a name="l00156"></a>00156 }
<a name="l00157"></a>00157
<a name="l00158"></a>00158
<a name="l00159"></a>00159
<a name="l00161"></a>00161 <span class="comment">//END XOR.cpp</span>
<a name="l00163"></a>00163 <span class="comment"></span>
<a name="l00164"></a>00164 } <span class="comment">//namespace TCLAP</span>
<a name="l00165"></a>00165
<a name="l00166"></a>00166 <span class="preprocessor">#endif </span>
</pre></div></div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Sat Apr 16 15:34:24 2011 for tclap by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.0 </small></address>
</body>
</html>

View File

@ -0,0 +1,51 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>tclap: ZshCompletionOutput.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.0 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
<li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="contents">
<h1>ZshCompletionOutput.h File Reference</h1><code>#include &lt;string&gt;</code><br/>
<code>#include &lt;vector&gt;</code><br/>
<code>#include &lt;list&gt;</code><br/>
<code>#include &lt;iostream&gt;</code><br/>
<code>#include &lt;map&gt;</code><br/>
<code>#include &lt;<a class="el" href="CmdLineInterface_8h_source.html">tclap/CmdLineInterface.h</a>&gt;</code><br/>
<code>#include &lt;<a class="el" href="CmdLineOutput_8h_source.html">tclap/CmdLineOutput.h</a>&gt;</code><br/>
<code>#include &lt;<a class="el" href="XorHandler_8h_source.html">tclap/XorHandler.h</a>&gt;</code><br/>
<code>#include &lt;<a class="el" href="Arg_8h_source.html">tclap/Arg.h</a>&gt;</code><br/>
<p><a href="ZshCompletionOutput_8h_source.html">Go to the source code of this file.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Classes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTCLAP_1_1ZshCompletionOutput.html">TCLAP::ZshCompletionOutput</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">A class that generates a Zsh completion function as output from the <a class="el" href="classTCLAP_1_1ZshCompletionOutput.html#a3ea685b174fce7ddf2353129863b49d7" title="Prints the usage to stdout.">usage()</a> method for the given <a class="el" href="classTCLAP_1_1CmdLine.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLine</a> and its Args. <a href="classTCLAP_1_1ZshCompletionOutput.html#_details">More...</a><br/></td></tr>
<tr><td colspan="2"><h2>Namespaces</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">namespace &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceTCLAP.html">TCLAP</a></td></tr>
</table>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Sat Apr 16 15:34:24 2011 for tclap by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.0 </small></address>
</body>
</html>

View File

@ -0,0 +1,334 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>tclap: ZshCompletionOutput.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.0 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
<li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
</ul>
</div>
<h1>ZshCompletionOutput.h</h1><a href="ZshCompletionOutput_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// -*- Mode: c++; c-basic-offset: 4; tab-width: 4; -*-</span>
<a name="l00002"></a>00002
<a name="l00003"></a>00003 <span class="comment">/****************************************************************************** </span>
<a name="l00004"></a>00004 <span class="comment"> * </span>
<a name="l00005"></a>00005 <span class="comment"> * file: ZshCompletionOutput.h</span>
<a name="l00006"></a>00006 <span class="comment"> * </span>
<a name="l00007"></a>00007 <span class="comment"> * Copyright (c) 2006, Oliver Kiddle</span>
<a name="l00008"></a>00008 <span class="comment"> * All rights reverved.</span>
<a name="l00009"></a>00009 <span class="comment"> * </span>
<a name="l00010"></a>00010 <span class="comment"> * See the file COPYING in the top directory of this distribution for</span>
<a name="l00011"></a>00011 <span class="comment"> * more information.</span>
<a name="l00012"></a>00012 <span class="comment"> * </span>
<a name="l00013"></a>00013 <span class="comment"> * THE SOFTWARE IS PROVIDED _AS IS_, WITHOUT WARRANTY OF ANY KIND, EXPRESS </span>
<a name="l00014"></a>00014 <span class="comment"> * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, </span>
<a name="l00015"></a>00015 <span class="comment"> * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL </span>
<a name="l00016"></a>00016 <span class="comment"> * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER </span>
<a name="l00017"></a>00017 <span class="comment"> * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING </span>
<a name="l00018"></a>00018 <span class="comment"> * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER </span>
<a name="l00019"></a>00019 <span class="comment"> * DEALINGS IN THE SOFTWARE.</span>
<a name="l00020"></a>00020 <span class="comment"> * </span>
<a name="l00021"></a>00021 <span class="comment"> *****************************************************************************/</span>
<a name="l00022"></a>00022
<a name="l00023"></a>00023 <span class="preprocessor">#ifndef TCLAP_ZSHCOMPLETIONOUTPUT_H</span>
<a name="l00024"></a>00024 <span class="preprocessor"></span><span class="preprocessor">#define TCLAP_ZSHCOMPLETIONOUTPUT_H</span>
<a name="l00025"></a>00025 <span class="preprocessor"></span>
<a name="l00026"></a>00026 <span class="preprocessor">#include &lt;string&gt;</span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;vector&gt;</span>
<a name="l00028"></a>00028 <span class="preprocessor">#include &lt;list&gt;</span>
<a name="l00029"></a>00029 <span class="preprocessor">#include &lt;iostream&gt;</span>
<a name="l00030"></a>00030 <span class="preprocessor">#include &lt;map&gt;</span>
<a name="l00031"></a>00031
<a name="l00032"></a>00032 <span class="preprocessor">#include &lt;<a class="code" href="CmdLineInterface_8h.html">tclap/CmdLineInterface.h</a>&gt;</span>
<a name="l00033"></a>00033 <span class="preprocessor">#include &lt;<a class="code" href="CmdLineOutput_8h.html">tclap/CmdLineOutput.h</a>&gt;</span>
<a name="l00034"></a>00034 <span class="preprocessor">#include &lt;<a class="code" href="XorHandler_8h.html">tclap/XorHandler.h</a>&gt;</span>
<a name="l00035"></a>00035 <span class="preprocessor">#include &lt;<a class="code" href="Arg_8h.html">tclap/Arg.h</a>&gt;</span>
<a name="l00036"></a>00036
<a name="l00037"></a>00037 <span class="keyword">namespace </span>TCLAP {
<a name="l00038"></a>00038
<a name="l00043"></a><a class="code" href="classTCLAP_1_1ZshCompletionOutput.html">00043</a> <span class="keyword">class </span><a class="code" href="classTCLAP_1_1ZshCompletionOutput.html" title="A class that generates a Zsh completion function as output from the usage() method...">ZshCompletionOutput</a> : <span class="keyword">public</span> <a class="code" href="classTCLAP_1_1CmdLineOutput.html" title="The interface that any output object must implement.">CmdLineOutput</a>
<a name="l00044"></a>00044 {
<a name="l00045"></a>00045
<a name="l00046"></a>00046 <span class="keyword">public</span>:
<a name="l00047"></a>00047
<a name="l00048"></a>00048 <a class="code" href="classTCLAP_1_1ZshCompletionOutput.html#a3bf15bc96487b014092eb2bc97fdf1de">ZshCompletionOutput</a>();
<a name="l00049"></a>00049
<a name="l00055"></a>00055 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1ZshCompletionOutput.html#a3ea685b174fce7ddf2353129863b49d7" title="Prints the usage to stdout.">usage</a>(<a class="code" href="classTCLAP_1_1CmdLineInterface.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLineInterface</a>&amp; c);
<a name="l00056"></a>00056
<a name="l00062"></a>00062 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1ZshCompletionOutput.html#a543e705918d769d3d6f4090c403ed0c9" title="Prints the version to stdout.">version</a>(<a class="code" href="classTCLAP_1_1CmdLineInterface.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLineInterface</a>&amp; c);
<a name="l00063"></a>00063
<a name="l00070"></a>00070 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1ZshCompletionOutput.html#abcd0ba63a2ac7675d085877fc4d3e8cf" title="Prints (to stderr) an error message, short usage Can be overridden to produce alternative...">failure</a>(<a class="code" href="classTCLAP_1_1CmdLineInterface.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLineInterface</a>&amp; c,
<a name="l00071"></a>00071 <a class="code" href="classTCLAP_1_1ArgException.html" title="A simple class that defines and argument exception.">ArgException</a>&amp; e );
<a name="l00072"></a>00072
<a name="l00073"></a>00073 <span class="keyword">protected</span>:
<a name="l00074"></a>00074
<a name="l00075"></a>00075 <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1ZshCompletionOutput.html#a3fff80665ab8d6161de6451924c2b954">basename</a>( std::string&amp; s );
<a name="l00076"></a>00076 <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1ZshCompletionOutput.html#aacd678921212eb6654d7f704da360361">quoteSpecialChars</a>( std::string&amp; s );
<a name="l00077"></a>00077
<a name="l00078"></a>00078 std::string <a class="code" href="classTCLAP_1_1ZshCompletionOutput.html#af3fceb65fc2c22ae8cc3c1df8a503184">getMutexList</a>( <a class="code" href="classTCLAP_1_1CmdLineInterface.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLineInterface</a>&amp; _cmd, <a class="code" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a>* a );
<a name="l00079"></a>00079 <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1ZshCompletionOutput.html#a33903e3aef02f50799726eb7789fb4d4">printOption</a>( <a class="code" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a>* it, std::string mutex );
<a name="l00080"></a>00080 <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1ZshCompletionOutput.html#a1d079ecf271977419432fb0caa72d035">printArg</a>( <a class="code" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a>* it );
<a name="l00081"></a>00081
<a name="l00082"></a><a class="code" href="classTCLAP_1_1ZshCompletionOutput.html#aaa1f1d51a31c32ca28df97c951aaad81">00082</a> std::map&lt;std::string, std::string&gt; <a class="code" href="classTCLAP_1_1ZshCompletionOutput.html#aaa1f1d51a31c32ca28df97c951aaad81">common</a>;
<a name="l00083"></a><a class="code" href="classTCLAP_1_1ZshCompletionOutput.html#a170dd4ecb233984f3e2b6f853c82b1b0">00083</a> <span class="keywordtype">char</span> <a class="code" href="classTCLAP_1_1ZshCompletionOutput.html#a170dd4ecb233984f3e2b6f853c82b1b0">theDelimiter</a>;
<a name="l00084"></a>00084 };
<a name="l00085"></a>00085
<a name="l00086"></a><a class="code" href="classTCLAP_1_1ZshCompletionOutput.html#a3bf15bc96487b014092eb2bc97fdf1de">00086</a> <a class="code" href="classTCLAP_1_1ZshCompletionOutput.html#a3bf15bc96487b014092eb2bc97fdf1de">ZshCompletionOutput::ZshCompletionOutput</a>()
<a name="l00087"></a>00087 : common(std::map&lt;std::string, std::string&gt;()),
<a name="l00088"></a>00088 theDelimiter(<span class="stringliteral">&apos;=&apos;</span>)
<a name="l00089"></a>00089 {
<a name="l00090"></a>00090 <a class="code" href="classTCLAP_1_1ZshCompletionOutput.html#aaa1f1d51a31c32ca28df97c951aaad81">common</a>[<span class="stringliteral">&quot;host&quot;</span>] = <span class="stringliteral">&quot;_hosts&quot;</span>;
<a name="l00091"></a>00091 <a class="code" href="classTCLAP_1_1ZshCompletionOutput.html#aaa1f1d51a31c32ca28df97c951aaad81">common</a>[<span class="stringliteral">&quot;hostname&quot;</span>] = <span class="stringliteral">&quot;_hosts&quot;</span>;
<a name="l00092"></a>00092 <a class="code" href="classTCLAP_1_1ZshCompletionOutput.html#aaa1f1d51a31c32ca28df97c951aaad81">common</a>[<span class="stringliteral">&quot;file&quot;</span>] = <span class="stringliteral">&quot;_files&quot;</span>;
<a name="l00093"></a>00093 <a class="code" href="classTCLAP_1_1ZshCompletionOutput.html#aaa1f1d51a31c32ca28df97c951aaad81">common</a>[<span class="stringliteral">&quot;filename&quot;</span>] = <span class="stringliteral">&quot;_files&quot;</span>;
<a name="l00094"></a>00094 <a class="code" href="classTCLAP_1_1ZshCompletionOutput.html#aaa1f1d51a31c32ca28df97c951aaad81">common</a>[<span class="stringliteral">&quot;user&quot;</span>] = <span class="stringliteral">&quot;_users&quot;</span>;
<a name="l00095"></a>00095 <a class="code" href="classTCLAP_1_1ZshCompletionOutput.html#aaa1f1d51a31c32ca28df97c951aaad81">common</a>[<span class="stringliteral">&quot;username&quot;</span>] = <span class="stringliteral">&quot;_users&quot;</span>;
<a name="l00096"></a>00096 <a class="code" href="classTCLAP_1_1ZshCompletionOutput.html#aaa1f1d51a31c32ca28df97c951aaad81">common</a>[<span class="stringliteral">&quot;directory&quot;</span>] = <span class="stringliteral">&quot;_directories&quot;</span>;
<a name="l00097"></a>00097 <a class="code" href="classTCLAP_1_1ZshCompletionOutput.html#aaa1f1d51a31c32ca28df97c951aaad81">common</a>[<span class="stringliteral">&quot;path&quot;</span>] = <span class="stringliteral">&quot;_directories&quot;</span>;
<a name="l00098"></a>00098 <a class="code" href="classTCLAP_1_1ZshCompletionOutput.html#aaa1f1d51a31c32ca28df97c951aaad81">common</a>[<span class="stringliteral">&quot;url&quot;</span>] = <span class="stringliteral">&quot;_urls&quot;</span>;
<a name="l00099"></a>00099 }
<a name="l00100"></a>00100
<a name="l00101"></a><a class="code" href="classTCLAP_1_1ZshCompletionOutput.html#a543e705918d769d3d6f4090c403ed0c9">00101</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1ZshCompletionOutput.html#a543e705918d769d3d6f4090c403ed0c9" title="Prints the version to stdout.">ZshCompletionOutput::version</a>(<a class="code" href="classTCLAP_1_1CmdLineInterface.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLineInterface</a>&amp; _cmd)
<a name="l00102"></a>00102 {
<a name="l00103"></a>00103 std::cout &lt;&lt; _cmd.<a class="code" href="classTCLAP_1_1CmdLineInterface.html#a0a552fa57212800dfb8aec84fb07b8bb" title="Returns the version string.">getVersion</a>() &lt;&lt; std::endl;
<a name="l00104"></a>00104 }
<a name="l00105"></a>00105
<a name="l00106"></a><a class="code" href="classTCLAP_1_1ZshCompletionOutput.html#a3ea685b174fce7ddf2353129863b49d7">00106</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1ZshCompletionOutput.html#a3ea685b174fce7ddf2353129863b49d7" title="Prints the usage to stdout.">ZshCompletionOutput::usage</a>(<a class="code" href="classTCLAP_1_1CmdLineInterface.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLineInterface</a>&amp; _cmd )
<a name="l00107"></a>00107 {
<a name="l00108"></a>00108 std::list&lt;Arg*&gt; argList = _cmd.<a class="code" href="classTCLAP_1_1CmdLineInterface.html#a4de8d988f5a6f3007c4dfb0fc9dad476" title="Returns the argList.">getArgList</a>();
<a name="l00109"></a>00109 std::string progName = _cmd.<a class="code" href="classTCLAP_1_1CmdLineInterface.html#a1a5672df72a6b5021cd70b37c4dbd0a7" title="Returns the program name string.">getProgramName</a>();
<a name="l00110"></a>00110 std::string xversion = _cmd.<a class="code" href="classTCLAP_1_1CmdLineInterface.html#a0a552fa57212800dfb8aec84fb07b8bb" title="Returns the version string.">getVersion</a>();
<a name="l00111"></a>00111 <a class="code" href="classTCLAP_1_1ZshCompletionOutput.html#a170dd4ecb233984f3e2b6f853c82b1b0">theDelimiter</a> = _cmd.<a class="code" href="classTCLAP_1_1CmdLineInterface.html#a7d6a64cff6b3a30e2cf1e81d7b1d4521" title="Returns the delimiter string.">getDelimiter</a>();
<a name="l00112"></a>00112 <a class="code" href="classTCLAP_1_1ZshCompletionOutput.html#a3fff80665ab8d6161de6451924c2b954">basename</a>(progName);
<a name="l00113"></a>00113
<a name="l00114"></a>00114 std::cout &lt;&lt; <span class="stringliteral">&quot;#compdef &quot;</span> &lt;&lt; progName &lt;&lt; std::endl &lt;&lt; std::endl &lt;&lt;
<a name="l00115"></a>00115 <span class="stringliteral">&quot;# &quot;</span> &lt;&lt; progName &lt;&lt; <span class="stringliteral">&quot; version &quot;</span> &lt;&lt; _cmd.<a class="code" href="classTCLAP_1_1CmdLineInterface.html#a0a552fa57212800dfb8aec84fb07b8bb" title="Returns the version string.">getVersion</a>() &lt;&lt; std::endl &lt;&lt; std::endl &lt;&lt;
<a name="l00116"></a>00116 <span class="stringliteral">&quot;_arguments -s -S&quot;</span>;
<a name="l00117"></a>00117
<a name="l00118"></a>00118 <span class="keywordflow">for</span> (<a class="code" href="namespaceTCLAP.html#aa7d6a803e0690c3c8b1db57c145648c5" title="Typedef of an Arg list iterator.">ArgListIterator</a> it = argList.begin(); it != argList.end(); it++)
<a name="l00119"></a>00119 {
<a name="l00120"></a>00120 <span class="keywordflow">if</span> ( (*it)-&gt;shortID().at(0) == <span class="charliteral">&apos;&lt;&apos;</span> )
<a name="l00121"></a>00121 <a class="code" href="classTCLAP_1_1ZshCompletionOutput.html#a1d079ecf271977419432fb0caa72d035">printArg</a>((*it));
<a name="l00122"></a>00122 <span class="keywordflow">else</span> <span class="keywordflow">if</span> ( (*it)-&gt;getFlag() != <span class="stringliteral">&quot;-&quot;</span> )
<a name="l00123"></a>00123 <a class="code" href="classTCLAP_1_1ZshCompletionOutput.html#a33903e3aef02f50799726eb7789fb4d4">printOption</a>((*it), <a class="code" href="classTCLAP_1_1ZshCompletionOutput.html#af3fceb65fc2c22ae8cc3c1df8a503184">getMutexList</a>(_cmd, *it));
<a name="l00124"></a>00124 }
<a name="l00125"></a>00125
<a name="l00126"></a>00126 std::cout &lt;&lt; std::endl;
<a name="l00127"></a>00127 }
<a name="l00128"></a>00128
<a name="l00129"></a><a class="code" href="classTCLAP_1_1ZshCompletionOutput.html#abcd0ba63a2ac7675d085877fc4d3e8cf">00129</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1ZshCompletionOutput.html#abcd0ba63a2ac7675d085877fc4d3e8cf" title="Prints (to stderr) an error message, short usage Can be overridden to produce alternative...">ZshCompletionOutput::failure</a>( <a class="code" href="classTCLAP_1_1CmdLineInterface.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLineInterface</a>&amp; _cmd,
<a name="l00130"></a>00130 <a class="code" href="classTCLAP_1_1ArgException.html" title="A simple class that defines and argument exception.">ArgException</a>&amp; e )
<a name="l00131"></a>00131 {
<a name="l00132"></a>00132 <span class="keyword">static_cast&lt;</span><span class="keywordtype">void</span><span class="keyword">&gt;</span>(_cmd); <span class="comment">// unused</span>
<a name="l00133"></a>00133 std::cout &lt;&lt; e.<a class="code" href="classTCLAP_1_1ArgException.html#af51c89da2e4ae54fc9d05038ea484c83" title="Returns the arg id and error text.">what</a>() &lt;&lt; std::endl;
<a name="l00134"></a>00134 }
<a name="l00135"></a>00135
<a name="l00136"></a><a class="code" href="classTCLAP_1_1ZshCompletionOutput.html#aacd678921212eb6654d7f704da360361">00136</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1ZshCompletionOutput.html#aacd678921212eb6654d7f704da360361">ZshCompletionOutput::quoteSpecialChars</a>( std::string&amp; s )
<a name="l00137"></a>00137 {
<a name="l00138"></a>00138 <span class="keywordtype">size_t</span> idx = s.find_last_of(<span class="charliteral">&apos;:&apos;</span>);
<a name="l00139"></a>00139 <span class="keywordflow">while</span> ( idx != std::string::npos )
<a name="l00140"></a>00140 {
<a name="l00141"></a>00141 s.insert(idx, 1, <span class="charliteral">&apos;\\&apos;</span>);
<a name="l00142"></a>00142 idx = s.find_last_of(<span class="charliteral">&apos;:&apos;</span>, idx);
<a name="l00143"></a>00143 }
<a name="l00144"></a>00144 idx = s.find_last_of(<span class="charliteral">&apos;\&apos;&apos;</span>);
<a name="l00145"></a>00145 <span class="keywordflow">while</span> ( idx != std::string::npos )
<a name="l00146"></a>00146 {
<a name="l00147"></a>00147 s.insert(idx, <span class="stringliteral">&quot;&apos;\\&apos;&quot;</span>);
<a name="l00148"></a>00148 <span class="keywordflow">if</span> (idx == 0)
<a name="l00149"></a>00149 idx = std::string::npos;
<a name="l00150"></a>00150 <span class="keywordflow">else</span>
<a name="l00151"></a>00151 idx = s.find_last_of(<span class="charliteral">&apos;\&apos;&apos;</span>, --idx);
<a name="l00152"></a>00152 }
<a name="l00153"></a>00153 }
<a name="l00154"></a>00154
<a name="l00155"></a><a class="code" href="classTCLAP_1_1ZshCompletionOutput.html#a3fff80665ab8d6161de6451924c2b954">00155</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1ZshCompletionOutput.html#a3fff80665ab8d6161de6451924c2b954">ZshCompletionOutput::basename</a>( std::string&amp; s )
<a name="l00156"></a>00156 {
<a name="l00157"></a>00157 <span class="keywordtype">size_t</span> p = s.find_last_of(<span class="charliteral">&apos;/&apos;</span>);
<a name="l00158"></a>00158 <span class="keywordflow">if</span> ( p != std::string::npos )
<a name="l00159"></a>00159 {
<a name="l00160"></a>00160 s.erase(0, p + 1);
<a name="l00161"></a>00161 }
<a name="l00162"></a>00162 }
<a name="l00163"></a>00163
<a name="l00164"></a><a class="code" href="classTCLAP_1_1ZshCompletionOutput.html#a1d079ecf271977419432fb0caa72d035">00164</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1ZshCompletionOutput.html#a1d079ecf271977419432fb0caa72d035">ZshCompletionOutput::printArg</a>(<a class="code" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a>* a)
<a name="l00165"></a>00165 {
<a name="l00166"></a>00166 <span class="keyword">static</span> <span class="keywordtype">int</span> count = 1;
<a name="l00167"></a>00167
<a name="l00168"></a>00168 std::cout &lt;&lt; <span class="stringliteral">&quot; \\&quot;</span> &lt;&lt; std::endl &lt;&lt; <span class="stringliteral">&quot; &apos;&quot;</span>;
<a name="l00169"></a>00169 <span class="keywordflow">if</span> ( a-&gt;<a class="code" href="classTCLAP_1_1Arg.html#ad356870538a255d639e26b30330202ae" title="Use by output classes to determine whether an Arg accepts multiple values.">acceptsMultipleValues</a>() )
<a name="l00170"></a>00170 std::cout &lt;&lt; <span class="charliteral">&apos;*&apos;</span>;
<a name="l00171"></a>00171 <span class="keywordflow">else</span>
<a name="l00172"></a>00172 std::cout &lt;&lt; count++;
<a name="l00173"></a>00173 std::cout &lt;&lt; <span class="charliteral">&apos;:&apos;</span>;
<a name="l00174"></a>00174 <span class="keywordflow">if</span> ( !a-&gt;<a class="code" href="classTCLAP_1_1Arg.html#a00a3cfdb2b6e9a111ad39cbd4978b96c" title="Indicates whether the argument is required.">isRequired</a>() )
<a name="l00175"></a>00175 std::cout &lt;&lt; <span class="charliteral">&apos;:&apos;</span>;
<a name="l00176"></a>00176
<a name="l00177"></a>00177 std::cout &lt;&lt; a-&gt;<a class="code" href="classTCLAP_1_1Arg.html#a641ced141a56c74fee11d3e3a808f731" title="Returns the argument name.">getName</a>() &lt;&lt; <span class="charliteral">&apos;:&apos;</span>;
<a name="l00178"></a>00178 std::map&lt;std::string, std::string&gt;::iterator compArg = <a class="code" href="classTCLAP_1_1ZshCompletionOutput.html#aaa1f1d51a31c32ca28df97c951aaad81">common</a>.find(a-&gt;<a class="code" href="classTCLAP_1_1Arg.html#a641ced141a56c74fee11d3e3a808f731" title="Returns the argument name.">getName</a>());
<a name="l00179"></a>00179 <span class="keywordflow">if</span> ( compArg != <a class="code" href="classTCLAP_1_1ZshCompletionOutput.html#aaa1f1d51a31c32ca28df97c951aaad81">common</a>.end() )
<a name="l00180"></a>00180 {
<a name="l00181"></a>00181 std::cout &lt;&lt; compArg-&gt;second;
<a name="l00182"></a>00182 }
<a name="l00183"></a>00183 <span class="keywordflow">else</span>
<a name="l00184"></a>00184 {
<a name="l00185"></a>00185 std::cout &lt;&lt; <span class="stringliteral">&quot;_guard \&quot;^-*\&quot; &quot;</span> &lt;&lt; a-&gt;<a class="code" href="classTCLAP_1_1Arg.html#a641ced141a56c74fee11d3e3a808f731" title="Returns the argument name.">getName</a>();
<a name="l00186"></a>00186 }
<a name="l00187"></a>00187 std::cout &lt;&lt; <span class="charliteral">&apos;\&apos;&apos;</span>;
<a name="l00188"></a>00188 }
<a name="l00189"></a>00189
<a name="l00190"></a><a class="code" href="classTCLAP_1_1ZshCompletionOutput.html#a33903e3aef02f50799726eb7789fb4d4">00190</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classTCLAP_1_1ZshCompletionOutput.html#a33903e3aef02f50799726eb7789fb4d4">ZshCompletionOutput::printOption</a>(<a class="code" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a>* a, std::string mutex)
<a name="l00191"></a>00191 {
<a name="l00192"></a>00192 std::string flag = a-&gt;<a class="code" href="classTCLAP_1_1Arg.html#a7f9f6af439993e9151bd5a6cd2a63dad">flagStartChar</a>() + a-&gt;<a class="code" href="classTCLAP_1_1Arg.html#a22f616e81a423e794f13a9ae1549ac77" title="Returns the argument flag.">getFlag</a>();
<a name="l00193"></a>00193 std::string name = a-&gt;<a class="code" href="classTCLAP_1_1Arg.html#a1df2134870528b80f9f35347fef6fd14">nameStartString</a>() + a-&gt;<a class="code" href="classTCLAP_1_1Arg.html#a641ced141a56c74fee11d3e3a808f731" title="Returns the argument name.">getName</a>();
<a name="l00194"></a>00194 std::string desc = a-&gt;<a class="code" href="classTCLAP_1_1Arg.html#a1943999fadcb4f28cecd6ba55ed0b085" title="Returns the argument description.">getDescription</a>();
<a name="l00195"></a>00195
<a name="l00196"></a>00196 <span class="comment">// remove full stop and capitalisation from description as</span>
<a name="l00197"></a>00197 <span class="comment">// this is the convention for zsh function</span>
<a name="l00198"></a>00198 <span class="keywordflow">if</span> (!desc.compare(0, 12, <span class="stringliteral">&quot;(required) &quot;</span>))
<a name="l00199"></a>00199 {
<a name="l00200"></a>00200 desc.erase(0, 12);
<a name="l00201"></a>00201 }
<a name="l00202"></a>00202 <span class="keywordflow">if</span> (!desc.compare(0, 15, <span class="stringliteral">&quot;(OR required) &quot;</span>))
<a name="l00203"></a>00203 {
<a name="l00204"></a>00204 desc.erase(0, 15);
<a name="l00205"></a>00205 }
<a name="l00206"></a>00206 <span class="keywordtype">size_t</span> len = desc.length();
<a name="l00207"></a>00207 <span class="keywordflow">if</span> (len &amp;&amp; desc.at(--len) == <span class="charliteral">&apos;.&apos;</span>)
<a name="l00208"></a>00208 {
<a name="l00209"></a>00209 desc.erase(len);
<a name="l00210"></a>00210 }
<a name="l00211"></a>00211 <span class="keywordflow">if</span> (len)
<a name="l00212"></a>00212 {
<a name="l00213"></a>00213 desc.replace(0, 1, 1, tolower(desc.at(0)));
<a name="l00214"></a>00214 }
<a name="l00215"></a>00215
<a name="l00216"></a>00216 std::cout &lt;&lt; <span class="stringliteral">&quot; \\&quot;</span> &lt;&lt; std::endl &lt;&lt; <span class="stringliteral">&quot; &apos;&quot;</span> &lt;&lt; mutex;
<a name="l00217"></a>00217
<a name="l00218"></a>00218 <span class="keywordflow">if</span> ( a-&gt;<a class="code" href="classTCLAP_1_1Arg.html#a22f616e81a423e794f13a9ae1549ac77" title="Returns the argument flag.">getFlag</a>().empty() )
<a name="l00219"></a>00219 {
<a name="l00220"></a>00220 std::cout &lt;&lt; name;
<a name="l00221"></a>00221 }
<a name="l00222"></a>00222 <span class="keywordflow">else</span>
<a name="l00223"></a>00223 {
<a name="l00224"></a>00224 std::cout &lt;&lt; <span class="stringliteral">&quot;&apos;{&quot;</span> &lt;&lt; flag &lt;&lt; <span class="charliteral">&apos;,&apos;</span> &lt;&lt; name &lt;&lt; <span class="stringliteral">&quot;}&apos;&quot;</span>;
<a name="l00225"></a>00225 }
<a name="l00226"></a>00226 <span class="keywordflow">if</span> ( <a class="code" href="classTCLAP_1_1ZshCompletionOutput.html#a170dd4ecb233984f3e2b6f853c82b1b0">theDelimiter</a> == <span class="charliteral">&apos;=&apos;</span> &amp;&amp; a-&gt;<a class="code" href="classTCLAP_1_1Arg.html#a1373d50d4b93c16db43c7600cf6d0355" title="Indicates whether a value must be specified for argument.">isValueRequired</a>() )
<a name="l00227"></a>00227 std::cout &lt;&lt; <span class="stringliteral">&quot;=-&quot;</span>;
<a name="l00228"></a>00228 <a class="code" href="classTCLAP_1_1ZshCompletionOutput.html#aacd678921212eb6654d7f704da360361">quoteSpecialChars</a>(desc);
<a name="l00229"></a>00229 std::cout &lt;&lt; <span class="charliteral">&apos;[&apos;</span> &lt;&lt; desc &lt;&lt; <span class="charliteral">&apos;]&apos;</span>;
<a name="l00230"></a>00230
<a name="l00231"></a>00231 <span class="keywordflow">if</span> ( a-&gt;<a class="code" href="classTCLAP_1_1Arg.html#a1373d50d4b93c16db43c7600cf6d0355" title="Indicates whether a value must be specified for argument.">isValueRequired</a>() )
<a name="l00232"></a>00232 {
<a name="l00233"></a>00233 std::string arg = a-&gt;<a class="code" href="classTCLAP_1_1Arg.html#aef8efaf3811162b2b2b2a84c6db280fa" title="Returns a short ID for the usage.">shortID</a>();
<a name="l00234"></a>00234 arg.erase(0, arg.find_last_of(<a class="code" href="classTCLAP_1_1ZshCompletionOutput.html#a170dd4ecb233984f3e2b6f853c82b1b0">theDelimiter</a>) + 1);
<a name="l00235"></a>00235 <span class="keywordflow">if</span> ( arg.at(arg.length()-1) == <span class="charliteral">&apos;]&apos;</span> )
<a name="l00236"></a>00236 arg.erase(arg.length()-1);
<a name="l00237"></a>00237 <span class="keywordflow">if</span> ( arg.at(arg.length()-1) == <span class="charliteral">&apos;]&apos;</span> )
<a name="l00238"></a>00238 {
<a name="l00239"></a>00239 arg.erase(arg.length()-1);
<a name="l00240"></a>00240 }
<a name="l00241"></a>00241 <span class="keywordflow">if</span> ( arg.at(0) == <span class="charliteral">&apos;&lt;&apos;</span> )
<a name="l00242"></a>00242 {
<a name="l00243"></a>00243 arg.erase(arg.length()-1);
<a name="l00244"></a>00244 arg.erase(0, 1);
<a name="l00245"></a>00245 }
<a name="l00246"></a>00246 <span class="keywordtype">size_t</span> p = arg.find(<span class="charliteral">&apos;|&apos;</span>);
<a name="l00247"></a>00247 <span class="keywordflow">if</span> ( p != std::string::npos )
<a name="l00248"></a>00248 {
<a name="l00249"></a>00249 <span class="keywordflow">do</span>
<a name="l00250"></a>00250 {
<a name="l00251"></a>00251 arg.replace(p, 1, 1, <span class="charliteral">&apos; &apos;</span>);
<a name="l00252"></a>00252 }
<a name="l00253"></a>00253 <span class="keywordflow">while</span> ( (p = arg.find_first_of(<span class="charliteral">&apos;|&apos;</span>, p)) != std::string::npos );
<a name="l00254"></a>00254 <a class="code" href="classTCLAP_1_1ZshCompletionOutput.html#aacd678921212eb6654d7f704da360361">quoteSpecialChars</a>(arg);
<a name="l00255"></a>00255 std::cout &lt;&lt; <span class="stringliteral">&quot;: :(&quot;</span> &lt;&lt; arg &lt;&lt; <span class="charliteral">&apos;)&apos;</span>;
<a name="l00256"></a>00256 }
<a name="l00257"></a>00257 <span class="keywordflow">else</span>
<a name="l00258"></a>00258 {
<a name="l00259"></a>00259 std::cout &lt;&lt; <span class="charliteral">&apos;:&apos;</span> &lt;&lt; arg;
<a name="l00260"></a>00260 std::map&lt;std::string, std::string&gt;::iterator compArg = <a class="code" href="classTCLAP_1_1ZshCompletionOutput.html#aaa1f1d51a31c32ca28df97c951aaad81">common</a>.find(arg);
<a name="l00261"></a>00261 <span class="keywordflow">if</span> ( compArg != <a class="code" href="classTCLAP_1_1ZshCompletionOutput.html#aaa1f1d51a31c32ca28df97c951aaad81">common</a>.end() )
<a name="l00262"></a>00262 {
<a name="l00263"></a>00263 std::cout &lt;&lt; <span class="charliteral">&apos;:&apos;</span> &lt;&lt; compArg-&gt;second;
<a name="l00264"></a>00264 }
<a name="l00265"></a>00265 }
<a name="l00266"></a>00266 }
<a name="l00267"></a>00267
<a name="l00268"></a>00268 std::cout &lt;&lt; <span class="charliteral">&apos;\&apos;&apos;</span>;
<a name="l00269"></a>00269 }
<a name="l00270"></a>00270
<a name="l00271"></a><a class="code" href="classTCLAP_1_1ZshCompletionOutput.html#af3fceb65fc2c22ae8cc3c1df8a503184">00271</a> <span class="keyword">inline</span> std::string <a class="code" href="classTCLAP_1_1ZshCompletionOutput.html#af3fceb65fc2c22ae8cc3c1df8a503184">ZshCompletionOutput::getMutexList</a>( <a class="code" href="classTCLAP_1_1CmdLineInterface.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLineInterface</a>&amp; _cmd, <a class="code" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a>* a)
<a name="l00272"></a>00272 {
<a name="l00273"></a>00273 <a class="code" href="classTCLAP_1_1XorHandler.html" title="This class handles lists of Arg&amp;#39;s that are to be XOR&amp;#39;d on the command line...">XorHandler</a> xorHandler = _cmd.<a class="code" href="classTCLAP_1_1CmdLineInterface.html#a11ce9c77a1111960741f05e343849e4e" title="Returns the XorHandler.">getXorHandler</a>();
<a name="l00274"></a>00274 std::vector&lt; std::vector&lt;Arg*&gt; &gt; xorList = xorHandler.<a class="code" href="classTCLAP_1_1XorHandler.html#a0e0d95c697d227cc51f82424b8530182">getXorList</a>();
<a name="l00275"></a>00275
<a name="l00276"></a>00276 <span class="keywordflow">if</span> (a-&gt;<a class="code" href="classTCLAP_1_1Arg.html#a641ced141a56c74fee11d3e3a808f731" title="Returns the argument name.">getName</a>() == <span class="stringliteral">&quot;help&quot;</span> || a-&gt;<a class="code" href="classTCLAP_1_1Arg.html#a641ced141a56c74fee11d3e3a808f731" title="Returns the argument name.">getName</a>() == <span class="stringliteral">&quot;version&quot;</span>)
<a name="l00277"></a>00277 {
<a name="l00278"></a>00278 <span class="keywordflow">return</span> <span class="stringliteral">&quot;(-)&quot;</span>;
<a name="l00279"></a>00279 }
<a name="l00280"></a>00280
<a name="l00281"></a>00281 std::ostringstream list;
<a name="l00282"></a>00282 <span class="keywordflow">if</span> ( a-&gt;<a class="code" href="classTCLAP_1_1Arg.html#ad356870538a255d639e26b30330202ae" title="Use by output classes to determine whether an Arg accepts multiple values.">acceptsMultipleValues</a>() )
<a name="l00283"></a>00283 {
<a name="l00284"></a>00284 list &lt;&lt; <span class="charliteral">&apos;*&apos;</span>;
<a name="l00285"></a>00285 }
<a name="l00286"></a>00286
<a name="l00287"></a>00287 <span class="keywordflow">for</span> ( <span class="keywordtype">int</span> i = 0; <span class="keyword">static_cast&lt;</span><span class="keywordtype">unsigned</span> <span class="keywordtype">int</span><span class="keyword">&gt;</span>(i) &lt; xorList.size(); i++ )
<a name="l00288"></a>00288 {
<a name="l00289"></a>00289 <span class="keywordflow">for</span> ( <a class="code" href="namespaceTCLAP.html#a04213af1ffc3178ce5f771d21d5164a2" title="Typedef of an Arg vector iterator.">ArgVectorIterator</a> it = xorList[i].begin();
<a name="l00290"></a>00290 it != xorList[i].end();
<a name="l00291"></a>00291 it++)
<a name="l00292"></a>00292 <span class="keywordflow">if</span> ( a == (*it) )
<a name="l00293"></a>00293 {
<a name="l00294"></a>00294 list &lt;&lt; <span class="charliteral">&apos;(&apos;</span>;
<a name="l00295"></a>00295 <span class="keywordflow">for</span> ( <a class="code" href="namespaceTCLAP.html#a04213af1ffc3178ce5f771d21d5164a2" title="Typedef of an Arg vector iterator.">ArgVectorIterator</a> iu = xorList[i].begin();
<a name="l00296"></a>00296 iu != xorList[i].end();
<a name="l00297"></a>00297 iu++ )
<a name="l00298"></a>00298 {
<a name="l00299"></a>00299 <span class="keywordtype">bool</span> notCur = (*iu) != a;
<a name="l00300"></a>00300 <span class="keywordtype">bool</span> hasFlag = !(*iu)-&gt;<a class="code" href="classTCLAP_1_1Arg.html#a22f616e81a423e794f13a9ae1549ac77" title="Returns the argument flag.">getFlag</a>().empty();
<a name="l00301"></a>00301 <span class="keywordflow">if</span> ( iu != xorList[i].begin() &amp;&amp; (notCur || hasFlag) )
<a name="l00302"></a>00302 list &lt;&lt; <span class="charliteral">&apos; &apos;</span>;
<a name="l00303"></a>00303 <span class="keywordflow">if</span> (hasFlag)
<a name="l00304"></a>00304 list &lt;&lt; (*iu)-&gt;flagStartChar() &lt;&lt; (*iu)-&gt;getFlag() &lt;&lt; <span class="charliteral">&apos; &apos;</span>;
<a name="l00305"></a>00305 <span class="keywordflow">if</span> ( notCur || hasFlag )
<a name="l00306"></a>00306 list &lt;&lt; (*iu)-&gt;nameStartString() &lt;&lt; (*iu)-&gt;getName();
<a name="l00307"></a>00307 }
<a name="l00308"></a>00308 list &lt;&lt; <span class="charliteral">&apos;)&apos;</span>;
<a name="l00309"></a>00309 <span class="keywordflow">return</span> list.str();
<a name="l00310"></a>00310 }
<a name="l00311"></a>00311 }
<a name="l00312"></a>00312
<a name="l00313"></a>00313 <span class="comment">// wasn&apos;t found in xor list</span>
<a name="l00314"></a>00314 <span class="keywordflow">if</span> (!a-&gt;<a class="code" href="classTCLAP_1_1Arg.html#a22f616e81a423e794f13a9ae1549ac77" title="Returns the argument flag.">getFlag</a>().empty()) {
<a name="l00315"></a>00315 list &lt;&lt; <span class="stringliteral">&quot;(&quot;</span> &lt;&lt; a-&gt;<a class="code" href="classTCLAP_1_1Arg.html#a7f9f6af439993e9151bd5a6cd2a63dad">flagStartChar</a>() &lt;&lt; a-&gt;<a class="code" href="classTCLAP_1_1Arg.html#a22f616e81a423e794f13a9ae1549ac77" title="Returns the argument flag.">getFlag</a>() &lt;&lt; <span class="charliteral">&apos; &apos;</span> &lt;&lt;
<a name="l00316"></a>00316 a-&gt;<a class="code" href="classTCLAP_1_1Arg.html#a1df2134870528b80f9f35347fef6fd14">nameStartString</a>() &lt;&lt; a-&gt;<a class="code" href="classTCLAP_1_1Arg.html#a641ced141a56c74fee11d3e3a808f731" title="Returns the argument name.">getName</a>() &lt;&lt; <span class="charliteral">&apos;)&apos;</span>;
<a name="l00317"></a>00317 }
<a name="l00318"></a>00318
<a name="l00319"></a>00319 <span class="keywordflow">return</span> list.str();
<a name="l00320"></a>00320 }
<a name="l00321"></a>00321
<a name="l00322"></a>00322 } <span class="comment">//namespace TCLAP</span>
<a name="l00323"></a>00323 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Sat Apr 16 15:34:24 2011 for tclap by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.0 </small></address>
</body>
</html>

View File

@ -0,0 +1,80 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>tclap: Class List</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.0 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li class="current"><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="contents">
<h1>Class List</h1>Here are the classes, structs, unions and interfaces with brief descriptions:<table>
<tr><td class="indexkey"><a class="el" href="classTCLAP_1_1Arg.html">TCLAP::Arg</a></td><td class="indexvalue">A virtual base class that defines the essential data for all arguments </td></tr>
<tr><td class="indexkey"><a class="el" href="classTCLAP_1_1ArgException.html">TCLAP::ArgException</a></td><td class="indexvalue">A simple class that defines and argument exception </td></tr>
<tr><td class="indexkey"><a class="el" href="classTCLAP_1_1ArgParseException.html">TCLAP::ArgParseException</a></td><td class="indexvalue">Thrown from within the child <a class="el" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a> classes when it fails to properly parse the argument it has been passed </td></tr>
<tr><td class="indexkey"><a class="el" href="structTCLAP_1_1ArgTraits.html">TCLAP::ArgTraits&lt; T &gt;</a></td><td class="indexvalue"><a class="el" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a> traits are used to get compile type specialization when parsing argument values </td></tr>
<tr><td class="indexkey"><a class="el" href="structTCLAP_1_1ArgTraits_3_01bool_01_4.html">TCLAP::ArgTraits&lt; bool &gt;</a></td><td class="indexvalue">Bools have value-like semantics </td></tr>
<tr><td class="indexkey"><a class="el" href="structTCLAP_1_1ArgTraits_3_01char_01_4.html">TCLAP::ArgTraits&lt; char &gt;</a></td><td class="indexvalue">Chars have value-like semantics </td></tr>
<tr><td class="indexkey"><a class="el" href="structTCLAP_1_1ArgTraits_3_01double_01_4.html">TCLAP::ArgTraits&lt; double &gt;</a></td><td class="indexvalue">Doubles have value-like semantics </td></tr>
<tr><td class="indexkey"><a class="el" href="structTCLAP_1_1ArgTraits_3_01float_01_4.html">TCLAP::ArgTraits&lt; float &gt;</a></td><td class="indexvalue">Floats have value-like semantics </td></tr>
<tr><td class="indexkey"><a class="el" href="structTCLAP_1_1ArgTraits_3_01int_01_4.html">TCLAP::ArgTraits&lt; int &gt;</a></td><td class="indexvalue">Ints have value-like semantics </td></tr>
<tr><td class="indexkey"><a class="el" href="structTCLAP_1_1ArgTraits_3_01long_01_4.html">TCLAP::ArgTraits&lt; long &gt;</a></td><td class="indexvalue">Longs have value-like semantics </td></tr>
<tr><td class="indexkey"><a class="el" href="structTCLAP_1_1ArgTraits_3_01short_01_4.html">TCLAP::ArgTraits&lt; short &gt;</a></td><td class="indexvalue">Shorts have value-like semantics </td></tr>
<tr><td class="indexkey"><a class="el" href="structTCLAP_1_1ArgTraits_3_01std_1_1string_01_4.html">TCLAP::ArgTraits&lt; std::string &gt;</a></td><td class="indexvalue">Strings have string like argument traits </td></tr>
<tr><td class="indexkey"><a class="el" href="structTCLAP_1_1ArgTraits_3_01unsigned_01char_01_4.html">TCLAP::ArgTraits&lt; unsigned char &gt;</a></td><td class="indexvalue">Unsigned chars have value-like semantics </td></tr>
<tr><td class="indexkey"><a class="el" href="structTCLAP_1_1ArgTraits_3_01unsigned_01int_01_4.html">TCLAP::ArgTraits&lt; unsigned int &gt;</a></td><td class="indexvalue">Unsigned ints have value-like semantics </td></tr>
<tr><td class="indexkey"><a class="el" href="structTCLAP_1_1ArgTraits_3_01unsigned_01long_01_4.html">TCLAP::ArgTraits&lt; unsigned long &gt;</a></td><td class="indexvalue">Unsigned longs have value-like semantics </td></tr>
<tr><td class="indexkey"><a class="el" href="structTCLAP_1_1ArgTraits_3_01unsigned_01short_01_4.html">TCLAP::ArgTraits&lt; unsigned short &gt;</a></td><td class="indexvalue">Unsigned shorts have value-like semantics </td></tr>
<tr><td class="indexkey"><a class="el" href="structTCLAP_1_1ArgTraits_3_01wchar__t_01_4.html">TCLAP::ArgTraits&lt; wchar_t &gt;</a></td><td class="indexvalue">Wchar_ts have value-like semantics </td></tr>
<tr><td class="indexkey"><a class="el" href="classTCLAP_1_1CmdLine.html">TCLAP::CmdLine</a></td><td class="indexvalue">The base class that manages the command line definition and passes along the parsing to the appropriate <a class="el" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a> classes </td></tr>
<tr><td class="indexkey"><a class="el" href="classTCLAP_1_1CmdLineInterface.html">TCLAP::CmdLineInterface</a></td><td class="indexvalue">The base class that manages the command line definition and passes along the parsing to the appropriate <a class="el" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a> classes </td></tr>
<tr><td class="indexkey"><a class="el" href="classTCLAP_1_1CmdLineOutput.html">TCLAP::CmdLineOutput</a></td><td class="indexvalue">The interface that any output object must implement </td></tr>
<tr><td class="indexkey"><a class="el" href="classTCLAP_1_1CmdLineParseException.html">TCLAP::CmdLineParseException</a></td><td class="indexvalue">Thrown from <a class="el" href="classTCLAP_1_1CmdLine.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLine</a> when the arguments on the command line are not properly specified, e.g </td></tr>
<tr><td class="indexkey"><a class="el" href="classTCLAP_1_1Constraint.html">TCLAP::Constraint&lt; T &gt;</a></td><td class="indexvalue">The interface that defines the interaction between the <a class="el" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a> and <a class="el" href="classTCLAP_1_1Constraint.html" title="The interface that defines the interaction between the Arg and Constraint.">Constraint</a> </td></tr>
<tr><td class="indexkey"><a class="el" href="classTCLAP_1_1DocBookOutput.html">TCLAP::DocBookOutput</a></td><td class="indexvalue">A class that generates DocBook output for <a class="el" href="classTCLAP_1_1DocBookOutput.html#adc1ec93f3f7e5e912690be01c5e7d6e2" title="Prints the usage to stdout.">usage()</a> method for the given <a class="el" href="classTCLAP_1_1CmdLine.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLine</a> and its Args </td></tr>
<tr><td class="indexkey"><a class="el" href="classTCLAP_1_1ExitException.html">TCLAP::ExitException</a></td><td class="indexvalue"></td></tr>
<tr><td class="indexkey"><a class="el" href="classTCLAP_1_1HelpVisitor.html">TCLAP::HelpVisitor</a></td><td class="indexvalue">A <a class="el" href="classTCLAP_1_1Visitor.html" title="A base class that defines the interface for visitors.">Visitor</a> object that calls the usage method of the given <a class="el" href="classTCLAP_1_1CmdLineOutput.html" title="The interface that any output object must implement.">CmdLineOutput</a> object for the specified <a class="el" href="classTCLAP_1_1CmdLine.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLine</a> object </td></tr>
<tr><td class="indexkey"><a class="el" href="classTCLAP_1_1IgnoreRestVisitor.html">TCLAP::IgnoreRestVisitor</a></td><td class="indexvalue">A Vistor that tells the <a class="el" href="classTCLAP_1_1CmdLine.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLine</a> to begin ignoring arguments after this one is parsed </td></tr>
<tr><td class="indexkey"><a class="el" href="classTCLAP_1_1MultiArg.html">TCLAP::MultiArg&lt; T &gt;</a></td><td class="indexvalue">An argument that allows multiple values of type T to be specified </td></tr>
<tr><td class="indexkey"><a class="el" href="classTCLAP_1_1MultiSwitchArg.html">TCLAP::MultiSwitchArg</a></td><td class="indexvalue">A multiple switch argument </td></tr>
<tr><td class="indexkey"><a class="el" href="classTCLAP_1_1OptionalUnlabeledTracker.html">TCLAP::OptionalUnlabeledTracker</a></td><td class="indexvalue"></td></tr>
<tr><td class="indexkey"><a class="el" href="classTCLAP_1_1SpecificationException.html">TCLAP::SpecificationException</a></td><td class="indexvalue">Thrown from <a class="el" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a> and <a class="el" href="classTCLAP_1_1CmdLine.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLine</a> when an <a class="el" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a> is improperly specified, e.g </td></tr>
<tr><td class="indexkey"><a class="el" href="classTCLAP_1_1StdOutput.html">TCLAP::StdOutput</a></td><td class="indexvalue">A class that isolates any output from the <a class="el" href="classTCLAP_1_1CmdLine.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLine</a> object so that it may be easily modified </td></tr>
<tr><td class="indexkey"><a class="el" href="structTCLAP_1_1StringLike.html">TCLAP::StringLike</a></td><td class="indexvalue">A string like argument value type is a value that can be set using operator=(string) </td></tr>
<tr><td class="indexkey"><a class="el" href="structTCLAP_1_1StringLikeTrait.html">TCLAP::StringLikeTrait</a></td><td class="indexvalue">A class can inherit from this object to make it have string like traits </td></tr>
<tr><td class="indexkey"><a class="el" href="classTCLAP_1_1SwitchArg.html">TCLAP::SwitchArg</a></td><td class="indexvalue">A simple switch argument </td></tr>
<tr><td class="indexkey"><a class="el" href="classTCLAP_1_1UnlabeledMultiArg.html">TCLAP::UnlabeledMultiArg&lt; T &gt;</a></td><td class="indexvalue">Just like a <a class="el" href="classTCLAP_1_1MultiArg.html" title="An argument that allows multiple values of type T to be specified.">MultiArg</a>, except that the arguments are unlabeled </td></tr>
<tr><td class="indexkey"><a class="el" href="classTCLAP_1_1UnlabeledValueArg.html">TCLAP::UnlabeledValueArg&lt; T &gt;</a></td><td class="indexvalue">The basic unlabeled argument that parses a value </td></tr>
<tr><td class="indexkey"><a class="el" href="classTCLAP_1_1ValueArg.html">TCLAP::ValueArg&lt; T &gt;</a></td><td class="indexvalue">The basic labeled argument that parses a value </td></tr>
<tr><td class="indexkey"><a class="el" href="structTCLAP_1_1ValueLike.html">TCLAP::ValueLike</a></td><td class="indexvalue">A value like argument value type is a value that can be set using operator&gt;&gt; </td></tr>
<tr><td class="indexkey"><a class="el" href="structTCLAP_1_1ValueLikeTrait.html">TCLAP::ValueLikeTrait</a></td><td class="indexvalue">A class can inherit from this object to make it have value like traits </td></tr>
<tr><td class="indexkey"><a class="el" href="classTCLAP_1_1ValuesConstraint.html">TCLAP::ValuesConstraint&lt; T &gt;</a></td><td class="indexvalue">A <a class="el" href="classTCLAP_1_1Constraint.html" title="The interface that defines the interaction between the Arg and Constraint.">Constraint</a> that constrains the <a class="el" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a> to only those values specified in the constraint </td></tr>
<tr><td class="indexkey"><a class="el" href="classTCLAP_1_1VersionVisitor.html">TCLAP::VersionVisitor</a></td><td class="indexvalue">A Vistor that will call the version method of the given <a class="el" href="classTCLAP_1_1CmdLineOutput.html" title="The interface that any output object must implement.">CmdLineOutput</a> for the specified <a class="el" href="classTCLAP_1_1CmdLine.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLine</a> object and then exit </td></tr>
<tr><td class="indexkey"><a class="el" href="classTCLAP_1_1Visitor.html">TCLAP::Visitor</a></td><td class="indexvalue">A base class that defines the interface for visitors </td></tr>
<tr><td class="indexkey"><a class="el" href="classTCLAP_1_1XorHandler.html">TCLAP::XorHandler</a></td><td class="indexvalue">This class handles lists of Arg's that are to be XOR'd on the command line </td></tr>
<tr><td class="indexkey"><a class="el" href="classTCLAP_1_1ZshCompletionOutput.html">TCLAP::ZshCompletionOutput</a></td><td class="indexvalue">A class that generates a Zsh completion function as output from the <a class="el" href="classTCLAP_1_1ZshCompletionOutput.html#a3ea685b174fce7ddf2353129863b49d7" title="Prints the usage to stdout.">usage()</a> method for the given <a class="el" href="classTCLAP_1_1CmdLine.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLine</a> and its Args </td></tr>
</table>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Sat Apr 16 15:34:24 2011 for tclap by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.0 </small></address>
</body>
</html>

View File

@ -0,0 +1,80 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>tclap: Member List</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.0 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="contents">
<h1>TCLAP::Arg Member List</h1>This is the complete list of members for <a class="el" href="classTCLAP_1_1Arg.html">TCLAP::Arg</a>, including all inherited members.<table>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1Arg.html#a13130a9a5d22c57a6d42a8883c9b1e0f">_acceptsMultipleValues</a></td><td><a class="el" href="classTCLAP_1_1Arg.html">TCLAP::Arg</a></td><td><code> [protected]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1Arg.html#a829e32129857d2683e5791a5df1208ec">_alreadySet</a></td><td><a class="el" href="classTCLAP_1_1Arg.html">TCLAP::Arg</a></td><td><code> [protected]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1Arg.html#aa963d0d4c8cb297e1f4cf74143bf6d1b">_checkWithVisitor</a>() const </td><td><a class="el" href="classTCLAP_1_1Arg.html">TCLAP::Arg</a></td><td><code> [inline, protected]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1Arg.html#a9882fe256eaab01ac53db54ac657d272">_description</a></td><td><a class="el" href="classTCLAP_1_1Arg.html">TCLAP::Arg</a></td><td><code> [protected]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1Arg.html#ae68407a0a8223023ad0ae3b9dc7986f5">_flag</a></td><td><a class="el" href="classTCLAP_1_1Arg.html">TCLAP::Arg</a></td><td><code> [protected]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1Arg.html#a2eb0ffefe163218bdc8b4b7a33a974a7">_hasBlanks</a>(const std::string &amp;s) const </td><td><a class="el" href="classTCLAP_1_1Arg.html">TCLAP::Arg</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1Arg.html#a9832bb7564f4ab472bd51b7b1bbc683f">_ignoreable</a></td><td><a class="el" href="classTCLAP_1_1Arg.html">TCLAP::Arg</a></td><td><code> [protected]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1Arg.html#ac0f138057a99fb5d94ff4acb41a083aa">_name</a></td><td><a class="el" href="classTCLAP_1_1Arg.html">TCLAP::Arg</a></td><td><code> [protected]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1Arg.html#ad16408bd1ca4d8b1d14d6c5129545a84">_required</a></td><td><a class="el" href="classTCLAP_1_1Arg.html">TCLAP::Arg</a></td><td><code> [protected]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1Arg.html#a2ed097a868e34a0c4f6062ead744ac54">_requireLabel</a></td><td><a class="el" href="classTCLAP_1_1Arg.html">TCLAP::Arg</a></td><td><code> [protected]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1Arg.html#a776682b7e19f4dc231bbad3d10034dfa">_valueRequired</a></td><td><a class="el" href="classTCLAP_1_1Arg.html">TCLAP::Arg</a></td><td><code> [protected]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1Arg.html#aa9ff037e92c9fa5bd85e532f61899300">_visitor</a></td><td><a class="el" href="classTCLAP_1_1Arg.html">TCLAP::Arg</a></td><td><code> [protected]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1Arg.html#ab413bd1d8a7ecf3c89672ee23ef791ba">_xorSet</a></td><td><a class="el" href="classTCLAP_1_1Arg.html">TCLAP::Arg</a></td><td><code> [protected]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1Arg.html#ad356870538a255d639e26b30330202ae">acceptsMultipleValues</a>()</td><td><a class="el" href="classTCLAP_1_1Arg.html">TCLAP::Arg</a></td><td><code> [inline, virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1Arg.html#a9ff1564beeea2ef855f7fa483c37d0e2">addToList</a>(std::list&lt; Arg * &gt; &amp;argList) const </td><td><a class="el" href="classTCLAP_1_1Arg.html">TCLAP::Arg</a></td><td><code> [inline, virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1Arg.html#a9aef735d37ef95ca1b7dc7a07850b984">allowMore</a>()</td><td><a class="el" href="classTCLAP_1_1Arg.html">TCLAP::Arg</a></td><td><code> [inline, virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1Arg.html#ab25a06db5edf82a5b965b641b3c63372">Arg</a>(const std::string &amp;flag, const std::string &amp;name, const std::string &amp;desc, bool req, bool valreq, Visitor *v=NULL)</td><td><a class="el" href="classTCLAP_1_1Arg.html">TCLAP::Arg</a></td><td><code> [inline, protected]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1Arg.html#aac37b1b734b477e5d16f2037dba9c125">argMatches</a>(const std::string &amp;s) const </td><td><a class="el" href="classTCLAP_1_1Arg.html">TCLAP::Arg</a></td><td><code> [inline, virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1Arg.html#a24165d31c1ec70777fb201356b6cdf6a">beginIgnoring</a>()</td><td><a class="el" href="classTCLAP_1_1Arg.html">TCLAP::Arg</a></td><td><code> [inline, static]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1Arg.html#a0abd38f46dbf7d267078134a4817fbb2">blankChar</a>()</td><td><a class="el" href="classTCLAP_1_1Arg.html">TCLAP::Arg</a></td><td><code> [inline, static]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1Arg.html#aadef6ca7e40f5b3d3fd03186976aea7e">delimiter</a>()</td><td><a class="el" href="classTCLAP_1_1Arg.html">TCLAP::Arg</a></td><td><code> [inline, static]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1Arg.html#a7f9f6af439993e9151bd5a6cd2a63dad">flagStartChar</a>()</td><td><a class="el" href="classTCLAP_1_1Arg.html">TCLAP::Arg</a></td><td><code> [inline, static]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1Arg.html#af8e739295b0f75028e7bff6d670d97a1">flagStartString</a>()</td><td><a class="el" href="classTCLAP_1_1Arg.html">TCLAP::Arg</a></td><td><code> [inline, static]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1Arg.html#a58e3de560f364d0bb6bdf36ab533a6fd">forceRequired</a>()</td><td><a class="el" href="classTCLAP_1_1Arg.html">TCLAP::Arg</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1Arg.html#a1943999fadcb4f28cecd6ba55ed0b085">getDescription</a>() const </td><td><a class="el" href="classTCLAP_1_1Arg.html">TCLAP::Arg</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1Arg.html#a22f616e81a423e794f13a9ae1549ac77">getFlag</a>() const </td><td><a class="el" href="classTCLAP_1_1Arg.html">TCLAP::Arg</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1Arg.html#a641ced141a56c74fee11d3e3a808f731">getName</a>() const </td><td><a class="el" href="classTCLAP_1_1Arg.html">TCLAP::Arg</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1Arg.html#a6ce0cbe4effd44679ca11f25e3c318e7">ignoreNameString</a>()</td><td><a class="el" href="classTCLAP_1_1Arg.html">TCLAP::Arg</a></td><td><code> [inline, static]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1Arg.html#a4d412155b8f9b4956e64e91c48e55a3b">ignoreRest</a>()</td><td><a class="el" href="classTCLAP_1_1Arg.html">TCLAP::Arg</a></td><td><code> [inline, static]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1Arg.html#a33816b5ccc58a15f3a998480e5d988e2">isIgnoreable</a>() const </td><td><a class="el" href="classTCLAP_1_1Arg.html">TCLAP::Arg</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1Arg.html#a00a3cfdb2b6e9a111ad39cbd4978b96c">isRequired</a>() const </td><td><a class="el" href="classTCLAP_1_1Arg.html">TCLAP::Arg</a></td><td><code> [inline, virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1Arg.html#a6af7a1e92b5d92fc2d90c1a95aab4384">isSet</a>() const </td><td><a class="el" href="classTCLAP_1_1Arg.html">TCLAP::Arg</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1Arg.html#a1373d50d4b93c16db43c7600cf6d0355">isValueRequired</a>() const </td><td><a class="el" href="classTCLAP_1_1Arg.html">TCLAP::Arg</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1Arg.html#aad93aff46e1fc67e3853765f565bfa96">longID</a>(const std::string &amp;valueId=&quot;val&quot;) const </td><td><a class="el" href="classTCLAP_1_1Arg.html">TCLAP::Arg</a></td><td><code> [inline, virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1Arg.html#a1df2134870528b80f9f35347fef6fd14">nameStartString</a>()</td><td><a class="el" href="classTCLAP_1_1Arg.html">TCLAP::Arg</a></td><td><code> [inline, static]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1Arg.html#a657a8d2842b7de9ced5a5a55db01d367">operator==</a>(const Arg &amp;a) const </td><td><a class="el" href="classTCLAP_1_1Arg.html">TCLAP::Arg</a></td><td><code> [inline, virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1Arg.html#a61ffe2f660a76111d256f7b22a686146">processArg</a>(int *i, std::vector&lt; std::string &gt; &amp;args)=0</td><td><a class="el" href="classTCLAP_1_1Arg.html">TCLAP::Arg</a></td><td><code> [pure virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1Arg.html#ab5b5dc9a9b0381561f0684523f943a2c">reset</a>()</td><td><a class="el" href="classTCLAP_1_1Arg.html">TCLAP::Arg</a></td><td><code> [inline, virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1Arg.html#ad059b63424001b9aedb4c019e2854c3c">setDelimiter</a>(char c)</td><td><a class="el" href="classTCLAP_1_1Arg.html">TCLAP::Arg</a></td><td><code> [inline, static]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1Arg.html#aae5c959f31af1a484a8af06f84a6e8b0">setRequireLabel</a>(const std::string &amp;s)</td><td><a class="el" href="classTCLAP_1_1Arg.html">TCLAP::Arg</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1Arg.html#aef8efaf3811162b2b2b2a84c6db280fa">shortID</a>(const std::string &amp;valueId=&quot;val&quot;) const </td><td><a class="el" href="classTCLAP_1_1Arg.html">TCLAP::Arg</a></td><td><code> [inline, virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1Arg.html#ac98a357568c21f0eb6ca2220b8a3d4a2">toString</a>() const </td><td><a class="el" href="classTCLAP_1_1Arg.html">TCLAP::Arg</a></td><td><code> [inline, virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1Arg.html#a54595328e81f5fb77859563690faab25">trimFlag</a>(std::string &amp;flag, std::string &amp;value) const </td><td><a class="el" href="classTCLAP_1_1Arg.html">TCLAP::Arg</a></td><td><code> [inline, virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1Arg.html#aec525c8092e56f7f5aa455e71bc72374">xorSet</a>()</td><td><a class="el" href="classTCLAP_1_1Arg.html">TCLAP::Arg</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1Arg.html#a15734a7cf52c8c4ab6df70f0997bbee3">~Arg</a>()</td><td><a class="el" href="classTCLAP_1_1Arg.html">TCLAP::Arg</a></td><td><code> [inline, virtual]</code></td></tr>
</table></div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Sat Apr 16 15:34:25 2011 for tclap by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.0 </small></address>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,41 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>tclap: Member List</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.0 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="contents">
<h1>TCLAP::ArgException Member List</h1>This is the complete list of members for <a class="el" href="classTCLAP_1_1ArgException.html">TCLAP::ArgException</a>, including all inherited members.<table>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1ArgException.html#a67389912b628e95d530f8bb8de97b309">ArgException</a>(const std::string &amp;text=&quot;undefined exception&quot;, const std::string &amp;id=&quot;undefined&quot;, const std::string &amp;td=&quot;Generic ArgException&quot;)</td><td><a class="el" href="classTCLAP_1_1ArgException.html">TCLAP::ArgException</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1ArgException.html#a18ffd1ad34c1799865f8e03df4ebdff1">argId</a>() const </td><td><a class="el" href="classTCLAP_1_1ArgException.html">TCLAP::ArgException</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1ArgException.html#a0656dab88a7129bc288821bacd653d08">error</a>() const </td><td><a class="el" href="classTCLAP_1_1ArgException.html">TCLAP::ArgException</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1ArgException.html#abd271955e1b808bb92f8db7a16ea7c95">typeDescription</a>() const </td><td><a class="el" href="classTCLAP_1_1ArgException.html">TCLAP::ArgException</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1ArgException.html#af51c89da2e4ae54fc9d05038ea484c83">what</a>() const </td><td><a class="el" href="classTCLAP_1_1ArgException.html">TCLAP::ArgException</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1ArgException.html#a5c5df6a814b05c623a01607fb82980f4">~ArgException</a>()</td><td><a class="el" href="classTCLAP_1_1ArgException.html">TCLAP::ArgException</a></td><td><code> [inline, virtual]</code></td></tr>
</table></div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Sat Apr 16 15:34:25 2011 for tclap by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.0 </small></address>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@ -0,0 +1,237 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>tclap: TCLAP::ArgException Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.0 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
<div class="navpath"><a class="el" href="namespaceTCLAP.html">TCLAP</a>::<a class="el" href="classTCLAP_1_1ArgException.html">ArgException</a>
</div>
</div>
<div class="contents">
<h1>TCLAP::ArgException Class Reference</h1><!-- doxytag: class="TCLAP::ArgException" -->
<p>A simple class that defines and argument exception.
<a href="#_details">More...</a></p>
<p><code>#include &lt;<a class="el" href="ArgException_8h_source.html">ArgException.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for TCLAP::ArgException:</div>
<div class="dynsection">
<div class="center">
<img src="classTCLAP_1_1ArgException.gif" usemap="#TCLAP::ArgException_map" alt=""/>
<map id="TCLAP::ArgException_map" name="TCLAP::ArgException_map">
<area href="classTCLAP_1_1ArgParseException.html" alt="TCLAP::ArgParseException" shape="rect" coords="0,56,195,80"/>
<area href="classTCLAP_1_1CmdLineParseException.html" alt="TCLAP::CmdLineParseException" shape="rect" coords="205,56,400,80"/>
<area href="classTCLAP_1_1SpecificationException.html" alt="TCLAP::SpecificationException" shape="rect" coords="410,56,605,80"/>
</map>
</div>
</div>
<p><a href="classTCLAP_1_1ArgException-members.html">List of all members.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTCLAP_1_1ArgException.html#a67389912b628e95d530f8bb8de97b309">ArgException</a> (const std::string &amp;text=&quot;undefined exception&quot;, const std::string &amp;id=&quot;undefined&quot;, const std::string &amp;td=&quot;Generic <a class="el" href="classTCLAP_1_1ArgException.html">ArgException</a>&quot;)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructor. <a href="#a67389912b628e95d530f8bb8de97b309"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTCLAP_1_1ArgException.html#a5c5df6a814b05c623a01607fb82980f4">~ArgException</a> () throw ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Destructor. <a href="#a5c5df6a814b05c623a01607fb82980f4"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">std::string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTCLAP_1_1ArgException.html#a0656dab88a7129bc288821bacd653d08">error</a> () const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the error text. <a href="#a0656dab88a7129bc288821bacd653d08"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">std::string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTCLAP_1_1ArgException.html#a18ffd1ad34c1799865f8e03df4ebdff1">argId</a> () const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the argument id. <a href="#a18ffd1ad34c1799865f8e03df4ebdff1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTCLAP_1_1ArgException.html#af51c89da2e4ae54fc9d05038ea484c83">what</a> () const throw ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the arg id and error text. <a href="#af51c89da2e4ae54fc9d05038ea484c83"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">std::string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTCLAP_1_1ArgException.html#abd271955e1b808bb92f8db7a16ea7c95">typeDescription</a> () const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the type of the exception. <a href="#abd271955e1b808bb92f8db7a16ea7c95"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>A simple class that defines and argument exception. </p>
<p>Should be caught whenever a <a class="el" href="classTCLAP_1_1CmdLine.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLine</a> is created and parsed. </p>
<p>Definition at line <a class="el" href="ArgException_8h_source.html#l00036">36</a> of file <a class="el" href="ArgException_8h_source.html">ArgException.h</a>.</p>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a67389912b628e95d530f8bb8de97b309"></a><!-- doxytag: member="TCLAP::ArgException::ArgException" ref="a67389912b628e95d530f8bb8de97b309" args="(const std::string &amp;text=&quot;undefined exception&quot;, const std::string &amp;id=&quot;undefined&quot;, const std::string &amp;td=&quot;Generic ArgException&quot;)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">TCLAP::ArgException::ArgException </td>
<td>(</td>
<td class="paramtype">const std::string &amp;&nbsp;</td>
<td class="paramname"> <em>text</em> = <code>&quot;undefined&nbsp;exception&quot;</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const std::string &amp;&nbsp;</td>
<td class="paramname"> <em>id</em> = <code>&quot;undefined&quot;</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const std::string &amp;&nbsp;</td>
<td class="paramname"> <em>td</em> = <code>&quot;Generic&nbsp;<a class="el" href="classTCLAP_1_1ArgException.html">ArgException</a>&quot;</code></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Constructor. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>text</em>&nbsp;</td><td>- The text of the exception. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>id</em>&nbsp;</td><td>- The text identifying the argument source. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>td</em>&nbsp;</td><td>- Text describing the type of <a class="el" href="classTCLAP_1_1ArgException.html" title="A simple class that defines and argument exception.">ArgException</a> it is. of the exception. </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="ArgException_8h_source.html#l00047">47</a> of file <a class="el" href="ArgException_8h_source.html">ArgException.h</a>.</p>
</div>
</div>
<a class="anchor" id="a5c5df6a814b05c623a01607fb82980f4"></a><!-- doxytag: member="TCLAP::ArgException::~ArgException" ref="a5c5df6a814b05c623a01607fb82980f4" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual TCLAP::ArgException::~ArgException </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td> throw ()<code> [inline, virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Destructor. </p>
<p>Definition at line <a class="el" href="ArgException_8h_source.html#l00059">59</a> of file <a class="el" href="ArgException_8h_source.html">ArgException.h</a>.</p>
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a18ffd1ad34c1799865f8e03df4ebdff1"></a><!-- doxytag: member="TCLAP::ArgException::argId" ref="a18ffd1ad34c1799865f8e03df4ebdff1" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">std::string TCLAP::ArgException::argId </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns the argument id. </p>
<p>Definition at line <a class="el" href="ArgException_8h_source.html#l00069">69</a> of file <a class="el" href="ArgException_8h_source.html">ArgException.h</a>.</p>
<p>Referenced by <a class="el" href="StdOutput_8h_source.html#l00131">TCLAP::StdOutput::failure()</a>.</p>
</div>
</div>
<a class="anchor" id="a0656dab88a7129bc288821bacd653d08"></a><!-- doxytag: member="TCLAP::ArgException::error" ref="a0656dab88a7129bc288821bacd653d08" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">std::string TCLAP::ArgException::error </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns the error text. </p>
<p>Definition at line <a class="el" href="ArgException_8h_source.html#l00064">64</a> of file <a class="el" href="ArgException_8h_source.html">ArgException.h</a>.</p>
<p>Referenced by <a class="el" href="ValueArg_8h_source.html#l00400">TCLAP::ValueArg&lt; T &gt;::_extractValue()</a>, <a class="el" href="MultiArg_8h_source.html#l00398">TCLAP::MultiArg&lt; T &gt;::_extractValue()</a>, and <a class="el" href="StdOutput_8h_source.html#l00131">TCLAP::StdOutput::failure()</a>.</p>
</div>
</div>
<a class="anchor" id="abd271955e1b808bb92f8db7a16ea7c95"></a><!-- doxytag: member="TCLAP::ArgException::typeDescription" ref="abd271955e1b808bb92f8db7a16ea7c95" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">std::string TCLAP::ArgException::typeDescription </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns the type of the exception. </p>
<p>Used to explain and distinguish between different child exceptions. </p>
<p>Definition at line <a class="el" href="ArgException_8h_source.html#l00091">91</a> of file <a class="el" href="ArgException_8h_source.html">ArgException.h</a>.</p>
</div>
</div>
<a class="anchor" id="af51c89da2e4ae54fc9d05038ea484c83"></a><!-- doxytag: member="TCLAP::ArgException::what" ref="af51c89da2e4ae54fc9d05038ea484c83" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const char* TCLAP::ArgException::what </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td> const throw ()<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns the arg id and error text. </p>
<p>Definition at line <a class="el" href="ArgException_8h_source.html#l00080">80</a> of file <a class="el" href="ArgException_8h_source.html">ArgException.h</a>.</p>
<p>Referenced by <a class="el" href="ZshCompletionOutput_8h_source.html#l00129">TCLAP::ZshCompletionOutput::failure()</a>, and <a class="el" href="DocBookOutput_8h_source.html#l00174">TCLAP::DocBookOutput::failure()</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="ArgException_8h_source.html">ArgException.h</a></li>
</ul>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Sat Apr 16 15:34:25 2011 for tclap by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.0 </small></address>
</body>
</html>

View File

@ -0,0 +1,42 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>tclap: Member List</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.0 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="contents">
<h1>TCLAP::ArgParseException Member List</h1>This is the complete list of members for <a class="el" href="classTCLAP_1_1ArgParseException.html">TCLAP::ArgParseException</a>, including all inherited members.<table>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1ArgException.html#a67389912b628e95d530f8bb8de97b309">ArgException</a>(const std::string &amp;text=&quot;undefined exception&quot;, const std::string &amp;id=&quot;undefined&quot;, const std::string &amp;td=&quot;Generic ArgException&quot;)</td><td><a class="el" href="classTCLAP_1_1ArgException.html">TCLAP::ArgException</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1ArgException.html#a18ffd1ad34c1799865f8e03df4ebdff1">argId</a>() const </td><td><a class="el" href="classTCLAP_1_1ArgException.html">TCLAP::ArgException</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1ArgParseException.html#aa9d9531405e505afd506491526733285">ArgParseException</a>(const std::string &amp;text=&quot;undefined exception&quot;, const std::string &amp;id=&quot;undefined&quot;)</td><td><a class="el" href="classTCLAP_1_1ArgParseException.html">TCLAP::ArgParseException</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1ArgException.html#a0656dab88a7129bc288821bacd653d08">error</a>() const </td><td><a class="el" href="classTCLAP_1_1ArgException.html">TCLAP::ArgException</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1ArgException.html#abd271955e1b808bb92f8db7a16ea7c95">typeDescription</a>() const </td><td><a class="el" href="classTCLAP_1_1ArgException.html">TCLAP::ArgException</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1ArgException.html#af51c89da2e4ae54fc9d05038ea484c83">what</a>() const </td><td><a class="el" href="classTCLAP_1_1ArgException.html">TCLAP::ArgException</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1ArgException.html#a5c5df6a814b05c623a01607fb82980f4">~ArgException</a>()</td><td><a class="el" href="classTCLAP_1_1ArgException.html">TCLAP::ArgException</a></td><td><code> [inline, virtual]</code></td></tr>
</table></div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Sat Apr 16 15:34:25 2011 for tclap by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.0 </small></address>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 866 B

View File

@ -0,0 +1,104 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>tclap: TCLAP::ArgParseException Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.0 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
<div class="navpath"><a class="el" href="namespaceTCLAP.html">TCLAP</a>::<a class="el" href="classTCLAP_1_1ArgParseException.html">ArgParseException</a>
</div>
</div>
<div class="contents">
<h1>TCLAP::ArgParseException Class Reference</h1><!-- doxytag: class="TCLAP::ArgParseException" --><!-- doxytag: inherits="TCLAP::ArgException" -->
<p>Thrown from within the child <a class="el" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a> classes when it fails to properly parse the argument it has been passed.
<a href="#_details">More...</a></p>
<p><code>#include &lt;<a class="el" href="ArgException_8h_source.html">ArgException.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for TCLAP::ArgParseException:</div>
<div class="dynsection">
<div class="center">
<img src="classTCLAP_1_1ArgParseException.gif" usemap="#TCLAP::ArgParseException_map" alt=""/>
<map id="TCLAP::ArgParseException_map" name="TCLAP::ArgParseException_map">
<area href="classTCLAP_1_1ArgException.html" alt="TCLAP::ArgException" shape="rect" coords="0,0,167,24"/>
</map>
</div>
</div>
<p><a href="classTCLAP_1_1ArgParseException-members.html">List of all members.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTCLAP_1_1ArgParseException.html#aa9d9531405e505afd506491526733285">ArgParseException</a> (const std::string &amp;text=&quot;undefined exception&quot;, const std::string &amp;id=&quot;undefined&quot;)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructor. <a href="#aa9d9531405e505afd506491526733285"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>Thrown from within the child <a class="el" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a> classes when it fails to properly parse the argument it has been passed. </p>
<p>Definition at line <a class="el" href="ArgException_8h_source.html#l00121">121</a> of file <a class="el" href="ArgException_8h_source.html">ArgException.h</a>.</p>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="aa9d9531405e505afd506491526733285"></a><!-- doxytag: member="TCLAP::ArgParseException::ArgParseException" ref="aa9d9531405e505afd506491526733285" args="(const std::string &amp;text=&quot;undefined exception&quot;, const std::string &amp;id=&quot;undefined&quot;)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">TCLAP::ArgParseException::ArgParseException </td>
<td>(</td>
<td class="paramtype">const std::string &amp;&nbsp;</td>
<td class="paramname"> <em>text</em> = <code>&quot;undefined&nbsp;exception&quot;</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const std::string &amp;&nbsp;</td>
<td class="paramname"> <em>id</em> = <code>&quot;undefined&quot;</code></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Constructor. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>text</em>&nbsp;</td><td>- The text of the exception. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>id</em>&nbsp;</td><td>- The text identifying the argument source of the exception. </td></tr>
</table>
</dd>
</dl>
<p>Definition at line <a class="el" href="ArgException_8h_source.html#l00130">130</a> of file <a class="el" href="ArgException_8h_source.html">ArgException.h</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="ArgException_8h_source.html">ArgException.h</a></li>
</ul>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Sat Apr 16 15:34:25 2011 for tclap by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.0 </small></address>
</body>
</html>

View File

@ -0,0 +1,71 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>tclap: Member List</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.0 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="contents">
<h1>TCLAP::CmdLine Member List</h1>This is the complete list of members for <a class="el" href="classTCLAP_1_1CmdLine.html">TCLAP::CmdLine</a>, including all inherited members.<table>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1CmdLine.html#af8d37fbf9d0b60b6acbd737af380f3e5">_argDeleteOnExitList</a></td><td><a class="el" href="classTCLAP_1_1CmdLine.html">TCLAP::CmdLine</a></td><td><code> [protected]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1CmdLine.html#a4d70f73542d8184e077688bff3801baf">_argList</a></td><td><a class="el" href="classTCLAP_1_1CmdLine.html">TCLAP::CmdLine</a></td><td><code> [protected]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1CmdLine.html#a602e65692dc07ea872134f354026a54f">_delimiter</a></td><td><a class="el" href="classTCLAP_1_1CmdLine.html">TCLAP::CmdLine</a></td><td><code> [protected]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1CmdLine.html#a170a4e711c2a6d58a05e9ad3bc03c08a">_emptyCombined</a>(const std::string &amp;s)</td><td><a class="el" href="classTCLAP_1_1CmdLine.html">TCLAP::CmdLine</a></td><td><code> [inline, protected]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1CmdLine.html#a3609d0c13886053b367d1df80efbe67b">_handleExceptions</a></td><td><a class="el" href="classTCLAP_1_1CmdLine.html">TCLAP::CmdLine</a></td><td><code> [protected]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1CmdLine.html#a3ccd2ae40f6eb97aebca3de9a02f10cf">_message</a></td><td><a class="el" href="classTCLAP_1_1CmdLine.html">TCLAP::CmdLine</a></td><td><code> [protected]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1CmdLine.html#a2285207b528d5fad18c82a2ee8155f37">_numRequired</a></td><td><a class="el" href="classTCLAP_1_1CmdLine.html">TCLAP::CmdLine</a></td><td><code> [protected]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1CmdLine.html#a5152bf4ef26217583a3bc708aa0ea83e">_output</a></td><td><a class="el" href="classTCLAP_1_1CmdLine.html">TCLAP::CmdLine</a></td><td><code> [protected]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1CmdLine.html#a8b856dadc54fa30d0dddba4588ef9344">_progName</a></td><td><a class="el" href="classTCLAP_1_1CmdLine.html">TCLAP::CmdLine</a></td><td><code> [protected]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1CmdLine.html#a2b2b52fffed2dcb7df3cdfc582ec8fd1">_version</a></td><td><a class="el" href="classTCLAP_1_1CmdLine.html">TCLAP::CmdLine</a></td><td><code> [protected]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1CmdLine.html#a79b8a947f8100de977574b45b91117ac">_visitorDeleteOnExitList</a></td><td><a class="el" href="classTCLAP_1_1CmdLine.html">TCLAP::CmdLine</a></td><td><code> [protected]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1CmdLine.html#a33846aa10c62ecd61640c93c16ac315d">_xorHandler</a></td><td><a class="el" href="classTCLAP_1_1CmdLine.html">TCLAP::CmdLine</a></td><td><code> [protected]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1CmdLine.html#a94c511d4735ad9b8c97edaa3827f8bbf">add</a>(Arg &amp;a)</td><td><a class="el" href="classTCLAP_1_1CmdLine.html">TCLAP::CmdLine</a></td><td><code> [inline, virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1CmdLine.html#ab8a08e8f4d3ca7709c85416f76e805a3">add</a>(Arg *a)</td><td><a class="el" href="classTCLAP_1_1CmdLine.html">TCLAP::CmdLine</a></td><td><code> [inline, virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1CmdLine.html#a2e62a3493f8700afb49a7deb872a5b96">CmdLine</a>(const std::string &amp;message, const char delimiter= ' ', const std::string &amp;version=&quot;none&quot;, bool helpAndVersion=true)</td><td><a class="el" href="classTCLAP_1_1CmdLine.html">TCLAP::CmdLine</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1CmdLine.html#a42d669ed2037ac24fc78883aa8600655">deleteOnExit</a>(Arg *ptr)</td><td><a class="el" href="classTCLAP_1_1CmdLine.html">TCLAP::CmdLine</a></td><td><code> [inline, protected]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1CmdLine.html#a262b8d929eb5b0dfbfc17637c1325c36">deleteOnExit</a>(Visitor *ptr)</td><td><a class="el" href="classTCLAP_1_1CmdLine.html">TCLAP::CmdLine</a></td><td><code> [inline, protected]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1CmdLine.html#a3c281da929a281fb883ea47632b7ad38">getArgList</a>()</td><td><a class="el" href="classTCLAP_1_1CmdLine.html">TCLAP::CmdLine</a></td><td><code> [inline, virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1CmdLine.html#a3e9f0ac2c1e97d1f8527da713ddd5a8f">getDelimiter</a>()</td><td><a class="el" href="classTCLAP_1_1CmdLine.html">TCLAP::CmdLine</a></td><td><code> [inline, virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1CmdLine.html#af2cd748a91e22df97c878d7eff8c4ca3">getExceptionHandling</a>() const </td><td><a class="el" href="classTCLAP_1_1CmdLine.html">TCLAP::CmdLine</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1CmdLine.html#a8f61a8c201e31ada985fa998180fd40f">getMessage</a>()</td><td><a class="el" href="classTCLAP_1_1CmdLine.html">TCLAP::CmdLine</a></td><td><code> [inline, virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1CmdLine.html#ad8aea2617edf53bbc20c8964ee5476e6">getOutput</a>()</td><td><a class="el" href="classTCLAP_1_1CmdLine.html">TCLAP::CmdLine</a></td><td><code> [inline, virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1CmdLine.html#a47a6d496980ee11ffc42e27144a61797">getProgramName</a>()</td><td><a class="el" href="classTCLAP_1_1CmdLine.html">TCLAP::CmdLine</a></td><td><code> [inline, virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1CmdLine.html#a85b5653d1a5b48fe6accead64615cf33">getVersion</a>()</td><td><a class="el" href="classTCLAP_1_1CmdLine.html">TCLAP::CmdLine</a></td><td><code> [inline, virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1CmdLine.html#a805433b7718d1bc5bc9317bbd061449b">getXorHandler</a>()</td><td><a class="el" href="classTCLAP_1_1CmdLine.html">TCLAP::CmdLine</a></td><td><code> [inline, virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1CmdLine.html#a5b23895feae4f4110b77dae372226475">hasHelpAndVersion</a>()</td><td><a class="el" href="classTCLAP_1_1CmdLine.html">TCLAP::CmdLine</a></td><td><code> [inline, virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1CmdLine.html#a698f47333350312eb949aa1ae4f89ad1">missingArgsException</a>()</td><td><a class="el" href="classTCLAP_1_1CmdLine.html">TCLAP::CmdLine</a></td><td><code> [inline, protected]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1CmdLine.html#acb07daf5a1370c176a7b4a6e4119fe6e">parse</a>(int argc, const char *const *argv)</td><td><a class="el" href="classTCLAP_1_1CmdLine.html">TCLAP::CmdLine</a></td><td><code> [inline, virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1CmdLine.html#a712c3edf86aa0a8a28fb0b6d504d945a">parse</a>(std::vector&lt; std::string &gt; &amp;args)</td><td><a class="el" href="classTCLAP_1_1CmdLine.html">TCLAP::CmdLine</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1CmdLine.html#a1721ec47c9d9f5ea2eca2f385fcfd2da">reset</a>()</td><td><a class="el" href="classTCLAP_1_1CmdLine.html">TCLAP::CmdLine</a></td><td><code> [inline, virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1CmdLine.html#aa02055d8f4864bfa9b505e2d26bbbd87">setExceptionHandling</a>(const bool state)</td><td><a class="el" href="classTCLAP_1_1CmdLine.html">TCLAP::CmdLine</a></td><td><code> [inline]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1CmdLine.html#a4506e305cd10437c7ce5a5ba34cfed0f">setOutput</a>(CmdLineOutput *co)</td><td><a class="el" href="classTCLAP_1_1CmdLine.html">TCLAP::CmdLine</a></td><td><code> [inline, virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1CmdLine.html#afbaa2071d0c3276b383089acabdc0dd2">xorAdd</a>(Arg &amp;a, Arg &amp;b)</td><td><a class="el" href="classTCLAP_1_1CmdLine.html">TCLAP::CmdLine</a></td><td><code> [inline, virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1CmdLine.html#ac7f2d7ee32a5157f625ad9833ab148cf">xorAdd</a>(std::vector&lt; Arg * &gt; &amp;xors)</td><td><a class="el" href="classTCLAP_1_1CmdLine.html">TCLAP::CmdLine</a></td><td><code> [inline, virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1CmdLine.html#a8a7bddba32c3d96e2a01e4c8e160e6fa">~CmdLine</a>()</td><td><a class="el" href="classTCLAP_1_1CmdLine.html">TCLAP::CmdLine</a></td><td><code> [inline, virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1CmdLineInterface.html#a8c7faeca5a25a96e18312da9485a94e9">~CmdLineInterface</a>()</td><td><a class="el" href="classTCLAP_1_1CmdLineInterface.html">TCLAP::CmdLineInterface</a></td><td><code> [inline, virtual]</code></td></tr>
</table></div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Sat Apr 16 15:34:25 2011 for tclap by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.0 </small></address>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 790 B

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,52 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>tclap: Member List</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.0 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="contents">
<h1>TCLAP::CmdLineInterface Member List</h1>This is the complete list of members for <a class="el" href="classTCLAP_1_1CmdLineInterface.html">TCLAP::CmdLineInterface</a>, including all inherited members.<table>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1CmdLineInterface.html#a13b29ab754c030185e58f779dc355631">add</a>(Arg &amp;a)=0</td><td><a class="el" href="classTCLAP_1_1CmdLineInterface.html">TCLAP::CmdLineInterface</a></td><td><code> [pure virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1CmdLineInterface.html#a7c6a097c0f2a09dd1987e9da1af8b457">add</a>(Arg *a)=0</td><td><a class="el" href="classTCLAP_1_1CmdLineInterface.html">TCLAP::CmdLineInterface</a></td><td><code> [pure virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1CmdLineInterface.html#a4de8d988f5a6f3007c4dfb0fc9dad476">getArgList</a>()=0</td><td><a class="el" href="classTCLAP_1_1CmdLineInterface.html">TCLAP::CmdLineInterface</a></td><td><code> [pure virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1CmdLineInterface.html#a7d6a64cff6b3a30e2cf1e81d7b1d4521">getDelimiter</a>()=0</td><td><a class="el" href="classTCLAP_1_1CmdLineInterface.html">TCLAP::CmdLineInterface</a></td><td><code> [pure virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1CmdLineInterface.html#a30175a2567f7ab78a2c6bbea9269a2fa">getMessage</a>()=0</td><td><a class="el" href="classTCLAP_1_1CmdLineInterface.html">TCLAP::CmdLineInterface</a></td><td><code> [pure virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1CmdLineInterface.html#aebc72daedeaeb03e06bb2e6e0f00363d">getOutput</a>()=0</td><td><a class="el" href="classTCLAP_1_1CmdLineInterface.html">TCLAP::CmdLineInterface</a></td><td><code> [pure virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1CmdLineInterface.html#a1a5672df72a6b5021cd70b37c4dbd0a7">getProgramName</a>()=0</td><td><a class="el" href="classTCLAP_1_1CmdLineInterface.html">TCLAP::CmdLineInterface</a></td><td><code> [pure virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1CmdLineInterface.html#a0a552fa57212800dfb8aec84fb07b8bb">getVersion</a>()=0</td><td><a class="el" href="classTCLAP_1_1CmdLineInterface.html">TCLAP::CmdLineInterface</a></td><td><code> [pure virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1CmdLineInterface.html#a11ce9c77a1111960741f05e343849e4e">getXorHandler</a>()=0</td><td><a class="el" href="classTCLAP_1_1CmdLineInterface.html">TCLAP::CmdLineInterface</a></td><td><code> [pure virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1CmdLineInterface.html#a441b06b764836a62083b163508210905">hasHelpAndVersion</a>()=0</td><td><a class="el" href="classTCLAP_1_1CmdLineInterface.html">TCLAP::CmdLineInterface</a></td><td><code> [pure virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1CmdLineInterface.html#a6649336bddfc8421148718a691fd89b4">parse</a>(int argc, const char *const *argv)=0</td><td><a class="el" href="classTCLAP_1_1CmdLineInterface.html">TCLAP::CmdLineInterface</a></td><td><code> [pure virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1CmdLineInterface.html#a1b1a0cb973206a11c22003c245a4f7ed">parse</a>(std::vector&lt; std::string &gt; &amp;args)</td><td><a class="el" href="classTCLAP_1_1CmdLineInterface.html">TCLAP::CmdLineInterface</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1CmdLineInterface.html#a6b1fac8a9948ba7e28bc7844a18f39e4">reset</a>()=0</td><td><a class="el" href="classTCLAP_1_1CmdLineInterface.html">TCLAP::CmdLineInterface</a></td><td><code> [pure virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1CmdLineInterface.html#ab208b32bd9489781509d7ecddf8a92a0">setOutput</a>(CmdLineOutput *co)=0</td><td><a class="el" href="classTCLAP_1_1CmdLineInterface.html">TCLAP::CmdLineInterface</a></td><td><code> [pure virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1CmdLineInterface.html#a69859e3713623eb06c9c335248d9c83f">xorAdd</a>(Arg &amp;a, Arg &amp;b)=0</td><td><a class="el" href="classTCLAP_1_1CmdLineInterface.html">TCLAP::CmdLineInterface</a></td><td><code> [pure virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1CmdLineInterface.html#a6a94140e522bcf6104928fcf0c434ab8">xorAdd</a>(std::vector&lt; Arg * &gt; &amp;xors)=0</td><td><a class="el" href="classTCLAP_1_1CmdLineInterface.html">TCLAP::CmdLineInterface</a></td><td><code> [pure virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1CmdLineInterface.html#a8c7faeca5a25a96e18312da9485a94e9">~CmdLineInterface</a>()</td><td><a class="el" href="classTCLAP_1_1CmdLineInterface.html">TCLAP::CmdLineInterface</a></td><td><code> [inline, virtual]</code></td></tr>
</table></div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Sat Apr 16 15:34:25 2011 for tclap by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.0 </small></address>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 794 B

View File

@ -0,0 +1,541 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>tclap: TCLAP::CmdLineInterface Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.0 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
<div class="navpath"><a class="el" href="namespaceTCLAP.html">TCLAP</a>::<a class="el" href="classTCLAP_1_1CmdLineInterface.html">CmdLineInterface</a>
</div>
</div>
<div class="contents">
<h1>TCLAP::CmdLineInterface Class Reference</h1><!-- doxytag: class="TCLAP::CmdLineInterface" -->
<p>The base class that manages the command line definition and passes along the parsing to the appropriate <a class="el" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a> classes.
<a href="#_details">More...</a></p>
<p><code>#include &lt;<a class="el" href="CmdLineInterface_8h_source.html">CmdLineInterface.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for TCLAP::CmdLineInterface:</div>
<div class="dynsection">
<div class="center">
<img src="classTCLAP_1_1CmdLineInterface.gif" usemap="#TCLAP::CmdLineInterface_map" alt=""/>
<map id="TCLAP::CmdLineInterface_map" name="TCLAP::CmdLineInterface_map">
<area href="classTCLAP_1_1CmdLine.html" alt="TCLAP::CmdLine" shape="rect" coords="0,56,157,80"/>
</map>
</div>
</div>
<p><a href="classTCLAP_1_1CmdLineInterface-members.html">List of all members.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTCLAP_1_1CmdLineInterface.html#a8c7faeca5a25a96e18312da9485a94e9">~CmdLineInterface</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Destructor. <a href="#a8c7faeca5a25a96e18312da9485a94e9"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTCLAP_1_1CmdLineInterface.html#a13b29ab754c030185e58f779dc355631">add</a> (<a class="el" href="classTCLAP_1_1Arg.html">Arg</a> &amp;a)=0</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Adds an argument to the list of arguments to be parsed. <a href="#a13b29ab754c030185e58f779dc355631"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTCLAP_1_1CmdLineInterface.html#a7c6a097c0f2a09dd1987e9da1af8b457">add</a> (<a class="el" href="classTCLAP_1_1Arg.html">Arg</a> *a)=0</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">An alternative add. <a href="#a7c6a097c0f2a09dd1987e9da1af8b457"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTCLAP_1_1CmdLineInterface.html#a69859e3713623eb06c9c335248d9c83f">xorAdd</a> (<a class="el" href="classTCLAP_1_1Arg.html">Arg</a> &amp;a, <a class="el" href="classTCLAP_1_1Arg.html">Arg</a> &amp;b)=0</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Add two Args that will be xor'd. <a href="#a69859e3713623eb06c9c335248d9c83f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTCLAP_1_1CmdLineInterface.html#a6a94140e522bcf6104928fcf0c434ab8">xorAdd</a> (std::vector&lt; <a class="el" href="classTCLAP_1_1Arg.html">Arg</a> * &gt; &amp;xors)=0</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Add a list of Args that will be xor'd. <a href="#a6a94140e522bcf6104928fcf0c434ab8"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTCLAP_1_1CmdLineInterface.html#a6649336bddfc8421148718a691fd89b4">parse</a> (int argc, const char *const *argv)=0</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Parses the command line. <a href="#a6649336bddfc8421148718a691fd89b4"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTCLAP_1_1CmdLineInterface.html#a1b1a0cb973206a11c22003c245a4f7ed">parse</a> (std::vector&lt; std::string &gt; &amp;args)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Parses the command line. <a href="#a1b1a0cb973206a11c22003c245a4f7ed"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classTCLAP_1_1CmdLineOutput.html">CmdLineOutput</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTCLAP_1_1CmdLineInterface.html#aebc72daedeaeb03e06bb2e6e0f00363d">getOutput</a> ()=0</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the <a class="el" href="classTCLAP_1_1CmdLineOutput.html" title="The interface that any output object must implement.">CmdLineOutput</a> object. <a href="#aebc72daedeaeb03e06bb2e6e0f00363d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTCLAP_1_1CmdLineInterface.html#ab208b32bd9489781509d7ecddf8a92a0">setOutput</a> (<a class="el" href="classTCLAP_1_1CmdLineOutput.html">CmdLineOutput</a> *co)=0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual std::string &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTCLAP_1_1CmdLineInterface.html#a0a552fa57212800dfb8aec84fb07b8bb">getVersion</a> ()=0</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the version string. <a href="#a0a552fa57212800dfb8aec84fb07b8bb"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual std::string &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTCLAP_1_1CmdLineInterface.html#a1a5672df72a6b5021cd70b37c4dbd0a7">getProgramName</a> ()=0</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the program name string. <a href="#a1a5672df72a6b5021cd70b37c4dbd0a7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual std::list&lt; <a class="el" href="classTCLAP_1_1Arg.html">Arg</a> * &gt; &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTCLAP_1_1CmdLineInterface.html#a4de8d988f5a6f3007c4dfb0fc9dad476">getArgList</a> ()=0</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the argList. <a href="#a4de8d988f5a6f3007c4dfb0fc9dad476"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classTCLAP_1_1XorHandler.html">XorHandler</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTCLAP_1_1CmdLineInterface.html#a11ce9c77a1111960741f05e343849e4e">getXorHandler</a> ()=0</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the <a class="el" href="classTCLAP_1_1XorHandler.html" title="This class handles lists of Arg&#39;s that are to be XOR&#39;d on the command line...">XorHandler</a>. <a href="#a11ce9c77a1111960741f05e343849e4e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual char&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTCLAP_1_1CmdLineInterface.html#a7d6a64cff6b3a30e2cf1e81d7b1d4521">getDelimiter</a> ()=0</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the delimiter string. <a href="#a7d6a64cff6b3a30e2cf1e81d7b1d4521"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual std::string &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTCLAP_1_1CmdLineInterface.html#a30175a2567f7ab78a2c6bbea9269a2fa">getMessage</a> ()=0</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the message string. <a href="#a30175a2567f7ab78a2c6bbea9269a2fa"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTCLAP_1_1CmdLineInterface.html#a441b06b764836a62083b163508210905">hasHelpAndVersion</a> ()=0</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Indicates whether or not the help and version switches were created automatically. <a href="#a441b06b764836a62083b163508210905"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTCLAP_1_1CmdLineInterface.html#a6b1fac8a9948ba7e28bc7844a18f39e4">reset</a> ()=0</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Resets the instance as if it had just been constructed so that the instance can be reused. <a href="#a6b1fac8a9948ba7e28bc7844a18f39e4"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>The base class that manages the command line definition and passes along the parsing to the appropriate <a class="el" href="classTCLAP_1_1Arg.html" title="A virtual base class that defines the essential data for all arguments.">Arg</a> classes. </p>
<p>Definition at line <a class="el" href="CmdLineInterface_8h_source.html#l00043">43</a> of file <a class="el" href="CmdLineInterface_8h_source.html">CmdLineInterface.h</a>.</p>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a8c7faeca5a25a96e18312da9485a94e9"></a><!-- doxytag: member="TCLAP::CmdLineInterface::~CmdLineInterface" ref="a8c7faeca5a25a96e18312da9485a94e9" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual TCLAP::CmdLineInterface::~CmdLineInterface </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [inline, virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Destructor. </p>
<p>Definition at line <a class="el" href="CmdLineInterface_8h_source.html#l00050">50</a> of file <a class="el" href="CmdLineInterface_8h_source.html">CmdLineInterface.h</a>.</p>
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a7c6a097c0f2a09dd1987e9da1af8b457"></a><!-- doxytag: member="TCLAP::CmdLineInterface::add" ref="a7c6a097c0f2a09dd1987e9da1af8b457" args="(Arg *a)=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual void TCLAP::CmdLineInterface::add </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classTCLAP_1_1Arg.html">Arg</a> *&nbsp;</td>
<td class="paramname"> <em>a</em></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>An alternative add. </p>
<p>Functionally identical. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>a</em>&nbsp;</td><td>- Argument to be added. </td></tr>
</table>
</dd>
</dl>
<p>Implemented in <a class="el" href="classTCLAP_1_1CmdLine.html#ab8a08e8f4d3ca7709c85416f76e805a3">TCLAP::CmdLine</a>.</p>
</div>
</div>
<a class="anchor" id="a13b29ab754c030185e58f779dc355631"></a><!-- doxytag: member="TCLAP::CmdLineInterface::add" ref="a13b29ab754c030185e58f779dc355631" args="(Arg &amp;a)=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual void TCLAP::CmdLineInterface::add </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classTCLAP_1_1Arg.html">Arg</a> &amp;&nbsp;</td>
<td class="paramname"> <em>a</em></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Adds an argument to the list of arguments to be parsed. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>a</em>&nbsp;</td><td>- Argument to be added. </td></tr>
</table>
</dd>
</dl>
<p>Implemented in <a class="el" href="classTCLAP_1_1CmdLine.html#a94c511d4735ad9b8c97edaa3827f8bbf">TCLAP::CmdLine</a>.</p>
<p>Referenced by <a class="el" href="MultiArg_8h_source.html#l00250">TCLAP::MultiArg&lt; T &gt;::MultiArg()</a>, <a class="el" href="MultiSwitchArg_8h_source.html#l00140">TCLAP::MultiSwitchArg::MultiSwitchArg()</a>, <a class="el" href="SwitchArg_8h_source.html#l00145">TCLAP::SwitchArg::SwitchArg()</a>, <a class="el" href="UnlabeledMultiArg_8h_source.html#l00200">TCLAP::UnlabeledMultiArg&lt; T &gt;::UnlabeledMultiArg()</a>, <a class="el" href="UnlabeledValueArg_8h_source.html#l00229">TCLAP::UnlabeledValueArg&lt; T &gt;::UnlabeledValueArg()</a>, and <a class="el" href="ValueArg_8h_source.html#l00267">TCLAP::ValueArg&lt; T &gt;::ValueArg()</a>.</p>
</div>
</div>
<a class="anchor" id="a4de8d988f5a6f3007c4dfb0fc9dad476"></a><!-- doxytag: member="TCLAP::CmdLineInterface::getArgList" ref="a4de8d988f5a6f3007c4dfb0fc9dad476" args="()=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual std::list&lt;<a class="el" href="classTCLAP_1_1Arg.html">Arg</a>*&gt;&amp; TCLAP::CmdLineInterface::getArgList </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns the argList. </p>
<p>Implemented in <a class="el" href="classTCLAP_1_1CmdLine.html#a3c281da929a281fb883ea47632b7ad38">TCLAP::CmdLine</a>.</p>
<p>Referenced by <a class="el" href="StdOutput_8h_source.html#l00191">TCLAP::StdOutput::_longUsage()</a>, <a class="el" href="StdOutput_8h_source.html#l00156">TCLAP::StdOutput::_shortUsage()</a>, <a class="el" href="ZshCompletionOutput_8h_source.html#l00106">TCLAP::ZshCompletionOutput::usage()</a>, and <a class="el" href="DocBookOutput_8h_source.html#l00095">TCLAP::DocBookOutput::usage()</a>.</p>
</div>
</div>
<a class="anchor" id="a7d6a64cff6b3a30e2cf1e81d7b1d4521"></a><!-- doxytag: member="TCLAP::CmdLineInterface::getDelimiter" ref="a7d6a64cff6b3a30e2cf1e81d7b1d4521" args="()=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual char TCLAP::CmdLineInterface::getDelimiter </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns the delimiter string. </p>
<p>Implemented in <a class="el" href="classTCLAP_1_1CmdLine.html#a3e9f0ac2c1e97d1f8527da713ddd5a8f">TCLAP::CmdLine</a>.</p>
<p>Referenced by <a class="el" href="ZshCompletionOutput_8h_source.html#l00106">TCLAP::ZshCompletionOutput::usage()</a>, and <a class="el" href="DocBookOutput_8h_source.html#l00095">TCLAP::DocBookOutput::usage()</a>.</p>
</div>
</div>
<a class="anchor" id="a30175a2567f7ab78a2c6bbea9269a2fa"></a><!-- doxytag: member="TCLAP::CmdLineInterface::getMessage" ref="a30175a2567f7ab78a2c6bbea9269a2fa" args="()=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual std::string&amp; TCLAP::CmdLineInterface::getMessage </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns the message string. </p>
<p>Implemented in <a class="el" href="classTCLAP_1_1CmdLine.html#a8f61a8c201e31ada985fa998180fd40f">TCLAP::CmdLine</a>.</p>
<p>Referenced by <a class="el" href="StdOutput_8h_source.html#l00191">TCLAP::StdOutput::_longUsage()</a>, and <a class="el" href="DocBookOutput_8h_source.html#l00095">TCLAP::DocBookOutput::usage()</a>.</p>
</div>
</div>
<a class="anchor" id="aebc72daedeaeb03e06bb2e6e0f00363d"></a><!-- doxytag: member="TCLAP::CmdLineInterface::getOutput" ref="aebc72daedeaeb03e06bb2e6e0f00363d" args="()=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="classTCLAP_1_1CmdLineOutput.html">CmdLineOutput</a>* TCLAP::CmdLineInterface::getOutput </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns the <a class="el" href="classTCLAP_1_1CmdLineOutput.html" title="The interface that any output object must implement.">CmdLineOutput</a> object. </p>
<p>Implemented in <a class="el" href="classTCLAP_1_1CmdLine.html#ad8aea2617edf53bbc20c8964ee5476e6">TCLAP::CmdLine</a>.</p>
</div>
</div>
<a class="anchor" id="a1a5672df72a6b5021cd70b37c4dbd0a7"></a><!-- doxytag: member="TCLAP::CmdLineInterface::getProgramName" ref="a1a5672df72a6b5021cd70b37c4dbd0a7" args="()=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual std::string&amp; TCLAP::CmdLineInterface::getProgramName </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns the program name string. </p>
<p>Implemented in <a class="el" href="classTCLAP_1_1CmdLine.html#a47a6d496980ee11ffc42e27144a61797">TCLAP::CmdLine</a>.</p>
<p>Referenced by <a class="el" href="StdOutput_8h_source.html#l00156">TCLAP::StdOutput::_shortUsage()</a>, <a class="el" href="StdOutput_8h_source.html#l00131">TCLAP::StdOutput::failure()</a>, <a class="el" href="ZshCompletionOutput_8h_source.html#l00106">TCLAP::ZshCompletionOutput::usage()</a>, <a class="el" href="DocBookOutput_8h_source.html#l00095">TCLAP::DocBookOutput::usage()</a>, and <a class="el" href="StdOutput_8h_source.html#l00108">TCLAP::StdOutput::version()</a>.</p>
</div>
</div>
<a class="anchor" id="a0a552fa57212800dfb8aec84fb07b8bb"></a><!-- doxytag: member="TCLAP::CmdLineInterface::getVersion" ref="a0a552fa57212800dfb8aec84fb07b8bb" args="()=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual std::string&amp; TCLAP::CmdLineInterface::getVersion </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns the version string. </p>
<p>Implemented in <a class="el" href="classTCLAP_1_1CmdLine.html#a85b5653d1a5b48fe6accead64615cf33">TCLAP::CmdLine</a>.</p>
<p>Referenced by <a class="el" href="ZshCompletionOutput_8h_source.html#l00106">TCLAP::ZshCompletionOutput::usage()</a>, <a class="el" href="DocBookOutput_8h_source.html#l00095">TCLAP::DocBookOutput::usage()</a>, <a class="el" href="ZshCompletionOutput_8h_source.html#l00101">TCLAP::ZshCompletionOutput::version()</a>, <a class="el" href="StdOutput_8h_source.html#l00108">TCLAP::StdOutput::version()</a>, and <a class="el" href="DocBookOutput_8h_source.html#l00090">TCLAP::DocBookOutput::version()</a>.</p>
</div>
</div>
<a class="anchor" id="a11ce9c77a1111960741f05e343849e4e"></a><!-- doxytag: member="TCLAP::CmdLineInterface::getXorHandler" ref="a11ce9c77a1111960741f05e343849e4e" args="()=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="classTCLAP_1_1XorHandler.html">XorHandler</a>&amp; TCLAP::CmdLineInterface::getXorHandler </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns the <a class="el" href="classTCLAP_1_1XorHandler.html" title="This class handles lists of Arg&#39;s that are to be XOR&#39;d on the command line...">XorHandler</a>. </p>
<p>Implemented in <a class="el" href="classTCLAP_1_1CmdLine.html#a805433b7718d1bc5bc9317bbd061449b">TCLAP::CmdLine</a>.</p>
<p>Referenced by <a class="el" href="StdOutput_8h_source.html#l00191">TCLAP::StdOutput::_longUsage()</a>, <a class="el" href="StdOutput_8h_source.html#l00156">TCLAP::StdOutput::_shortUsage()</a>, <a class="el" href="ZshCompletionOutput_8h_source.html#l00271">TCLAP::ZshCompletionOutput::getMutexList()</a>, and <a class="el" href="DocBookOutput_8h_source.html#l00095">TCLAP::DocBookOutput::usage()</a>.</p>
</div>
</div>
<a class="anchor" id="a441b06b764836a62083b163508210905"></a><!-- doxytag: member="TCLAP::CmdLineInterface::hasHelpAndVersion" ref="a441b06b764836a62083b163508210905" args="()=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual bool TCLAP::CmdLineInterface::hasHelpAndVersion </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Indicates whether or not the help and version switches were created automatically. </p>
<p>Implemented in <a class="el" href="classTCLAP_1_1CmdLine.html#a5b23895feae4f4110b77dae372226475">TCLAP::CmdLine</a>.</p>
<p>Referenced by <a class="el" href="StdOutput_8h_source.html#l00131">TCLAP::StdOutput::failure()</a>.</p>
</div>
</div>
<a class="anchor" id="a1b1a0cb973206a11c22003c245a4f7ed"></a><!-- doxytag: member="TCLAP::CmdLineInterface::parse" ref="a1b1a0cb973206a11c22003c245a4f7ed" args="(std::vector&lt; std::string &gt; &amp;args)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void TCLAP::CmdLineInterface::parse </td>
<td>(</td>
<td class="paramtype">std::vector&lt; std::string &gt; &amp;&nbsp;</td>
<td class="paramname"> <em>args</em></td>
<td>&nbsp;)&nbsp;</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Parses the command line. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>args</em>&nbsp;</td><td>- A vector of strings representing the args. args[0] is still the program name. </td></tr>
</table>
</dd>
</dl>
<p>Reimplemented in <a class="el" href="classTCLAP_1_1CmdLine.html#a712c3edf86aa0a8a28fb0b6d504d945a">TCLAP::CmdLine</a>.</p>
</div>
</div>
<a class="anchor" id="a6649336bddfc8421148718a691fd89b4"></a><!-- doxytag: member="TCLAP::CmdLineInterface::parse" ref="a6649336bddfc8421148718a691fd89b4" args="(int argc, const char *const *argv)=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual void TCLAP::CmdLineInterface::parse </td>
<td>(</td>
<td class="paramtype">int&nbsp;</td>
<td class="paramname"> <em>argc</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const char *const *&nbsp;</td>
<td class="paramname"> <em>argv</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Parses the command line. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>argc</em>&nbsp;</td><td>- Number of arguments. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>argv</em>&nbsp;</td><td>- Array of arguments. </td></tr>
</table>
</dd>
</dl>
<p>Implemented in <a class="el" href="classTCLAP_1_1CmdLine.html#acb07daf5a1370c176a7b4a6e4119fe6e">TCLAP::CmdLine</a>.</p>
</div>
</div>
<a class="anchor" id="a6b1fac8a9948ba7e28bc7844a18f39e4"></a><!-- doxytag: member="TCLAP::CmdLineInterface::reset" ref="a6b1fac8a9948ba7e28bc7844a18f39e4" args="()=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual void TCLAP::CmdLineInterface::reset </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Resets the instance as if it had just been constructed so that the instance can be reused. </p>
<p>Implemented in <a class="el" href="classTCLAP_1_1CmdLine.html#a1721ec47c9d9f5ea2eca2f385fcfd2da">TCLAP::CmdLine</a>.</p>
</div>
</div>
<a class="anchor" id="ab208b32bd9489781509d7ecddf8a92a0"></a><!-- doxytag: member="TCLAP::CmdLineInterface::setOutput" ref="ab208b32bd9489781509d7ecddf8a92a0" args="(CmdLineOutput *co)=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual void TCLAP::CmdLineInterface::setOutput </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classTCLAP_1_1CmdLineOutput.html">CmdLineOutput</a> *&nbsp;</td>
<td class="paramname"> <em>co</em></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>co</em>&nbsp;</td><td>- <a class="el" href="classTCLAP_1_1CmdLineOutput.html" title="The interface that any output object must implement.">CmdLineOutput</a> object that we want to use instead. </td></tr>
</table>
</dd>
</dl>
<p>Implemented in <a class="el" href="classTCLAP_1_1CmdLine.html#a4506e305cd10437c7ce5a5ba34cfed0f">TCLAP::CmdLine</a>.</p>
</div>
</div>
<a class="anchor" id="a6a94140e522bcf6104928fcf0c434ab8"></a><!-- doxytag: member="TCLAP::CmdLineInterface::xorAdd" ref="a6a94140e522bcf6104928fcf0c434ab8" args="(std::vector&lt; Arg * &gt; &amp;xors)=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual void TCLAP::CmdLineInterface::xorAdd </td>
<td>(</td>
<td class="paramtype">std::vector&lt; <a class="el" href="classTCLAP_1_1Arg.html">Arg</a> * &gt; &amp;&nbsp;</td>
<td class="paramname"> <em>xors</em></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Add a list of Args that will be xor'd. </p>
<p>If this method is used, add does not need to be called. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>xors</em>&nbsp;</td><td>- List of Args to be added and xor'd. </td></tr>
</table>
</dd>
</dl>
<p>Implemented in <a class="el" href="classTCLAP_1_1CmdLine.html#ac7f2d7ee32a5157f625ad9833ab148cf">TCLAP::CmdLine</a>.</p>
</div>
</div>
<a class="anchor" id="a69859e3713623eb06c9c335248d9c83f"></a><!-- doxytag: member="TCLAP::CmdLineInterface::xorAdd" ref="a69859e3713623eb06c9c335248d9c83f" args="(Arg &amp;a, Arg &amp;b)=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual void TCLAP::CmdLineInterface::xorAdd </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classTCLAP_1_1Arg.html">Arg</a> &amp;&nbsp;</td>
<td class="paramname"> <em>a</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classTCLAP_1_1Arg.html">Arg</a> &amp;&nbsp;</td>
<td class="paramname"> <em>b</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Add two Args that will be xor'd. </p>
<p>If this method is used, add does not need to be called. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>a</em>&nbsp;</td><td>- Argument to be added and xor'd. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>b</em>&nbsp;</td><td>- Argument to be added and xor'd. </td></tr>
</table>
</dd>
</dl>
<p>Implemented in <a class="el" href="classTCLAP_1_1CmdLine.html#afbaa2071d0c3276b383089acabdc0dd2">TCLAP::CmdLine</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="CmdLineInterface_8h_source.html">CmdLineInterface.h</a></li>
</ul>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Sat Apr 16 15:34:25 2011 for tclap by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.0 </small></address>
</body>
</html>

View File

@ -0,0 +1,39 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>tclap: Member List</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.0 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="contents">
<h1>TCLAP::CmdLineOutput Member List</h1>This is the complete list of members for <a class="el" href="classTCLAP_1_1CmdLineOutput.html">TCLAP::CmdLineOutput</a>, including all inherited members.<table>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1CmdLineOutput.html#ad23a57ac3d8d957a4328fc78aec94e16">failure</a>(CmdLineInterface &amp;c, ArgException &amp;e)=0</td><td><a class="el" href="classTCLAP_1_1CmdLineOutput.html">TCLAP::CmdLineOutput</a></td><td><code> [pure virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1CmdLineOutput.html#a685b13db5bf6bbe5159e49169cd96bbe">usage</a>(CmdLineInterface &amp;c)=0</td><td><a class="el" href="classTCLAP_1_1CmdLineOutput.html">TCLAP::CmdLineOutput</a></td><td><code> [pure virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1CmdLineOutput.html#ae052fea473132482296de55edb3dd480">version</a>(CmdLineInterface &amp;c)=0</td><td><a class="el" href="classTCLAP_1_1CmdLineOutput.html">TCLAP::CmdLineOutput</a></td><td><code> [pure virtual]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classTCLAP_1_1CmdLineOutput.html#afdf4435a2619076d9798a0a950ed405b">~CmdLineOutput</a>()</td><td><a class="el" href="classTCLAP_1_1CmdLineOutput.html">TCLAP::CmdLineOutput</a></td><td><code> [inline, virtual]</code></td></tr>
</table></div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Sat Apr 16 15:34:25 2011 for tclap by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.0 </small></address>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

@ -0,0 +1,192 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>tclap: TCLAP::CmdLineOutput Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.0 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
<div class="navpath"><a class="el" href="namespaceTCLAP.html">TCLAP</a>::<a class="el" href="classTCLAP_1_1CmdLineOutput.html">CmdLineOutput</a>
</div>
</div>
<div class="contents">
<h1>TCLAP::CmdLineOutput Class Reference</h1><!-- doxytag: class="TCLAP::CmdLineOutput" -->
<p>The interface that any output object must implement.
<a href="#_details">More...</a></p>
<p><code>#include &lt;<a class="el" href="CmdLineOutput_8h_source.html">CmdLineOutput.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for TCLAP::CmdLineOutput:</div>
<div class="dynsection">
<div class="center">
<img src="classTCLAP_1_1CmdLineOutput.gif" usemap="#TCLAP::CmdLineOutput_map" alt=""/>
<map id="TCLAP::CmdLineOutput_map" name="TCLAP::CmdLineOutput_map">
<area href="classTCLAP_1_1DocBookOutput.html" alt="TCLAP::DocBookOutput" shape="rect" coords="0,56,179,80"/>
<area href="classTCLAP_1_1StdOutput.html" alt="TCLAP::StdOutput" shape="rect" coords="189,56,368,80"/>
<area href="classTCLAP_1_1ZshCompletionOutput.html" alt="TCLAP::ZshCompletionOutput" shape="rect" coords="378,56,557,80"/>
</map>
</div>
</div>
<p><a href="classTCLAP_1_1CmdLineOutput-members.html">List of all members.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTCLAP_1_1CmdLineOutput.html#afdf4435a2619076d9798a0a950ed405b">~CmdLineOutput</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Virtual destructor. <a href="#afdf4435a2619076d9798a0a950ed405b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTCLAP_1_1CmdLineOutput.html#a685b13db5bf6bbe5159e49169cd96bbe">usage</a> (<a class="el" href="classTCLAP_1_1CmdLineInterface.html">CmdLineInterface</a> &amp;c)=0</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Generates some sort of output for the USAGE. <a href="#a685b13db5bf6bbe5159e49169cd96bbe"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTCLAP_1_1CmdLineOutput.html#ae052fea473132482296de55edb3dd480">version</a> (<a class="el" href="classTCLAP_1_1CmdLineInterface.html">CmdLineInterface</a> &amp;c)=0</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Generates some sort of output for the version. <a href="#ae052fea473132482296de55edb3dd480"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTCLAP_1_1CmdLineOutput.html#ad23a57ac3d8d957a4328fc78aec94e16">failure</a> (<a class="el" href="classTCLAP_1_1CmdLineInterface.html">CmdLineInterface</a> &amp;c, <a class="el" href="classTCLAP_1_1ArgException.html">ArgException</a> &amp;e)=0</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Generates some sort of output for a failure. <a href="#ad23a57ac3d8d957a4328fc78aec94e16"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>The interface that any output object must implement. </p>
<p>Definition at line <a class="el" href="CmdLineOutput_8h_source.html#l00041">41</a> of file <a class="el" href="CmdLineOutput_8h_source.html">CmdLineOutput.h</a>.</p>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="afdf4435a2619076d9798a0a950ed405b"></a><!-- doxytag: member="TCLAP::CmdLineOutput::~CmdLineOutput" ref="afdf4435a2619076d9798a0a950ed405b" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual TCLAP::CmdLineOutput::~CmdLineOutput </td>
<td>(</td>
<td class="paramname"></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [inline, virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Virtual destructor. </p>
<p>Definition at line <a class="el" href="CmdLineOutput_8h_source.html#l00049">49</a> of file <a class="el" href="CmdLineOutput_8h_source.html">CmdLineOutput.h</a>.</p>
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="ad23a57ac3d8d957a4328fc78aec94e16"></a><!-- doxytag: member="TCLAP::CmdLineOutput::failure" ref="ad23a57ac3d8d957a4328fc78aec94e16" args="(CmdLineInterface &amp;c, ArgException &amp;e)=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual void TCLAP::CmdLineOutput::failure </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classTCLAP_1_1CmdLineInterface.html">CmdLineInterface</a> &amp;&nbsp;</td>
<td class="paramname"> <em>c</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classTCLAP_1_1ArgException.html">ArgException</a> &amp;&nbsp;</td>
<td class="paramname"> <em>e</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Generates some sort of output for a failure. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>c</em>&nbsp;</td><td>- The <a class="el" href="classTCLAP_1_1CmdLine.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLine</a> object the output is generated for. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>e</em>&nbsp;</td><td>- The <a class="el" href="classTCLAP_1_1ArgException.html" title="A simple class that defines and argument exception.">ArgException</a> that caused the failure. </td></tr>
</table>
</dd>
</dl>
<p>Implemented in <a class="el" href="classTCLAP_1_1DocBookOutput.html#a5e97f659fa1ab3b060a31e8bd7a0a40e">TCLAP::DocBookOutput</a>, <a class="el" href="classTCLAP_1_1StdOutput.html#a9afc267e012c3ac42c8b1afe01f98556">TCLAP::StdOutput</a>, and <a class="el" href="classTCLAP_1_1ZshCompletionOutput.html#abcd0ba63a2ac7675d085877fc4d3e8cf">TCLAP::ZshCompletionOutput</a>.</p>
<p>Referenced by <a class="el" href="CmdLine_8h_source.html#l00444">TCLAP::CmdLine::parse()</a>.</p>
</div>
</div>
<a class="anchor" id="a685b13db5bf6bbe5159e49169cd96bbe"></a><!-- doxytag: member="TCLAP::CmdLineOutput::usage" ref="a685b13db5bf6bbe5159e49169cd96bbe" args="(CmdLineInterface &amp;c)=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual void TCLAP::CmdLineOutput::usage </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classTCLAP_1_1CmdLineInterface.html">CmdLineInterface</a> &amp;&nbsp;</td>
<td class="paramname"> <em>c</em></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Generates some sort of output for the USAGE. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>c</em>&nbsp;</td><td>- The <a class="el" href="classTCLAP_1_1CmdLine.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLine</a> object the output is generated for. </td></tr>
</table>
</dd>
</dl>
<p>Implemented in <a class="el" href="classTCLAP_1_1DocBookOutput.html#adc1ec93f3f7e5e912690be01c5e7d6e2">TCLAP::DocBookOutput</a>, <a class="el" href="classTCLAP_1_1StdOutput.html#aeb10eb400e0ee45f2cde689bef606b49">TCLAP::StdOutput</a>, and <a class="el" href="classTCLAP_1_1ZshCompletionOutput.html#a3ea685b174fce7ddf2353129863b49d7">TCLAP::ZshCompletionOutput</a>.</p>
</div>
</div>
<a class="anchor" id="ae052fea473132482296de55edb3dd480"></a><!-- doxytag: member="TCLAP::CmdLineOutput::version" ref="ae052fea473132482296de55edb3dd480" args="(CmdLineInterface &amp;c)=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual void TCLAP::CmdLineOutput::version </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classTCLAP_1_1CmdLineInterface.html">CmdLineInterface</a> &amp;&nbsp;</td>
<td class="paramname"> <em>c</em></td>
<td>&nbsp;)&nbsp;</td>
<td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Generates some sort of output for the version. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>c</em>&nbsp;</td><td>- The <a class="el" href="classTCLAP_1_1CmdLine.html" title="The base class that manages the command line definition and passes along the parsing...">CmdLine</a> object the output is generated for. </td></tr>
</table>
</dd>
</dl>
<p>Implemented in <a class="el" href="classTCLAP_1_1DocBookOutput.html#a3ccf7671dcae82aba5f0e91850ae25a4">TCLAP::DocBookOutput</a>, <a class="el" href="classTCLAP_1_1StdOutput.html#a768111a59af4753ac6e5ace3ec99482e">TCLAP::StdOutput</a>, and <a class="el" href="classTCLAP_1_1ZshCompletionOutput.html#a543e705918d769d3d6f4090c403ed0c9">TCLAP::ZshCompletionOutput</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="CmdLineOutput_8h_source.html">CmdLineOutput.h</a></li>
</ul>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Sat Apr 16 15:34:25 2011 for tclap by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.0 </small></address>
</body>
</html>

Some files were not shown because too many files have changed in this diff Show More