tclap-1.2.1/000777 000765 000765 00000000000 11552414566 012257 5ustar00mesmes000000 000000 tclap-1.2.1/aclocal.m4000644 000765 000765 00000077430 11552414362 014120 0ustar00mesmes000000 000000 # 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 /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]) tclap-1.2.1/AUTHORS000644 000765 000765 00000000275 11131763602 013316 0ustar00mesmes000000 000000 original author: Michael E. Smoot invaluable contributions: Daniel Aarno more contributions: Erik Zeek more contributions: Fabien Carmagnac (Tinbergen-AM) outstanding editing: Carol Smoot tclap-1.2.1/ChangeLog000644 000765 000765 00000132164 11552414266 014031 0ustar00mesmes000000 000000 2011-04-10 17:08 mes5k * include/tclap/Arg.h: patch that allows arg start strings to be pound defined to easily conform to different platforms 2011-04-09 11:58 mes5k * docs/Makefile.am: being slightly more precise about what we clean 2011-04-09 11:30 mes5k * include/tclap/: DocBookOutput.h, StdOutput.h, ZshCompletionOutput.h: fixed shadow variable name problem 2011-04-09 11:05 mes5k * include/tclap/CmdLine.h: fixed minor memory leak 2011-03-15 04:26 macbishop * configure.in, config/ac_cxx_warn_effective_cxx.m4: Check if compiler supports Weffec++ and if so use it (fixes compilation issue with e.g. SunStudio compiler) 2011-01-15 09:45 macbishop * include/tclap/ArgTraits.h: Updated documentation for ArgTraits to reference StringLike and ValueLike classes. 2011-01-15 09:32 macbishop * examples/test10.cpp: Added explicit cast to supress warning about deprecated conversion from string constant to char* 2011-01-02 17:18 mes5k * docs/Makefile.am: now using a slightly different variable for doc install to support out-of-tree builds 2011-01-02 16:37 mes5k * configure.in: bumped version number to 1.2.1 2011-01-02 16:30 mes5k * docs/style.css: tweaked style so it doesn't blink 2011-01-02 16:21 mes5k * tests/: test57.out, test57.sh, test76.out: tweaked tests to reflect fix for mutually exclusive switches 2011-01-02 16:20 mes5k * include/tclap/: SwitchArg.h, XorHandler.h: finally fixed bug relating to mutually exclusive combined switched 2011-01-02 15:12 mes5k * include/tclap/Arg.h: minor reformat 2011-01-02 15:10 mes5k * include/tclap/CmdLine.h: minor reformatting 2011-01-02 12:13 mes5k * examples/Makefile.am, examples/test20.cpp, tests/Makefile.am, tests/test74.out, tests/test74.sh, tests/test75.out, tests/test75.sh, tests/test76.out, tests/test76.sh, tests/test77.out, tests/test77.sh: added failing tests for XOR error message bug 2011-01-02 11:52 mes5k * include/tclap/StandardTraits.h: applied Tom Fogal's win64 patch for size_t 2011-01-02 11:38 mes5k * docs/Makefile.am: hopefully fixed out-of-tree doc installation 2011-01-02 10:50 mes5k * include/tclap/: Arg.h, ArgTraits.h, CmdLine.h, HelpVisitor.h, MultiArg.h, ValueArg.h, ValuesConstraint.h, VersionVisitor.h, XorHandler.h, ZshCompletionOutput.h: fixed all effective c++ warnings based on patch from Andrew Marlow 2010-12-06 22:41 mes5k * configure.in: added more compiler warnings 2009-10-24 20:49 mes5k * include/tclap/SwitchArg.h, include/tclap/ValueArg.h, tests/test22.out, tests/test24.out: make error message a bit more meaningful 2009-10-23 14:42 mes5k * include/tclap/StandardTraits.h: added a check for wchar_t to deal with a potential problem with MS compilers 2009-09-28 11:28 mes5k * docs/index.html: updated for 1.2.0 2009-09-26 14:41 mes5k * docs/Makefile.am: another update to support older automake 2009-09-26 14:23 mes5k * docs/Makefile.am: removed an errant space 2009-09-26 14:15 mes5k * docs/Makefile.am: added a definition for docdir, which doesnt exist for old versions of automake 2009-09-26 14:02 mes5k * docs/Makefile.am: corrected the doc install directory structure 2009-09-26 13:55 mes5k * NEWS: updated for 1.2.0 2009-09-26 13:53 mes5k * docs/: manual.html, manual.xml: updated for 1.2.0 including text on ArgTraits 2009-08-22 12:26 mes5k * Makefile.am, configure.in, tclap.pc.in, docs/Makefile.am, examples/Makefile.am: applying patches to make gnu compiler args conditional, to install docs, and to add pkgconfig support to the installation 2009-07-28 12:49 mes5k * configure.in, tests/Makefile.am, tests/test73.out, tests/test73.sh: added test 73 based on bug reported by user 2009-07-15 08:09 mes5k * include/tclap/UnlabeledValueArg.h: updated incorrect api docs again 2009-07-15 08:04 mes5k * include/tclap/UnlabeledValueArg.h: updated incorrect api doc 2009-01-09 16:10 mes5k * AUTHORS: added author 2009-01-09 16:05 mes5k * include/tclap/: Arg.h, CmdLine.h, CmdLineInterface.h, MultiArg.h, MultiSwitchArg.h, SwitchArg.h, ValueArg.h: added support for resetting a command line 2008-11-07 12:04 mes5k * docs/manual.html, docs/manual.xml, examples/Makefile.am, examples/test19.cpp, include/tclap/Arg.h, tests/Makefile.am, tests/test29.out, tests/test29.sh, tests/test71.out, tests/test71.sh, tests/test72.out, tests/test72.sh: added support for parsing hex and octal ints as well as small fix to support gcc 4.4 2008-09-10 11:29 mes5k * docs/manual.xml: updated note on xor 2008-09-10 11:21 mes5k * docs/manual.xml: added note on xor 2008-08-19 15:18 zeekec * examples/test18.cpp, include/tclap/CmdLine.h, tests/Makefile.am, tests/test70.out, tests/test70.sh: Rethrow ExitExceptions if we're not handling exceptions. 2008-08-19 14:52 zeekec * include/tclap/Arg.h: Silence some compiler warnings. The const on return-by-value is ignored. 2008-07-21 10:20 zeekec * include/tclap/CmdLine.h, examples/Makefile.am, examples/test18.cpp, tests/Makefile.am, tests/test69.out, tests/test69.sh: Allow internal handling of parse errors to be turned off. This allows exceptions for parse errors to be propagated to the caller. Exiting the program in parse is a bad idea generally, as we have no way of knowing what cleanup needs to be done in the main program. 2008-06-17 09:48 mes5k * include/tclap/StdOutput.h: bug in while loop 2008-05-23 15:15 mes5k * include/tclap/: CmdLine.h, SwitchArg.h: added length checks to strings that can otherwise break with Metroworks compilers 2008-05-21 14:21 macbishop * examples/: Makefile.am, test17-a.cpp, test17.cpp: Added test that tclap does not define any hard symbols (bug 1907017) 2008-05-13 12:04 mes5k * include/tclap/CmdLine.h: added a new include to support exit in environments where it isnt defined 2008-05-05 23:02 mes5k * examples/test7.cpp, include/tclap/Arg.h, tests/test46.out: tweaked tests to support dashes in arg names 2008-05-05 22:28 mes5k * include/tclap/Arg.h: allowed dash char in arg names 2008-01-18 15:05 zeekec * include/tclap/Makefile.am: Added Traits files to the list of files to be installed. 2007-10-09 11:18 macbishop * examples/test14.cpp, examples/test15.cpp, examples/test16.cpp, include/tclap/Arg.h, include/tclap/ArgTraits.h, include/tclap/StandardTraits.h, configure.in, config/ac_cxx_have_long_long.m4, examples/Makefile.am: Refactoring of the arg-traits functionality. The purpose is to make it easier to make you own classes, and types defined in the standard library work well with tclap. I'll try to write up some documenation of how to achieve this as-well. 2007-10-01 23:33 mes5k * examples/test13.cpp: added attribution 2007-10-01 23:30 mes5k * examples/test13.cpp: fixed a warning message 2007-10-01 23:27 mes5k * examples/Makefile.am, examples/test13.cpp, include/tclap/SwitchArg.h, tests/Makefile.am, tests/test68.out, tests/test68.sh: a bug fix for parsing vectors of strings and making sure that combined switches dont get confused 2007-09-27 13:49 mes5k * include/tclap/OptionalUnlabeledTracker.h: added inline 2007-09-12 19:09 mes5k * include/tclap/Arg.h, tests/test42.out, tests/test54.out: fixed the delimiter in Arg::longID and Arg::shortID 2007-09-01 01:17 macbishop * examples/Makefile.am, include/tclap/Arg.h, include/tclap/DocBookOutput.h, include/tclap/ZshCompletionOutput.h: Suppress some warnings, compile with -Wextra by default 2007-06-14 14:02 macbishop * include/tclap/Arg.h, include/tclap/MultiArg.h, include/tclap/ValueArg.h, tests/runtests.sh, tests/test63.out, tests/test63.sh, tests/test64.out, tests/test64.sh, tests/test65.out, tests/test65.sh, tests/test66.out, tests/test66.sh, tests/test67.out, tests/test67.sh, tests/testCheck.sh, examples/Makefile.am, examples/test11.cpp, examples/test12.cpp: Use ArgTraits instead of ValueExtractor specialization Bug 1711487 2007-05-02 13:11 macbishop * examples/Makefile.am, examples/test10.cpp, include/tclap/CmdLine.h, include/tclap/CmdLineInterface.h: Run CmdLine::parse with argv as pointer to const pointer to const char 2007-04-20 22:28 mes5k * include/tclap/Arg.h, tests/test18.out: changed the blankChar to the bell character instead of * 2007-03-04 11:28 mes5k * examples/test4.cpp, include/tclap/DocBookOutput.h, include/tclap/Makefile.am, include/tclap/ZshCompletionOutput.h: added patches for ZSH and DocBook output 2007-03-04 11:08 mes5k * include/tclap/: CmdLine.h, CmdLineInterface.h: added a new parse method that accepts a vector 2007-02-17 06:59 macbishop * include/tclap/: MultiArg.h, MultiSwitchArg.h, UnlabeledMultiArg.h, UnlabeledValueArg.h, ValueArg.h: Supressed some warnings 2007-02-17 06:59 macbishop * include/tclap/CmdLine.h: Catch ExitException and exit. This allows all resources used during parsing to be released, bug 1662188. 2007-02-17 06:57 macbishop * include/tclap/: DocBookOutput.h, HelpVisitor.h, StdOutput.h, VersionVisitor.h: raise ExitException instead of calling exit 2007-02-17 06:54 macbishop * include/tclap/ArgException.h: Added exit-exception class 2007-02-17 06:52 macbishop * tests/testCheck.sh: Exit with exit status 1 if a test fails (required by runtests.sh) 2007-02-17 06:52 macbishop * tests/runtests.sh: Run the correct tests (not 0) 2007-02-17 06:51 macbishop * examples/: test4.cpp, test7.cpp: Supressed warnings 2007-02-07 18:12 mes5k * include/tclap/StdOutput.h: minor change to support a bug in VisualC++ 2005 2006-11-26 10:42 mes5k * docs/: README, manual.html, manual.xml: updated docs to reflect that Output must handle the exit rather than the CmdLine object 2006-11-26 10:32 mes5k * include/tclap/: CmdLine.h, DocBookOutput.h, StdOutput.h: moved exit from CmdLine to StdOutput to provide users more control over when/how the exit happens 2006-11-26 10:29 mes5k * examples/test4.cpp: added exit() to failure method 2006-11-26 10:13 mes5k * docs/: manual.html, manual.xml: fixed typo in SwitchArg constructors 2006-11-04 14:05 mes5k * include/tclap/CmdLine.h, tests/Makefile.am, tests/test10.out, tests/test17.out, tests/test4.out, tests/test51.out, tests/test62.out, tests/test62.sh: printing more useful message when missing required args and catching ArgException reference 2006-10-06 09:49 mes5k * include/tclap/SwitchArg.h, tests/Makefile.am, tests/test61.out, tests/test61.sh: made a fix for a bug where - chars were within unlabeled value args 2006-08-21 23:13 mes5k * include/tclap/StdOutput.h: minor tweak to a min function signature 2006-08-18 20:05 mes5k * docs/index.html: updated for 1.1.0 2006-08-18 20:04 mes5k * AUTHORS: new author 2006-05-14 17:55 mes5k * config/Makefile.am: so that m4 macros will be included in release files to ease incorporation of tclap in other projects 2006-05-14 17:36 mes5k * include/tclap/CmdLine.h: removed a deprecated constructor 2006-05-14 17:35 mes5k * docs/: manual.xml, manual.html: manual update 2006-05-14 13:11 mes5k * Makefile.am, configure.in: added m4 macros to help others distributing the software and updated the version number 2006-05-14 12:52 mes5k * config/bb_enable_doxygen.m4: for some reason, the AS_HELP_STRING function was messing up autoconf 2.57 -- maybe that's just an old version? We can change it back as necessary 2006-05-14 12:51 mes5k * examples/test8.cpp, include/tclap/SwitchArg.h: SwitchArg interface change 2006-04-18 03:59 macbishop * docs/: manual.html, manual.xml: Updated the example 2006-04-05 23:44 mes5k * include/tclap/ArgException.h: patch for a mem leak in ArgException 2006-03-18 11:16 mes5k * include/tclap/: CmdLineOutput.h, Visitor.h: added virtual destructors 2006-02-21 18:15 zeekec * examples/: test1.cpp, test2.cpp, test3.cpp, test4.cpp, test5.cpp, test6.cpp, test7.cpp, test8.cpp, test9.cpp: Use local header files first instead of installed headers. 2006-02-21 18:12 zeekec * Makefile.am: Added ACLOCAL_AMFLAGS for autoreconf. 2006-02-21 18:10 zeekec * config/: ac_cxx_have_sstream.m4, ac_cxx_have_strstream.m4: Moved the requires, header check, and language save and restore outside of the cache check. 2006-02-21 04:00 zeekec * config/: stamp-h.in, stamp-h1: Removed timestamp files (generated by configure). 2006-02-21 03:05 zeekec * include/tclap/Constraint.h: Added virtual destructor to silence warnings. 2006-02-21 03:01 zeekec * ChangeLog: Generated with cvs2cl. 2005-09-10 16:25 mes5k * config/stamp-h1, examples/test2.cpp, examples/test3.cpp, examples/test5.cpp, examples/test8.cpp, include/tclap/Arg.h, include/tclap/CmdLine.h, include/tclap/MultiArg.h, include/tclap/StdOutput.h, include/tclap/UnlabeledMultiArg.h, include/tclap/UnlabeledValueArg.h, include/tclap/ValueArg.h, include/tclap/XorHandler.h: added gcc warning patch 2005-07-12 20:36 zeekec * examples/Makefile.am: Set INCLUDES to top_srcdir for out of source builds. 2005-07-12 20:33 zeekec * include/tclap/: UnlabeledMultiArg.h, UnlabeledValueArg.h: Add using toString statements (for gcc >= 3.4). 2005-07-12 20:31 zeekec * config/bb_enable_doxygen.m4: Properly quote BB_ENABLE_DOXYGEN. 2005-06-29 15:04 mes5k * include/tclap/Arg.h: merged some new changes 2005-06-08 08:28 mes5k * docs/index.html: fixed spelling mistake 2005-06-02 19:35 mes5k * include/tclap/: Makefile.am, OptionalUnlabeledTracker.h, UnlabeledMultiArg.h, UnlabeledValueArg.h: fix to handle optional unlabeled args 2005-06-02 19:33 mes5k * examples/: test2.cpp, test3.cpp, test7.cpp, test8.cpp, test9.cpp: Unlabeled changes 2005-02-03 15:04 mes5k * include/tclap/: Arg.h, DocBookOutput.h, MultiArg.h: updated docbook output 2005-02-03 08:08 mes5k * include/tclap/: ValuesConstraint.h, XorHandler.h: add std:: prefix to some finds 2005-02-01 13:35 zeekec * include/tclap/CmdLine.h: Made deleteOnExit's protected to facilitate derivation. 2005-02-01 13:30 zeekec * config/config.h.in: Removed autotools generated file. 2005-01-28 13:26 zeekec * configure.in, docs/Doxyfile.in, tests/Makefile.am, tests/test1.sh, tests/test10.sh, tests/test11.sh, tests/test12.sh, tests/test13.sh, tests/test14.sh, tests/test15.sh, tests/test16.sh, tests/test17.sh, tests/test18.sh, tests/test19.sh, tests/test2.sh, tests/test20.sh, tests/test21.sh, tests/test22.sh, tests/test23.sh, tests/test24.sh, tests/test25.sh, tests/test26.sh, tests/test27.sh, tests/test28.sh, tests/test29.sh, tests/test3.sh, tests/test30.sh, tests/test31.sh, tests/test32.sh, tests/test33.sh, tests/test34.sh, tests/test35.sh, tests/test36.sh, tests/test37.sh, tests/test38.sh, tests/test39.sh, tests/test4.sh, tests/test40.sh, tests/test41.sh, tests/test42.sh, tests/test43.sh, tests/test44.sh, tests/test45.sh, tests/test46.sh, tests/test47.sh, tests/test48.sh, tests/test49.sh, tests/test5.sh, tests/test50.sh, tests/test51.sh, tests/test52.sh, tests/test53.sh, tests/test54.sh, tests/test55.sh, tests/test56.sh, tests/test57.sh, tests/test58.sh, tests/test59.sh, tests/test6.sh, tests/test60.sh, tests/test7.sh, tests/test8.sh, tests/test9.sh: Made changes to directory references to allow out of source builds. 2005-01-26 10:25 mes5k * aclocal.m4: doh 2005-01-23 19:18 mes5k * include/tclap/CmdLine.h: removed -v from version switch 2005-01-23 19:14 mes5k * include/tclap/Arg.h: removed value required 2005-01-23 19:03 mes5k * examples/: test2.cpp, test3.cpp, test6.cpp, test8.cpp, test9.cpp: UnlabeledValueArg change 2005-01-23 19:02 mes5k * tests/: test10.out, test11.out, test12.out, test15.out, test16.out, test17.out, test22.out, test23.out, test24.out, test26.out, test27.out, test28.out, test29.out, test30.out, test31.out, test32.out, test35.out, test36.out, test38.out, test39.out, test4.out, test40.out, test41.out, test42.out, test43.out, test44.out, test45.out, test46.out, test49.out, test50.out, test51.out, test52.out, test53.out, test54.out, test57.out, test59.out, test60.out, test7.out: new output for default version and value required 2005-01-23 19:01 mes5k * tests/: test59.sh, test8.sh: new style version and required UnlabeledValueArgs 2005-01-23 18:59 mes5k * tests/testCheck.sh: a script to compare test output 2005-01-23 17:54 mes5k * include/tclap/UnlabeledValueArg.h: now optionally required 2005-01-23 16:33 mes5k * tests/: test58.out, test59.out, test58.sh, test59.sh, test60.out, test60.sh, Makefile.am: tests for MultiSwitchArg 2005-01-23 16:27 mes5k * include/tclap/Makefile.am, examples/Makefile.am, examples/test9.cpp: MultiSwitchArg 2005-01-23 16:26 mes5k * include/tclap/: CmdLine.h, CmdLineInterface.h, StdOutput.h: added a bool to the constructor that allows automatic -h and -v to be turned off 2005-01-23 14:57 mes5k * docs/: manual.html, manual.xml: added MultiSwitchArg docs 2005-01-23 14:33 mes5k * include/tclap/MultiSwitchArg.h: fixed typo 2005-01-23 14:29 mes5k * include/tclap/SwitchArg.h: Fixed minor bug involving combined switch error messages: now they're consistent. 2005-01-23 14:28 mes5k * include/tclap/MultiSwitchArg.h: initial checkin 2005-01-22 20:41 mes5k * include/tclap/UnlabeledMultiArg.h: added alreadySet 2005-01-20 20:13 mes5k * tests/Makefile.am: xor test 2005-01-20 20:04 mes5k * examples/test5.cpp: change for xor bug 2005-01-20 20:04 mes5k * tests/: test20.out, runtests.sh, test20.sh, test21.out, test21.sh, test22.out, test23.out, test24.out, test25.out, test25.sh, test33.out, test33.sh, test44.out, test57.out, test57.sh: changes for xor bug 2005-01-20 20:03 mes5k * include/tclap/: Arg.h, MultiArg.h, UnlabeledMultiArg.h, XorHandler.h: fixed xor bug 2005-01-17 12:48 macbishop * include/tclap/Arg.h: Removed check on description in Arg::operator== since multiple args should be able to have the same description. 2005-01-06 20:41 mes5k * NEWS: updated for constraints 2005-01-06 20:37 mes5k * docs/: manual.html, manual.xml: updated for constraints 2005-01-06 20:05 mes5k * examples/test7.cpp: changed for constraint 2005-01-06 20:00 mes5k * include/tclap/: MultiArg.h, ValueArg.h: fixed exceptions and typeDesc for constraints 2005-01-06 19:59 mes5k * tests/: test35.out, test36.out, test38.out, test39.out: changed for constraints 2005-01-06 19:07 mes5k * examples/test6.cpp: changed to constraint 2005-01-06 19:06 mes5k * include/tclap/Makefile.am: added constraints 2005-01-06 19:05 mes5k * include/tclap/: Constraint.h, ValuesConstraint.h: initial checkin 2005-01-06 19:05 mes5k * include/tclap/StdOutput.h: comment change 2005-01-06 19:01 mes5k * include/tclap/CmdLine.h: added Constraint includes 2005-01-06 18:55 mes5k * include/tclap/: MultiArg.h, UnlabeledMultiArg.h, UnlabeledValueArg.h, ValueArg.h: Changed allowedList to Constraint 2005-01-05 16:08 mes5k * configure.in: next vers 2005-01-05 12:13 mes5k * NEWS: update 2005-01-05 10:51 mes5k * docs/: manual.html, manual.xml: fixed output override bug 2005-01-05 10:45 mes5k * tests/: test18.out, test43.out: change for output override bug 2005-01-05 10:28 mes5k * examples/test4.cpp: fixed output override bug 2005-01-05 10:22 mes5k * include/tclap/: CmdLine.h, HelpVisitor.h, VersionVisitor.h: fixed output bug 2005-01-04 14:01 mes5k * configure.in: 1.0.4 2005-01-04 13:16 mes5k * examples/test7.cpp: changed for long prog names bug 2005-01-04 13:15 mes5k * tests/: test38.out, test39.out, test46.out: changed test7 for long prog names 2005-01-04 12:31 mes5k * NEWS: updates for 1.0.3a 2005-01-04 12:21 mes5k * docs/manual.html, docs/manual.xml, include/tclap/CmdLine.h: fixed output memory leak 2004-12-08 21:10 mes5k * include/tclap/StdOutput.h: hacky fix to long prog name bug 2004-12-07 19:57 mes5k * configure.in: 1.0.3a 2004-12-07 19:53 mes5k * tests/: Makefile.am, test15.out, test16.out, test17.out, test31.out, test32.out, test13.sh, test14.sh, test15.sh, test16.sh, test17.sh, test42.out, test55.out, test55.sh, test56.out, test56.sh: updated for - arg bug 2004-12-07 19:51 mes5k * examples/test3.cpp: tweaked to support tests for '-' arg bug 2004-12-07 18:16 mes5k * include/tclap/Arg.h: fixed a bug involving blank _flags and - as an UnlabeledValueArg 2004-12-03 12:19 mes5k * docs/style.css: minor tweak for h1 2004-12-03 12:10 mes5k * NEWS: update 2004-12-03 11:39 mes5k * include/tclap/CmdLine.h: removed ostream include 2004-11-30 19:11 mes5k * include/tclap/: Arg.h, CmdLine.h, CmdLineOutput.h, StdOutput.h: cleaned up iterator names 2004-11-30 19:10 mes5k * include/tclap/DocBookOutput.h: removed ostream 2004-11-30 18:35 mes5k * configure.in, docs/Doxyfile.in: added dot check 2004-11-24 19:58 mes5k * configure.in: 1.0.3 2004-11-24 19:57 mes5k * include/tclap/: UnlabeledMultiArg.h, UnlabeledValueArg.h: removed two stage lookup ifdefs 2004-11-24 19:56 mes5k * docs/index.html: updated 2004-11-24 19:45 mes5k * docs/: manual.html, manual.xml: updates for using stuff and new output 2004-11-05 21:05 mes5k * include/tclap/: DocBookOutput.h, Makefile.am: adding docbook stuff 2004-11-04 21:07 mes5k * examples/test4.cpp: reflects new output handling 2004-11-04 21:07 mes5k * include/tclap/: Arg.h, CmdLine.h, CmdLineInterface.h, CmdLineOutput.h, HelpVisitor.h, Makefile.am, StdOutput.h, VersionVisitor.h, XorHandler.h: changed output around 2004-11-04 21:06 mes5k * include/tclap/PrintSensibly.h: subsumed by StdOutput 2004-10-31 14:13 mes5k * docs/manual.html: tweak 2004-10-30 15:58 mes5k * NEWS, README: updates 2004-10-30 15:51 mes5k * docs/Makefile.am: added manual.xml 2004-10-30 15:47 mes5k * docs/: manual.html, manual.xml, style.css: minor tweaks 2004-10-30 15:34 mes5k * configure.in: 1.0.2 2004-10-30 15:30 mes5k * docs/README: init 2004-10-30 15:30 mes5k * docs/style.css: new style 2004-10-30 15:30 mes5k * docs/: manual.html, manual.xml: manual.html is now generated from manual.xml 2004-10-30 15:26 mes5k * include/tclap/: MultiArg.h, ValueArg.h: yet another fix for HAVE_SSTREAM stuff 2004-10-30 08:42 mes5k * NEWS: 1.0.1 2004-10-30 08:03 mes5k * configure.in: new release 2004-10-28 09:41 mes5k * include/tclap/: ValueArg.h, MultiArg.h: fixed config.h problems 2004-10-27 19:44 mes5k * docs/manual.xml: manual as docbook 2004-10-22 08:56 mes5k * docs/style.css: added visited color to links 2004-10-22 07:38 mes5k * docs/index.html: fixed mailto 2004-10-21 18:58 mes5k * docs/: manual.html: minor tweaks 2004-10-21 18:13 mes5k * docs/manual.html: updated for new test1 2004-10-21 18:02 mes5k * include/tclap/CmdLine.h: catch by ref 2004-10-21 18:01 mes5k * examples/: test1.cpp, test2.cpp, test3.cpp, test4.cpp, test5.cpp, test6.cpp, test7.cpp, test8.cpp: changed test1 and now catching exceptions by ref 2004-10-21 17:38 mes5k * tests/: test1.out, test1.sh, test2.out, test3.out, test3.sh, test4.out, test40.out: changes for new test1 2004-10-21 15:50 mes5k * examples/test1.cpp: fixed includes 2004-10-21 10:03 mes5k * docs/index.html: changed link 2004-10-21 09:02 mes5k * include/tclap/: ValueArg.h, MultiArg.h: changed enum names because of alpha conflicts 2004-10-20 20:04 mes5k * include/tclap/: CmdLine.h, CmdLineInterface.h, MultiArg.h, PrintSensibly.h, SwitchArg.h, UnlabeledMultiArg.h, UnlabeledValueArg.h, ValueArg.h, XorHandler.h: cleaned up some includes and added ifdefs for sstream 2004-10-20 19:00 mes5k * examples/test5.cpp: fixed a bizarre bug 2004-10-20 18:59 mes5k * tests/: test20.out, test21.out, test25.out, test33.out: fixed a test5 bug 2004-10-20 16:17 mes5k * Makefile.am: added msc 2004-10-20 16:06 mes5k * configure.in: added msc stuff 2004-10-20 16:05 mes5k * msc/: examples/Makefile.am, Makefile.am: init 2004-10-20 16:00 mes5k * NEWS: update 2004-10-20 15:58 mes5k * msc/README: init 2004-10-20 15:47 mes5k * msc/: tclap-beta.ncb, tclap-beta.sln, tclap-beta.suo, tclap-beta.vcproj, examples/test1.vcproj, examples/test2.vcproj, examples/test3.vcproj, examples/test4.vcproj, examples/test5.vcproj, examples/test6.vcproj, examples/test7.vcproj, examples/test8.vcproj: init 2004-10-19 11:18 mes5k * docs/Makefile.am: added stylesheet 2004-10-19 10:51 mes5k * AUTHORS: more 2004-10-19 10:39 mes5k * NEWS, AUTHORS: added 1.0 notes 2004-10-14 13:04 mes5k * examples/test4.cpp: shows how to alter output 2004-10-14 13:03 mes5k * tests/test18.out: updated output 2004-10-14 12:03 mes5k * include/tclap/CmdLineInterface.h: added failure to the interface 2004-10-14 11:07 mes5k * include/tclap/ArgException.h: doh. now what() is proper 2004-10-14 10:44 mes5k * include/tclap/CmdLine.h: made destructor virtual 2004-10-14 10:20 mes5k * include/tclap/CmdLine.h: moved all output handling into separate methods 2004-10-14 10:19 mes5k * include/tclap/Arg.h: made processArg pure virtual 2004-10-14 10:19 mes5k * include/tclap/ArgException.h: fixed documentation omission 2004-10-12 14:09 mes5k * docs/style.css: tweak 2004-10-07 11:22 mes5k * docs/style.css: color change 2004-10-01 10:54 mes5k * include/tclap/ArgException.h: added type description 2004-09-30 18:16 mes5k * docs/: index.html, manual.html, style.css: added CSS style 2004-09-30 09:17 mes5k * docs/manual.html: more updates 2004-09-29 08:24 mes5k * docs/: index.html, manual.html: proofing updates 2004-09-27 14:37 mes5k * docs/: index.html, manual.html: xhtml and tidied 2004-09-27 14:36 mes5k * docs/Doxyfile.in: added dot handling 2004-09-27 14:30 mes5k * include/tclap/: Arg.h, ArgException.h, CmdLine.h, MultiArg.h, SwitchArg.h, ValueArg.h: added new Exception classes 2004-09-27 12:53 mes5k * include/tclap/ArgException.h: minor tweaks 2004-09-26 19:32 mes5k * docs/manual.html: updates yet again 2004-09-26 19:00 mes5k * docs/manual.html: updates 2004-09-26 18:50 mes5k * docs/manual.html: substantial updates 2004-09-26 16:54 mes5k * include/tclap/: Arg.h, CmdLine.h, CmdLineInterface.h, MultiArg.h, PrintSensibly.h, ValueArg.h: minor formatting 2004-09-26 15:50 mes5k * docs/manual.html: updates 2004-09-26 15:17 mes5k * tests/runtests.sh: minor fix so that we run all tests 2004-09-26 11:51 macbishop * docs/Doxyfile.in: Removed src subdir 2004-09-26 11:49 macbishop * examples/Makefile.am: Removed libtclap.a deps 2004-09-26 11:46 macbishop * configure.in: Removed creation of src/Makefile 2004-09-26 11:34 macbishop * Makefile.am: Removed src subdir 2004-09-26 11:31 macbishop * src/: Arg.cpp, CmdLine.cpp, Makefile.am, PrintSensibly.cpp, SwitchArg.cpp, XorHandler.cpp: Implementation now in header files 2004-09-26 11:27 macbishop * include/tclap/: Arg.h, ArgException.h, CmdLine.h, HelpVisitor.h, Makefile.am, MultiArg.h, PrintSensibly.h, SwitchArg.h, UnlabeledMultiArg.h, UnlabeledValueArg.h, ValueArg.h, VersionVisitor.h, XorHandler.h, CmdLineInterface.h, CommandLine.h: Moving the implementation of tclap to the header files presented me with two major problems. 1) There where static functions and variables that could cause link errors if tclap where used in different files (e.g. file1.cc and file2.cc included tclap then compiling both files would give hard symbols for some variables which would produce multiple definition when linking) 2) The dependencies of tclap was a bit strange (CmdLine depends on Args and Args depends on CmdLine for instance) The first problem I solved by removing all static variables putting them in static member functions (which are weak-symbols). So for instance every where there previously was something like x = _delimiter there now is x = delimiter() or in case of write acces delimiterRef() = x instead of _delimiter = x (I had to append the Ref because there where already functions with the same name as the variables). To solve the problem with static functions I simply inlined them. This causes the compiler to produce a weak symbol or inline if appropriate. We can put the functions inside the class declaration later to make the code look better. This worked fine in all but two cases. In the ValueArg and MultiArg classes I had to do a "hack" to work around the specialization template for extractValue. The code for this is very simple but it might look strange an stupid at first but it is only to resolve the specialisation to a weak symbol. What I did was I put the implementations of extractValue in a helper class and I could then create a specialized class instead of function and everything worked out. I think now in retrospect there might be better solutions to this but I'll think a bit more on it (maybe some type of inlining on the specialized version would suffice but I'm not sure). To handle the dependencies I had to do some rewriting. The first step was to introduce a new class CmdLineInterface that is a purely abstract base of CmdLine that specifies the functions needed by Arg and friends. Thus Arg classes now takes an CmdLineInterface object as input instead (however only CmdLine can ever be instantiated of-course). With this extra class cleaning up the dependencies was quite simple, I've attached a dependency graph to the mail (depgraph.png). I also cleaned up the #includes so now only what actually needs inclusion is included. A nice side effect of this is that the impl. of CmdLine is now put back into CmdLine.h (where I guess you wanted it) which (recursivly) includes everything else needed. Just to make things clear for myself regarding the class dependencies I made a class TCLAP::Exception that inherits from std::exception and is a base of ArgException (Exception does nothing currently). If we don't want the Exception class it can be removed, however I think it could be a nice logic to have a base Exception class that every exception inherits from, but we can discuss that when we decide how to handle exceptions. 2004-09-26 08:07 macbishop * tests/runtests.sh: Now return 0 if all tests fail and 1 if any test fail 2004-09-26 07:58 macbishop * tests/runtests.sh: Runs all tests and sumarizes the result 2004-09-20 17:09 mes5k * include/tclap/CommandLine.h: added some comments 2004-09-20 17:08 mes5k * src/CmdLine.cpp: formatting only 2004-09-20 10:05 macbishop * include/tclap/CommandLine.h: Recommit because something is strange. The changes are that memory allocated in _construct is deallocated when the CmdLine obj is destroyed 2004-09-19 11:32 macbishop * src/CmdLine.cpp: Memory allocated in _constructor is now deleted when the object is destroyed 2004-09-18 09:54 mes5k * include/tclap/: Arg.h, ArgException.h, CmdLine.h, CommandLine.h, HelpVisitor.h, IgnoreRestVisitor.h, MultiArg.h, PrintSensibly.h, SwitchArg.h, UnlabeledMultiArg.h, UnlabeledValueArg.h, ValueArg.h, VersionVisitor.h, Visitor.h, XorHandler.h: changed ifndef labels 2004-09-18 07:53 macbishop * include/tclap/Arg.h: Had to make ~Arg() public because it won't be possible to delete Arg*s if it is not, and we want that (I think). 2004-09-15 21:24 mes5k * configure.in: version 1.0.0 2004-09-15 20:54 mes5k * include/tclap/Arg.h, include/tclap/ArgException.h, include/tclap/HelpVisitor.h, include/tclap/IgnoreRestVisitor.h, include/tclap/MultiArg.h, include/tclap/SwitchArg.h, include/tclap/UnlabeledMultiArg.h, include/tclap/ValueArg.h, include/tclap/VersionVisitor.h, include/tclap/Visitor.h, src/Arg.cpp, src/SwitchArg.cpp: cleaned up a bunch of things 2004-09-11 19:35 mes5k * tests/: Makefile.am, test47.out, test47.sh, test48.out, test48.sh, test49.out, test49.sh, test50.out, test50.sh, test51.out, test51.sh, test52.out, test52.sh, test53.out, test53.sh, test54.out, test54.sh: added tests for CmdLine arg 2004-09-11 19:33 mes5k * examples/: Makefile.am, test8.cpp: added new test for CmdLine arg 2004-09-11 19:32 mes5k * src/Arg.cpp, src/SwitchArg.cpp, include/tclap/Arg.h, include/tclap/MultiArg.h, include/tclap/SwitchArg.h, include/tclap/UnlabeledMultiArg.h, include/tclap/UnlabeledValueArg.h, include/tclap/ValueArg.h: got CmdLine arg working 2004-09-09 19:08 mes5k * configure: shouldn't be in cvs 2004-09-09 12:56 macbishop * src/: Arg.cpp, SwitchArg.cpp: Added support for automatic addition to a CmdLine parser 2004-09-09 12:55 macbishop * include/tclap/: Arg.h, MultiArg.h, SwitchArg.h, UnlabeledMultiArg.h, UnlabeledValueArg.h, ValueArg.h: Support for automatic addition to a CmdLine parser 2004-09-08 20:09 mes5k * src/CmdLine.cpp: fixed a warning in MSVC++ 2004-09-07 16:11 mes5k * include/tclap/Makefile.in, docs/Makefile.in, examples/Makefile.in, tests/Makefile.in: not needed 2004-09-07 16:08 mes5k * Makefile.in, src/Makefile.in, include/Makefile.in: not needed 2004-09-07 15:14 mes5k * src/CmdLine.cpp: now throws exception on matching names/flags/desc 2004-09-07 15:12 mes5k * examples/test4.cpp, examples/test7.cpp, tests/test38.out, tests/test39.out, tests/test43.out, tests/test46.out: fixed to handle new exception on matching names/flags/desc 2004-09-07 13:25 mes5k * docs/Doxyfile.in: updated Doxyfile for newer doxygen 2004-09-07 11:27 mes5k * examples/: test1.cpp, test2.cpp, test3.cpp, test4.cpp, test5.cpp, test6.cpp: changed namespace std handling 2004-09-07 11:25 mes5k * examples/test7.cpp: added more args to better test output printing 2004-09-07 11:24 mes5k * src/Arg.cpp, src/CmdLine.cpp, src/PrintSensibly.cpp, src/SwitchArg.cpp, src/XorHandler.cpp, include/tclap/Arg.h, include/tclap/ArgException.h, include/tclap/CommandLine.h, include/tclap/MultiArg.h, include/tclap/PrintSensibly.h, include/tclap/SwitchArg.h, include/tclap/UnlabeledMultiArg.h, include/tclap/UnlabeledValueArg.h, include/tclap/ValueArg.h, include/tclap/XorHandler.h: changed namespace std handling 2004-09-07 11:24 mes5k * tests/: test15.out, test16.out, test17.out, test22.out, test23.out, test24.out, test31.out, test32.out, test38.out, test39.out, test42.out, test44.out, test46.out: fixed test output for new formatting 2004-09-04 14:09 macbishop * include/tclap/: UnlabeledMultiArg.h, UnlabeledValueArg.h: Compilation was broken due to undef. symbols in compilers with 2 stage name-lookup (such as gcc >= 3.4). The fix for this is to tell the compiler what symbols to use withlines like: using MultiArg::_name; This is now done and everything compiles fine. Since I'm not sure about the support for things like using MultiArg::_name; on all compilers it is ifdef:ed away by default. To get 2 stage name-lookup to work you have to add -DTWO_STAGE_NAME_LOOKUP to your CXXFLAGS before running configure. 2004-08-18 12:34 mes5k * src/PrintSensibly.cpp: smartened printing even further 2004-08-10 20:35 mes5k * src/PrintSensibly.cpp: fixed int messiness 2004-08-10 20:32 mes5k * autotools.sh: made path explicit 2004-08-10 20:05 mes5k * include/tclap/: MultiArg.h, ValueArg.h: changed allowed separator 2004-08-10 19:53 mes5k * tests/: Makefile.am, test10.out, test11.out, test12.out, test15.out, test16.out, test17.out, test18.out, test22.out, test23.out, test24.out, test26.out, test27.out, test28.out, test29.out, test30.out, test31.out, test32.out, test35.out, test36.out, test38.out, test39.out, test4.out, test40.out, test40.sh, test41.out, test41.sh, test42.out, test42.sh, test43.out, test43.sh, test44.out, test44.sh, test45.out, test45.sh, test46.out, test46.sh, test7.out, test7.sh: changed error output and added usage stuff 2004-08-10 19:52 mes5k * NEWS, README: updated 2004-08-10 19:47 mes5k * configure.in: changed to 0.9.9 2004-08-10 19:46 mes5k * examples/test7.cpp: tweaked for usage 2004-08-10 19:45 mes5k * include/tclap/: CmdLine.h, CommandLine.h, Makefile.am, PrintSensibly.h, XorHandler.h: added usage stuff 2004-08-10 19:43 mes5k * src/: CmdLine.cpp, Makefile.am, PrintSensibly.cpp, XorHandler.cpp: tweaked usage 2004-07-05 19:02 mes5k * docs/manual.html: updated for allowed 2004-07-03 20:01 mes5k * tests/: test34.out, test34.sh, test35.out, test35.sh, test36.out, test36.sh, test37.out, test37.sh, test38.out, test38.sh, test39.out, test39.sh, Makefile.am: allow tests 2004-07-03 19:56 mes5k * include/tclap/ValueArg.h: doh 2004-07-03 19:34 mes5k * NEWS: allow 2004-07-03 19:31 mes5k * include/tclap/Arg.h: made isReq virtual 2004-07-03 19:30 mes5k * include/tclap/: MultiArg.h, UnlabeledMultiArg.h, UnlabeledValueArg.h, ValueArg.h: added allow 2004-07-03 19:29 mes5k * examples/: Makefile.am, test6.cpp, test7.cpp: added tests for allowed 2004-07-03 19:28 mes5k * docs/: index.html, manual.html: minor typos 2004-04-26 08:18 mes5k * Makefile.am, autotools.sh, examples/Makefile.am, src/Makefile.am: fixed for autotools for mandrake 2004-02-13 20:09 mes5k * configure.in: 0.9.8a 2004-02-13 15:23 mes5k * tests/: test22.out, test23.out, test24.out: output updates 2004-02-13 15:21 mes5k * include/tclap/: Arg.h, UnlabeledMultiArg.h, UnlabeledValueArg.h: now the Arg adds itself to the CmdLine arglist 2004-02-13 15:20 mes5k * src/: Arg.cpp, CmdLine.cpp: reworked how we add args to list 2004-02-10 08:52 mes5k * NEWS: update 2004-02-09 21:04 mes5k * examples/test5.cpp: change 2004-02-09 21:03 mes5k * src/SwitchArg.cpp: allowing blank flags 2004-02-09 20:54 mes5k * configure.in: 0.9.8 2004-02-09 20:52 mes5k * tests/: Makefile.am, test20.out, test21.out, test22.out, test23.out, test24.out, test25.out, test33.out, test33.sh: updates 2004-02-09 20:39 mes5k * docs/manual.html: blank args 2004-02-09 20:16 mes5k * tests/: test15.out, test16.out, test17.out, test20.out, test20.sh, test21.out, test21.sh, test22.out, test23.out, test24.out, test25.out, test25.sh, test31.out, test32.out: updates 2004-02-09 20:05 mes5k * examples/: test5.cpp, test3.cpp: minor fixes and new args 2004-02-09 19:56 mes5k * include/tclap/Arg.h: added new var 2004-02-09 19:54 mes5k * src/: Arg.cpp, CmdLine.cpp, SwitchArg.cpp: allowing blank flags 2004-02-07 15:37 mes5k * src/XorHandler.cpp: fix for the output 2004-02-06 17:41 mes5k * NEWS: added info 2004-02-06 17:24 mes5k * tests/: test12.out, test15.out, test16.out, test17.out: fixed test3 stuff 2004-02-06 17:20 mes5k * tests/: test26.out, test26.sh, test27.out, test27.sh, test28.out, test28.sh, test29.out, test29.sh, test30.out, test30.sh, test31.out, test31.sh, test32.out, test32.sh, Makefile.am: added tests for reading extra incorrect values from arg 2004-02-06 17:18 mes5k * examples/test3.cpp: add multi float 2004-02-06 17:18 mes5k * include/tclap/: MultiArg.h, ValueArg.h: fixed error reading incorrect extra values in an arg 2004-02-04 18:56 mes5k * include/tclap/XorHandler.h: added include 2004-02-03 20:21 mes5k * include/tclap/XorHandler.h: added doxyen 2004-02-03 20:00 mes5k * docs/manual.html: xor stuff 2004-02-03 19:56 mes5k * examples/test5.cpp: prettified 2004-02-03 19:27 mes5k * examples/: Makefile.am, test5.cpp: xor stuff 2004-02-03 19:24 mes5k * configure.in: 0.9.7 2004-02-03 19:22 mes5k * src/: Arg.cpp, CmdLine.cpp, Makefile.am, XorHandler.cpp: added xor 2004-02-03 19:20 mes5k * include/tclap/: Arg.h, CmdLine.h, CommandLine.h, UnlabeledValueArg.h, XorHandler.h, Makefile.am: xor stuff 2004-02-03 19:14 mes5k * tests/: test1.sh, test10.sh, test11.sh, test12.sh, test13.sh, test14.sh, test15.sh, test16.sh, test17.sh, test18.sh, test19.sh, test2.sh, test20.sh, test21.sh, test22.sh, test23.sh, test24.sh, test25.sh, test3.sh, test4.sh, test5.sh, test6.sh, test7.sh, test8.sh, test9.sh, Makefile.am, test20.out, test21.out, test22.out, test23.out, test24.out, test25.out: added new tests and comments 2004-01-29 20:36 mes5k * include/tclap/: CmdLine.h, CommandLine.h, MultiArg.h, ValueArg.h: fix for strings with spaces 2004-01-10 09:39 mes5k * docs/index.html: spelling 2004-01-07 22:18 mes5k * docs/: index.html, manual.html: updates 2004-01-07 21:51 mes5k * NEWS: update 2004-01-07 21:30 mes5k * include/tclap/CmdLine.h, src/CmdLine.cpp: added backward compatibility 2004-01-07 21:11 mes5k * src/Arg.cpp: fixed warning 2004-01-07 21:04 mes5k * examples/: Makefile.am, test4.cpp: added new test 2004-01-07 21:00 mes5k * tests/Makefile.am: added two new tests 2004-01-07 20:59 mes5k * include/tclap/: Arg.h, ArgException.h, CmdLine.h, HelpVisitor.h, IgnoreRestVisitor.h, MultiArg.h, SwitchArg.h, UnlabeledMultiArg.h, UnlabeledValueArg.h, ValueArg.h, VersionVisitor.h, Visitor.h: fixed combined switch stuff and added doxygen comments 2004-01-07 20:58 mes5k * src/: Arg.cpp, CmdLine.cpp, SwitchArg.cpp: fixed some combined switch stuff 2004-01-07 20:50 mes5k * tests/: test18.out, test18.sh, test19.out, test19.sh: new tests 2003-12-21 18:32 mes5k * autotools.sh: init 2003-12-21 18:31 mes5k * include/tclap/UnlabeledMultiArg.h: delim stuff 2003-12-21 18:14 mes5k * examples/test1.cpp: new fangled 2003-12-21 18:11 mes5k * configure.in: 0.9.6 2003-12-21 18:10 mes5k * tests/: test13.sh, test14.sh: updated 2003-12-21 18:09 mes5k * tests/: test10.out, test11.out, test12.out, test13.out, test14.out, test15.out, test16.out, test4.out: updates 2003-12-21 18:07 mes5k * tests/Makefile.am: added test 2003-12-21 18:06 mes5k * tests/: test17.out, test17.sh: first checkin 2003-12-21 18:01 mes5k * src/Arg.cpp: removed message 2003-12-21 17:59 mes5k * examples/Makefile.am: added warnings 2003-12-21 17:58 mes5k * examples/: test2.cpp, test3.cpp: fixed warnings 2003-12-21 17:53 mes5k * Makefile.am: added warnings 2003-12-21 17:52 mes5k * src/Arg.cpp, src/CmdLine.cpp, src/SwitchArg.cpp, examples/test3.cpp: added delimiter 2003-12-21 17:50 mes5k * src/Makefile.am: added warnings 2003-12-21 17:48 mes5k * include/tclap/: Arg.h, ArgException.h, CmdLine.h, MultiArg.h, UnlabeledValueArg.h, ValueArg.h: delimiter changes 2003-04-03 10:26 mes5k * include/tclap/Makefile.am: added new visitor 2003-04-03 10:20 mes5k * include/tclap/Makefile.am: updates 2003-04-03 10:13 mes5k * config/: mkinstalldirs, install-sh, missing, depcomp: init checkin 2003-04-03 10:11 mes5k * NEWS: update 2003-04-03 10:06 mes5k * examples/Makefile.am, examples/test1.cpp, examples/test2.cpp, examples/test3.cpp, INSTALL, Makefile.in: updates 2003-04-03 10:01 mes5k * Makefile.am, configure.in: added tests 2003-04-03 10:00 mes5k * docs/: index.html, manual.html: updated docs 2003-04-03 09:59 mes5k * include/tclap/: Arg.h, CmdLine.h, IgnoreRestVisitor.h, MultiArg.h, SwitchArg.h, UnlabeledMultiArg.h, UnlabeledValueArg.h, ValueArg.h: big update 2003-04-03 09:57 mes5k * src/: CmdLine.cpp, SwitchArg.cpp, Arg.cpp: new update 2003-04-03 09:56 mes5k * tests/: test10.sh, test11.sh, test12.sh, test1.sh, test13.sh, test14.sh, test15.sh, test16.sh, test2.sh, test3.sh, test4.sh, test5.sh, test6.sh, test7.sh, test8.sh, test9.sh, test10.out, test11.out, test12.out, test13.out, test14.out, test15.out, test16.out, test1.out, test2.out, test3.out, test4.out, test5.out, test6.out, test7.out, Makefile.am, test8.out, test9.out, Makefile.in, genOut.pl: initial checkin 2003-03-18 18:39 mes5k * NEWS, configure.in, AUTHORS, COPYING, ChangeLog, Makefile.am, Makefile.in, README, aclocal.m4, configure, config/ac_cxx_have_sstream.m4, config/ac_cxx_have_strstream.m4, config/ac_cxx_namespaces.m4, config/bb_enable_doxygen.m4, config/config.h.in, config/stamp-h.in, config/stamp-h1, examples/Makefile.am, examples/Makefile.in, examples/test1.cpp, examples/test2.cpp, include/Makefile.am, include/Makefile.in, include/tclap/Arg.h, include/tclap/ArgException.h, include/tclap/CmdLine.h, include/tclap/HelpVisitor.h, include/tclap/MultiArg.h, docs/Doxyfile.in, docs/Makefile.am, docs/Makefile.in, docs/index.html, docs/manual.html, include/tclap/Makefile.am, include/tclap/Makefile.in, include/tclap/SwitchArg.h, include/tclap/ValueArg.h, include/tclap/VersionVisitor.h, include/tclap/Visitor.h, src/Arg.cpp, src/CmdLine.cpp, src/Makefile.am, src/Makefile.in, src/SwitchArg.cpp: Initial revision 2003-03-18 18:39 mes5k * NEWS, configure.in, AUTHORS, COPYING, ChangeLog, Makefile.am, Makefile.in, README, aclocal.m4, configure, config/ac_cxx_have_sstream.m4, config/ac_cxx_have_strstream.m4, config/ac_cxx_namespaces.m4, config/bb_enable_doxygen.m4, config/config.h.in, config/stamp-h.in, config/stamp-h1, examples/Makefile.am, examples/Makefile.in, examples/test1.cpp, examples/test2.cpp, include/Makefile.am, include/Makefile.in, include/tclap/Arg.h, include/tclap/ArgException.h, include/tclap/CmdLine.h, include/tclap/HelpVisitor.h, include/tclap/MultiArg.h, docs/Doxyfile.in, docs/Makefile.am, docs/Makefile.in, docs/index.html, docs/manual.html, include/tclap/Makefile.am, include/tclap/Makefile.in, include/tclap/SwitchArg.h, include/tclap/ValueArg.h, include/tclap/VersionVisitor.h, include/tclap/Visitor.h, src/Arg.cpp, src/CmdLine.cpp, src/Makefile.am, src/Makefile.in, src/SwitchArg.cpp: initial release tclap-1.2.1/config/000777 000765 000765 00000000000 11552414566 013524 5ustar00mesmes000000 000000 tclap-1.2.1/configure000755 000765 000765 00000515551 11552414363 014171 0ustar00mesmes000000 000000 #! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.61. # # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## --------------------- ## ## M4sh Initialization. ## ## --------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac fi # PATH needs CR # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi # Support unset when possible. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then as_unset=unset else as_unset=false fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) as_nl=' ' IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. case $0 in *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 { (exit 1); exit 1; } fi # Work around bugs in pre-3.0 UWIN ksh. for as_var in ENV MAIL MAILPATH do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. for as_var in \ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ LC_TELEPHONE LC_TIME do if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then eval $as_var=C; export $as_var else ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var fi done # Required to use basename. if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi # Name of the executable. as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # CDPATH. $as_unset CDPATH if test "x$CONFIG_SHELL" = x; then if (eval ":") 2>/dev/null; then as_have_required=yes else as_have_required=no fi if test $as_have_required = yes && (eval ": (as_func_return () { (exit \$1) } as_func_success () { as_func_return 0 } as_func_failure () { as_func_return 1 } as_func_ret_success () { return 0 } as_func_ret_failure () { return 1 } exitcode=0 if as_func_success; then : else exitcode=1 echo as_func_success failed. fi if as_func_failure; then exitcode=1 echo as_func_failure succeeded. fi if as_func_ret_success; then : else exitcode=1 echo as_func_ret_success failed. fi if as_func_ret_failure; then exitcode=1 echo as_func_ret_failure succeeded. fi if ( set x; as_func_ret_success y && test x = \"\$1\" ); then : else exitcode=1 echo positional parameters were not saved. fi test \$exitcode = 0) || { (exit 1); exit 1; } ( as_lineno_1=\$LINENO as_lineno_2=\$LINENO test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } ") 2> /dev/null; then : else as_candidate_shells= as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. case $as_dir in /*) for as_base in sh bash ksh sh5; do as_candidate_shells="$as_candidate_shells $as_dir/$as_base" done;; esac done IFS=$as_save_IFS for as_shell in $as_candidate_shells $SHELL; do # Try only shells that exist, to save several forks. if { test -f "$as_shell" || test -f "$as_shell.exe"; } && { ("$as_shell") 2> /dev/null <<\_ASEOF if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac fi : _ASEOF }; then CONFIG_SHELL=$as_shell as_have_required=yes if { "$as_shell" 2> /dev/null <<\_ASEOF if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac fi : (as_func_return () { (exit $1) } as_func_success () { as_func_return 0 } as_func_failure () { as_func_return 1 } as_func_ret_success () { return 0 } as_func_ret_failure () { return 1 } exitcode=0 if as_func_success; then : else exitcode=1 echo as_func_success failed. fi if as_func_failure; then exitcode=1 echo as_func_failure succeeded. fi if as_func_ret_success; then : else exitcode=1 echo as_func_ret_success failed. fi if as_func_ret_failure; then exitcode=1 echo as_func_ret_failure succeeded. fi if ( set x; as_func_ret_success y && test x = "$1" ); then : else exitcode=1 echo positional parameters were not saved. fi test $exitcode = 0) || { (exit 1); exit 1; } ( as_lineno_1=$LINENO as_lineno_2=$LINENO test "x$as_lineno_1" != "x$as_lineno_2" && test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } _ASEOF }; then break fi fi done if test "x$CONFIG_SHELL" != x; then for as_var in BASH_ENV ENV do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var done export CONFIG_SHELL exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} fi if test $as_have_required = no; then echo This script requires a shell more modern than all the echo shells that I found on your system. Please install a echo modern shell, or manually run the script under such a echo shell if you do have one. { (exit 1); exit 1; } fi fi fi (eval "as_func_return () { (exit \$1) } as_func_success () { as_func_return 0 } as_func_failure () { as_func_return 1 } as_func_ret_success () { return 0 } as_func_ret_failure () { return 1 } exitcode=0 if as_func_success; then : else exitcode=1 echo as_func_success failed. fi if as_func_failure; then exitcode=1 echo as_func_failure succeeded. fi if as_func_ret_success; then : else exitcode=1 echo as_func_ret_success failed. fi if as_func_ret_failure; then exitcode=1 echo as_func_ret_failure succeeded. fi if ( set x; as_func_ret_success y && test x = \"\$1\" ); then : else exitcode=1 echo positional parameters were not saved. fi test \$exitcode = 0") || { echo No shell found that supports shell functions. echo Please tell autoconf@gnu.org about your system, echo including any error possibly output before this echo message } as_lineno_1=$LINENO as_lineno_2=$LINENO test "x$as_lineno_1" != "x$as_lineno_2" && test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { # Create $as_me.lineno as a copy of $as_myself, but with $LINENO # uniformly replaced by the line number. The first 'sed' inserts a # line-number line after each line using $LINENO; the second 'sed' # does the real work. The second script uses 'N' to pair each # line-number line with the line containing $LINENO, and appends # trailing '-' during substitution so that $LINENO is not a special # case at line end. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the # scripts with optimization help from Paolo Bonzini. Blame Lee # E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 { (exit 1); exit 1; }; } # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in -n*) case `echo 'x\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. *) ECHO_C='\c';; esac;; *) ECHO_N='-n';; esac if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir fi echo >conf$$.file if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -p'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -p' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p=: else test -d ./-p && rmdir ./-p as_mkdir_p=false fi if test -x / >/dev/null 2>&1; then as_test_x='test -x' else if ls -dL / >/dev/null 2>&1; then as_ls_L_option=L else as_ls_L_option= fi as_test_x=' eval sh -c '\'' if test -d "$1"; then test -d "$1/."; else case $1 in -*)set "./$1";; esac; case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in ???[sx]*):;;*)false;;esac;fi '\'' sh ' fi as_executable_p=$as_test_x # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` # # Initializations. # ac_default_prefix=/usr/local ac_clean_files= ac_config_libobj_dir=. LIBOBJS= cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= SHELL=${CONFIG_SHELL-/bin/sh} # Identity of this package. PACKAGE_NAME= PACKAGE_TARNAME= PACKAGE_VERSION= PACKAGE_STRING= PACKAGE_BUGREPORT= ac_unique_file="Makefile.am" # Factoring default headers for most tests. ac_includes_default="\ #include #ifdef HAVE_SYS_TYPES_H # include #endif #ifdef HAVE_SYS_STAT_H # include #endif #ifdef STDC_HEADERS # include # include #else # ifdef HAVE_STDLIB_H # include # endif #endif #ifdef HAVE_STRING_H # if !defined STDC_HEADERS && defined HAVE_MEMORY_H # include # endif # include #endif #ifdef HAVE_STRINGS_H # include #endif #ifdef HAVE_INTTYPES_H # include #endif #ifdef HAVE_STDINT_H # include #endif #ifdef HAVE_UNISTD_H # include #endif" ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir localstatedir includedir oldincludedir docdir infodir htmldir dvidir pdfdir psdir libdir localedir mandir DEFS ECHO_C ECHO_N ECHO_T LIBS build_alias host_alias target_alias INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA am__isrc CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP GREP EGREP DOT RANLIB DOXYGEN DOC_TRUE DOC_FALSE WARN_EFFECTIVE_CXX WARN_NO_EFFECTIVE_CXX HAVE_GNU_COMPILERS_TRUE HAVE_GNU_COMPILERS_FALSE LIBOBJS LTLIBOBJS' ac_subst_files='' ac_precious_vars='build_alias host_alias target_alias CXX CXXFLAGS LDFLAGS LIBS CPPFLAGS CCC CXXCPP' # Initialize some variables set by options. ac_init_help= ac_init_version=false # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. # (The list follows the same order as the GNU Coding Standards.) bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datarootdir='${prefix}/share' datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE}' infodir='${datarootdir}/info' htmldir='${docdir}' dvidir='${docdir}' pdfdir='${docdir}' psdir='${docdir}' libdir='${exec_prefix}/lib' localedir='${datarootdir}/locale' mandir='${datarootdir}/man' ac_prev= ac_dashdash= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval $ac_prev=\$ac_option ac_prev= continue fi case $ac_option in *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; *) ac_optarg=yes ;; esac # Accept the important Cygnus configure options, so we can diagnose typos. case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=*) datadir=$ac_optarg ;; -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | --dataroo | --dataro | --datar) ac_prev=datarootdir ;; -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) datarootdir=$ac_optarg ;; -disable-* | --disable-*) ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid feature name: $ac_feature" >&2 { (exit 1); exit 1; }; } ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` eval enable_$ac_feature=no ;; -docdir | --docdir | --docdi | --doc | --do) ac_prev=docdir ;; -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) docdir=$ac_optarg ;; -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) ac_prev=dvidir ;; -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) dvidir=$ac_optarg ;; -enable-* | --enable-*) ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid feature name: $ac_feature" >&2 { (exit 1); exit 1; }; } ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` eval enable_$ac_feature=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) ac_prev=htmldir ;; -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | --ht=*) htmldir=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localedir | --localedir | --localedi | --localed | --locale) ac_prev=localedir ;; -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) localedir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst | --locals) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) ac_prev=pdfdir ;; -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) pdfdir=$ac_optarg ;; -psdir | --psdir | --psdi | --psd | --ps) ac_prev=psdir ;; -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) psdir=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid package name: $ac_package" >&2 { (exit 1); exit 1; }; } ac_package=`echo $ac_package | sed 's/[-.]/_/g'` eval with_$ac_package=\$ac_optarg ;; -without-* | --without-*) ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid package name: $ac_package" >&2 { (exit 1); exit 1; }; } ac_package=`echo $ac_package | sed 's/[-.]/_/g'` eval with_$ac_package=no ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) { echo "$as_me: error: unrecognized option: $ac_option Try \`$0 --help' for more information." >&2 { (exit 1); exit 1; }; } ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 { (exit 1); exit 1; }; } eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` { echo "$as_me: error: missing argument to $ac_option" >&2 { (exit 1); exit 1; }; } fi # Be sure to have absolute directory names. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir do eval ac_val=\$$ac_var case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 { (exit 1); exit 1; }; } done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used." >&2 elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || { echo "$as_me: error: Working directory cannot be determined" >&2 { (exit 1); exit 1; }; } test "X$ac_ls_di" = "X$ac_pwd_ls_di" || { echo "$as_me: error: pwd does not report name of working directory" >&2 { (exit 1); exit 1; }; } # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. ac_confdir=`$as_dirname -- "$0" || $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$0" : 'X\(//\)[^/]' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || echo X"$0" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` srcdir=$ac_confdir if test ! -r "$srcdir/$ac_unique_file"; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 { (exit 1); exit 1; }; } fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 { (exit 1); exit 1; }; } pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then srcdir=. fi # Remove unnecessary trailing slashes from srcdir. # Double slashes in file names in object file debugging info # mess up M-x gdb in Emacs. case $srcdir in */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; esac for ac_var in $ac_precious_vars; do eval ac_env_${ac_var}_set=\${${ac_var}+set} eval ac_env_${ac_var}_value=\$${ac_var} eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} eval ac_cv_env_${ac_var}_value=\$${ac_var} done # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures this package to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF Program names: --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names _ACEOF fi if test -n "$ac_init_help"; then cat <<\_ACEOF Optional Features: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors --enable-doxygen enable documentation generation with doxygen (auto) Some influential environment variables: CXX C++ compiler command CXXFLAGS C++ compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory LIBS libraries to pass to the linker, e.g. -l CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I if you have headers in a nonstandard directory CXXCPP C++ preprocessor Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. _ACEOF ac_status=$? fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d "$ac_dir" || continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } # Check for guested configure. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive elif test -f "$ac_srcdir/configure"; then echo && $SHELL "$ac_srcdir/configure" --help=recursive else echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF configure generated by GNU Autoconf 2.61 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by $as_me, which was generated by GNU Autoconf 2.61. Invocation command line was $ $0 $@ _ACEOF exec 5>>config.log { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. echo "PATH: $as_dir" done IFS=$as_save_IFS } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 2) ac_configure_args1="$ac_configure_args1 '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi ac_configure_args="$ac_configure_args '$ac_arg'" ;; esac done done $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo cat <<\_ASBOX ## ---------------- ## ## Cache variables. ## ## ---------------- ## _ASBOX echo # The following way of writing the cache mishandles newlines in values, ( for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( *) $as_unset $ac_var ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( *${as_nl}ac_space=\ *) sed -n \ "s/'\''/'\''\\\\'\'''\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ;; #( *) sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) echo cat <<\_ASBOX ## ----------------- ## ## Output variables. ## ## ----------------- ## _ASBOX echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac echo "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then cat <<\_ASBOX ## ------------------- ## ## File substitutions. ## ## ------------------- ## _ASBOX echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac echo "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then cat <<\_ASBOX ## ----------- ## ## confdefs.h. ## ## ----------- ## _ASBOX echo cat confdefs.h echo fi test "$ac_signal" != 0 && echo "$as_me: caught signal $ac_signal" echo "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer explicitly selected file to automatically selected ones. if test -n "$CONFIG_SITE"; then set x "$CONFIG_SITE" elif test "x$prefix" != xNONE; then set x "$prefix/share/config.site" "$prefix/etc/config.site" else set x "$ac_default_prefix/share/config.site" \ "$ac_default_prefix/etc/config.site" fi shift for ac_site_file do if test -r "$ac_site_file"; then { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special # files actually), so we avoid doing that. if test -f "$cache_file"; then { echo "$as_me:$LINENO: loading cache $cache_file" >&5 echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { echo "$as_me:$LINENO: creating cache $cache_file" >&5 echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val=\$ac_cv_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 echo "$as_me: former value: $ac_old_val" >&2;} { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 echo "$as_me: current value: $ac_new_val" >&2;} ac_cache_corrupted=: fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 echo "$as_me: error: changes in the environment can compromise the build" >&2;} { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} { (exit 1); exit 1; }; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu #AC_PREREQ(2.50) ac_aux_dir= for ac_dir in config "$srcdir"/config; do if test -f "$ac_dir/install-sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" break elif test -f "$ac_dir/install.sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break elif test -f "$ac_dir/shtool"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/shtool install -c" break fi done if test -z "$ac_aux_dir"; then { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;} { (exit 1); exit 1; }; } fi # These three variables are undocumented and unsupported, # and are intended to be withdrawn in a future Autoconf release. # They can cause serious problems if a builder's source tree is in a directory # whose full name contains unusual characters. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. ac_config_headers="$ac_config_headers config/config.h" am__api_version='1.10' # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } if test -z "$INSTALL"; then if test "${ac_cv_path_install+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in ./ | .// | /cC/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi done done ;; esac done IFS=$as_save_IFS fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. Don't cache a # value for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. INSTALL=$ac_install_sh fi fi { echo "$as_me:$LINENO: result: $INSTALL" >&5 echo "${ECHO_T}$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' { echo "$as_me:$LINENO: checking whether build environment is sane" >&5 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } # 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". { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken alias in your environment" >&5 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken alias in your environment" >&2;} { (exit 1); exit 1; }; } fi test "$2" = conftest.file ) then # Ok. : else { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! Check your system clock" >&5 echo "$as_me: error: newly created file is older than distributed files! Check your system clock" >&2;} { (exit 1); exit 1; }; } fi { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } test "$program_prefix" != NONE && program_transform_name="s&^&$program_prefix&;$program_transform_name" # Use a double $ so make ignores it. test "$program_suffix" != NONE && program_transform_name="s&\$&$program_suffix&;$program_transform_name" # Double any \ or $. echo might interpret backslashes. # By default was `s,x,x', remove it if useless. cat <<\_ACEOF >conftest.sed s/[\\$]/&&/g;s/;s,x,x,$// _ACEOF program_transform_name=`echo $program_transform_name | sed -f conftest.sed` rm -f conftest.sed # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` 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= { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} fi { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } if test -z "$MKDIR_P"; then if test "${ac_cv_path_mkdir+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in mkdir gmkdir; do for ac_exec_ext in '' $ac_executable_extensions; do { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 'mkdir (GNU coreutils) '* | \ 'mkdir (coreutils) '* | \ 'mkdir (fileutils) '4.1*) ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext break 3;; esac done done done IFS=$as_save_IFS fi if test "${ac_cv_path_mkdir+set}" = set; then MKDIR_P="$ac_cv_path_mkdir -p" else # As a last resort, use the slow shell script. Don't cache a # value for MKDIR_P within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. test -d ./--version && rmdir ./--version MKDIR_P="$ac_install_sh -d" fi fi { echo "$as_me:$LINENO: result: $MKDIR_P" >&5 echo "${ECHO_T}$MKDIR_P" >&6; } mkdir_p="$MKDIR_P" case $mkdir_p in [\\/$]* | ?:[\\/]*) ;; */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; esac for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_AWK+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_AWK="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then { echo "$as_me:$LINENO: result: $AWK" >&5 echo "${ECHO_T}$AWK" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$AWK" && break done { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @echo '@@@%%%=$(MAKE)=@@@%%%' _ACEOF # GNU make sometimes prints "make[1]: Entering...", which would confuse us. case `${MAKE-make} -f conftest.make 2>/dev/null` in *@@@%%%=?*=@@@%%%*) eval ac_cv_prog_make_${ac_make}_set=yes;; *) eval ac_cv_prog_make_${ac_make}_set=no;; esac rm -f conftest.make fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } SET_MAKE= else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi 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 if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." am__isrc=' -I$(srcdir)' # test to see if srcdir already configured if test -f $srcdir/config.status; then { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} { (exit 1); exit 1; }; } 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 # Define the identity of the package. PACKAGE=tclap VERSION=1.2.1 cat >>confdefs.h <<_ACEOF #define PACKAGE "$PACKAGE" _ACEOF cat >>confdefs.h <<_ACEOF #define VERSION "$VERSION" _ACEOF # Some tools Automake needs. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} # 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. if test "$cross_compiling" != no; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_STRIP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { echo "$as_me:$LINENO: result: $STRIP" >&5 echo "${ECHO_T}$STRIP" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_STRIP="strip" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 echo "${ECHO_T}$ac_ct_STRIP" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" # We need awk for the "check" target. The system "awk" is bad on # some platforms. # Always define AMTAR for backward compatibility. AMTAR=${AMTAR-"${am_missing_run}tar"} am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu if test -z "$CXX"; then if test -n "$CCC"; then CXX=$CCC else if test -n "$ac_tool_prefix"; then for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then { echo "$as_me:$LINENO: result: $CXX" >&5 echo "${ECHO_T}$CXX" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$CXX" && break done fi if test -z "$CXX"; then ac_ct_CXX=$CXX for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CXX"; then ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CXX="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CXX=$ac_cv_prog_ac_ct_CXX if test -n "$ac_ct_CXX"; then { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 echo "${ECHO_T}$ac_ct_CXX" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$ac_ct_CXX" && break done if test "x$ac_ct_CXX" = x; then CXX="g++" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac CXX=$ac_ct_CXX fi fi fi fi # Provide some information about the compiler. echo "$as_me:$LINENO: checking for C++ compiler version" >&5 ac_compiler=`set X $ac_compile; echo $2` { (ac_try="$ac_compiler --version >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler --version >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -v >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -v >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -V >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -V >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; } ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # # List of possible output files, starting from the most likely. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) # only as a last resort. b.out is created by i960 compilers. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' # # The IRIX 6 linker writes into existing files which may not be # executable, retaining their permissions. Remove them first so a # subsequent execution test works. ac_rmfiles= for ac_file in $ac_files do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; * ) ac_rmfiles="$ac_rmfiles $ac_file";; esac done rm -f $ac_rmfiles if { (ac_try="$ac_link_default" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link_default") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, # so that the user can short-circuit this test for compilers unknown to # Autoconf. for ac_file in $ac_files '' do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi # We set ac_cv_exeext here because the later test for it is not # safe: cross compilers may not add the suffix if given an `-o' # argument, so we may need to know it at that point already. # Even if this section looks crufty: it has the advantage of # actually working. break;; * ) break;; esac done test "$ac_cv_exeext" = no && ac_cv_exeext= else ac_file='' fi { echo "$as_me:$LINENO: result: $ac_file" >&5 echo "${ECHO_T}$ac_file" >&6; } if test -z "$ac_file"; then echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables See \`config.log' for more details." >&5 echo "$as_me: error: C++ compiler cannot create executables See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; } fi ac_exeext=$ac_cv_exeext # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; } # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 # If not cross compiling, check that we can run a simple program. if test "$cross_compiling" != yes; then if { ac_try='./$ac_file' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details." >&5 echo "$as_me: error: cannot run C++ compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi fi fi { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } rm -f a.out a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } { echo "$as_me:$LINENO: result: $cross_compiling" >&5 echo "${ECHO_T}$cross_compiling" >&6; } { echo "$as_me:$LINENO: checking for suffix of executables" >&5 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; * ) break;; esac done else { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi rm -f conftest$ac_cv_exeext { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 echo "${ECHO_T}$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT { echo "$as_me:$LINENO: checking for suffix of object files" >&5 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } if test "${ac_cv_objext+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.o conftest.obj if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute suffix of object files: cannot compile See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 echo "${ECHO_T}$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } if test "${ac_cv_cxx_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_compiler_gnu=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_cxx_compiler_gnu=$ac_compiler_gnu fi { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } GXX=`test $ac_compiler_gnu = yes && echo yes` ac_test_CXXFLAGS=${CXXFLAGS+set} ac_save_CXXFLAGS=$CXXFLAGS { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } if test "${ac_cv_prog_cxx_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_save_cxx_werror_flag=$ac_cxx_werror_flag ac_cxx_werror_flag=yes ac_cv_prog_cxx_g=no CXXFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cxx_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 CXXFLAGS="" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cxx_werror_flag=$ac_save_cxx_werror_flag CXXFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_prog_cxx_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cxx_werror_flag=$ac_save_cxx_werror_flag fi { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } if test "$ac_test_CXXFLAGS" = set; then CXXFLAGS=$ac_save_CXXFLAGS elif test $ac_cv_prog_cxx_g = yes; then if test "$GXX" = yes; then CXXFLAGS="-g -O2" else CXXFLAGS="-g" fi else if test "$GXX" = yes; then CXXFLAGS="-O2" else CXXFLAGS= fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu DEPDIR="${am__leading_dot}deps" ac_config_commands="$ac_config_commands depfiles" 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. { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 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 { echo "$as_me:$LINENO: result: $_am_result" >&5 echo "${ECHO_T}$_am_result" >&6; } rm -f confinc confmf # Check whether --enable-dependency-tracking was given. if test "${enable_dependency_tracking+set}" = set; then enableval=$enable_dependency_tracking; fi if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' fi if test "x$enable_dependency_tracking" != xno; then AMDEP_TRUE= AMDEP_FALSE='#' else AMDEP_TRUE='#' AMDEP_FALSE= fi depcc="$CXX" am_compiler_list= { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else 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_CXX_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_CXX_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CXX_dependencies_compiler_type=none fi fi { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then am__fastdepCXX_TRUE= am__fastdepCXX_FALSE='#' else am__fastdepCXX_TRUE='#' am__fastdepCXX_FALSE= fi { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; } if test "${ac_cv_cxx_namespaces+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ namespace Outer { namespace Inner { int i = 0; }} int main () { using namespace Outer::Inner; return i; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_cxx_namespaces=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_cxx_namespaces=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; } if test "$ac_cv_cxx_namespaces" = yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_NAMESPACES 1 _ACEOF fi ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } if test -z "$CXXCPP"; then if test "${ac_cv_prog_CXXCPP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # Double quotes because CXXCPP needs to be expanded for CXXCPP in "$CXX -E" "/lib/cpp" do ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err }; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err }; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then break fi done ac_cv_prog_CXXCPP=$CXXCPP fi CXXCPP=$ac_cv_prog_CXXCPP else ac_cv_prog_CXXCPP=$CXXCPP fi { echo "$as_me:$LINENO: result: $CXXCPP" >&5 echo "${ECHO_T}$CXXCPP" >&6; } ac_preproc_ok=false for ac_cxx_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err }; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err }; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check See \`config.log' for more details." >&5 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } if test "${ac_cv_path_GREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # Extract the first word of "grep ggrep" to use in msg output if test -z "$GREP"; then set dummy grep ggrep; ac_prog_name=$2 if test "${ac_cv_path_GREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_path_GREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in grep ggrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP case `"$ac_path_GREP" --version 2>&1` in *GNU*) ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; *) ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" echo 'GREP' >> "conftest.nl" "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break ac_count=`expr $ac_count + 1` if test $ac_count -gt ${ac_path_GREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_GREP_found && break 3 done done done IFS=$as_save_IFS fi GREP="$ac_cv_path_GREP" if test -z "$GREP"; then { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} { (exit 1); exit 1; }; } fi else ac_cv_path_GREP=$GREP fi fi { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 echo "${ECHO_T}$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" { echo "$as_me:$LINENO: checking for egrep" >&5 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } if test "${ac_cv_path_EGREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else # Extract the first word of "egrep" to use in msg output if test -z "$EGREP"; then set dummy egrep; ac_prog_name=$2 if test "${ac_cv_path_EGREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_path_EGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in egrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP case `"$ac_path_EGREP" --version 2>&1` in *GNU*) ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; *) ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" echo 'EGREP' >> "conftest.nl" "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break ac_count=`expr $ac_count + 1` if test $ac_count -gt ${ac_path_EGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_EGREP_found && break 3 done done done IFS=$as_save_IFS fi EGREP="$ac_cv_path_EGREP" if test -z "$EGREP"; then { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} { (exit 1); exit 1; }; } fi else ac_cv_path_EGREP=$EGREP fi fi fi { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } if test "${ac_cv_header_stdc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_header_stdc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f -r conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f -r conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi fi { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 echo "${ECHO_T}$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then cat >>confdefs.h <<\_ACEOF #define STDC_HEADERS 1 _ACEOF fi # On IRIX 5.3, sys/types and inttypes.h are conflicting. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ inttypes.h stdint.h unistd.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then eval "$as_ac_Header=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_Header=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu for ac_header in sstream do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done { echo "$as_me:$LINENO: checking whether the STL defines stringstream" >&5 echo $ECHO_N "checking whether the STL defines stringstream... $ECHO_C" >&6; } if test "${ac_cv_cxx_have_sstream+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #ifdef HAVE_NAMESPACES using namespace std; #endif int main () { stringstream message; message << "Hello"; return 0; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_cxx_have_sstream=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_cxx_have_sstream=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_sstream" >&5 echo "${ECHO_T}$ac_cv_cxx_have_sstream" >&6; } if test "$ac_cv_cxx_have_sstream" = yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_SSTREAM 1 _ACEOF fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu for ac_header in strstream do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null && { test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || test ! -s conftest.err }; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done { echo "$as_me:$LINENO: checking whether the STL defines strstream" >&5 echo $ECHO_N "checking whether the STL defines strstream... $ECHO_C" >&6; } if test "${ac_cv_cxx_have_class_strstream+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #if HAVE_STRSTREAM # include #else # include #endif #ifdef HAVE_NAMESPACES using namespace std; #endif int main () { ostrstream message; message << "Hello"; return 0; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_cxx_have_class_strstream=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_cxx_have_class_strstream=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_class_strstream" >&5 echo "${ECHO_T}$ac_cv_cxx_have_class_strstream" >&6; } if test "$ac_cv_cxx_have_class_strstream" = yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_CLASS_STRSTREAM 1 _ACEOF fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { long long x = 1; return 0; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then ac_cv_cxx_have_long_long=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_cxx_have_long_long=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test "$ac_cv_cxx_have_long_long" = yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_LONG_LONG 1 _ACEOF else cat >>confdefs.h <<\_ACEOF #define HAVE_LONG_LONG 0 _ACEOF fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu # Extract the first word of "dot", so it can be a program name with args. set dummy dot; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_DOT+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$DOT"; then ac_cv_prog_DOT="$DOT" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_DOT="YES" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_prog_DOT" && ac_cv_prog_DOT="NO" fi fi DOT=$ac_cv_prog_DOT if test -n "$DOT"; then { echo "$as_me:$LINENO: result: $DOT" >&5 echo "${ECHO_T}$DOT" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ac_tool_prefix}ranlib; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_RANLIB+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then { echo "$as_me:$LINENO: result: $RANLIB" >&5 echo "${ECHO_T}$RANLIB" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$ac_cv_prog_RANLIB"; then ac_ct_RANLIB=$RANLIB # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_RANLIB"; then ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_RANLIB="ranlib" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB if test -n "$ac_ct_RANLIB"; then { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 echo "${ECHO_T}$ac_ct_RANLIB" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_RANLIB" = x; then RANLIB=":" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac RANLIB=$ac_ct_RANLIB fi else RANLIB="$ac_cv_prog_RANLIB" fi # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } if test -z "$INSTALL"; then if test "${ac_cv_path_install+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in ./ | .// | /cC/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi done done ;; esac done IFS=$as_save_IFS fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. Don't cache a # value for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. INSTALL=$ac_install_sh fi fi { echo "$as_me:$LINENO: result: $INSTALL" >&5 echo "${ECHO_T}$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' # Check whether --enable-doxygen was given. if test "${enable_doxygen+set}" = set; then enableval=$enable_doxygen; fi if test "x$enable_doxygen" = xno; then enable_doc=no else # Extract the first word of "doxygen", so it can be a program name with args. set dummy doxygen; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_path_DOXYGEN+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else case $DOXYGEN in [\\/]* | ?:[\\/]*) ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi DOXYGEN=$ac_cv_path_DOXYGEN if test -n "$DOXYGEN"; then { echo "$as_me:$LINENO: result: $DOXYGEN" >&5 echo "${ECHO_T}$DOXYGEN" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test x$DOXYGEN = x; then if test "x$enable_doxygen" = xyes; then { { echo "$as_me:$LINENO: error: could not find doxygen" >&5 echo "$as_me: error: could not find doxygen" >&2;} { (exit 1); exit 1; }; } fi enable_doc=no else enable_doc=yes fi fi if test x$enable_doc = xyes; then DOC_TRUE= DOC_FALSE='#' else DOC_TRUE='#' DOC_FALSE= fi { echo "$as_me:$LINENO: checking whether the C++ compiler (${CXX}) accepts -Weffc++" >&5 echo $ECHO_N "checking whether the C++ compiler (${CXX}) accepts -Weffc++... $ECHO_C" >&6; } if test "${cv_warn_effective_cxx+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu save_cxxflags="$CXXFLAGS" CXXFLAGS="$CXXFLAGS -Weffc++" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { main(); ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then cv_warn_effective_cxx=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 cv_warn_effective_cxx=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext CXXFLAGS="$save_cxxflags" ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu fi { echo "$as_me:$LINENO: result: $cv_warn_effective_cxx" >&5 echo "${ECHO_T}$cv_warn_effective_cxx" >&6; } if test "$cv_warn_effective_cxx" = yes; then WARN_EFFECTIVE_CXX=-Weffc++ WARN_NO_EFFECTIVE_CXX=-Wno-effc++ fi CXXFLAGS="$CXXFLAGS $WARN_EFFECTIVE_CXX" if test x$ac_cv_cxx_compiler_gnu = xyes; then HAVE_GNU_COMPILERS_TRUE= HAVE_GNU_COMPILERS_FALSE='#' else HAVE_GNU_COMPILERS_TRUE='#' HAVE_GNU_COMPILERS_FALSE= fi ac_config_files="$ac_config_files Makefile tclap.pc examples/Makefile include/Makefile include/tclap/Makefile config/Makefile docs/Makefile docs/Doxyfile msc/Makefile msc/examples/Makefile tests/Makefile" ac_config_commands="$ac_config_commands default" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( *) $as_unset $ac_var ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes (double-quote # substitution turns \\\\ into \\, and sed turns \\ into \). sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then test "x$cache_file" != "x/dev/null" && { echo "$as_me:$LINENO: updating cache $cache_file" >&5 echo "$as_me: updating cache $cache_file" >&6;} cat confcache >$cache_file else { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' DEFS=-DHAVE_CONFIG_H ac_libobjs= ac_ltlibobjs= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ac_i=`echo "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${DOC_TRUE}" && test -z "${DOC_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"DOC\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"DOC\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${HAVE_GNU_COMPILERS_TRUE}" && test -z "${HAVE_GNU_COMPILERS_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"HAVE_GNU_COMPILERS\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"HAVE_GNU_COMPILERS\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi : ${CONFIG_STATUS=./config.status} ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 echo "$as_me: creating $CONFIG_STATUS" >&6;} cat >$CONFIG_STATUS <<_ACEOF #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF ## --------------------- ## ## M4sh Initialization. ## ## --------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac fi # PATH needs CR # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi # Support unset when possible. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then as_unset=unset else as_unset=false fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) as_nl=' ' IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. case $0 in *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 { (exit 1); exit 1; } fi # Work around bugs in pre-3.0 UWIN ksh. for as_var in ENV MAIL MAILPATH do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. for as_var in \ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ LC_TELEPHONE LC_TIME do if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then eval $as_var=C; export $as_var else ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var fi done # Required to use basename. if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi # Name of the executable. as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # CDPATH. $as_unset CDPATH as_lineno_1=$LINENO as_lineno_2=$LINENO test "x$as_lineno_1" != "x$as_lineno_2" && test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { # Create $as_me.lineno as a copy of $as_myself, but with $LINENO # uniformly replaced by the line number. The first 'sed' inserts a # line-number line after each line using $LINENO; the second 'sed' # does the real work. The second script uses 'N' to pair each # line-number line with the line containing $LINENO, and appends # trailing '-' during substitution so that $LINENO is not a special # case at line end. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the # scripts with optimization help from Paolo Bonzini. Blame Lee # E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 { (exit 1); exit 1; }; } # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in -n*) case `echo 'x\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. *) ECHO_C='\c';; esac;; *) ECHO_N='-n';; esac if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir fi echo >conf$$.file if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -p'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -p' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p=: else test -d ./-p && rmdir ./-p as_mkdir_p=false fi if test -x / >/dev/null 2>&1; then as_test_x='test -x' else if ls -dL / >/dev/null 2>&1; then as_ls_L_option=L else as_ls_L_option= fi as_test_x=' eval sh -c '\'' if test -d "$1"; then test -d "$1/."; else case $1 in -*)set "./$1";; esac; case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in ???[sx]*):;;*)false;;esac;fi '\'' sh ' fi as_executable_p=$as_test_x # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 6>&1 # Save the log message, to keep $[0] and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by $as_me, which was generated by GNU Autoconf 2.61. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " _ACEOF cat >>$CONFIG_STATUS <<_ACEOF # Files that config.status was made for. config_files="$ac_config_files" config_headers="$ac_config_headers" config_commands="$ac_config_commands" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF ac_cs_usage="\ \`$as_me' instantiates files from templates according to the current configuration. Usage: $0 [OPTIONS] [FILE]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit -q, --quiet do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE --header=FILE[:TEMPLATE] instantiate the configuration header FILE Configuration files: $config_files Configuration headers: $config_headers Configuration commands: $config_commands Report bugs to ." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF ac_cs_version="\\ config.status configured by $0, generated by GNU Autoconf 2.61, with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" Copyright (C) 2006 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' INSTALL='$INSTALL' MKDIR_P='$MKDIR_P' _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # If no file are specified by the user, then we need to provide default # value. By we need to know if files were specified by the user. ac_need_defaults=: while test $# != 0 do case $1 in --*=*) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` ac_shift=: ;; *) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; esac case $ac_option in # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) echo "$ac_cs_version"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift CONFIG_FILES="$CONFIG_FILES $ac_optarg" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header { echo "$as_me: error: ambiguous option: $1 Try \`$0 --help' for more information." >&2 { (exit 1); exit 1; }; };; --help | --hel | -h ) echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) { echo "$as_me: error: unrecognized option: $1 Try \`$0 --help' for more information." >&2 { (exit 1); exit 1; }; } ;; *) ac_config_targets="$ac_config_targets $1" ac_need_defaults=false ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF if \$ac_cs_recheck; then echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 CONFIG_SHELL=$SHELL export CONFIG_SHELL exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX echo "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF # # INIT-COMMANDS # AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # Handling of arguments. for ac_config_target in $ac_config_targets do case $ac_config_target in "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;; "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "tclap.pc") CONFIG_FILES="$CONFIG_FILES tclap.pc" ;; "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; "include/tclap/Makefile") CONFIG_FILES="$CONFIG_FILES include/tclap/Makefile" ;; "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;; "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;; "docs/Doxyfile") CONFIG_FILES="$CONFIG_FILES docs/Doxyfile" ;; "msc/Makefile") CONFIG_FILES="$CONFIG_FILES msc/Makefile" ;; "msc/examples/Makefile") CONFIG_FILES="$CONFIG_FILES msc/examples/Makefile" ;; "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} { (exit 1); exit 1; }; };; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason against having it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: # after its creation but before its name has been assigned to `$tmp'. $debug || { tmp= trap 'exit_status=$? { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status ' 0 trap '{ (exit 1); exit 1; }' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") } || { echo "$me: cannot create a temporary directory in ." >&2 { (exit 1); exit 1; } } # # Set up the sed scripts for CONFIG_FILES section. # # No need to generate the scripts if there are no CONFIG_FILES. # This happens for instance when ./config.status config.h if test -n "$CONFIG_FILES"; then _ACEOF ac_delim='%!_!# ' for ac_last_try in false false false false false :; do cat >conf$$subs.sed <<_ACEOF SHELL!$SHELL$ac_delim PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim PACKAGE_NAME!$PACKAGE_NAME$ac_delim PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim PACKAGE_STRING!$PACKAGE_STRING$ac_delim PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim exec_prefix!$exec_prefix$ac_delim prefix!$prefix$ac_delim program_transform_name!$program_transform_name$ac_delim bindir!$bindir$ac_delim sbindir!$sbindir$ac_delim libexecdir!$libexecdir$ac_delim datarootdir!$datarootdir$ac_delim datadir!$datadir$ac_delim sysconfdir!$sysconfdir$ac_delim sharedstatedir!$sharedstatedir$ac_delim localstatedir!$localstatedir$ac_delim includedir!$includedir$ac_delim oldincludedir!$oldincludedir$ac_delim docdir!$docdir$ac_delim infodir!$infodir$ac_delim htmldir!$htmldir$ac_delim dvidir!$dvidir$ac_delim pdfdir!$pdfdir$ac_delim psdir!$psdir$ac_delim libdir!$libdir$ac_delim localedir!$localedir$ac_delim mandir!$mandir$ac_delim DEFS!$DEFS$ac_delim ECHO_C!$ECHO_C$ac_delim ECHO_N!$ECHO_N$ac_delim ECHO_T!$ECHO_T$ac_delim LIBS!$LIBS$ac_delim build_alias!$build_alias$ac_delim host_alias!$host_alias$ac_delim target_alias!$target_alias$ac_delim INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim INSTALL_DATA!$INSTALL_DATA$ac_delim am__isrc!$am__isrc$ac_delim CYGPATH_W!$CYGPATH_W$ac_delim PACKAGE!$PACKAGE$ac_delim VERSION!$VERSION$ac_delim ACLOCAL!$ACLOCAL$ac_delim AUTOCONF!$AUTOCONF$ac_delim AUTOMAKE!$AUTOMAKE$ac_delim AUTOHEADER!$AUTOHEADER$ac_delim MAKEINFO!$MAKEINFO$ac_delim install_sh!$install_sh$ac_delim STRIP!$STRIP$ac_delim INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim mkdir_p!$mkdir_p$ac_delim AWK!$AWK$ac_delim SET_MAKE!$SET_MAKE$ac_delim am__leading_dot!$am__leading_dot$ac_delim AMTAR!$AMTAR$ac_delim am__tar!$am__tar$ac_delim am__untar!$am__untar$ac_delim CXX!$CXX$ac_delim CXXFLAGS!$CXXFLAGS$ac_delim LDFLAGS!$LDFLAGS$ac_delim CPPFLAGS!$CPPFLAGS$ac_delim ac_ct_CXX!$ac_ct_CXX$ac_delim EXEEXT!$EXEEXT$ac_delim OBJEXT!$OBJEXT$ac_delim DEPDIR!$DEPDIR$ac_delim am__include!$am__include$ac_delim am__quote!$am__quote$ac_delim AMDEP_TRUE!$AMDEP_TRUE$ac_delim AMDEP_FALSE!$AMDEP_FALSE$ac_delim AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim CXXDEPMODE!$CXXDEPMODE$ac_delim am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim CXXCPP!$CXXCPP$ac_delim GREP!$GREP$ac_delim EGREP!$EGREP$ac_delim DOT!$DOT$ac_delim RANLIB!$RANLIB$ac_delim DOXYGEN!$DOXYGEN$ac_delim DOC_TRUE!$DOC_TRUE$ac_delim DOC_FALSE!$DOC_FALSE$ac_delim WARN_EFFECTIVE_CXX!$WARN_EFFECTIVE_CXX$ac_delim WARN_NO_EFFECTIVE_CXX!$WARN_NO_EFFECTIVE_CXX$ac_delim HAVE_GNU_COMPILERS_TRUE!$HAVE_GNU_COMPILERS_TRUE$ac_delim HAVE_GNU_COMPILERS_FALSE!$HAVE_GNU_COMPILERS_FALSE$ac_delim LIBOBJS!$LIBOBJS$ac_delim LTLIBOBJS!$LTLIBOBJS$ac_delim _ACEOF if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then break elif $ac_last_try; then { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} { (exit 1); exit 1; }; } else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` if test -n "$ac_eof"; then ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` ac_eof=`expr $ac_eof + 1` fi cat >>$CONFIG_STATUS <<_ACEOF cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end _ACEOF sed ' s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g s/^/s,@/; s/!/@,|#_!!_#|/ :n t n s/'"$ac_delim"'$/,g/; t s/$/\\/; p N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n ' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF :end s/|#_!!_#|//g CEOF$ac_eof _ACEOF # VPATH may cause trouble with some makes, so we remove $(srcdir), # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=/{ s/:*\$(srcdir):*/:/ s/:*\${srcdir}:*/:/ s/:*@srcdir@:*/:/ s/^\([^=]*=[ ]*\):*/\1/ s/:*$// s/^[^=]*=[ ]*$// }' fi cat >>$CONFIG_STATUS <<\_ACEOF fi # test -n "$CONFIG_FILES" for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 echo "$as_me: error: Invalid tag $ac_tag." >&2;} { (exit 1); exit 1; }; };; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac ac_save_IFS=$IFS IFS=: set x $ac_tag IFS=$ac_save_IFS shift ac_file=$1 shift case $ac_mode in :L) ac_source=$1;; :[FH]) ac_file_inputs= for ac_f do case $ac_f in -) ac_f="$tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, # because $ac_f cannot contain `:'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 echo "$as_me: error: cannot find input file: $ac_f" >&2;} { (exit 1); exit 1; }; };; esac ac_file_inputs="$ac_file_inputs $ac_f" done # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input="Generated from "`IFS=: echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { echo "$as_me:$LINENO: creating $ac_file" >&5 echo "$as_me: creating $ac_file" >&6;} fi case $ac_tag in *:-:* | *:-) cat >"$tmp/stdin";; esac ;; esac ac_dir=`$as_dirname -- "$ac_file" || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` { as_dir="$ac_dir" case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 echo "$as_me: error: cannot create directory $as_dir" >&2;} { (exit 1); exit 1; }; }; } ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix case $ac_mode in :F) # # CONFIG_FILE # case $INSTALL in [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; esac ac_MKDIR_P=$MKDIR_P case $MKDIR_P in [\\/$]* | ?:[\\/]* ) ;; */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; esac _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= case `sed -n '/datarootdir/ { p q } /@datadir@/p /@docdir@/p /@infodir@/p /@localedir@/p /@mandir@/p ' $ac_file_inputs` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF # Neutralize VPATH when `$srcdir' = `.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF sed "$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s&@configure_input@&$configure_input&;t t s&@top_builddir@&$ac_top_builddir_sub&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t s&@builddir@&$ac_builddir&;t t s&@abs_builddir@&$ac_abs_builddir&;t t s&@abs_top_builddir@&$ac_abs_top_builddir&;t t s&@INSTALL@&$ac_INSTALL&;t t s&@MKDIR_P@&$ac_MKDIR_P&;t t $ac_datarootdir_hack " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined." >&5 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined." >&2;} rm -f "$tmp/stdin" case $ac_file in -) cat "$tmp/out"; rm -f "$tmp/out";; *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; esac ;; :H) # # CONFIG_HEADER # _ACEOF # Transform confdefs.h into a sed script `conftest.defines', that # substitutes the proper values into config.h.in to produce config.h. rm -f conftest.defines conftest.tail # First, append a space to every undef/define line, to ease matching. echo 's/$/ /' >conftest.defines # Then, protect against being on the right side of a sed subst, or in # an unquoted here document, in config.status. If some macros were # called several times there might be several #defines for the same # symbol, which is useless. But do not sort them, since the last # AC_DEFINE must be honored. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where # NAME is the cpp macro being defined, VALUE is the value it is being given. # PARAMS is the parameter list in the macro definition--in most cases, it's # just an empty string. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' ac_dB='\\)[ (].*,\\1define\\2' ac_dC=' ' ac_dD=' ,' uniq confdefs.h | sed -n ' t rset :rset s/^[ ]*#[ ]*define[ ][ ]*// t ok d :ok s/[\\&,]/\\&/g s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p ' >>conftest.defines # Remove the space that was appended to ease matching. # Then replace #undef with comments. This is necessary, for # example, in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. # (The regexp can be short, since the line contains either #define or #undef.) echo 's/ $// s,^[ #]*u.*,/* & */,' >>conftest.defines # Break up conftest.defines: ac_max_sed_lines=50 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" # et cetera. ac_in='$ac_file_inputs' ac_out='"$tmp/out1"' ac_nxt='"$tmp/out2"' while : do # Write a here document: cat >>$CONFIG_STATUS <<_ACEOF # First, check the format of the line: cat >"\$tmp/defines.sed" <<\\CEOF /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def b :def _ACEOF sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS echo 'CEOF sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail grep . conftest.tail >/dev/null || break rm -f conftest.defines mv conftest.tail conftest.defines done rm -f conftest.defines conftest.tail echo "ac_result=$ac_in" >>$CONFIG_STATUS cat >>$CONFIG_STATUS <<\_ACEOF if test x"$ac_file" != x-; then echo "/* $configure_input */" >"$tmp/config.h" cat "$ac_result" >>"$tmp/config.h" if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 echo "$as_me: $ac_file is unchanged" >&6;} else rm -f $ac_file mv "$tmp/config.h" $ac_file fi else echo "/* $configure_input */" cat "$ac_result" fi rm -f "$tmp/out12" # Compute $ac_file's index in $config_headers. _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $ac_file | $ac_file:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X$ac_file : 'X\(//\)[^/]' \| \ X$ac_file : 'X\(//\)$' \| \ X$ac_file : 'X\(/\)' \| . 2>/dev/null || echo X$ac_file | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'`/stamp-h$_am_stamp_count ;; :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 echo "$as_me: executing $ac_file commands" >&6;} ;; esac case $ac_file$ac_mode in "depfiles":C) test x"$AMDEP_TRUE" != x"" || 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" || $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$mf" : 'X\(//\)[^/]' \| \ X"$mf" : 'X\(//\)$' \| \ X"$mf" : 'X\(/\)' \| . 2>/dev/null || echo X"$mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` 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_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$file" : 'X\(//\)[^/]' \| \ X"$file" : 'X\(//\)$' \| \ X"$file" : 'X\(/\)' \| . 2>/dev/null || echo X"$file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` { as_dir=$dirpart/$fdir case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 echo "$as_me: error: cannot create directory $as_dir" >&2;} { (exit 1); exit 1; }; }; } # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done ;; "default":C) \ chmod a+x $ac_top_srcdir/tests/*.sh ;; esac done # for ac_tag { (exit 0); exit 0; } _ACEOF chmod +x $CONFIG_STATUS ac_clean_files=$ac_clean_files_save # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || { (exit 1); exit 1; } fi tclap-1.2.1/configure.in000644 000765 000765 00000001340 11537646370 014565 0ustar00mesmes000000 000000 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]) tclap-1.2.1/COPYING000644 000765 000765 00000002067 07635754200 013312 0ustar00mesmes000000 000000 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. tclap-1.2.1/docs/000777 000765 000765 00000000000 11552414564 013205 5ustar00mesmes000000 000000 tclap-1.2.1/examples/000777 000765 000765 00000000000 11552414564 014073 5ustar00mesmes000000 000000 tclap-1.2.1/include/000777 000765 000765 00000000000 11552414564 013700 5ustar00mesmes000000 000000 tclap-1.2.1/INSTALL000644 000765 000765 00000017227 07643074151 013313 0ustar00mesmes000000 000000 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. tclap-1.2.1/Makefile.am000644 000765 000765 00000000320 11244043131 014262 0ustar00mesmes000000 000000 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 tclap-1.2.1/Makefile.in000644 000765 000765 00000047144 11552414364 014326 0ustar00mesmes000000 000000 # 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: tclap-1.2.1/msc/000777 000765 000765 00000000000 11552414566 013041 5ustar00mesmes000000 000000 tclap-1.2.1/NEWS000644 000765 000765 00000012450 11552414266 012751 0ustar00mesmes000000 000000 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 . 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. tclap-1.2.1/README000644 000765 000765 00000000771 10141016230 013113 0ustar00mesmes000000 000000 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 tclap-1.2.1/tclap.pc.in000644 000765 000765 00000000221 11244043131 014262 0ustar00mesmes000000 000000 prefix=@prefix@ includedir=@includedir@ Name: tclap Description: Templatized C++ Command Line Parser Version: @VERSION@ Cflags: -I${includedir} tclap-1.2.1/tests/000777 000765 000765 00000000000 11552414566 013421 5ustar00mesmes000000 000000 tclap-1.2.1/tests/Makefile.am000644 000765 000765 00000004623 11552414266 015453 0ustar00mesmes000000 000000 TESTS = test1.sh \ test2.sh \ test3.sh \ test4.sh \ test5.sh \ test6.sh \ test7.sh \ test8.sh \ test9.sh \ test10.sh \ test11.sh \ test12.sh \ test13.sh \ test14.sh \ test15.sh \ test16.sh \ test17.sh \ test18.sh \ test19.sh \ test20.sh \ test21.sh \ test22.sh \ test23.sh \ test24.sh \ test25.sh \ test26.sh \ test27.sh \ test28.sh \ test29.sh \ test30.sh \ test31.sh \ test32.sh \ test33.sh \ test34.sh \ test35.sh \ test36.sh \ test37.sh \ test38.sh \ test39.sh \ test40.sh \ test41.sh \ test42.sh \ test43.sh \ test44.sh \ test45.sh \ test46.sh \ test47.sh \ test48.sh \ test49.sh \ test50.sh \ test51.sh \ test52.sh \ test53.sh \ test54.sh \ test55.sh \ test56.sh \ test57.sh \ test58.sh \ test59.sh \ test60.sh \ test61.sh \ test62.sh \ test63.sh \ test64.sh \ test65.sh \ test66.sh \ test67.sh \ test68.sh \ test69.sh \ test70.sh \ test71.sh \ test72.sh \ test73.sh \ test74.sh \ test75.sh \ test76.sh \ test77.sh \ test78.sh EXTRA_DIST = $(TESTS) \ test1.out \ test2.out \ test3.out \ test4.out \ test5.out \ test6.out \ test7.out \ test8.out \ test9.out \ test10.out \ test11.out \ test12.out \ test13.out \ test14.out \ test15.out \ test16.out \ test17.out \ test18.out \ test19.out \ test20.out \ test21.out \ test22.out \ test23.out \ test24.out \ test25.out \ test26.out \ test27.out \ test28.out \ test29.out \ test30.out \ test31.out \ test32.out \ test33.out \ test34.out \ test35.out \ test36.out \ test37.out \ test38.out \ test39.out \ test40.out \ test41.out \ test42.out \ test43.out \ test44.out \ test45.out \ test46.out \ test47.out \ test48.out \ test49.out \ test50.out \ test51.out \ test52.out \ test53.out \ test54.out \ test55.out \ test56.out \ test57.out \ test58.out \ test59.out \ test60.out \ test61.out \ test62.out \ test63.out \ test64.out \ test65.out \ test66.out \ test67.out \ test68.out \ test69.out \ test70.out \ test71.out \ test72.out \ test73.out \ test74.out \ test75.out \ test76.out \ test77.out \ test78.out CLEANFILES = tmp.out tclap-1.2.1/tests/Makefile.in000644 000765 000765 00000031477 11552414365 015473 0ustar00mesmes000000 000000 # 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 = tests DIST_COMMON = $(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 = 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@ TESTS = test1.sh \ test2.sh \ test3.sh \ test4.sh \ test5.sh \ test6.sh \ test7.sh \ test8.sh \ test9.sh \ test10.sh \ test11.sh \ test12.sh \ test13.sh \ test14.sh \ test15.sh \ test16.sh \ test17.sh \ test18.sh \ test19.sh \ test20.sh \ test21.sh \ test22.sh \ test23.sh \ test24.sh \ test25.sh \ test26.sh \ test27.sh \ test28.sh \ test29.sh \ test30.sh \ test31.sh \ test32.sh \ test33.sh \ test34.sh \ test35.sh \ test36.sh \ test37.sh \ test38.sh \ test39.sh \ test40.sh \ test41.sh \ test42.sh \ test43.sh \ test44.sh \ test45.sh \ test46.sh \ test47.sh \ test48.sh \ test49.sh \ test50.sh \ test51.sh \ test52.sh \ test53.sh \ test54.sh \ test55.sh \ test56.sh \ test57.sh \ test58.sh \ test59.sh \ test60.sh \ test61.sh \ test62.sh \ test63.sh \ test64.sh \ test65.sh \ test66.sh \ test67.sh \ test68.sh \ test69.sh \ test70.sh \ test71.sh \ test72.sh \ test73.sh \ test74.sh \ test75.sh \ test76.sh \ test77.sh \ test78.sh EXTRA_DIST = $(TESTS) \ test1.out \ test2.out \ test3.out \ test4.out \ test5.out \ test6.out \ test7.out \ test8.out \ test9.out \ test10.out \ test11.out \ test12.out \ test13.out \ test14.out \ test15.out \ test16.out \ test17.out \ test18.out \ test19.out \ test20.out \ test21.out \ test22.out \ test23.out \ test24.out \ test25.out \ test26.out \ test27.out \ test28.out \ test29.out \ test30.out \ test31.out \ test32.out \ test33.out \ test34.out \ test35.out \ test36.out \ test37.out \ test38.out \ test39.out \ test40.out \ test41.out \ test42.out \ test43.out \ test44.out \ test45.out \ test46.out \ test47.out \ test48.out \ test49.out \ test50.out \ test51.out \ test52.out \ test53.out \ test54.out \ test55.out \ test56.out \ test57.out \ test58.out \ test59.out \ test60.out \ test61.out \ test62.out \ test63.out \ test64.out \ test65.out \ test66.out \ test67.out \ test68.out \ test69.out \ test70.out \ test71.out \ test72.out \ test73.out \ test74.out \ test75.out \ test76.out \ test77.out \ test78.out CLEANFILES = tmp.out 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 tests/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu tests/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 tags: TAGS TAGS: ctags: CTAGS CTAGS: check-TESTS: $(TESTS) @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \ srcdir=$(srcdir); export srcdir; \ list=' $(TESTS) '; \ if test -n "$$list"; then \ for tst in $$list; do \ if test -f ./$$tst; then dir=./; \ elif test -f $$tst; then dir=; \ else dir="$(srcdir)/"; fi; \ if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \ all=`expr $$all + 1`; \ case " $(XFAIL_TESTS) " in \ *$$ws$$tst$$ws*) \ xpass=`expr $$xpass + 1`; \ failed=`expr $$failed + 1`; \ echo "XPASS: $$tst"; \ ;; \ *) \ echo "PASS: $$tst"; \ ;; \ esac; \ elif test $$? -ne 77; then \ all=`expr $$all + 1`; \ case " $(XFAIL_TESTS) " in \ *$$ws$$tst$$ws*) \ xfail=`expr $$xfail + 1`; \ echo "XFAIL: $$tst"; \ ;; \ *) \ failed=`expr $$failed + 1`; \ echo "FAIL: $$tst"; \ ;; \ esac; \ else \ skip=`expr $$skip + 1`; \ echo "SKIP: $$tst"; \ fi; \ done; \ if test "$$failed" -eq 0; then \ if test "$$xfail" -eq 0; then \ banner="All $$all tests passed"; \ else \ banner="All $$all tests behaved as expected ($$xfail expected failures)"; \ fi; \ else \ if test "$$xpass" -eq 0; then \ banner="$$failed of $$all tests failed"; \ else \ banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \ fi; \ fi; \ dashes="$$banner"; \ skipped=""; \ if test "$$skip" -ne 0; then \ skipped="($$skip tests were not run)"; \ test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \ dashes="$$skipped"; \ fi; \ report=""; \ if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \ report="Please report to $(PACKAGE_BUGREPORT)"; \ test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \ dashes="$$report"; \ fi; \ dashes=`echo "$$dashes" | sed s/./=/g`; \ echo "$$dashes"; \ echo "$$banner"; \ test -z "$$skipped" || echo "$$skipped"; \ test -z "$$report" || echo "$$report"; \ echo "$$dashes"; \ test "$$failed" -eq 0; \ else :; fi 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 $(MAKE) $(AM_MAKEFLAGS) check-TESTS check: check-am all-am: Makefile 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: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) 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 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-TESTS check-am clean clean-generic \ distclean distclean-generic 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: tclap-1.2.1/tests/test1.out000644 000765 000765 00000000045 10136053222 015166 0ustar00mesmes000000 000000 My name (spelled backwards) is: ekim tclap-1.2.1/tests/test1.sh000755 000765 000765 00000000205 10176527003 015001 0ustar00mesmes000000 000000 #!/bin/sh # success ../examples/test1 -r -n mike > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test1.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test10.out000644 000765 000765 00000000427 10523207254 015260 0ustar00mesmes000000 000000 PARSE ERROR: Required argument missing: unTest Brief USAGE: ../examples/test2 [-f ] -i -s [-A] [-C] [-B] [--] [--version] [-h] ... For complete USAGE and HELP type: ../examples/test2 --help tclap-1.2.1/tests/test10.sh000755 000765 000765 00000000212 10176527003 015057 0ustar00mesmes000000 000000 #!/bin/sh # failure ../examples/test2 -i 10 -s hello > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test10.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test11.out000644 000765 000765 00000000442 10175062512 015255 0ustar00mesmes000000 000000 PARSE ERROR: Argument: -i (--intTest) Argument already set! Brief USAGE: ../examples/test2 [-f ] -i -s [-A] [-C] [-B] [--] [--version] [-h] ... For complete USAGE and HELP type: ../examples/test2 --help tclap-1.2.1/tests/test11.sh000755 000765 000765 00000000217 10176527003 015065 0ustar00mesmes000000 000000 #!/bin/sh # failure ../examples/test2 -i 10 -s hello -i 9 > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test11.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test12.out000644 000765 000765 00000000476 10175062512 015265 0ustar00mesmes000000 000000 PARSE ERROR: Argument: -f (--floatTest) Couldn't read argument value from string 'nine' Brief USAGE: ../examples/test2 [-f ] -i -s [-A] [-C] [-B] [--] [--version] [-h] ... For complete USAGE and HELP type: ../examples/test2 --help tclap-1.2.1/tests/test12.sh000755 000765 000765 00000000222 10176527003 015062 0ustar00mesmes000000 000000 #!/bin/sh # failure ../examples/test2 -i 10 -s hello -f nine > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test12.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test13.out000644 000765 000765 00000000220 07771451134 015263 0ustar00mesmes000000 000000 [-i] 0 9 [-i] 1 8 [ ] 0 bart for string we got : bill for ulabeled one we got : homer for ulabeled two we got : marge for bool B we got : 1 tclap-1.2.1/tests/test13.sh000755 000765 000765 00000000253 10176527003 015067 0ustar00mesmes000000 000000 #!/bin/sh # success ../examples/test3 --stringTest=bill -i=9 -i=8 -B homer marge bart > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test13.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test14.out000644 000765 000765 00000000223 07771451134 015267 0ustar00mesmes000000 000000 [ ] 0 bart [ ] 1 one [ ] 2 two for string we got : aaa for ulabeled one we got : homer for ulabeled two we got : marge for bool B we got : 0 tclap-1.2.1/tests/test14.sh000755 000765 000765 00000000251 10176527003 015066 0ustar00mesmes000000 000000 #!/bin/sh # success ../examples/test3 --stringTest=aaa homer marge bart -- one two > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test14.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test15.out000644 000765 000765 00000000552 10175062512 015263 0ustar00mesmes000000 000000 PARSE ERROR: Argument: (--stringTest) Couldn't find delimiter for this argument! Brief USAGE: ../examples/test3 [-f=] ... [-i=] ... --stringTest= [-B] [--] [--version] [-h] ... For complete USAGE and HELP type: ../examples/test3 --help tclap-1.2.1/tests/test15.sh000755 000765 000765 00000000251 10176527003 015067 0ustar00mesmes000000 000000 #!/bin/sh # failure ../examples/test3 --stringTest bbb homer marge bart -- -hv two > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test15.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test16.out000644 000765 000765 00000000552 10175062512 015264 0ustar00mesmes000000 000000 PARSE ERROR: Argument: (--stringTest) Couldn't find delimiter for this argument! Brief USAGE: ../examples/test3 [-f=] ... [-i=] ... --stringTest= [-B] [--] [--version] [-h] ... For complete USAGE and HELP type: ../examples/test3 --help tclap-1.2.1/tests/test16.sh000755 000765 000765 00000000232 10176527003 015067 0ustar00mesmes000000 000000 #!/bin/sh # failure ../examples/test3 --stringTest one homer -B -Bh > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test16.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test17.out000644 000765 000765 00000000513 10523207254 015263 0ustar00mesmes000000 000000 PARSE ERROR: Required argument missing: unTest2 Brief USAGE: ../examples/test3 [-f=] ... [-i=] ... --stringTest= [-B] [--] [--version] [-h] ... For complete USAGE and HELP type: ../examples/test3 --help tclap-1.2.1/tests/test17.sh000755 000765 000765 00000000226 10176527003 015073 0ustar00mesmes000000 000000 #!/bin/sh # failure ../examples/test3 --stringTest=one homer -B > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test17.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test18.out000644 000765 000765 00000000075 10612320412 015256 0ustar00mesmes000000 000000 my failure message: -s -- Couldn't find match for argument tclap-1.2.1/tests/test18.sh000755 000765 000765 00000000211 10176527003 015066 0ustar00mesmes000000 000000 #!/bin/sh # failure ../examples/test4 -Bs --Bs asdf > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test18.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test19.out000644 000765 000765 00000000105 07777160647 015307 0ustar00mesmes000000 000000 for string we got : asdf for bool B we got : 1 for bool A we got : 1 tclap-1.2.1/tests/test19.sh000755 000765 000765 00000000211 10176527006 015072 0ustar00mesmes000000 000000 #!/bin/sh # success ../examples/test4 -BA --Bs asdf > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test19.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test2.out000644 000765 000765 00000000021 10136053222 015161 0ustar00mesmes000000 000000 My name is: mike tclap-1.2.1/tests/test2.sh000755 000765 000765 00000000202 10176527006 015002 0ustar00mesmes000000 000000 #!/bin/sh # success ../examples/test1 -n mike > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test2.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test20.out000644 000765 000765 00000000201 10174077510 015251 0ustar00mesmes000000 000000 for I: 0 sss 1 fdsf for A OR B we got : asdf for string C we got : fdas for string D we got : 0 for E or F or G we got: blah tclap-1.2.1/tests/test20.sh000755 000765 000765 00000000245 10176527006 015071 0ustar00mesmes000000 000000 #!/bin/sh # success ../examples/test5 -a asdf -c fdas --eee blah -i sss -i fdsf > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test20.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test21.out000644 000765 000765 00000000172 10174077511 015262 0ustar00mesmes000000 000000 for J: 0 homer for A OR B we got : asdf for string C we got : fdas for string D we got : 0 for E or F or G we got: asdf tclap-1.2.1/tests/test21.sh000755 000765 000765 00000000234 10176527006 015070 0ustar00mesmes000000 000000 #!/bin/sh # success ../examples/test5 -b asdf -c fdas -g asdf -j homer > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test21.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test22.out000644 000765 000765 00000000576 11270745254 015277 0ustar00mesmes000000 000000 PARSE ERROR: Argument: -b (--bbb) Mutually exclusive argument already set! Brief USAGE: ../examples/test5 {-a |-b } {--eee |--fff |-g } {-i ... |-j ... } [--ddd] -c [--] [--version] [-h] For complete USAGE and HELP type: ../examples/test5 --help tclap-1.2.1/tests/test22.sh000755 000765 000765 00000000223 10176527006 015067 0ustar00mesmes000000 000000 #!/bin/sh # failure ../examples/test5 -a fdsa -b asdf -c fdas > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test22.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test23.out000644 000765 000765 00000000556 10175062512 015266 0ustar00mesmes000000 000000 PARSE ERROR: Argument: -d Couldn't find match for argument Brief USAGE: ../examples/test5 {-a |-b } {--eee |--fff |-g } {-i ... |-j ... } [--ddd] -c [--] [--version] [-h] For complete USAGE and HELP type: ../examples/test5 --help tclap-1.2.1/tests/test23.sh000755 000765 000765 00000000213 10176527006 015067 0ustar00mesmes000000 000000 #!/bin/sh # failure ../examples/test5 -d junk -c fdas > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test23.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test24.out000644 000765 000765 00000000576 11270745254 015301 0ustar00mesmes000000 000000 PARSE ERROR: Argument: -b (--bbb) Mutually exclusive argument already set! Brief USAGE: ../examples/test5 {-a |-b } {--eee |--fff |-g } {-i ... |-j ... } [--ddd] -c [--] [--version] [-h] For complete USAGE and HELP type: ../examples/test5 --help tclap-1.2.1/tests/test24.sh000755 000765 000765 00000000231 10176527006 015070 0ustar00mesmes000000 000000 #!/bin/sh # failure ../examples/test5 --aaa dilbert -b asdf -c fdas > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test24.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test25.out000644 000765 000765 00000000200 10174077511 015256 0ustar00mesmes000000 000000 for I: 0 one 1 two for A OR B we got : asdf for string C we got : fdas for string D we got : 0 for E or F or G we got: blah tclap-1.2.1/tests/test25.sh000755 000765 000765 00000000247 10176527006 015100 0ustar00mesmes000000 000000 #!/bin/sh # success ../examples/test5 --aaa asdf -c fdas --fff blah -i one -i two > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test25.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test26.out000644 000765 000765 00000000502 10175062512 015260 0ustar00mesmes000000 000000 PARSE ERROR: Argument: -f (--floatTest) More than one valid value parsed from string '4..2' Brief USAGE: ../examples/test2 [-f ] -i -s [-A] [-C] [-B] [--] [--version] [-h] ... For complete USAGE and HELP type: ../examples/test2 --help tclap-1.2.1/tests/test26.sh000755 000765 000765 00000000225 10176527006 015075 0ustar00mesmes000000 000000 #!/bin/sh # failure ../examples/test2 -i 2 -f 4..2 -s asdf asdf > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test26.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test27.out000644 000765 000765 00000000503 10175062512 015262 0ustar00mesmes000000 000000 PARSE ERROR: Argument: -f (--floatTest) More than one valid value parsed from string '4.0.2' Brief USAGE: ../examples/test2 [-f ] -i -s [-A] [-C] [-B] [--] [--version] [-h] ... For complete USAGE and HELP type: ../examples/test2 --help tclap-1.2.1/tests/test27.sh000755 000765 000765 00000000226 10176527006 015077 0ustar00mesmes000000 000000 #!/bin/sh # failure ../examples/test2 -i 2 -f 4.0.2 -s asdf asdf > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test27.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test28.out000644 000765 000765 00000000472 10175062512 015270 0ustar00mesmes000000 000000 PARSE ERROR: Argument: -i (--intTest) Couldn't read argument value from string '2a' Brief USAGE: ../examples/test2 [-f ] -i -s [-A] [-C] [-B] [--] [--version] [-h] ... For complete USAGE and HELP type: ../examples/test2 --help tclap-1.2.1/tests/test28.sh000755 000765 000765 00000000225 10176527006 015077 0ustar00mesmes000000 000000 #!/bin/sh # failure ../examples/test2 -i 2a -f 4.2 -s asdf asdf > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test28.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test29.out000644 000765 000765 00000000473 11105117502 015264 0ustar00mesmes000000 000000 PARSE ERROR: Argument: -i (--intTest) Couldn't read argument value from string '0xA' Brief USAGE: ../examples/test2 [-f ] -i -s [-A] [-C] [-B] [--] [--version] [-h] ... For complete USAGE and HELP type: ../examples/test2 --help tclap-1.2.1/tests/test29.sh000755 000765 000765 00000000316 11105117502 015066 0ustar00mesmes000000 000000 #!/bin/sh # failure... no hex here, but see test19.cpp for how to use hex ../examples/test2 -i 0xA -f 4.2 -s asdf asdf > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test29.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test3.out000644 000765 000765 00000000045 10136053222 015170 0ustar00mesmes000000 000000 My name (spelled backwards) is: ekim tclap-1.2.1/tests/test3.sh000755 000765 000765 00000000205 10176527006 015006 0ustar00mesmes000000 000000 #!/bin/sh # success ../examples/test1 -n mike -r > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test3.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test30.out000644 000765 000765 00000000473 10175062512 015262 0ustar00mesmes000000 000000 PARSE ERROR: Argument: -i (--intTest) Couldn't read argument value from string '2.1' Brief USAGE: ../examples/test2 [-f ] -i -s [-A] [-C] [-B] [--] [--version] [-h] ... For complete USAGE and HELP type: ../examples/test2 --help tclap-1.2.1/tests/test30.sh000755 000765 000765 00000000226 10176527006 015071 0ustar00mesmes000000 000000 #!/bin/sh # failure ../examples/test2 -i 2.1 -f 4.2 -s asdf asdf > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test30.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test31.out000644 000765 000765 00000000555 10175062512 015264 0ustar00mesmes000000 000000 PARSE ERROR: Argument: -i (--intTest) Couldn't read argument value from string '9a' Brief USAGE: ../examples/test3 [-f=] ... [-i=] ... --stringTest= [-B] [--] [--version] [-h] ... For complete USAGE and HELP type: ../examples/test3 --help tclap-1.2.1/tests/test31.sh000755 000765 000765 00000000230 10176527006 015065 0ustar00mesmes000000 000000 #!/bin/sh # failure ../examples/test3 -i=9a -i=1 -s=asdf asdf asdf > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test31.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test32.out000644 000765 000765 00000000566 10175062512 015267 0ustar00mesmes000000 000000 PARSE ERROR: Argument: -f (--floatTest) More than one valid value parsed from string '1.0.0' Brief USAGE: ../examples/test3 [-f=] ... [-i=] ... --stringTest= [-B] [--] [--version] [-h] ... For complete USAGE and HELP type: ../examples/test3 --help tclap-1.2.1/tests/test32.sh000755 000765 000765 00000000233 10176527006 015071 0ustar00mesmes000000 000000 #!/bin/sh # failure ../examples/test3 -f=9 -f=1.0.0 -s=asdf asdf asdf > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test32.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test33.out000644 000765 000765 00000000174 10174077511 015267 0ustar00mesmes000000 000000 for J: 0 o 1 t for A OR B we got : asdf for string C we got : fdas for string D we got : 1 for E or F or G we got: blah tclap-1.2.1/tests/test33.sh000755 000765 000765 00000000251 10176527006 015072 0ustar00mesmes000000 000000 #!/bin/sh # success ../examples/test5 -a asdf -c fdas --eee blah --ddd -j o --jjj t > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test33.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test34.out000644 000765 000765 00000000042 10071671434 015262 0ustar00mesmes000000 000000 My name is homer My name is homer tclap-1.2.1/tests/test34.sh000755 000765 000765 00000000207 10176527006 015074 0ustar00mesmes000000 000000 #!/bin/sh # success ../examples/test6 -n homer 2 > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test34.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test35.out000644 000765 000765 00000000460 10175062512 015263 0ustar00mesmes000000 000000 PARSE ERROR: Argument: -n (--name) Value 'mike' does not meet constraint: homer|marge|bart|lisa|maggie Brief USAGE: ../examples/test6 -n [--] [--version] [-h] <1|2|3> For complete USAGE and HELP type: ../examples/test6 --help tclap-1.2.1/tests/test35.sh000755 000765 000765 00000000206 10176527006 015074 0ustar00mesmes000000 000000 #!/bin/sh # failure ../examples/test6 -n mike 2 > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test35.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test36.out000644 000765 000765 00000000424 10175062512 015264 0ustar00mesmes000000 000000 PARSE ERROR: Argument: (--times) Value '6' does not meet constraint: 1|2|3 Brief USAGE: ../examples/test6 -n [--] [--version] [-h] <1|2|3> For complete USAGE and HELP type: ../examples/test6 --help tclap-1.2.1/tests/test36.sh000755 000765 000765 00000000207 10176527006 015076 0ustar00mesmes000000 000000 #!/bin/sh # failure ../examples/test6 -n homer 6 > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test36.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test37.out000644 000765 000765 00000000074 10071671434 015272 0ustar00mesmes000000 000000 Got num 2 Got num 1 Got num 3 Got name homer Got name marge tclap-1.2.1/tests/test37.sh000755 000765 000765 00000000223 10176527006 015075 0ustar00mesmes000000 000000 #!/bin/sh # success ../examples/test7 -n homer 2 -n marge 1 3 > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test37.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test38.out000644 000765 000765 00000001675 10175062512 015277 0ustar00mesmes000000 000000 PARSE ERROR: Argument: -n (--name) Value 'mike' does not meet constraint: homer|marge|bart|lisa|maggie Brief USAGE: ThisIsAVeryLongProgramNameDesignedToTestSpacePrintWhichUsedToHaveProblem sWithLongProgramNamesIThinkItIsNowL ongEnough [-l ] [-u ] [-b ] [-z ] [-x ] [-s ] [-d] [-g ] [-f ] -n ... [--] [--version] [-h] <1|2|3> ... For complete USAGE and HELP type: ThisIsAVeryLongProgramNameDesignedToTestSpacePrintWhichUsedToHaveProblemsWithLongProgramNamesIThinkItIsNowLongEnough --help tclap-1.2.1/tests/test38.sh000755 000765 000765 00000000210 10176527006 015072 0ustar00mesmes000000 000000 #!/bin/sh # failure ../examples/test7 -n mike 2 1 > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test38.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test39.out000644 000765 000765 00000001641 10175062512 015271 0ustar00mesmes000000 000000 PARSE ERROR: Argument: (--times) Value '6' does not meet constraint: 1|2|3 Brief USAGE: ThisIsAVeryLongProgramNameDesignedToTestSpacePrintWhichUsedToHaveProblem sWithLongProgramNamesIThinkItIsNowL ongEnough [-l ] [-u ] [-b ] [-z ] [-x ] [-s ] [-d] [-g ] [-f ] -n ... [--] [--version] [-h] <1|2|3> ... For complete USAGE and HELP type: ThisIsAVeryLongProgramNameDesignedToTestSpacePrintWhichUsedToHaveProblemsWithLongProgramNamesIThinkItIsNowLongEnough --help tclap-1.2.1/tests/test39.sh000755 000765 000765 00000000221 10176527006 015075 0ustar00mesmes000000 000000 #!/bin/sh # failure ../examples/test7 2 -n homer -n bart 6 > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test39.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test4.out000644 000765 000765 00000000311 10523207254 015173 0ustar00mesmes000000 000000 PARSE ERROR: Required argument missing: name Brief USAGE: ../examples/test1 [-r] -n [--] [--version] [-h] For complete USAGE and HELP type: ../examples/test1 --help tclap-1.2.1/tests/test4.sh000755 000765 000765 00000000172 10176527006 015012 0ustar00mesmes000000 000000 #!/bin/sh # failure ../examples/test1 > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test4.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test40.out000644 000765 000765 00000000662 10175062512 015263 0ustar00mesmes000000 000000 USAGE: ../examples/test1 [-r] -n [--] [--version] [-h] Where: -r, --reverse Print name backwards -n , --name (required) Name to print --, --ignore_rest Ignores the rest of the labeled arguments following this flag. --version Displays version information and exits. -h, --help Displays usage information and exits. Command description message tclap-1.2.1/tests/test40.sh000755 000765 000765 00000000203 10176527006 015065 0ustar00mesmes000000 000000 #!/bin/sh # success ../examples/test1 --help > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test40.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test41.out000644 000765 000765 00000001511 10175062512 015256 0ustar00mesmes000000 000000 USAGE: ../examples/test2 [-f ] -i -s [-A] [-C] [-B] [--] [--version] [-h] ... Where: -f , --floatTest float test -i , --intTest (required) integer test -s , --stringTest (required) string test -A, --existTestA tests for the existence of A -C, --existTestC tests for the existence of C -B, --existTestB tests for the existence of B --, --ignore_rest Ignores the rest of the labeled arguments following this flag. --version Displays version information and exits. -h, --help Displays usage information and exits. (required) unlabeld test (accepted multiple times) file names this is a message tclap-1.2.1/tests/test41.sh000755 000765 000765 00000000203 10176527006 015066 0ustar00mesmes000000 000000 #!/bin/sh # success ../examples/test2 --help > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test41.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test42.out000644 000765 000765 00000001536 10672115754 015277 0ustar00mesmes000000 000000 USAGE: ../examples/test3 [-f=] ... [-i=] ... --stringTest= [-B] [--] [--version] [-h] ... Where: -f=, --floatTest= (accepted multiple times) multi float test -i=, --intTest= (accepted multiple times) multi int test --stringTest= (required) string test -B, --existTestB exist Test B --, --ignore_rest Ignores the rest of the labeled arguments following this flag. --version Displays version information and exits. -h, --help Displays usage information and exits. (required) unlabeled test one (required) unlabeled test two (accepted multiple times) file names this is a message tclap-1.2.1/tests/test42.sh000755 000765 000765 00000000203 10176527006 015067 0ustar00mesmes000000 000000 #!/bin/sh # success ../examples/test3 --help > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test42.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test43.out000644 000765 000765 00000000474 10175062512 015267 0ustar00mesmes000000 000000 my usage message: -A, --sA (exist Test A) -B, --sB (exist Test B) -s , --Bs ((required) string test) --, --ignore_rest (Ignores the rest of the labeled arguments following this flag.) --version (Displays version information and exits.) -h, --help (Displays usage information and exits.) tclap-1.2.1/tests/test43.sh000755 000765 000765 00000000203 10176527006 015070 0ustar00mesmes000000 000000 #!/bin/sh # success ../examples/test4 --help > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test43.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test44.out000644 000765 000765 00000002063 10175062512 015264 0ustar00mesmes000000 000000 USAGE: ../examples/test5 {-a |-b } {--eee |--fff |-g } {-i ... |-j ... } [--ddd] -c [--] [--version] [-h] Where: -a , --aaa (OR required) or test a -- OR -- -b , --bbb (OR required) or test b --eee (OR required) e test -- OR -- --fff (OR required) f test -- OR -- -g , --ggg (OR required) g test -i , --iii (accepted multiple times) (OR required) or test i -- OR -- -j , --jjj (accepted multiple times) (OR required) or test j --ddd d test -c , --ccc (required) c test --, --ignore_rest Ignores the rest of the labeled arguments following this flag. --version Displays version information and exits. -h, --help Displays usage information and exits. this is a message tclap-1.2.1/tests/test44.sh000755 000765 000765 00000000203 10176527006 015071 0ustar00mesmes000000 000000 #!/bin/sh # success ../examples/test5 --help > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test44.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test45.out000644 000765 000765 00000001035 10175062512 015263 0ustar00mesmes000000 000000 USAGE: ../examples/test6 -n [--] [--version] [-h] <1|2|3> Where: -n , --name (required) Name to print --, --ignore_rest Ignores the rest of the labeled arguments following this flag. --version Displays version information and exits. -h, --help Displays usage information and exits. <1|2|3> (required) Number of times to print Command description message tclap-1.2.1/tests/test45.sh000755 000765 000765 00000000203 10176527006 015072 0ustar00mesmes000000 000000 #!/bin/sh # success ../examples/test6 --help > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test45.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test46.out000644 000765 000765 00000004163 11007772133 015273 0ustar00mesmes000000 000000 USAGE: ThisIsAVeryLongProgramNameDesignedToTestSpacePrintWhichUsedToHaveProblem sWithLongProgramNamesIThinkItIsNowL ongEnough [-l ] [-u ] [-b ] [-z ] [-x ] [-s ] [-d] [-g ] [-f ] -n ... [--] [--version] [-h] <1|2|3> ... Where: -l , --limit Max number of alignments allowed -u , --upperBound upper percentage bound -b , --lowerBound lower percentage bound -z , --filename2 Sequence 2 filename (FASTA format) -x , --filename1 Sequence 1 filename (FASTA format) -s , --scoring--Matrix Scoring Matrix name -d, --isDna The input sequences are DNA -g , --gap-Extend The cost for each extension of a gap -f , --gapCreate The cost of creating a gap -n , --name (accepted multiple times) (required) Name to print. This is a long, nonsensical message to test line wrapping. Hopefully it works. --, --ignore_rest Ignores the rest of the labeled arguments following this flag. --version Displays version information and exits. -h, --help Displays usage information and exits. <1|2|3> (accepted multiple times) Number of times to print Command description message. This is a long multi-line message meant to test line wrapping. This is more text that doesn't really do anything besides take up lots of space that otherwise might be used for something real. That should be enough, don't you think? tclap-1.2.1/tests/test46.sh000755 000765 000765 00000000203 10176527006 015073 0ustar00mesmes000000 000000 #!/bin/sh # success ../examples/test7 --help > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test46.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test47.out000644 000765 000765 00000000220 10120732742 015257 0ustar00mesmes000000 000000 [-i] 0 9 [-i] 1 8 [ ] 0 bart for string we got : bill for ulabeled one we got : homer for ulabeled two we got : marge for bool B we got : 1 tclap-1.2.1/tests/test47.sh000755 000765 000765 00000000241 10176527006 015076 0ustar00mesmes000000 000000 #!/bin/sh # success ../examples/test8 -s=bill -i=9 -i=8 -B homer marge bart > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test47.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test48.out000644 000765 000765 00000000223 10120732742 015263 0ustar00mesmes000000 000000 [ ] 0 bart [ ] 1 one [ ] 2 two for string we got : aaa for ulabeled one we got : homer for ulabeled two we got : marge for bool B we got : 0 tclap-1.2.1/tests/test48.sh000755 000765 000765 00000000237 10176527006 015104 0ustar00mesmes000000 000000 #!/bin/sh # success ../examples/test8 -s=aaa homer marge bart -- one two > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test48.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test49.out000644 000765 000765 00000000543 10175062512 015272 0ustar00mesmes000000 000000 PARSE ERROR: Argument: -s (--stringTest) Couldn't find delimiter for this argument! Brief USAGE: ../examples/test8 [-f=] ... [-i=] ... -s= [-B] [--] [--version] [-h] ... For complete USAGE and HELP type: ../examples/test8 --help tclap-1.2.1/tests/test49.sh000755 000765 000765 00000000237 10176527006 015105 0ustar00mesmes000000 000000 #!/bin/sh # failure ../examples/test8 -s bbb homer marge bart -- -hv two > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test49.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test5.out000644 000765 000765 00000000263 07643072711 015211 0ustar00mesmes000000 000000 0 bart 1 lisa for float we got : 3.7 for int we got : 10 for string we got : homer for ulabeled we got : marge for bool A we got : 0 for bool B we got : 0 for bool C we got : 0 tclap-1.2.1/tests/test5.sh000755 000765 000765 00000000231 10176527006 015007 0ustar00mesmes000000 000000 #!/bin/sh # success ../examples/test2 -i 10 -s homer marge bart lisa > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test5.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test50.out000644 000765 000765 00000000543 10175062512 015262 0ustar00mesmes000000 000000 PARSE ERROR: Argument: -s (--stringTest) Couldn't find delimiter for this argument! Brief USAGE: ../examples/test8 [-f=] ... [-i=] ... -s= [-B] [--] [--version] [-h] ... For complete USAGE and HELP type: ../examples/test8 --help tclap-1.2.1/tests/test50.sh000755 000765 000765 00000000220 10176527006 015065 0ustar00mesmes000000 000000 #!/bin/sh # failure ../examples/test8 -s one homer -B -Bh > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test50.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test51.out000644 000765 000765 00000000501 10523207254 015256 0ustar00mesmes000000 000000 PARSE ERROR: Required argument missing: unTest2 Brief USAGE: ../examples/test8 [-f=] ... [-i=] ... -s= [-B] [--] [--version] [-h] ... For complete USAGE and HELP type: ../examples/test8 --help tclap-1.2.1/tests/test51.sh000755 000765 000765 00000000214 10176527006 015071 0ustar00mesmes000000 000000 #!/bin/sh # failure ../examples/test8 -s=one homer -B > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test51.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test52.out000644 000765 000765 00000000543 10175062512 015264 0ustar00mesmes000000 000000 PARSE ERROR: Argument: -i (--intTest) Couldn't read argument value from string '9a' Brief USAGE: ../examples/test8 [-f=] ... [-i=] ... -s= [-B] [--] [--version] [-h] ... For complete USAGE and HELP type: ../examples/test8 --help tclap-1.2.1/tests/test52.sh000755 000765 000765 00000000230 10176527006 015070 0ustar00mesmes000000 000000 #!/bin/sh # failure ../examples/test8 -i=9a -i=1 -s=asdf asdf asdf > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test52.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test53.out000644 000765 000765 00000000554 10175062512 015267 0ustar00mesmes000000 000000 PARSE ERROR: Argument: -f (--floatTest) More than one valid value parsed from string '1.0.0' Brief USAGE: ../examples/test8 [-f=] ... [-i=] ... -s= [-B] [--] [--version] [-h] ... For complete USAGE and HELP type: ../examples/test8 --help tclap-1.2.1/tests/test53.sh000755 000765 000765 00000000233 10176527006 015074 0ustar00mesmes000000 000000 #!/bin/sh # failure ../examples/test8 -f=9 -f=1.0.0 -s=asdf asdf asdf > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test53.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test54.out000644 000765 000765 00000001542 10672115754 015277 0ustar00mesmes000000 000000 USAGE: ../examples/test8 [-f=] ... [-i=] ... -s= [-B] [--] [--version] [-h] ... Where: -f=, --floatTest= (accepted multiple times) multi float test -i=, --intTest= (accepted multiple times) multi int test -s=, --stringTest= (required) string test -B, --existTestB exist Test B --, --ignore_rest Ignores the rest of the labeled arguments following this flag. --version Displays version information and exits. -h, --help Displays usage information and exits. (required) unlabeled test one (required) unlabeled test two (accepted multiple times) file names this is a message tclap-1.2.1/tests/test54.sh000755 000765 000765 00000000203 10176527006 015072 0ustar00mesmes000000 000000 #!/bin/sh # success ../examples/test8 --help > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test54.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test55.out000644 000765 000765 00000000203 10155475241 015265 0ustar00mesmes000000 000000 [ ] 0 zero [ ] 1 one for string we got : asdf for ulabeled one we got : - for ulabeled two we got : asdf for bool B we got : 0 tclap-1.2.1/tests/test55.sh000755 000765 000765 00000000235 10176527006 015100 0ustar00mesmes000000 000000 #!/bin/sh # success ../examples/test3 --stringTest=asdf - asdf zero one > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test55.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test56.out000644 000765 000765 00000000253 10155475241 015273 0ustar00mesmes000000 000000 0 one 1 two for float we got : 3.7 for int we got : 1 for string we got : fdsa for ulabeled we got : - for bool A we got : 0 for bool B we got : 0 for bool C we got : 0 tclap-1.2.1/tests/test56.sh000755 000765 000765 00000000222 10176527006 015075 0ustar00mesmes000000 000000 #!/bin/sh # success ../examples/test2 -i 1 - -s fdsa one two > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test56.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test57.out000644 000765 000765 00000000576 11510213177 015276 0ustar00mesmes000000 000000 PARSE ERROR: Argument: -i (--iii) Mutually exclusive argument already set! Brief USAGE: ../examples/test5 {-a |-b } {--eee |--fff |-g } {-i ... |-j ... } [--ddd] -c [--] [--version] [-h] For complete USAGE and HELP type: ../examples/test5 --help tclap-1.2.1/tests/test57.sh000755 000765 000765 00000000427 11510213177 015077 0ustar00mesmes000000 000000 #!/bin/sh # failure # This used to fail on the "Too many arguments!" but now fails sooner, # and on a more approriate error. ../examples/test5 --aaa asdf -c fdas --fff blah -i one -i two -j huh > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test57.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test58.out000644 000765 000765 00000000010 10175041154 015256 0ustar00mesmes000000 000000 FORWARD tclap-1.2.1/tests/test58.sh000755 000765 000765 00000000173 10176527006 015104 0ustar00mesmes000000 000000 #!/bin/sh # success ../examples/test9 > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test58.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test59.out000644 000765 000765 00000000063 10175062512 015270 0ustar00mesmes000000 000000 REVERSE Verbose level: 3 Noise level: 7 Word: blah tclap-1.2.1/tests/test59.sh000755 000765 000765 00000000223 10176527006 015101 0ustar00mesmes000000 000000 #!/bin/sh # success ../examples/test9 -VVV -N --noise -r blah > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test59.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test6.out000644 000765 000765 00000000245 07643072711 015212 0ustar00mesmes000000 000000 for float we got : 3.7 for int we got : 10 for string we got : hello for ulabeled we got : goodbye for bool A we got : 1 for bool B we got : 1 for bool C we got : 1 tclap-1.2.1/tests/test6.sh000755 000765 000765 00000000226 10176527006 015014 0ustar00mesmes000000 000000 #!/bin/sh # success ../examples/test2 -i 10 -s hello goodbye -ABC > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test6.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test60.out000644 000765 000765 00000001002 10175062512 015252 0ustar00mesmes000000 000000 PARSE ERROR: Argument: -r (--reverse) Argument already set! USAGE: ../examples/test9 [-N] ... [-V] ... [-r] [--] Where: -N, --noise (accepted multiple times) Level of noise -V, --verbose (accepted multiple times) Level of verbosity -r, --reverse REVERSE instead of FORWARDS --, --ignore_rest Ignores the rest of the labeled arguments following this flag. a random word Command description message tclap-1.2.1/tests/test60.sh000755 000765 000765 00000000217 10176527006 015074 0ustar00mesmes000000 000000 #!/bin/sh # failure ../examples/test9 -VVV -N --noise -rr > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test60.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test61.out000644 000765 000765 00000000243 10511504413 015254 0ustar00mesmes000000 000000 for float we got : 3.7 for int we got : 10 for string we got : hello for ulabeled we got : -1 -1 for bool A we got : 0 for bool B we got : 0 for bool C we got : 0 tclap-1.2.1/tests/test61.sh000755 000765 000765 00000000320 10511504413 015056 0ustar00mesmes000000 000000 #!/bin/sh # this tests a bug in handling of - chars in Unlabeled args # success ../examples/test2 -i 10 -s hello "-1 -1" > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test61.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test62.out000644 000765 000765 00000000455 10523207523 015267 0ustar00mesmes000000 000000 PARSE ERROR: Required arguments missing: intTest, stringTest, unTest Brief USAGE: ../examples/test2 [-f ] -i -s [-A] [-C] [-B] [--] [--version] [-h] ... For complete USAGE and HELP type: ../examples/test2 --help tclap-1.2.1/tests/test62.sh000755 000765 000765 00000000335 10523207523 015072 0ustar00mesmes000000 000000 #!/bin/sh # this tests whether all required args are listed as # missing when no arguments are specified # failure ../examples/test2 > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test62.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test63.out000644 000765 000765 00000000311 10634326311 015257 0ustar00mesmes000000 000000 PARSE ERROR: Required argument missing: vect Brief USAGE: ../examples/test11 -v <3D vector> [--] [--version] [-h] For complete USAGE and HELP type: ../examples/test11 --help tclap-1.2.1/tests/test63.sh000755 000765 000765 00000000336 10634326311 015074 0ustar00mesmes000000 000000 #!/bin/sh # this tests whether all required args are listed as # missing when no arguments are specified # failure ../examples/test11 > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test63.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test64.out000644 000765 000765 00000000007 10634326311 015262 0ustar00mesmes000000 000000 1 2 3 tclap-1.2.1/tests/test64.sh000755 000765 000765 00000000350 10634326311 015071 0ustar00mesmes000000 000000 #!/bin/sh # this tests whether all required args are listed as # missing when no arguments are specified # failure ../examples/test11 -v "1 2 3" > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test64.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test65.out000644 000765 000765 00000000113 10634326311 015261 0ustar00mesmes000000 000000 1 2 3 4 5 6 7 8 9 -1 0.2 0.4 REVERSED -1 0.2 0.4 7 8 9 4 5 6 1 2 3 tclap-1.2.1/tests/test65.sh000755 000765 000765 00000000424 10634326311 015074 0ustar00mesmes000000 000000 #!/bin/sh # this tests whether all required args are listed as # missing when no arguments are specified # failure ../examples/test12 -v "1 2 3" -v "4 5 6" -v "7 8 9" -v "-1 0.2 0.4" \ > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test65.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test66.out000644 000765 000765 00000000316 10634326311 015267 0ustar00mesmes000000 000000 PARSE ERROR: Required argument missing: vect Brief USAGE: ../examples/test12 -v <3D vector> ... [--] [--version] [-h] For complete USAGE and HELP type: ../examples/test12 --help tclap-1.2.1/tests/test66.sh000755 000765 000765 00000000336 10634326311 015077 0ustar00mesmes000000 000000 #!/bin/sh # this tests whether all required args are listed as # missing when no arguments are specified # failure ../examples/test12 > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test66.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test67.out000644 000765 000765 00000000335 10634326311 015271 0ustar00mesmes000000 000000 PARSE ERROR: Argument: -v (--vect) a 1 0.3 is not a 3D vector Brief USAGE: ../examples/test12 -v <3D vector> ... [--] [--version] [-h] For complete USAGE and HELP type: ../examples/test12 --help tclap-1.2.1/tests/test67.sh000755 000765 000765 00000000352 10634326311 015076 0ustar00mesmes000000 000000 #!/bin/sh # this tests whether all required args are listed as # missing when no arguments are specified # failure ../examples/test12 -v "a 1 0.3" > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test67.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test68.out000644 000765 000765 00000000061 10700362336 015267 0ustar00mesmes000000 000000 module MultiSwtichArg was found 0 times. done... tclap-1.2.1/tests/test68.sh000755 000765 000765 00000000433 10700362336 015100 0ustar00mesmes000000 000000 #!/bin/sh # this tests whether we can parse args from # a vector of strings and that combined switch # handling doesn't get fooled if the delimiter # is in the string # success ../examples/test13 > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test68.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test69.out000644 000765 000765 00000000100 11041142575 015262 0ustar00mesmes000000 000000 error: Couldn't find match for argument for arg Argument: --bob tclap-1.2.1/tests/test69.sh000755 000765 000765 00000000302 11041142575 015074 0ustar00mesmes000000 000000 #!/bin/sh # Checks that parsing exceptions are properly # propagated to the caller. ../examples/test18 --bob > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test69.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test7.out000644 000765 000765 00000001511 10175062512 015200 0ustar00mesmes000000 000000 USAGE: ../examples/test2 [-f ] -i -s [-A] [-C] [-B] [--] [--version] [-h] ... Where: -f , --floatTest float test -i , --intTest (required) integer test -s , --stringTest (required) string test -A, --existTestA tests for the existence of A -C, --existTestC tests for the existence of C -B, --existTestB tests for the existence of B --, --ignore_rest Ignores the rest of the labeled arguments following this flag. --version Displays version information and exits. -h, --help Displays usage information and exits. (required) unlabeld test (accepted multiple times) file names this is a message tclap-1.2.1/tests/test7.sh000755 000765 000765 00000000227 10176527006 015016 0ustar00mesmes000000 000000 #!/bin/sh # success ../examples/test2 -i 10 -s hello goodbye -hABC > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test7.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test70.out000644 000765 000765 00000000516 11052643307 015266 0ustar00mesmes000000 000000 USAGE: ../examples/test18 [--] [--version] [-h] Where: --, --ignore_rest Ignores the rest of the labeled arguments following this flag. --version Displays version information and exits. -h, --help Displays usage information and exits. Command description message Exiting on ExitException. tclap-1.2.1/tests/test70.sh000755 000765 000765 00000000303 11052643307 015066 0ustar00mesmes000000 000000 #!/bin/sh # Checks that parsing exceptions are properly # propagated to the caller. ../examples/test18 --help > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test70.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test71.out000644 000765 000765 00000000016 11105117502 015252 0ustar00mesmes000000 000000 found int: 10 tclap-1.2.1/tests/test71.sh000755 000765 000765 00000000214 11105117502 015060 0ustar00mesmes000000 000000 #!/bin/sh # success test hex ../examples/test19 -i 0xA > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test71.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test72.out000644 000765 000765 00000000016 11105117502 015253 0ustar00mesmes000000 000000 found int: 10 tclap-1.2.1/tests/test72.sh000755 000765 000765 00000000217 11105117502 015064 0ustar00mesmes000000 000000 #!/bin/sh # success test octal ../examples/test19 -i 012 > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test72.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test73.out000644 000765 000765 00000000243 11233653106 015265 0ustar00mesmes000000 000000 for float we got : 3.7 for int we got : 1 for string we got : asdf for ulabeled we got : fff*fff for bool A we got : 0 for bool B we got : 0 for bool C we got : 0 tclap-1.2.1/tests/test73.sh000755 000765 000765 00000000276 11233653106 015101 0ustar00mesmes000000 000000 #!/bin/sh # success tests whether * in UnlabeledValueArg passes ../examples/test2 -i 1 -s asdf fff*fff > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test73.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test74.out000644 000765 000765 00000000337 11510156207 015270 0ustar00mesmes000000 000000 PARSE ERROR: Argument: -b (--btmc) Mutually exclusive argument already set! Brief USAGE: ../examples/test20 {-a|-b} [--] [--version] [-h] For complete USAGE and HELP type: ../examples/test20 --help tclap-1.2.1/tests/test74.sh000755 000765 000765 00000000312 11510156207 015067 0ustar00mesmes000000 000000 #!/bin/sh # failure validates that the correct error message # is displayed for XOR'd args ../examples/test20 -a -b > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test74.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test75.out000644 000765 000765 00000000337 11510156207 015271 0ustar00mesmes000000 000000 PARSE ERROR: Argument: -a (--atmc) Mutually exclusive argument already set! Brief USAGE: ../examples/test20 {-a|-b} [--] [--version] [-h] For complete USAGE and HELP type: ../examples/test20 --help tclap-1.2.1/tests/test75.sh000755 000765 000765 00000000312 11510156207 015070 0ustar00mesmes000000 000000 #!/bin/sh # failure validates that the correct error message # is displayed for XOR'd args ../examples/test20 -b -a > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test75.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test76.out000644 000765 000765 00000000337 11510213177 015272 0ustar00mesmes000000 000000 PARSE ERROR: Argument: -b (--btmc) Mutually exclusive argument already set! Brief USAGE: ../examples/test20 {-a|-b} [--] [--version] [-h] For complete USAGE and HELP type: ../examples/test20 --help tclap-1.2.1/tests/test76.sh000755 000765 000765 00000000310 11510156207 015067 0ustar00mesmes000000 000000 #!/bin/sh # failure validates that the correct error message # is displayed for XOR'd args ../examples/test20 -ba > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test76.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test77.out000644 000765 000765 00000000337 11510156207 015273 0ustar00mesmes000000 000000 PARSE ERROR: Argument: -b (--btmc) Mutually exclusive argument already set! Brief USAGE: ../examples/test20 {-a|-b} [--] [--version] [-h] For complete USAGE and HELP type: ../examples/test20 --help tclap-1.2.1/tests/test77.sh000755 000765 000765 00000000310 11510156207 015070 0ustar00mesmes000000 000000 #!/bin/sh # failure validates that the correct error message # is displayed for XOR'd args ../examples/test20 -ab > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test77.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test78.out000644 000765 000765 00000000045 11552414266 015300 0ustar00mesmes000000 000000 My name (spelled backwards) is: ekim tclap-1.2.1/tests/test78.sh000755 000765 000765 00000000216 11552414266 015106 0ustar00mesmes000000 000000 #!/bin/sh # success ../examples/test21 ~~reverse /n mike > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test78.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test8.out000644 000765 000765 00000000043 07643072712 015211 0ustar00mesmes000000 000000 ../examples/test2 version: 0.99 tclap-1.2.1/tests/test8.sh000755 000765 000765 00000000204 10176527006 015012 0ustar00mesmes000000 000000 #!/bin/sh # success ../examples/test2 --version > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test8.out; then exit 0 else exit 1 fi tclap-1.2.1/tests/test9.out000644 000765 000765 00000000272 07643072712 015216 0ustar00mesmes000000 000000 0 -hv 1 one 2 two for float we got : 3.7 for int we got : 10 for string we got : hello for ulabeled we got : goodbye for bool A we got : 0 for bool B we got : 0 for bool C we got : 0 tclap-1.2.1/tests/test9.sh000755 000765 000765 00000000240 10176527006 015013 0ustar00mesmes000000 000000 #!/bin/sh # success ../examples/test2 -i 10 -s hello goodbye -- -hv one two > tmp.out 2>&1 if cmp -s tmp.out $srcdir/test9.out; then exit 0 else exit 1 fi tclap-1.2.1/msc/examples/000777 000765 000765 00000000000 11552414566 014657 5ustar00mesmes000000 000000 tclap-1.2.1/msc/Makefile.am000644 000765 000765 00000000206 10135567464 015071 0ustar00mesmes000000 000000 SUBDIRS = examples EXTRA_DIST = README\ tclap-beta.ncb\ tclap-beta.sln\ tclap-beta.suo\ tclap-beta.vcproj tclap-1.2.1/msc/Makefile.in000644 000765 000765 00000033436 11552414365 015110 0ustar00mesmes000000 000000 # 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 = msc DIST_COMMON = README $(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 = 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 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) 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@ SUBDIRS = examples EXTRA_DIST = README\ tclap-beta.ncb\ tclap-beta.sln\ tclap-beta.suo\ tclap-beta.vcproj all: all-recursive .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 msc/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu msc/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 # 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) @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 check-am: all-am check: check-recursive all-am: Makefile installdirs: installdirs-recursive installdirs-am: 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) 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 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-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 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: .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \ install-strip .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am check check-am clean clean-generic ctags \ ctags-recursive distclean distclean-generic distclean-tags \ 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 \ installdirs-am maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-generic pdf pdf-am ps ps-am tags \ tags-recursive 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: tclap-1.2.1/msc/README000644 000765 000765 00000001174 10135566623 013716 0ustar00mesmes000000 000000 Disclaimer! =========== The various files included in the subdirectory for provided as a courtesy to Microsoft Visual Studio users. The files were contributed by a thoughtful user and were not created by the authors of this project. Moreover, the (current) authors have no way of maintaining, improving or even using the files. ** This means we can't answer any questions about the files! ** That said, we have several reports of people successfully using the TCLAP library on various Windows platforms. As long as you use a reasonably modern compiler (and Visual C++ apparently is), you shouldn't have any trouble. Good luck! tclap-1.2.1/msc/tclap-beta.ncb000755 000765 000765 00000126000 10135565357 015540 0ustar00mesmes000000 000000 Microsoft C/C++ MSF 7.00 DS+¬8ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÄøÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ”.1ÝöbAà¾ßwˆ\B‚F8«é®9/names/ncb/targetinfo/ncb/moduleinfo/ncb/storeinfo/ncb/iinstdefs/ncb/referenceInfo/ncb/versioninfo/ncb/module/j:\tclap-1.0.0-beta\examples\test1.cpp/ncb/module/j:\tclap-1.0.0-beta\include\tclap\CmdLine.h/ncb/module/j:\tclap-1.0.0-beta\examples\test2.cpp/ncb/module/j:\tclap-1.0.0-beta\examples\test3.cpp/ncb/module/j:\tclap-1.0.0-beta\examples\test4.cpp/ncb/module/j:\tclap-1.0.0-beta\examples\test5.cpp/ncb/module/j:\tclap-1.0.0-beta\examples\test6.cpp/ncb/module/j:\tclap-1.0.0-beta\examples\test7.cpp/ncb/module/j:\tclap-1.0.0-beta\examples\test8.cppåÓE'Ô E i 6 Ó:X œ m¬ñs \ÜHPDüäüHHü$ !" ÝöbAà¾ßwˆ\B‚F8«é®i/names/ncb/targetinfo/ncb/moduleinfo/ncb/storeinfo/ncb/iinstdefs/ncb/referenceInfo/ncb/versioninfoc'6E X åÀ î  (  À å î lap  (  !lap  1lap  lap lap lap \ƒ ² ² À åLAR îY ïlap  Ùlap  älap  *  lap  úlap lap lap  lap lap #]ƒƒƒ5 ² ² ‰ ¾ @ª±`A-;R €   ˆ!@ @@€@@@@ª±`A²* „„ @H ª±`AAR±Ø „ Hª±`APIU „€ @ª±`Aò1 ( ª±`A® @ª±`AK  @ª±`Aè Ø „ Hª±`A‰ î  ( ncb/storeinfo/ncb/iinstdefs/ncb/referenceInfo/ncb/versioninfoc'6E X Hpp 0à% Ro8!#")(p>6%$32.0,oAˆ/dA/JdAˆ/dA/Jdss²²ñƒˆƒˆ²·²·——²·²·—V ²Æ²¿²Æ²¿²²²²² ² ² ² ² ² ²Æö²Ý²Ý²ÆöAAA ¾ @ª±`A-;R €   ˆ!@ @@€@@@@ª±`A²* „„ @H ª±`AAR±Ø „ Hª±`APIU „€ @ª±`Aò1 ( ª±`A® @ åÌú îÀ Ùlap  úlap  lap  Ølap  dû lap lap Zƒ ² ²  å îÀ ïlap  Ùlap  úlap   lap lap >ƒƒ ² ² ª±`AK  @ª±`Aè Ø „ Hª±`AåÀ î … . åÀ î B W  åA" îÀ Ùlap  úlap  lap  Ølap   lap lap Uƒ ² ² ïÙä* (ú!1ØHB15^ôãrôIfÿ9ðŸÃz äÚö#ÍȨ--!B9ï;£ˆ'H(ú°.Èk– 1öµ!å p9ÿ aܘ'î¸'«J Çà'ý/ 7Øø'(^ ((òP(4"Á ²`(Ý* „%1ÙA1:;45      *+&' @ª±`A-;R €   ˆ!@ @@€@@@@ª±`A²* „„ @H ª±`AAR±Ø „ Hª±`APIU „€ @ª±`Aò1 ( ª±`A® @ª±`AK  @ª±`Aè Ø „ Hª±`A”.1ÝöbAà¾ßwˆ\B‚F8«é®9/names/ncb/targetinfo/ncb/moduleinfo/ncb/storeinfo/ncb/iinstdefs/ncb/referenceInfo/ncb/versioninfo/ncb/module/j:\tclap-1.0.0-beta\examples\test1.cpp/ncb/module/j:\tclap-1.0.0-beta\include\tclap\CmdLine.h/ncb/module/j:\tclap-1.0.0-beta\examples\test2.cpp/ncb/module/j:\tclap-1.0.0-beta\examples\test3.cpp/ncb/module/j:\tclap-1.0.0-beta\examples\test4.cpp/ncb/module/j:\tclap-1.0.0-beta\examples\test5.cpp/ncb/module/j:\tclap-1.0.0-beta\examples\test6.cpp/ncb/module/j:\tclap-1.0.0-beta\examples\test7.cpp/ncb/module/j:\tclap-1.0.0-beta\examples\test8.cppåÓE'Ô E i 6 Ó:X œ m5      *+&'¬ñs \ÜHPDüäüHHü  dLine::deleteOnExitVisitor *ptrArg *ptrCmdLine::CmdLineconst std::string &messageconst char delimiter = 32const std::string &version = "none"const std::string &nameCmdLine::~CmdLineCmdLine::addArg *aArg &aCmdLine::xorAddstd::vector &xorsArg &bCmdLine::usageint exitVal = 0CmdLine::versionCmdLine::parseJ:\tclap-1.0.0-beta\msc\examples\test2.vcproj|Debug|Win32J:\tclap-1.0.0-beta\msc\examples\test2.vcproj|Release|Win32j:\tclap-1.0.0-beta\examples\test2.cpp_boolTestB_boolTestC_boolTestA_stringTeststring_intTest_utestparseOptions_floatTestfloatJ:\tclap-1.0.0-beta\msc\examples\test3.vcproj|Debug|Win32J:\tclap-1.0.0-beta\msc\examples\test3.vcproj|Release|Win32j:\tclap-1.0.0-beta\examples\test3.cpp_ztestJ:\tclap-1.0.0-beta\msc\examples\test4.vcproj|Debug|Win32J:\tclap-1.0.0-beta\msc\examples\test4.vcproj|Release|Win32j:\tclap-1.0.0-beta\examples\test4.cppJ:\tclap-1.0.0-beta\msc\examples\test5.vcproj|Debug|Win32J:\tclap-1.0.0-beta\msc\examples\test5.vcproj|Release|Win32j:þïþï O:\Tools\Microsoft Visual Studio .NET 2003\Vc7\vcpackages\prebuilt.ncbJ:\tclap-1.0.0-beta\msc\examples\test1.vcproj|Debug|Win32J:\tclap-1.0.0-beta\msc\examples\test1.vcproj|Release|Win32j:\tclap-1.0.0-beta\examples\test1.cppmainintint argcchar **argvj:\tclap-1.0.0-beta\include\tclap\CmdLine.hTCLAP_CMDLINE_HTCLAPCmdLineCmdLineInterfaceCmdLine::_argListstd::listCmdLine::_progNamestd::stringCmdLine::_messageCmdLine::_versionCmdLine::_numRequiredCmdLine::_delimitercharCmdLine::_xorHandlerXorHandlerCmdLine::_argDeleteOnExitListCmdLine::_visitorDeleteOnExitListstd::listCmdLine::_emptyCombinedboolconst std::string &sCmdLine::_shortUsagevoidstd::ostream &osCmdLine::_longUsageCmdLine::_constructorCm\tclap-1.0.0-beta\examples\test5.cpp_orTest_testc_orTest2_testdJ:\tclap-1.0.0-beta\msc\examples\test6.vcproj|Debug|Win32J:\tclap-1.0.0-beta\msc\examples\test6.vcproj|Release|Win32j:\tclap-1.0.0-beta\examples\test6.cppJ:\tclap-1.0.0-beta\msc\examples\test7.vcproj|Debug|Win32J:\tclap-1.0.0-beta\msc\examples\test7.vcproj|Release|Win32j:\tclap-1.0.0-beta\examples\test7.cppJ:\tclap-1.0.0-beta\msc\examples\test8.vcproj|Debug|Win32J:\tclap-1.0.0-beta\msc\examples\test8.vcproj|Release|Win32j:\tclap-1.0.0-beta\examples\test8.cppDebug|Win32Ñò²åƒz1·(1öß«u äÝÍK  ;dÝ– 5/J„P4Õa±ÈvÙHñ^® <ˆ rî! ²8ÿJ‚* ö¬ ïÚˆØöǶA%úÆòHr ¿—ý-¾£|è sÁ²µVÜBUkkïÙä* (ú!1ØHB15^ôãrôIfÿ9ðŸÃz äÚö#͸!--!B9ïXõ= £('H(úˆ-Èk– 1öµ!å X8ÿ aÜè?î@Ã8 «J ÇHÒ8 ý/ 7Øp?`Ý8 ^ p¸òÈ?4"Á ²Ø?Ý* „%1Ù`Ò8 1:;45      *+&'\ÜHPDüäüHHü  ”.1ÝöbAà¾ßwˆ\B‚F8«é®9/names/ncb/targetinfo/ncb/moduleinfo/ncb/storeinfo/ncb/iinstdefs/ncb/referenceInfo/ncb/versioninfo/ncb/module/j:\tclap-1.0.0-beta\examples\test1.cpp/ncb/module/j:\tclap-1.0.0-beta\include\tclap\CmdLine.h/ncb/module/j:\tclap-1.0.0-beta\examples\test2.cpp/ncb/module/j:\tclap-1.0.0-beta\examples\test3.cpp/ncb/module/j:\tclap-1.0.0-beta\examples\test4.cpp/ncb/module/j:\tclap-1.0.0-beta\examples\test5.cpp/ncb/module/j:\tclap-1.0.0-beta\examples\test6.cpp/ncb/module/j:\tclap-1.0.0-beta\examples\test7.cpp/ncb/module/j:\tclap-1.0.0-beta\examples\test8.cppåÓE'Ô E i 6 Ó:X œ m¬ñs \ÜHPDüäüHHü# !" $tclap-1.2.1/msc/tclap-beta.sln000755 000765 000765 00000010647 10135565357 015603 0ustar00mesmes000000 000000 Microsoft Visual Studio Solution File, Format Version 8.00 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test1", "examples\test1.vcproj", "{BEAE199F-D6F3-499A-9478-AD81FFDC9449}" ProjectSection(ProjectDependencies) = postProject EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test2", "examples\test2.vcproj", "{BEAE199F-D6F3-499A-9478-AD81FFDC9449}" ProjectSection(ProjectDependencies) = postProject EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test3", "examples\test3.vcproj", "{BEAE199F-D6F3-499A-9478-AD81FFDC9449}" ProjectSection(ProjectDependencies) = postProject EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test4", "examples\test4.vcproj", "{BEAE199F-D6F3-499A-9478-AD81FFDC9449}" ProjectSection(ProjectDependencies) = postProject {BEAE199F-D6F3-499A-9478-AD81FFDC9449} = {BEAE199F-D6F3-499A-9478-AD81FFDC9449} EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test5", "examples\test5.vcproj", "{BEAE199F-D6F3-499A-9478-AD81FFDC9449}" ProjectSection(ProjectDependencies) = postProject EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test6", "examples\test6.vcproj", "{BEAE199F-D6F3-499A-9478-AD81FFDC9449}" ProjectSection(ProjectDependencies) = postProject EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test7", "examples\test7.vcproj", "{BEAE199F-D6F3-499A-9478-AD81FFDC9449}" ProjectSection(ProjectDependencies) = postProject EndProjectSection EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test8", "examples\test8.vcproj", "{BEAE199F-D6F3-499A-9478-AD81FFDC9449}" ProjectSection(ProjectDependencies) = postProject EndProjectSection EndProject Global GlobalSection(SolutionConfiguration) = preSolution Debug = Debug Release = Release EndGlobalSection GlobalSection(ProjectConfiguration) = postSolution {BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Debug.ActiveCfg = Debug|Win32 {BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Debug.Build.0 = Debug|Win32 {BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Release.ActiveCfg = Release|Win32 {BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Release.Build.0 = Release|Win32 {BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Debug.ActiveCfg = Debug|Win32 {BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Debug.Build.0 = Debug|Win32 {BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Release.ActiveCfg = Release|Win32 {BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Release.Build.0 = Release|Win32 {BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Debug.ActiveCfg = Debug|Win32 {BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Debug.Build.0 = Debug|Win32 {BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Release.ActiveCfg = Release|Win32 {BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Release.Build.0 = Release|Win32 {BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Debug.ActiveCfg = Debug|Win32 {BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Debug.Build.0 = Debug|Win32 {BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Release.ActiveCfg = Release|Win32 {BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Release.Build.0 = Release|Win32 {BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Debug.ActiveCfg = Debug|Win32 {BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Debug.Build.0 = Debug|Win32 {BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Release.ActiveCfg = Release|Win32 {BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Release.Build.0 = Release|Win32 {BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Debug.ActiveCfg = Debug|Win32 {BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Debug.Build.0 = Debug|Win32 {BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Release.ActiveCfg = Release|Win32 {BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Release.Build.0 = Release|Win32 {BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Debug.ActiveCfg = Debug|Win32 {BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Debug.Build.0 = Debug|Win32 {BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Release.ActiveCfg = Release|Win32 {BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Release.Build.0 = Release|Win32 {BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Debug.ActiveCfg = Debug|Win32 {BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Debug.Build.0 = Debug|Win32 {BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Release.ActiveCfg = Release|Win32 {BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Release.Build.0 = Release|Win32 EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution EndGlobalSection GlobalSection(ExtensibilityAddIns) = postSolution EndGlobalSection EndGlobal tclap-1.2.1/msc/tclap-beta.suo000755 000765 000765 00000060000 10135565357 015601 0ustar00mesmes000000 000000 ÐÏࡱá>þÿ þÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿýÿÿÿ  þÿÿÿþÿÿÿ"þÿÿÿÿÿÿÿÿÿÿÿþÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ'()*+,-.ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿRoot EntryÿÿÿÿÿÿÿÿÓã½)«Ä@$ProjInfoExÿÿÿÿÿÿÿÿTaskListUserTasks$ÿÿÿÿIToolboxService ÿÿÿÿÂþÿÿÿþÿÿÿþÿÿÿþÿÿÿþÿÿÿþÿÿÿ þÿÿÿþÿÿÿþÿÿÿþÿÿÿþÿÿÿþÿÿÿþÿÿÿ !"#$%&þÿÿÿ()*+,-./0þÿÿÿþÿÿÿ3456789:;<þÿÿÿ>?@ABCDEFGHþÿÿÿJKLMNOPQRSTUþÿÿÿWXYZ[\]^_`þÿÿÿbcdefghijklþÿÿÿnopqrstuvwþÿÿÿyz{|}~€•šv»~HŠâ7x;µæfðC Device ControlsCrystal ReportsData XML Schema Dialog EditorMobile Web Forms Web Forms Components Windows FormsHTMLClipboard RingGeneral2J:\tclap-1.0.0-beta\msc\aIVSMDPropertyBrowser*ÿÿÿÿþÿÿÿDebuggerWatches ÿÿÿÿÿÿÿÿDebuggerBreakpoints(ÿÿÿÿÿÿÿÿ>DebuggerExceptions&ÿÿÿÿÿÿÿÿta\pO:\Tools\Microsoft Visual Studio .NET 2003\Vc7\crt\src\~O:\Tools\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\src\mfc\~O:\Tools\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\src\atl\ET 2003\Vc7\atlmfc\src\atlDebuggerFindSource&ÿÿÿÿ ÿÿÿÿ ŒDebuggerFindSymbol&ÿÿÿÿÿÿÿÿÿÿÿÿDebuggerMemoryWindows,ÿÿÿÿÿÿÿÿÿÿÿÿTExternalFilesProjectContents:ÿÿÿÿÿÿÿÿÿÿÿÿd]= ÿÿ&ˆ;¤  <¤  {BEAÍ«4ï¾­ÞJPÍ«4ï¾­ÞNSܾï MŠ%˜¿Ÿøyç%Ò¯##G¶åá}'bm4Élü #Oÿ‡øÏ¤E test6“ test7 test8“tclDocumentWindowPositions0 ÿÿÿÿ DocumentWindowUserData.ÿÿÿÿÿÿÿÿÿÿÿÿSolutionConfiguration, ÿÿÿÿ&ÄObjMgrContentsÿÿÿÿÿÿÿÿÿÿÿÿæap-beta¹ test1Ó test2ã test3“ test4‹ test56F3-499A-9478Q \J:\tclap-1.0.0-beta\msc\examples\test1.vcproj\J:\tclap-1.0.0-beta\msc\examples\test2.vcproj\J:\tclap-1.0.0-beta\msc\examples\test3.vcproj\J:\tclap-1.0.0-beta\msc\examples\test4.vcproj\J:\tclap-1.0.0-beta\msc\examples\test5.vcproj\J:\tclap-1.0.0-beta\msc\examples\test6.vcproj\J:\tclap-1.0.0-beta\msc\examples\test7.vcproj\J:\tclap-1.0.0-beta\msc\examples\test8.vcprojt7.vcprojDebug|Win32DebugSettingsClassViewContents$ÿÿÿÿþÿÿÿProjExplorerState$ÿÿÿÿÿÿÿÿ&UnloadedProjects"ÿÿÿÿÿÿÿÿÿÿÿÿþÿÿÿtclap-beta ÿÿÿÿ'lô.õ.ö. ø.÷.ù.ú.û.ü.ý. ÿ.,GeneralConfigSettingsVCBscMakeTool(EndConfigPropertiesRelease|Win32DebugSettingsô.õ.ö. ø.÷.ù.ú.û.ü.ý. ÿ.,GeneralConfigSettingsVCBscMakeTool(EndConfigPropertiesXÏ Debug|Win32DebugSettingsô.õ.ö.-u -n mike ø.÷.ù.ú.û.ü.ý. ÿ.,GeneralConfigSettingsVCBscMakeTool(EndConfigPropertiesRelease|Win32DebugSetTaskListShortcuts$ÿÿÿÿÿÿÿÿÿÿÿÿ1test1 ÿÿÿÿÿÿÿÿÿÿÿÿ2˜test2 ÿÿÿÿ=ètest3 ÿÿÿÿÿÿÿÿÿÿÿÿItingsô.õ.ö.-u -n mike ø.÷.ù.ú.û.ü.ý. ÿ.,GeneralConfigSettingsVCBscMakeTool(EndConfigProperties,GeneralConfigSettiDebug|Win32DebugSettingsô.õ.ö.>-i 10 -s homer marge bart lisa ø.÷.ù.ú.û.ü.ý. ÿ.,GeneralConfigSettingsVCBscMakeTool(EndConfigPropertiesRelease|Win32DebugSettingsô.õ.ö.>-i 10 -s homer marge bart lisa ø.÷.ù.ú.û.ü.ý. ÿ.,GeneralConfigSettingsVCBscMakeTool(EndConfigProperties,GeneralConDebug|Win32DebugSettingsô.õ.ö.L-s=bill -i=9 -i=8 -B homer marge bart ø.÷.ù.ú.û.ü.ý. ÿ.,GeneralConfigSettingsVCBscMakeTool(EndConfigPropertiesRelease|Win32DebugSettingsô.õ.ö.L-s=bill -i=9 -i=8 -B homer marge bart ø.÷.ù.ú.û.ü.ý. ÿ.,GeneralConfigSettingsVCBscMakeTool(EndConfigProperties,GeneralConfigSettingsVCBDebug|Win32DebugSettingsô.õ.ö.-BA --Bs asdf ø.÷.ù.ú.û.ü.ý. ÿ.,GeneralConfigSettingsVCBscMakeTool(EndConfigPropertiesRelease|Win32DebugSettingsô.õ.ö.-BA --Bs asdf ø.÷.ù.ú.û.ü.ý. ÿ.,GeneralConfigSettingsVCBscMakeTool(EndConfigProperties,GeneralConfiDebug|Win32DebugSettingsô.õ.ö.6-a asdf -c fdas --eee blah ø.÷.ù.ú.û.ü.ý. ÿ.,GeneralConfigSettingsVCBscMakeTool(EndConfigPropertiesRelease|Win32DebugSettingsô.õ.ö.6-a asdf -c fdas --eee blah ø.÷.ù.ú.û.ü.ý. ÿ.,GeneralConfigSettingsVCBscMakeTool(EndConfigProperties,GeneralConfigSettiDebug|Win32DebugSettingsô.õ.ö.-n homer 2 ø.÷.ù.ú.û.ü.ý. ÿ.,GeneralConfigSettingsVCBscMakeTool(EndConfigPropertiesRelease|Win32DebugSettingsô.õ.ö.-n homer 2 ø.÷.ù.ú.û.ü.ý. ÿ.,GeneralConfigSettingsVCBscMakeTool(EndConfigProperties,GeneralConfigSettiDebug|Win32DebugSettingsô.õ.ö.0-n homer 2 -n marge 1 3 ø.÷.ù.ú.û.ü.ý. ÿ.,GeneralConfigSettingsVCBscMakeTool(EndConfigPropertiesRelease|Win32DebugSettingsô.õ.ö.0-n homer 2 -n marge 1 3 ‚ƒþÿÿÿ…†‡ˆ‰Š‹ŒŽþÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿø.÷.ù.ú.û.ü.ý. ÿ.,GeneralConfigSettingsVCBscMakeTool(EndConfigProperties,GeneralConfigSettingsDebug|Win32DebugSettingsô.õ.ö.L-s=bill -i=9 -i=8 -B homer marge bart ø.÷.ù.ú.û.ü.ý. ÿ.,GeneralConfigSettingsVCBscMakeTool(EndConfigPropertiesRelease|Win32DebugSettingsô.õ.ö.L-s=bill -i=9 -i=8 -B homer marge bart ø.÷.ù.ú.û.ü.ý. ÿ.,GeneralConfigSettingsVCBscMakeTool(EndConfigProperties,GeneralConfigSettingsVCBscMakeTool(EndConfigPropertiestx=Debug;={BEAE199F-D6F3-MultiStartupProj=;4{BEAE199F-D6F3-499A-9478-AD81FFDC9449}.dwStartupOpt=;StartupProject=&{BEAE199F-D6F3-499A-9478-AD81FFDC9449};A{BEAE199F-D6F3-test4 ÿÿÿÿV¤test5 ÿÿÿÿÿÿÿÿÿÿÿÿaØtest6 ÿÿÿÿm˜test7 ÿÿÿÿÿÿÿÿxÌBatchBldCtx=Release;?{BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Release|Win32.fBatchBld=;?{BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Debug|Win32.BatchBldCtx=Debug;={BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Debug|Win32.fBatchBld=;4{BEAE199F-D6F3-499A-9478-AD81FFDC9449}.dwStartupOpt=;A{BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Release|Win32.BatchBldCtx=Release;?{BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Release|Win32.fBatchBld=;?{BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Debug|Win32.BatchBldCtx=Debug;={BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Debug|Win32.fBatchBld=; ActiveCfg=Debug;.fBatchBld=;4{BEAE199F-D6F3-499A-9478-AD81FFDC9449}.dwStartupOpt=;A{BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Release|Win32.BatchBldCtx=Release;?{BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Release|Win32.fBatchBld=;?{BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Debug|Win32.BatchBldCtx=Debug;={BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Debug|Win32.fBatchBld=;4{BEAE199F-D6F3-499A-9478-AD81FFDC9449}.dwStartupOpt=;A{BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Release|Win32.BatchBldCtx=Release;?{BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Release|Win32.fBatchBld=;?{BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Debug|Win32.BatchBldCtx=Debug;={BEAE199F-D6F3-499test8 ÿÿÿÿÿÿÿÿÿÿÿÿ„ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿA-9478-AD81FFDC9449}.Debug|Win32.fBatchBld=;4{BEAE199F-D6F3-499A-9478-AD81FFDC9449}.dwStartupOpt=;A{BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Release|Win32.BatchBldCtx=Release;?{BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Release|Win32.fBatchBld=;?{BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Debug|Win32.BatchBldCtx=Debug;={BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Debug|Win32.fBatchBld=;4{BEAE199F-D6F3-499A-9478-AD81FFDC9449}.dwStartupOpt=;A{BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Release|Win32.BatchBldCtx=Release;?{BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Release|Win32.fBatchBld=;ldCtx=Debug;={BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Debug|Win32.fBatchBld=;4{BEAE199F-D6F3-499A-9478-AD81FFDC9449}.dwStartupOpt=;A{BEAE199F-D6F3-4MultiStartupProj=;4{BEAE199F-D6F3-499A-9478-AD81FFDC9449}.dwStartupOpt=;StartupProject=&{BEAE199F-D6F3-499A-9478-AD81FFDC9449};A{BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Release|Win32.BatchBldCtx=Release;?{BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Release|Win32.fBatchBld=;?{BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Debug|Win32.BatchBldCtx=Debug;={BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Debug|Win32.fBatchBld=;4{BEAE199F-D6F3-499A-9478-AD81FFDC9449}.dwStartupOpt=;A{BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Release|Win32.BatchBldCtx=Release;?{BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Release|Win32.fBatchBld=;?{BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Debug|Win32.BatchBldCtx=Debug;={BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Debug|Win32.fBatchBld=;4{BEAE199F-D6F3-499A-9478-AD81FFDC9449}.dwStartupOpt=;A{BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Release|Win32.BatchBldCtx=Release;?{BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Release|Win32.fBatchBld=;?{BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Debug|Win32.BatchBldCtx=Debug;={BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Debug|Win32.fBatchBld=;4{BEAE199F-D6F3-499A-9478-AD81FFDC9449}.dwStartupOpt=;A{BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Release|Win32.BatchBldCtx=Release;?{BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Release|Win32.fBatchBld=;?{BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Debug|Win32.BatchBldCtx=Debug;={BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Debug|Win32.fBatchBld=;4{BEAE199F-D6F3-499A-9478-AD81FFDC9449}.dwStartupOpt=;A{BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Release|Win32.BatchBldCtx=Release;?{BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Release|Win32.fBatchBld=;?{BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Debug|Win32.BatchBldCtx=Debug;={BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Debug|Win32.fBatchBld=;4{BEAE199F-D6F3-499A-9478-AD81FFDC9449}.dwStartupOpt=;A{BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Release|Win32.BatchBldCtx=Release;?{BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Release|Win32.fBatchBld=;?{BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Debug|Win32.BatchBldCtx=Debug;={BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Debug|Win32.fBatchBld=;4{BEAE199F-D6F3-499A-9478-AD81FFDC9449}.dwStartupOpt=;A{BEAE199F-D6F3-499A-9478-AD81FFDC9449}.Release|Win32.tclap-1.2.1/msc/tclap-beta.vcproj000755 000765 000765 00000005432 10135565357 016306 0ustar00mesmes000000 000000 tclap-1.2.1/msc/examples/Makefile.am000644 000765 000765 00000000331 10135567435 016704 0ustar00mesmes000000 000000 EXTRA_DIST = test1.vcproj\ test2.vcproj\ test3.vcproj\ test4.vcproj\ test5.vcproj\ test6.vcproj\ test7.vcproj\ test8.vcproj tclap-1.2.1/msc/examples/Makefile.in000644 000765 000765 00000020700 11552414365 016714 0ustar00mesmes000000 000000 # 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 = msc/examples DIST_COMMON = $(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 = 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 = test1.vcproj\ test2.vcproj\ test3.vcproj\ test4.vcproj\ test5.vcproj\ test6.vcproj\ test7.vcproj\ test8.vcproj 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 msc/examples/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu msc/examples/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 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 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 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 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: tclap-1.2.1/msc/examples/test1.vcproj000755 000765 000765 00000006613 10135565415 017145 0ustar00mesmes000000 000000 tclap-1.2.1/msc/examples/test2.vcproj000755 000765 000765 00000006613 10135565415 017146 0ustar00mesmes000000 000000 tclap-1.2.1/msc/examples/test3.vcproj000755 000765 000765 00000006613 10135565415 017147 0ustar00mesmes000000 000000 tclap-1.2.1/msc/examples/test4.vcproj000755 000765 000765 00000006613 10135565415 017150 0ustar00mesmes000000 000000 tclap-1.2.1/msc/examples/test5.vcproj000755 000765 000765 00000006613 10135565415 017151 0ustar00mesmes000000 000000 tclap-1.2.1/msc/examples/test6.vcproj000755 000765 000765 00000006613 10135565415 017152 0ustar00mesmes000000 000000 tclap-1.2.1/msc/examples/test7.vcproj000755 000765 000765 00000006613 10135565415 017153 0ustar00mesmes000000 000000 tclap-1.2.1/msc/examples/test8.vcproj000755 000765 000765 00000006613 10135565415 017154 0ustar00mesmes000000 000000 tclap-1.2.1/include/Makefile.am000644 000765 000765 00000000020 07635754201 015722 0ustar00mesmes000000 000000 SUBDIRS = tclap tclap-1.2.1/include/Makefile.in000644 000765 000765 00000033257 11552414365 015752 0ustar00mesmes000000 000000 # 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 = include DIST_COMMON = $(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 = 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 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) 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@ SUBDIRS = tclap all: all-recursive .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 include/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu include/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 # 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) @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 check-am: all-am check: check-recursive all-am: Makefile installdirs: installdirs-recursive installdirs-am: 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) 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 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-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 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: .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \ install-strip .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am check check-am clean clean-generic ctags \ ctags-recursive distclean distclean-generic distclean-tags \ 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 \ installdirs-am maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-generic pdf pdf-am ps ps-am tags \ tags-recursive 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: tclap-1.2.1/include/tclap/000777 000765 000765 00000000000 11552414564 015003 5ustar00mesmes000000 000000 tclap-1.2.1/include/tclap/Arg.h000644 000765 000765 00000042047 11550443211 015655 0ustar00mesmes000000 000000 // -*- Mode: c++; c-basic-offset: 4; tab-width: 4; -*- /****************************************************************************** * * file: Arg.h * * Copyright (c) 2003, Michael E. Smoot . * Copyright (c) 2004, Michael E. Smoot, Daniel Aarno . * All rights reverved. * * See the file COPYING in the top directory of this distribution for * more information. * * 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. * *****************************************************************************/ #ifndef TCLAP_ARGUMENT_H #define TCLAP_ARGUMENT_H #ifdef HAVE_CONFIG_H #include #else #define HAVE_SSTREAM #endif #include #include #include #include #include #include #if defined(HAVE_SSTREAM) #include typedef std::istringstream istringstream; #elif defined(HAVE_STRSTREAM) #include typedef std::istrstream istringstream; #else #error "Need a stringstream (sstream or strstream) to compile!" #endif #include #include #include #include #include namespace TCLAP { /** * A virtual base class that defines the essential data for all arguments. * This class, or one of its existing children, must be subclassed to do * anything. */ class Arg { private: /** * Prevent accidental copying. */ Arg(const Arg& rhs); /** * Prevent accidental copying. */ Arg& operator=(const Arg& rhs); /** * Indicates whether the rest of the arguments should be ignored. */ static bool& ignoreRestRef() { static bool ign = false; return ign; } /** * The delimiter that separates an argument flag/name from the * value. */ static char& delimiterRef() { static char delim = ' '; return delim; } protected: /** * The single char flag used to identify the argument. * This value (preceded by a dash {-}), can be used to identify * an argument on the command line. The _flag can be blank, * in fact this is how unlabeled args work. Unlabeled args must * override appropriate functions to get correct handling. Note * that the _flag does NOT include the dash as part of the flag. */ std::string _flag; /** * A single work namd indentifying the argument. * This value (preceded by two dashed {--}) can also be used * to identify an argument on the command line. Note that the * _name does NOT include the two dashes as part of the _name. The * _name cannot be blank. */ std::string _name; /** * Description of the argument. */ std::string _description; /** * Indicating whether the argument is required. */ bool _required; /** * Label to be used in usage description. Normally set to * "required", but can be changed when necessary. */ std::string _requireLabel; /** * Indicates whether a value is required for the argument. * Note that the value may be required but the argument/value * combination may not be, as specified by _required. */ bool _valueRequired; /** * Indicates whether the argument has been set. * Indicates that a value on the command line has matched the * name/flag of this argument and the values have been set accordingly. */ bool _alreadySet; /** * A pointer to a vistitor object. * The visitor allows special handling to occur as soon as the * argument is matched. This defaults to NULL and should not * be used unless absolutely necessary. */ Visitor* _visitor; /** * Whether this argument can be ignored, if desired. */ bool _ignoreable; /** * Indicates that the arg was set as part of an XOR and not on the * command line. */ bool _xorSet; bool _acceptsMultipleValues; /** * Performs the special handling described by the Vistitor. */ void _checkWithVisitor() const; /** * Primary constructor. YOU (yes you) should NEVER construct an Arg * directly, this is a base class that is extended by various children * that are meant to be used. Use SwitchArg, ValueArg, MultiArg, * UnlabeledValueArg, or UnlabeledMultiArg instead. * * \param flag - The flag identifying the argument. * \param name - The name identifying the argument. * \param desc - The description of the argument, used in the usage. * \param req - Whether the argument is required. * \param valreq - Whether the a value is required for the argument. * \param v - The visitor checked by the argument. Defaults to NULL. */ Arg( const std::string& flag, const std::string& name, const std::string& desc, bool req, bool valreq, Visitor* v = NULL ); public: /** * Destructor. */ virtual ~Arg(); /** * Adds this to the specified list of Args. * \param argList - The list to add this to. */ virtual void addToList( std::list& argList ) const; /** * Begin ignoring arguments since the "--" argument was specified. */ static void beginIgnoring() { ignoreRestRef() = true; } /** * Whether to ignore the rest. */ static bool ignoreRest() { return ignoreRestRef(); } /** * The delimiter that separates an argument flag/name from the * value. */ static char delimiter() { return delimiterRef(); } /** * The char used as a place holder when SwitchArgs are combined. * Currently set to the bell char (ASCII 7). */ static char blankChar() { return (char)7; } /** * The char that indicates the beginning of a flag. Defaults to '-', but * clients can define TCLAP_FLAGSTARTCHAR to override. */ #ifndef TCLAP_FLAGSTARTCHAR #define TCLAP_FLAGSTARTCHAR '-' #endif static char flagStartChar() { return TCLAP_FLAGSTARTCHAR; } /** * The sting that indicates the beginning of a flag. Defaults to "-", but * clients can define TCLAP_FLAGSTARTSTRING to override. Should be the same * as TCLAP_FLAGSTARTCHAR. */ #ifndef TCLAP_FLAGSTARTSTRING #define TCLAP_FLAGSTARTSTRING "-" #endif static const std::string flagStartString() { return TCLAP_FLAGSTARTSTRING; } /** * The sting that indicates the beginning of a name. Defaults to "--", but * clients can define TCLAP_NAMESTARTSTRING to override. */ #ifndef TCLAP_NAMESTARTSTRING #define TCLAP_NAMESTARTSTRING "--" #endif static const std::string nameStartString() { return TCLAP_NAMESTARTSTRING; } /** * The name used to identify the ignore rest argument. */ static const std::string ignoreNameString() { return "ignore_rest"; } /** * Sets the delimiter for all arguments. * \param c - The character that delimits flags/names from values. */ static void setDelimiter( char c ) { delimiterRef() = c; } /** * Pure virtual method meant to handle the parsing and value assignment * of the string on the command line. * \param i - Pointer the the current argument in the list. * \param args - Mutable list of strings. What is * passed in from main. */ virtual bool processArg(int *i, std::vector& args) = 0; /** * Operator ==. * Equality operator. Must be virtual to handle unlabeled args. * \param a - The Arg to be compared to this. */ virtual bool operator==(const Arg& a) const; /** * Returns the argument flag. */ const std::string& getFlag() const; /** * Returns the argument name. */ const std::string& getName() const; /** * Returns the argument description. */ std::string getDescription() const; /** * Indicates whether the argument is required. */ virtual bool isRequired() const; /** * Sets _required to true. This is used by the XorHandler. * You really have no reason to ever use it. */ void forceRequired(); /** * Sets the _alreadySet value to true. This is used by the XorHandler. * You really have no reason to ever use it. */ void xorSet(); /** * Indicates whether a value must be specified for argument. */ bool isValueRequired() const; /** * Indicates whether the argument has already been set. Only true * if the arg has been matched on the command line. */ bool isSet() const; /** * Indicates whether the argument can be ignored, if desired. */ bool isIgnoreable() const; /** * A method that tests whether a string matches this argument. * This is generally called by the processArg() method. This * method could be re-implemented by a child to change how * arguments are specified on the command line. * \param s - The string to be compared to the flag/name to determine * whether the arg matches. */ virtual bool argMatches( const std::string& s ) const; /** * Returns a simple string representation of the argument. * Primarily for debugging. */ virtual std::string toString() const; /** * Returns a short ID for the usage. * \param valueId - The value used in the id. */ virtual std::string shortID( const std::string& valueId = "val" ) const; /** * Returns a long ID for the usage. * \param valueId - The value used in the id. */ virtual std::string longID( const std::string& valueId = "val" ) const; /** * Trims a value off of the flag. * \param flag - The string from which the flag and value will be * trimmed. Contains the flag once the value has been trimmed. * \param value - Where the value trimmed from the string will * be stored. */ virtual void trimFlag( std::string& flag, std::string& value ) const; /** * Checks whether a given string has blank chars, indicating that * it is a combined SwitchArg. If so, return true, otherwise return * false. * \param s - string to be checked. */ bool _hasBlanks( const std::string& s ) const; /** * Sets the requireLabel. Used by XorHandler. You shouldn't ever * use this. * \param s - Set the requireLabel to this value. */ void setRequireLabel( const std::string& s ); /** * Used for MultiArgs and XorHandler to determine whether args * can still be set. */ virtual bool allowMore(); /** * Use by output classes to determine whether an Arg accepts * multiple values. */ virtual bool acceptsMultipleValues(); /** * Clears the Arg object and allows it to be reused by new * command lines. */ virtual void reset(); }; /** * Typedef of an Arg list iterator. */ typedef std::list::iterator ArgListIterator; /** * Typedef of an Arg vector iterator. */ typedef std::vector::iterator ArgVectorIterator; /** * Typedef of a Visitor list iterator. */ typedef std::list::iterator VisitorListIterator; /* * Extract a value of type T from it's string representation contained * in strVal. The ValueLike parameter used to select the correct * specialization of ExtractValue depending on the value traits of T. * ValueLike traits use operator>> to assign the value from strVal. */ template void ExtractValue(T &destVal, const std::string& strVal, ValueLike vl) { static_cast(vl); // Avoid warning about unused vl std::istringstream is(strVal); int valuesRead = 0; while ( is.good() ) { if ( is.peek() != EOF ) #ifdef TCLAP_SETBASE_ZERO is >> std::setbase(0) >> destVal; #else is >> destVal; #endif else break; valuesRead++; } if ( is.fail() ) throw( ArgParseException("Couldn't read argument value " "from string '" + strVal + "'")); if ( valuesRead > 1 ) throw( ArgParseException("More than one valid value parsed from " "string '" + strVal + "'")); } /* * Extract a value of type T from it's string representation contained * in strVal. The ValueLike parameter used to select the correct * specialization of ExtractValue depending on the value traits of T. * StringLike uses assignment (operator=) to assign from strVal. */ template void ExtractValue(T &destVal, const std::string& strVal, StringLike sl) { static_cast(sl); // Avoid warning about unused sl SetString(destVal, strVal); } ////////////////////////////////////////////////////////////////////// //BEGIN Arg.cpp ////////////////////////////////////////////////////////////////////// inline Arg::Arg(const std::string& flag, const std::string& name, const std::string& desc, bool req, bool valreq, Visitor* v) : _flag(flag), _name(name), _description(desc), _required(req), _requireLabel("required"), _valueRequired(valreq), _alreadySet(false), _visitor( v ), _ignoreable(true), _xorSet(false), _acceptsMultipleValues(false) { if ( _flag.length() > 1 ) throw(SpecificationException( "Argument flag can only be one character long", toString() ) ); if ( _name != ignoreNameString() && ( _flag == Arg::flagStartString() || _flag == Arg::nameStartString() || _flag == " " ) ) throw(SpecificationException("Argument flag cannot be either '" + Arg::flagStartString() + "' or '" + Arg::nameStartString() + "' or a space.", toString() ) ); if ( ( _name.substr( 0, Arg::flagStartString().length() ) == Arg::flagStartString() ) || ( _name.substr( 0, Arg::nameStartString().length() ) == Arg::nameStartString() ) || ( _name.find( " ", 0 ) != std::string::npos ) ) throw(SpecificationException("Argument name begin with either '" + Arg::flagStartString() + "' or '" + Arg::nameStartString() + "' or space.", toString() ) ); } inline Arg::~Arg() { } inline std::string Arg::shortID( const std::string& valueId ) const { std::string id = ""; if ( _flag != "" ) id = Arg::flagStartString() + _flag; else id = Arg::nameStartString() + _name; if ( _valueRequired ) id += std::string( 1, Arg::delimiter() ) + "<" + valueId + ">"; if ( !_required ) id = "[" + id + "]"; return id; } inline std::string Arg::longID( const std::string& valueId ) const { std::string id = ""; if ( _flag != "" ) { id += Arg::flagStartString() + _flag; if ( _valueRequired ) id += std::string( 1, Arg::delimiter() ) + "<" + valueId + ">"; id += ", "; } id += Arg::nameStartString() + _name; if ( _valueRequired ) id += std::string( 1, Arg::delimiter() ) + "<" + valueId + ">"; return id; } inline bool Arg::operator==(const Arg& a) const { if ( ( _flag != "" && _flag == a._flag ) || _name == a._name) return true; else return false; } inline std::string Arg::getDescription() const { std::string desc = ""; if ( _required ) desc = "(" + _requireLabel + ") "; // if ( _valueRequired ) // desc += "(value required) "; desc += _description; return desc; } inline const std::string& Arg::getFlag() const { return _flag; } inline const std::string& Arg::getName() const { return _name; } inline bool Arg::isRequired() const { return _required; } inline bool Arg::isValueRequired() const { return _valueRequired; } inline bool Arg::isSet() const { if ( _alreadySet && !_xorSet ) return true; else return false; } inline bool Arg::isIgnoreable() const { return _ignoreable; } inline void Arg::setRequireLabel( const std::string& s) { _requireLabel = s; } inline bool Arg::argMatches( const std::string& argFlag ) const { if ( ( argFlag == Arg::flagStartString() + _flag && _flag != "" ) || argFlag == Arg::nameStartString() + _name ) return true; else return false; } inline std::string Arg::toString() const { std::string s = ""; if ( _flag != "" ) s += Arg::flagStartString() + _flag + " "; s += "(" + Arg::nameStartString() + _name + ")"; return s; } inline void Arg::_checkWithVisitor() const { if ( _visitor != NULL ) _visitor->visit(); } /** * Implementation of trimFlag. */ inline void Arg::trimFlag(std::string& flag, std::string& value) const { int stop = 0; for ( int i = 0; static_cast(i) < flag.length(); i++ ) if ( flag[i] == Arg::delimiter() ) { stop = i; break; } if ( stop > 1 ) { value = flag.substr(stop+1); flag = flag.substr(0,stop); } } /** * Implementation of _hasBlanks. */ inline bool Arg::_hasBlanks( const std::string& s ) const { for ( int i = 1; static_cast(i) < s.length(); i++ ) if ( s[i] == Arg::blankChar() ) return true; return false; } inline void Arg::forceRequired() { _required = true; } inline void Arg::xorSet() { _alreadySet = true; _xorSet = true; } /** * Overridden by Args that need to added to the end of the list. */ inline void Arg::addToList( std::list& argList ) const { argList.push_front( const_cast(this) ); } inline bool Arg::allowMore() { return false; } inline bool Arg::acceptsMultipleValues() { return _acceptsMultipleValues; } inline void Arg::reset() { _xorSet = false; _alreadySet = false; } ////////////////////////////////////////////////////////////////////// //END Arg.cpp ////////////////////////////////////////////////////////////////////// } //namespace TCLAP #endif tclap-1.2.1/include/tclap/ArgException.h000644 000765 000765 00000011664 10565613410 017542 0ustar00mesmes000000 000000 // -*- Mode: c++; c-basic-offset: 4; tab-width: 4; -*- /****************************************************************************** * * file: ArgException.h * * Copyright (c) 2003, Michael E. Smoot . * All rights reverved. * * See the file COPYING in the top directory of this distribution for * more information. * * 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. * *****************************************************************************/ #ifndef TCLAP_ARG_EXCEPTION_H #define TCLAP_ARG_EXCEPTION_H #include #include namespace TCLAP { /** * A simple class that defines and argument exception. Should be caught * whenever a CmdLine is created and parsed. */ class ArgException : public std::exception { public: /** * Constructor. * \param text - The text of the exception. * \param id - The text identifying the argument source. * \param td - Text describing the type of ArgException it is. * of the exception. */ ArgException( const std::string& text = "undefined exception", const std::string& id = "undefined", const std::string& td = "Generic ArgException") : std::exception(), _errorText(text), _argId( id ), _typeDescription(td) { } /** * Destructor. */ virtual ~ArgException() throw() { } /** * Returns the error text. */ std::string error() const { return ( _errorText ); } /** * Returns the argument id. */ std::string argId() const { if ( _argId == "undefined" ) return " "; else return ( "Argument: " + _argId ); } /** * Returns the arg id and error text. */ const char* what() const throw() { static std::string ex; ex = _argId + " -- " + _errorText; return ex.c_str(); } /** * Returns the type of the exception. Used to explain and distinguish * between different child exceptions. */ std::string typeDescription() const { return _typeDescription; } private: /** * The text of the exception message. */ std::string _errorText; /** * The argument related to this exception. */ std::string _argId; /** * Describes the type of the exception. Used to distinguish * between different child exceptions. */ std::string _typeDescription; }; /** * Thrown from within the child Arg classes when it fails to properly * parse the argument it has been passed. */ class ArgParseException : public ArgException { public: /** * Constructor. * \param text - The text of the exception. * \param id - The text identifying the argument source * of the exception. */ ArgParseException( const std::string& text = "undefined exception", const std::string& id = "undefined" ) : ArgException( text, id, std::string( "Exception found while parsing " ) + std::string( "the value the Arg has been passed." )) { } }; /** * Thrown from CmdLine when the arguments on the command line are not * properly specified, e.g. too many arguments, required argument missing, etc. */ class CmdLineParseException : public ArgException { public: /** * Constructor. * \param text - The text of the exception. * \param id - The text identifying the argument source * of the exception. */ CmdLineParseException( const std::string& text = "undefined exception", const std::string& id = "undefined" ) : ArgException( text, id, std::string( "Exception found when the values ") + std::string( "on the command line do not meet ") + std::string( "the requirements of the defined ") + std::string( "Args." )) { } }; /** * Thrown from Arg and CmdLine when an Arg is improperly specified, e.g. * same flag as another Arg, same name, etc. */ class SpecificationException : public ArgException { public: /** * Constructor. * \param text - The text of the exception. * \param id - The text identifying the argument source * of the exception. */ SpecificationException( const std::string& text = "undefined exception", const std::string& id = "undefined" ) : ArgException( text, id, std::string("Exception found when an Arg object ")+ std::string("is improperly defined by the ") + std::string("developer." )) { } }; class ExitException { public: ExitException(int estat) : _estat(estat) {} int getExitStatus() const { return _estat; } private: int _estat; }; } // namespace TCLAP #endif tclap-1.2.1/include/tclap/ArgTraits.h000644 000765 000765 00000005103 11514356455 017051 0ustar00mesmes000000 000000 // -*- Mode: c++; c-basic-offset: 4; tab-width: 4; -*- /****************************************************************************** * * file: ArgTraits.h * * Copyright (c) 2007, Daniel Aarno, Michael E. Smoot . * All rights reverved. * * See the file COPYING in the top directory of this distribution for * more information. * * 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. * *****************************************************************************/ // This is an internal tclap file, you should probably not have to // include this directly #ifndef TCLAP_ARGTRAITS_H #define TCLAP_ARGTRAITS_H namespace TCLAP { // We use two empty structs to get compile type specialization // function to work /** * A value like argument value type is a value that can be set using * operator>>. This is the default value type. */ struct ValueLike { typedef ValueLike ValueCategory; virtual ~ValueLike() {} }; /** * A string like argument value type is a value that can be set using * operator=(string). Usefull if the value type contains spaces which * will be broken up into individual tokens by operator>>. */ struct StringLike { virtual ~StringLike() {} }; /** * A class can inherit from this object to make it have string like * traits. This is a compile time thing and does not add any overhead * to the inherenting class. */ struct StringLikeTrait { typedef StringLike ValueCategory; virtual ~StringLikeTrait() {} }; /** * A class can inherit from this object to make it have value like * traits. This is a compile time thing and does not add any overhead * to the inherenting class. */ struct ValueLikeTrait { typedef ValueLike ValueCategory; virtual ~ValueLikeTrait() {} }; /** * Arg traits are used to get compile type specialization when parsing * argument values. Using an ArgTraits you can specify the way that * values gets assigned to any particular type during parsing. The two * supported types are StringLike and ValueLike. */ template struct ArgTraits { typedef typename T::ValueCategory ValueCategory; virtual ~ArgTraits() {} //typedef ValueLike ValueCategory; }; #endif } // namespace tclap-1.2.1/include/tclap/CmdLine.h000644 000765 000765 00000033242 11550117757 016471 0ustar00mesmes000000 000000 // -*- Mode: c++; c-basic-offset: 4; tab-width: 4; -*- /****************************************************************************** * * file: CmdLine.h * * Copyright (c) 2003, Michael E. Smoot . * Copyright (c) 2004, Michael E. Smoot, Daniel Aarno. * All rights reverved. * * See the file COPYING in the top directory of this distribution for * more information. * * 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. * *****************************************************************************/ #ifndef TCLAP_CMDLINE_H #define TCLAP_CMDLINE_H #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include // Needed for exit(), which isn't defined in some envs. namespace TCLAP { template void DelPtr(T ptr) { delete ptr; } template void ClearContainer(C &c) { typedef typename C::value_type value_type; std::for_each(c.begin(), c.end(), DelPtr); c.clear(); } /** * The base class that manages the command line definition and passes * along the parsing to the appropriate Arg classes. */ class CmdLine : public CmdLineInterface { protected: /** * The list of arguments that will be tested against the * command line. */ std::list _argList; /** * The name of the program. Set to argv[0]. */ std::string _progName; /** * A message used to describe the program. Used in the usage output. */ std::string _message; /** * The version to be displayed with the --version switch. */ std::string _version; /** * The number of arguments that are required to be present on * the command line. This is set dynamically, based on the * Args added to the CmdLine object. */ int _numRequired; /** * The character that is used to separate the argument flag/name * from the value. Defaults to ' ' (space). */ char _delimiter; /** * The handler that manages xoring lists of args. */ XorHandler _xorHandler; /** * A list of Args to be explicitly deleted when the destructor * is called. At the moment, this only includes the three default * Args. */ std::list _argDeleteOnExitList; /** * A list of Visitors to be explicitly deleted when the destructor * is called. At the moment, these are the Vistors created for the * default Args. */ std::list _visitorDeleteOnExitList; /** * Object that handles all output for the CmdLine. */ CmdLineOutput* _output; /** * Should CmdLine handle parsing exceptions internally? */ bool _handleExceptions; /** * Throws an exception listing the missing args. */ void missingArgsException(); /** * Checks whether a name/flag string matches entirely matches * the Arg::blankChar. Used when multiple switches are combined * into a single argument. * \param s - The message to be used in the usage. */ bool _emptyCombined(const std::string& s); /** * Perform a delete ptr; operation on ptr when this object is deleted. */ void deleteOnExit(Arg* ptr); /** * Perform a delete ptr; operation on ptr when this object is deleted. */ void deleteOnExit(Visitor* ptr); private: /** * Prevent accidental copying. */ CmdLine(const CmdLine& rhs); CmdLine& operator=(const CmdLine& rhs); /** * Encapsulates the code common to the constructors * (which is all of it). */ void _constructor(); /** * Is set to true when a user sets the output object. We use this so * that we don't delete objects that are created outside of this lib. */ bool _userSetOutput; /** * Whether or not to automatically create help and version switches. */ bool _helpAndVersion; public: /** * Command line constructor. Defines how the arguments will be * parsed. * \param message - The message to be used in the usage * output. * \param delimiter - The character that is used to separate * the argument flag/name from the value. Defaults to ' ' (space). * \param version - The version number to be used in the * --version switch. * \param helpAndVersion - Whether or not to create the Help and * Version switches. Defaults to true. */ CmdLine(const std::string& message, const char delimiter = ' ', const std::string& version = "none", bool helpAndVersion = true); /** * Deletes any resources allocated by a CmdLine object. */ virtual ~CmdLine(); /** * Adds an argument to the list of arguments to be parsed. * \param a - Argument to be added. */ void add( Arg& a ); /** * An alternative add. Functionally identical. * \param a - Argument to be added. */ void add( Arg* a ); /** * Add two Args that will be xor'd. If this method is used, add does * not need to be called. * \param a - Argument to be added and xor'd. * \param b - Argument to be added and xor'd. */ void xorAdd( Arg& a, Arg& b ); /** * Add a list of Args that will be xor'd. If this method is used, * add does not need to be called. * \param xors - List of Args to be added and xor'd. */ void xorAdd( std::vector& xors ); /** * Parses the command line. * \param argc - Number of arguments. * \param argv - Array of arguments. */ void parse(int argc, const char * const * argv); /** * Parses the command line. * \param args - A vector of strings representing the args. * args[0] is still the program name. */ void parse(std::vector& args); /** * */ CmdLineOutput* getOutput(); /** * */ void setOutput(CmdLineOutput* co); /** * */ std::string& getVersion(); /** * */ std::string& getProgramName(); /** * */ std::list& getArgList(); /** * */ XorHandler& getXorHandler(); /** * */ char getDelimiter(); /** * */ std::string& getMessage(); /** * */ bool hasHelpAndVersion(); /** * Disables or enables CmdLine's internal parsing exception handling. * * @param state Should CmdLine handle parsing exceptions internally? */ void setExceptionHandling(const bool state); /** * Returns the current state of the internal exception handling. * * @retval true Parsing exceptions are handled internally. * @retval false Parsing exceptions are propagated to the caller. */ bool getExceptionHandling() const; /** * Allows the CmdLine object to be reused. */ void reset(); }; /////////////////////////////////////////////////////////////////////////////// //Begin CmdLine.cpp /////////////////////////////////////////////////////////////////////////////// inline CmdLine::CmdLine(const std::string& m, char delim, const std::string& v, bool help ) : _argList(std::list()), _progName("not_set_yet"), _message(m), _version(v), _numRequired(0), _delimiter(delim), _xorHandler(XorHandler()), _argDeleteOnExitList(std::list()), _visitorDeleteOnExitList(std::list()), _output(0), _handleExceptions(true), _userSetOutput(false), _helpAndVersion(help) { _constructor(); } inline CmdLine::~CmdLine() { ClearContainer(_argDeleteOnExitList); ClearContainer(_visitorDeleteOnExitList); if ( !_userSetOutput ) { delete _output; _output = 0; } } inline void CmdLine::_constructor() { _output = new StdOutput; Arg::setDelimiter( _delimiter ); Visitor* v; if ( _helpAndVersion ) { v = new HelpVisitor( this, &_output ); SwitchArg* help = new SwitchArg("h","help", "Displays usage information and exits.", false, v); add( help ); deleteOnExit(help); deleteOnExit(v); v = new VersionVisitor( this, &_output ); SwitchArg* vers = new SwitchArg("","version", "Displays version information and exits.", false, v); add( vers ); deleteOnExit(vers); deleteOnExit(v); } v = new IgnoreRestVisitor(); SwitchArg* ignore = new SwitchArg(Arg::flagStartString(), Arg::ignoreNameString(), "Ignores the rest of the labeled arguments following this flag.", false, v); add( ignore ); deleteOnExit(ignore); deleteOnExit(v); } inline void CmdLine::xorAdd( std::vector& ors ) { _xorHandler.add( ors ); for (ArgVectorIterator it = ors.begin(); it != ors.end(); it++) { (*it)->forceRequired(); (*it)->setRequireLabel( "OR required" ); add( *it ); } } inline void CmdLine::xorAdd( Arg& a, Arg& b ) { std::vector ors; ors.push_back( &a ); ors.push_back( &b ); xorAdd( ors ); } inline void CmdLine::add( Arg& a ) { add( &a ); } inline void CmdLine::add( Arg* a ) { for( ArgListIterator it = _argList.begin(); it != _argList.end(); it++ ) if ( *a == *(*it) ) throw( SpecificationException( "Argument with same flag/name already exists!", a->longID() ) ); a->addToList( _argList ); if ( a->isRequired() ) _numRequired++; } inline void CmdLine::parse(int argc, const char * const * argv) { // this step is necessary so that we have easy access to // mutable strings. std::vector args; for (int i = 0; i < argc; i++) args.push_back(argv[i]); parse(args); } inline void CmdLine::parse(std::vector& args) { bool shouldExit = false; int estat = 0; try { _progName = args.front(); args.erase(args.begin()); int requiredCount = 0; for (int i = 0; static_cast(i) < args.size(); i++) { bool matched = false; for (ArgListIterator it = _argList.begin(); it != _argList.end(); it++) { if ( (*it)->processArg( &i, args ) ) { requiredCount += _xorHandler.check( *it ); matched = true; break; } } // checks to see if the argument is an empty combined // switch and if so, then we've actually matched it if ( !matched && _emptyCombined( args[i] ) ) matched = true; if ( !matched && !Arg::ignoreRest() ) throw(CmdLineParseException("Couldn't find match " "for argument", args[i])); } if ( requiredCount < _numRequired ) missingArgsException(); if ( requiredCount > _numRequired ) throw(CmdLineParseException("Too many arguments!")); } catch ( ArgException& e ) { // If we're not handling the exceptions, rethrow. if ( !_handleExceptions) { throw; } try { _output->failure(*this,e); } catch ( ExitException &ee ) { estat = ee.getExitStatus(); shouldExit = true; } } catch (ExitException &ee) { // If we're not handling the exceptions, rethrow. if ( !_handleExceptions) { throw; } estat = ee.getExitStatus(); shouldExit = true; } if (shouldExit) exit(estat); } inline bool CmdLine::_emptyCombined(const std::string& s) { if ( s.length() > 0 && s[0] != Arg::flagStartChar() ) return false; for ( int i = 1; static_cast(i) < s.length(); i++ ) if ( s[i] != Arg::blankChar() ) return false; return true; } inline void CmdLine::missingArgsException() { int count = 0; std::string missingArgList; for (ArgListIterator it = _argList.begin(); it != _argList.end(); it++) { if ( (*it)->isRequired() && !(*it)->isSet() ) { missingArgList += (*it)->getName(); missingArgList += ", "; count++; } } missingArgList = missingArgList.substr(0,missingArgList.length()-2); std::string msg; if ( count > 1 ) msg = "Required arguments missing: "; else msg = "Required argument missing: "; msg += missingArgList; throw(CmdLineParseException(msg)); } inline void CmdLine::deleteOnExit(Arg* ptr) { _argDeleteOnExitList.push_back(ptr); } inline void CmdLine::deleteOnExit(Visitor* ptr) { _visitorDeleteOnExitList.push_back(ptr); } inline CmdLineOutput* CmdLine::getOutput() { return _output; } inline void CmdLine::setOutput(CmdLineOutput* co) { if ( !_userSetOutput ) delete _output; _userSetOutput = true; _output = co; } inline std::string& CmdLine::getVersion() { return _version; } inline std::string& CmdLine::getProgramName() { return _progName; } inline std::list& CmdLine::getArgList() { return _argList; } inline XorHandler& CmdLine::getXorHandler() { return _xorHandler; } inline char CmdLine::getDelimiter() { return _delimiter; } inline std::string& CmdLine::getMessage() { return _message; } inline bool CmdLine::hasHelpAndVersion() { return _helpAndVersion; } inline void CmdLine::setExceptionHandling(const bool state) { _handleExceptions = state; } inline bool CmdLine::getExceptionHandling() const { return _handleExceptions; } inline void CmdLine::reset() { for( ArgListIterator it = _argList.begin(); it != _argList.end(); it++ ) (*it)->reset(); _progName.clear(); } /////////////////////////////////////////////////////////////////////////////// //End CmdLine.cpp /////////////////////////////////////////////////////////////////////////////// } //namespace TCLAP #endif tclap-1.2.1/include/tclap/CmdLineInterface.h000644 000765 000765 00000007053 11131763145 020304 0ustar00mesmes000000 000000 /****************************************************************************** * * file: CmdLineInterface.h * * Copyright (c) 2003, Michael E. Smoot . * Copyright (c) 2004, Michael E. Smoot, Daniel Aarno. * All rights reverved. * * See the file COPYING in the top directory of this distribution for * more information. * * 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. * *****************************************************************************/ #ifndef TCLAP_COMMANDLINE_INTERFACE_H #define TCLAP_COMMANDLINE_INTERFACE_H #include #include #include #include #include namespace TCLAP { class Arg; class CmdLineOutput; class XorHandler; /** * The base class that manages the command line definition and passes * along the parsing to the appropriate Arg classes. */ class CmdLineInterface { public: /** * Destructor */ virtual ~CmdLineInterface() {} /** * Adds an argument to the list of arguments to be parsed. * \param a - Argument to be added. */ virtual void add( Arg& a )=0; /** * An alternative add. Functionally identical. * \param a - Argument to be added. */ virtual void add( Arg* a )=0; /** * Add two Args that will be xor'd. * If this method is used, add does * not need to be called. * \param a - Argument to be added and xor'd. * \param b - Argument to be added and xor'd. */ virtual void xorAdd( Arg& a, Arg& b )=0; /** * Add a list of Args that will be xor'd. If this method is used, * add does not need to be called. * \param xors - List of Args to be added and xor'd. */ virtual void xorAdd( std::vector& xors )=0; /** * Parses the command line. * \param argc - Number of arguments. * \param argv - Array of arguments. */ virtual void parse(int argc, const char * const * argv)=0; /** * Parses the command line. * \param args - A vector of strings representing the args. * args[0] is still the program name. */ void parse(std::vector& args); /** * Returns the CmdLineOutput object. */ virtual CmdLineOutput* getOutput()=0; /** * \param co - CmdLineOutput object that we want to use instead. */ virtual void setOutput(CmdLineOutput* co)=0; /** * Returns the version string. */ virtual std::string& getVersion()=0; /** * Returns the program name string. */ virtual std::string& getProgramName()=0; /** * Returns the argList. */ virtual std::list& getArgList()=0; /** * Returns the XorHandler. */ virtual XorHandler& getXorHandler()=0; /** * Returns the delimiter string. */ virtual char getDelimiter()=0; /** * Returns the message string. */ virtual std::string& getMessage()=0; /** * Indicates whether or not the help and version switches were created * automatically. */ virtual bool hasHelpAndVersion()=0; /** * Resets the instance as if it had just been constructed so that the * instance can be reused. */ virtual void reset()=0; }; } //namespace #endif tclap-1.2.1/include/tclap/CmdLineOutput.h000644 000765 000765 00000003605 10407056223 017700 0ustar00mesmes000000 000000 /****************************************************************************** * * file: CmdLineOutput.h * * Copyright (c) 2004, Michael E. Smoot * All rights reverved. * * See the file COPYING in the top directory of this distribution for * more information. * * 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. * *****************************************************************************/ #ifndef TCLAP_CMDLINEOUTPUT_H #define TCLAP_CMDLINEOUTPUT_H #include #include #include #include #include #include namespace TCLAP { class CmdLineInterface; class ArgException; /** * The interface that any output object must implement. */ class CmdLineOutput { public: /** * Virtual destructor. */ virtual ~CmdLineOutput() {} /** * Generates some sort of output for the USAGE. * \param c - The CmdLine object the output is generated for. */ virtual void usage(CmdLineInterface& c)=0; /** * Generates some sort of output for the version. * \param c - The CmdLine object the output is generated for. */ virtual void version(CmdLineInterface& c)=0; /** * Generates some sort of output for a failure. * \param c - The CmdLine object the output is generated for. * \param e - The ArgException that caused the failure. */ virtual void failure( CmdLineInterface& c, ArgException& e )=0; }; } //namespace TCLAP #endif tclap-1.2.1/include/tclap/Constraint.h000644 000765 000765 00000003410 10376571753 017301 0ustar00mesmes000000 000000 /****************************************************************************** * * file: Constraint.h * * Copyright (c) 2005, Michael E. Smoot * All rights reverved. * * See the file COPYING in the top directory of this distribution for * more information. * * 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. * *****************************************************************************/ #ifndef TCLAP_CONSTRAINT_H #define TCLAP_CONSTRAINT_H #include #include #include #include #include #include namespace TCLAP { /** * The interface that defines the interaction between the Arg and Constraint. */ template class Constraint { public: /** * Returns a description of the Constraint. */ virtual std::string description() const =0; /** * Returns the short ID for the Constraint. */ virtual std::string shortID() const =0; /** * The method used to verify that the value parsed from the command * line meets the constraint. * \param value - The value that will be checked. */ virtual bool check(const T& value) const =0; /** * Destructor. * Silences warnings about Constraint being a base class with virtual * functions but without a virtual destructor. */ virtual ~Constraint() { ; } }; } //namespace TCLAP #endif tclap-1.2.1/include/tclap/DocBookOutput.h000644 000765 000765 00000020246 11550122710 017700 0ustar00mesmes000000 000000 // -*- Mode: c++; c-basic-offset: 4; tab-width: 4; -*- /****************************************************************************** * * file: DocBookOutput.h * * Copyright (c) 2004, Michael E. Smoot * All rights reverved. * * See the file COPYING in the top directory of this distribution for * more information. * * 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. * *****************************************************************************/ #ifndef TCLAP_DOCBOOKOUTPUT_H #define TCLAP_DOCBOOKOUTPUT_H #include #include #include #include #include #include #include #include #include namespace TCLAP { /** * A class that generates DocBook output for usage() method for the * given CmdLine and its Args. */ class DocBookOutput : public CmdLineOutput { public: /** * Prints the usage to stdout. Can be overridden to * produce alternative behavior. * \param c - The CmdLine object the output is generated for. */ virtual void usage(CmdLineInterface& c); /** * Prints the version to stdout. Can be overridden * to produce alternative behavior. * \param c - The CmdLine object the output is generated for. */ virtual void version(CmdLineInterface& c); /** * Prints (to stderr) an error message, short usage * Can be overridden to produce alternative behavior. * \param c - The CmdLine object the output is generated for. * \param e - The ArgException that caused the failure. */ virtual void failure(CmdLineInterface& c, ArgException& e ); protected: /** * Substitutes the char r for string x in string s. * \param s - The string to operate on. * \param r - The char to replace. * \param x - What to replace r with. */ void substituteSpecialChars( std::string& s, char r, std::string& x ); void removeChar( std::string& s, char r); void basename( std::string& s ); void printShortArg(Arg* it); void printLongArg(Arg* it); char theDelimiter; }; inline void DocBookOutput::version(CmdLineInterface& _cmd) { std::cout << _cmd.getVersion() << std::endl; } inline void DocBookOutput::usage(CmdLineInterface& _cmd ) { std::list argList = _cmd.getArgList(); std::string progName = _cmd.getProgramName(); std::string xversion = _cmd.getVersion(); theDelimiter = _cmd.getDelimiter(); XorHandler xorHandler = _cmd.getXorHandler(); std::vector< std::vector > xorList = xorHandler.getXorList(); basename(progName); std::cout << "" << std::endl; std::cout << "" << std::endl << std::endl; std::cout << "" << std::endl; std::cout << "" << std::endl; std::cout << "" << progName << "" << std::endl; std::cout << "1" << std::endl; std::cout << "" << std::endl; std::cout << "" << std::endl; std::cout << "" << progName << "" << std::endl; std::cout << "" << _cmd.getMessage() << "" << std::endl; std::cout << "" << std::endl; std::cout << "" << std::endl; std::cout << "" << std::endl; std::cout << "" << progName << "" << std::endl; // xor for ( int i = 0; (unsigned int)i < xorList.size(); i++ ) { std::cout << "" << std::endl; for ( ArgVectorIterator it = xorList[i].begin(); it != xorList[i].end(); it++ ) printShortArg((*it)); std::cout << "" << std::endl; } // rest of args for (ArgListIterator it = argList.begin(); it != argList.end(); it++) if ( !xorHandler.contains( (*it) ) ) printShortArg((*it)); std::cout << "" << std::endl; std::cout << "" << std::endl; std::cout << "" << std::endl; std::cout << "Description" << std::endl; std::cout << "" << std::endl; std::cout << _cmd.getMessage() << std::endl; std::cout << "" << std::endl; std::cout << "" << std::endl; std::cout << "" << std::endl; std::cout << "Options" << std::endl; std::cout << "" << std::endl; for (ArgListIterator it = argList.begin(); it != argList.end(); it++) printLongArg((*it)); std::cout << "" << std::endl; std::cout << "" << std::endl; std::cout << "" << std::endl; std::cout << "Version" << std::endl; std::cout << "" << std::endl; std::cout << xversion << std::endl; std::cout << "" << std::endl; std::cout << "" << std::endl; std::cout << "" << std::endl; } inline void DocBookOutput::failure( CmdLineInterface& _cmd, ArgException& e ) { static_cast(_cmd); // unused std::cout << e.what() << std::endl; throw ExitException(1); } inline void DocBookOutput::substituteSpecialChars( std::string& s, char r, std::string& x ) { size_t p; while ( (p = s.find_first_of(r)) != std::string::npos ) { s.erase(p,1); s.insert(p,x); } } inline void DocBookOutput::removeChar( std::string& s, char r) { size_t p; while ( (p = s.find_first_of(r)) != std::string::npos ) { s.erase(p,1); } } inline void DocBookOutput::basename( std::string& s ) { size_t p = s.find_last_of('/'); if ( p != std::string::npos ) { s.erase(0, p + 1); } } inline void DocBookOutput::printShortArg(Arg* a) { std::string lt = "<"; std::string gt = ">"; std::string id = a->shortID(); substituteSpecialChars(id,'<',lt); substituteSpecialChars(id,'>',gt); removeChar(id,'['); removeChar(id,']'); std::string choice = "opt"; if ( a->isRequired() ) choice = "plain"; std::cout << "acceptsMultipleValues() ) std::cout << " rep='repeat'"; std::cout << '>'; if ( !a->getFlag().empty() ) std::cout << a->flagStartChar() << a->getFlag(); else std::cout << a->nameStartString() << a->getName(); if ( a->isValueRequired() ) { std::string arg = a->shortID(); removeChar(arg,'['); removeChar(arg,']'); removeChar(arg,'<'); removeChar(arg,'>'); arg.erase(0, arg.find_last_of(theDelimiter) + 1); std::cout << theDelimiter; std::cout << "" << arg << ""; } std::cout << "" << std::endl; } inline void DocBookOutput::printLongArg(Arg* a) { std::string lt = "<"; std::string gt = ">"; std::string desc = a->getDescription(); substituteSpecialChars(desc,'<',lt); substituteSpecialChars(desc,'>',gt); std::cout << "" << std::endl; if ( !a->getFlag().empty() ) { std::cout << "" << std::endl; std::cout << "" << std::endl; std::cout << "" << std::endl; } std::cout << "" << std::endl; std::cout << "" << std::endl; std::cout << "" << std::endl; std::cout << "" << std::endl; std::cout << "" << std::endl; std::cout << desc << std::endl; std::cout << "" << std::endl; std::cout << "" << std::endl; std::cout << "" << std::endl; } } //namespace TCLAP #endif tclap-1.2.1/include/tclap/HelpVisitor.h000644 000765 000765 00000003630 11510144407 017410 0ustar00mesmes000000 000000 /****************************************************************************** * * file: HelpVisitor.h * * Copyright (c) 2003, Michael E. Smoot . * All rights reverved. * * See the file COPYING in the top directory of this distribution for * more information. * * 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. * *****************************************************************************/ #ifndef TCLAP_HELP_VISITOR_H #define TCLAP_HELP_VISITOR_H #include #include #include namespace TCLAP { /** * A Visitor object that calls the usage method of the given CmdLineOutput * object for the specified CmdLine object. */ class HelpVisitor: public Visitor { private: /** * Prevent accidental copying. */ HelpVisitor(const HelpVisitor& rhs); HelpVisitor& operator=(const HelpVisitor& rhs); protected: /** * The CmdLine the output will be generated for. */ CmdLineInterface* _cmd; /** * The output object. */ CmdLineOutput** _out; public: /** * Constructor. * \param cmd - The CmdLine the output will be generated for. * \param out - The type of output. */ HelpVisitor(CmdLineInterface* cmd, CmdLineOutput** out) : Visitor(), _cmd( cmd ), _out( out ) { } /** * Calls the usage method of the CmdLineOutput for the * specified CmdLine. */ void visit() { (*_out)->usage(*_cmd); throw ExitException(0); } }; } #endif tclap-1.2.1/include/tclap/IgnoreRestVisitor.h000644 000765 000765 00000002467 10123064075 020611 0ustar00mesmes000000 000000 /****************************************************************************** * * file: IgnoreRestVisitor.h * * Copyright (c) 2003, Michael E. Smoot . * All rights reverved. * * See the file COPYING in the top directory of this distribution for * more information. * * 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. * *****************************************************************************/ #ifndef TCLAP_IGNORE_REST_VISITOR_H #define TCLAP_IGNORE_REST_VISITOR_H #include #include namespace TCLAP { /** * A Vistor that tells the CmdLine to begin ignoring arguments after * this one is parsed. */ class IgnoreRestVisitor: public Visitor { public: /** * Constructor. */ IgnoreRestVisitor() : Visitor() {} /** * Sets Arg::_ignoreRest. */ void visit() { Arg::beginIgnoring(); } }; } #endif tclap-1.2.1/include/tclap/Makefile.am000644 000765 000765 00000001101 10744230325 017015 0ustar00mesmes000000 000000 libtclapincludedir = $(includedir)/tclap libtclapinclude_HEADERS = \ CmdLineInterface.h \ ArgException.h \ CmdLine.h \ XorHandler.h \ MultiArg.h \ UnlabeledMultiArg.h \ ValueArg.h \ UnlabeledValueArg.h \ Visitor.h Arg.h \ HelpVisitor.h \ SwitchArg.h \ MultiSwitchArg.h \ VersionVisitor.h \ IgnoreRestVisitor.h \ CmdLineOutput.h \ StdOutput.h \ DocBookOutput.h \ ZshCompletionOutput.h \ OptionalUnlabeledTracker.h \ Constraint.h \ ValuesConstraint.h \ ArgTraits.h \ StandardTraits.h tclap-1.2.1/include/tclap/Makefile.in000644 000765 000765 00000027323 11552414365 017052 0ustar00mesmes000000 000000 # 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 = include/tclap DIST_COMMON = $(libtclapinclude_HEADERS) $(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 = 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)$(libtclapincludedir)" libtclapincludeHEADERS_INSTALL = $(INSTALL_HEADER) HEADERS = $(libtclapinclude_HEADERS) ETAGS = etags CTAGS = ctags 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@ libtclapincludedir = $(includedir)/tclap libtclapinclude_HEADERS = \ CmdLineInterface.h \ ArgException.h \ CmdLine.h \ XorHandler.h \ MultiArg.h \ UnlabeledMultiArg.h \ ValueArg.h \ UnlabeledValueArg.h \ Visitor.h Arg.h \ HelpVisitor.h \ SwitchArg.h \ MultiSwitchArg.h \ VersionVisitor.h \ IgnoreRestVisitor.h \ CmdLineOutput.h \ StdOutput.h \ DocBookOutput.h \ ZshCompletionOutput.h \ OptionalUnlabeledTracker.h \ Constraint.h \ ValuesConstraint.h \ ArgTraits.h \ StandardTraits.h 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 include/tclap/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu include/tclap/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 install-libtclapincludeHEADERS: $(libtclapinclude_HEADERS) @$(NORMAL_INSTALL) test -z "$(libtclapincludedir)" || $(MKDIR_P) "$(DESTDIR)$(libtclapincludedir)" @list='$(libtclapinclude_HEADERS)'; for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ f=$(am__strip_dir) \ echo " $(libtclapincludeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(libtclapincludedir)/$$f'"; \ $(libtclapincludeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(libtclapincludedir)/$$f"; \ done uninstall-libtclapincludeHEADERS: @$(NORMAL_UNINSTALL) @list='$(libtclapinclude_HEADERS)'; for p in $$list; do \ f=$(am__strip_dir) \ echo " rm -f '$(DESTDIR)$(libtclapincludedir)/$$f'"; \ rm -f "$(DESTDIR)$(libtclapincludedir)/$$f"; \ 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: $(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; }'`; \ 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: $(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) @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 $(HEADERS) installdirs: for dir in "$(DESTDIR)$(libtclapincludedir)"; 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 mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic distclean-tags dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-libtclapincludeHEADERS 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-libtclapincludeHEADERS .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ ctags distclean distclean-generic distclean-tags 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-libtclapincludeHEADERS \ 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 tags \ uninstall uninstall-am uninstall-libtclapincludeHEADERS # 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: tclap-1.2.1/include/tclap/MultiArg.h000644 000765 000765 00000027355 11510144407 016676 0ustar00mesmes000000 000000 /****************************************************************************** * * file: MultiArg.h * * Copyright (c) 2003, Michael E. Smoot . * Copyright (c) 2004, Michael E. Smoot, Daniel Aarno. * All rights reverved. * * See the file COPYING in the top directory of this distribution for * more information. * * 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. * *****************************************************************************/ #ifndef TCLAP_MULTIPLE_ARGUMENT_H #define TCLAP_MULTIPLE_ARGUMENT_H #include #include #include #include namespace TCLAP { /** * An argument that allows multiple values of type T to be specified. Very * similar to a ValueArg, except a vector of values will be returned * instead of just one. */ template class MultiArg : public Arg { public: typedef std::vector container_type; typedef typename container_type::iterator iterator; typedef typename container_type::const_iterator const_iterator; protected: /** * The list of values parsed from the CmdLine. */ std::vector _values; /** * The description of type T to be used in the usage. */ std::string _typeDesc; /** * A list of constraint on this Arg. */ Constraint* _constraint; /** * Extracts the value from the string. * Attempts to parse string as type T, if this fails an exception * is thrown. * \param val - The string to be read. */ void _extractValue( const std::string& val ); /** * Used by XorHandler to decide whether to keep parsing for this arg. */ bool _allowMore; public: /** * Constructor. * \param flag - The one character flag that identifies this * argument on the command line. * \param name - A one word name for the argument. Can be * used as a long flag on the command line. * \param desc - A description of what the argument is for or * does. * \param req - Whether the argument is required on the command * line. * \param typeDesc - A short, human readable description of the * type that this object expects. This is used in the generation * of the USAGE statement. The goal is to be helpful to the end user * of the program. * \param v - An optional visitor. You probably should not * use this unless you have a very good reason. */ MultiArg( const std::string& flag, const std::string& name, const std::string& desc, bool req, const std::string& typeDesc, Visitor* v = NULL); /** * Constructor. * \param flag - The one character flag that identifies this * argument on the command line. * \param name - A one word name for the argument. Can be * used as a long flag on the command line. * \param desc - A description of what the argument is for or * does. * \param req - Whether the argument is required on the command * line. * \param typeDesc - A short, human readable description of the * type that this object expects. This is used in the generation * of the USAGE statement. The goal is to be helpful to the end user * of the program. * \param parser - A CmdLine parser object to add this Arg to * \param v - An optional visitor. You probably should not * use this unless you have a very good reason. */ MultiArg( const std::string& flag, const std::string& name, const std::string& desc, bool req, const std::string& typeDesc, CmdLineInterface& parser, Visitor* v = NULL ); /** * Constructor. * \param flag - The one character flag that identifies this * argument on the command line. * \param name - A one word name for the argument. Can be * used as a long flag on the command line. * \param desc - A description of what the argument is for or * does. * \param req - Whether the argument is required on the command * line. * \param constraint - A pointer to a Constraint object used * to constrain this Arg. * \param v - An optional visitor. You probably should not * use this unless you have a very good reason. */ MultiArg( const std::string& flag, const std::string& name, const std::string& desc, bool req, Constraint* constraint, Visitor* v = NULL ); /** * Constructor. * \param flag - The one character flag that identifies this * argument on the command line. * \param name - A one word name for the argument. Can be * used as a long flag on the command line. * \param desc - A description of what the argument is for or * does. * \param req - Whether the argument is required on the command * line. * \param constraint - A pointer to a Constraint object used * to constrain this Arg. * \param parser - A CmdLine parser object to add this Arg to * \param v - An optional visitor. You probably should not * use this unless you have a very good reason. */ MultiArg( const std::string& flag, const std::string& name, const std::string& desc, bool req, Constraint* constraint, CmdLineInterface& parser, Visitor* v = NULL ); /** * Handles the processing of the argument. * This re-implements the Arg version of this method to set the * _value of the argument appropriately. It knows the difference * between labeled and unlabeled. * \param i - Pointer the the current argument in the list. * \param args - Mutable list of strings. Passed from main(). */ virtual bool processArg(int* i, std::vector& args); /** * Returns a vector of type T containing the values parsed from * the command line. */ const std::vector& getValue(); /** * Returns an iterator over the values parsed from the command * line. */ const_iterator begin() const { return _values.begin(); } /** * Returns the end of the values parsed from the command * line. */ const_iterator end() const { return _values.end(); } /** * Returns the a short id string. Used in the usage. * \param val - value to be used. */ virtual std::string shortID(const std::string& val="val") const; /** * Returns the a long id string. Used in the usage. * \param val - value to be used. */ virtual std::string longID(const std::string& val="val") const; /** * Once we've matched the first value, then the arg is no longer * required. */ virtual bool isRequired() const; virtual bool allowMore(); virtual void reset(); private: /** * Prevent accidental copying */ MultiArg(const MultiArg& rhs); MultiArg& operator=(const MultiArg& rhs); }; template MultiArg::MultiArg(const std::string& flag, const std::string& name, const std::string& desc, bool req, const std::string& typeDesc, Visitor* v) : Arg( flag, name, desc, req, true, v ), _values(std::vector()), _typeDesc( typeDesc ), _constraint( NULL ), _allowMore(false) { _acceptsMultipleValues = true; } template MultiArg::MultiArg(const std::string& flag, const std::string& name, const std::string& desc, bool req, const std::string& typeDesc, CmdLineInterface& parser, Visitor* v) : Arg( flag, name, desc, req, true, v ), _values(std::vector()), _typeDesc( typeDesc ), _constraint( NULL ), _allowMore(false) { parser.add( this ); _acceptsMultipleValues = true; } /** * */ template MultiArg::MultiArg(const std::string& flag, const std::string& name, const std::string& desc, bool req, Constraint* constraint, Visitor* v) : Arg( flag, name, desc, req, true, v ), _values(std::vector()), _typeDesc( constraint->shortID() ), _constraint( constraint ), _allowMore(false) { _acceptsMultipleValues = true; } template MultiArg::MultiArg(const std::string& flag, const std::string& name, const std::string& desc, bool req, Constraint* constraint, CmdLineInterface& parser, Visitor* v) : Arg( flag, name, desc, req, true, v ), _values(std::vector()), _typeDesc( constraint->shortID() ), _constraint( constraint ), _allowMore(false) { parser.add( this ); _acceptsMultipleValues = true; } template const std::vector& MultiArg::getValue() { return _values; } template bool MultiArg::processArg(int *i, std::vector& args) { if ( _ignoreable && Arg::ignoreRest() ) return false; if ( _hasBlanks( args[*i] ) ) return false; std::string flag = args[*i]; std::string value = ""; trimFlag( flag, value ); if ( argMatches( flag ) ) { if ( Arg::delimiter() != ' ' && value == "" ) throw( ArgParseException( "Couldn't find delimiter for this argument!", toString() ) ); // always take the first one, regardless of start string if ( value == "" ) { (*i)++; if ( static_cast(*i) < args.size() ) _extractValue( args[*i] ); else throw( ArgParseException("Missing a value for this argument!", toString() ) ); } else _extractValue( value ); /* // continuing taking the args until we hit one with a start string while ( (unsigned int)(*i)+1 < args.size() && args[(*i)+1].find_first_of( Arg::flagStartString() ) != 0 && args[(*i)+1].find_first_of( Arg::nameStartString() ) != 0 ) _extractValue( args[++(*i)] ); */ _alreadySet = true; _checkWithVisitor(); return true; } else return false; } /** * */ template std::string MultiArg::shortID(const std::string& val) const { static_cast(val); // Ignore input, don't warn return Arg::shortID(_typeDesc) + " ... "; } /** * */ template std::string MultiArg::longID(const std::string& val) const { static_cast(val); // Ignore input, don't warn return Arg::longID(_typeDesc) + " (accepted multiple times)"; } /** * Once we've matched the first value, then the arg is no longer * required. */ template bool MultiArg::isRequired() const { if ( _required ) { if ( _values.size() > 1 ) return false; else return true; } else return false; } template void MultiArg::_extractValue( const std::string& val ) { try { T tmp; ExtractValue(tmp, val, typename ArgTraits::ValueCategory()); _values.push_back(tmp); } catch( ArgParseException &e) { throw ArgParseException(e.error(), toString()); } if ( _constraint != NULL ) if ( ! _constraint->check( _values.back() ) ) throw( CmdLineParseException( "Value '" + val + "' does not meet constraint: " + _constraint->description(), toString() ) ); } template bool MultiArg::allowMore() { bool am = _allowMore; _allowMore = true; return am; } template void MultiArg::reset() { Arg::reset(); _values.clear(); } } // namespace TCLAP #endif tclap-1.2.1/include/tclap/MultiSwitchArg.h000644 000765 000765 00000012773 11131763145 020063 0ustar00mesmes000000 000000 /****************************************************************************** * * file: MultiSwitchArg.h * * Copyright (c) 2003, Michael E. Smoot . * Copyright (c) 2004, Michael E. Smoot, Daniel Aarno. * Copyright (c) 2005, Michael E. Smoot, Daniel Aarno, Erik Zeek. * All rights reverved. * * See the file COPYING in the top directory of this distribution for * more information. * * 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. * *****************************************************************************/ #ifndef TCLAP_MULTI_SWITCH_ARG_H #define TCLAP_MULTI_SWITCH_ARG_H #include #include #include namespace TCLAP { /** * A multiple switch argument. If the switch is set on the command line, then * the getValue method will return the number of times the switch appears. */ class MultiSwitchArg : public SwitchArg { protected: /** * The value of the switch. */ int _value; /** * Used to support the reset() method so that ValueArg can be * reset to their constructed value. */ int _default; public: /** * MultiSwitchArg constructor. * \param flag - The one character flag that identifies this * argument on the command line. * \param name - A one word name for the argument. Can be * used as a long flag on the command line. * \param desc - A description of what the argument is for or * does. * \param init - Optional. The initial/default value of this Arg. * Defaults to 0. * \param v - An optional visitor. You probably should not * use this unless you have a very good reason. */ MultiSwitchArg(const std::string& flag, const std::string& name, const std::string& desc, int init = 0, Visitor* v = NULL); /** * MultiSwitchArg constructor. * \param flag - The one character flag that identifies this * argument on the command line. * \param name - A one word name for the argument. Can be * used as a long flag on the command line. * \param desc - A description of what the argument is for or * does. * \param parser - A CmdLine parser object to add this Arg to * \param init - Optional. The initial/default value of this Arg. * Defaults to 0. * \param v - An optional visitor. You probably should not * use this unless you have a very good reason. */ MultiSwitchArg(const std::string& flag, const std::string& name, const std::string& desc, CmdLineInterface& parser, int init = 0, Visitor* v = NULL); /** * Handles the processing of the argument. * This re-implements the SwitchArg version of this method to set the * _value of the argument appropriately. * \param i - Pointer the the current argument in the list. * \param args - Mutable list of strings. Passed * in from main(). */ virtual bool processArg(int* i, std::vector& args); /** * Returns int, the number of times the switch has been set. */ int getValue(); /** * Returns the shortID for this Arg. */ std::string shortID(const std::string& val) const; /** * Returns the longID for this Arg. */ std::string longID(const std::string& val) const; void reset(); }; ////////////////////////////////////////////////////////////////////// //BEGIN MultiSwitchArg.cpp ////////////////////////////////////////////////////////////////////// inline MultiSwitchArg::MultiSwitchArg(const std::string& flag, const std::string& name, const std::string& desc, int init, Visitor* v ) : SwitchArg(flag, name, desc, false, v), _value( init ), _default( init ) { } inline MultiSwitchArg::MultiSwitchArg(const std::string& flag, const std::string& name, const std::string& desc, CmdLineInterface& parser, int init, Visitor* v ) : SwitchArg(flag, name, desc, false, v), _value( init ), _default( init ) { parser.add( this ); } inline int MultiSwitchArg::getValue() { return _value; } inline bool MultiSwitchArg::processArg(int *i, std::vector& args) { if ( _ignoreable && Arg::ignoreRest() ) return false; if ( argMatches( args[*i] )) { // so the isSet() method will work _alreadySet = true; // Matched argument: increment value. ++_value; _checkWithVisitor(); return true; } else if ( combinedSwitchesMatch( args[*i] ) ) { // so the isSet() method will work _alreadySet = true; // Matched argument: increment value. ++_value; // Check for more in argument and increment value. while ( combinedSwitchesMatch( args[*i] ) ) ++_value; _checkWithVisitor(); return false; } else return false; } inline std::string MultiSwitchArg::shortID(const std::string& val) const { return Arg::shortID(val) + " ... "; } inline std::string MultiSwitchArg::longID(const std::string& val) const { return Arg::longID(val) + " (accepted multiple times)"; } inline void MultiSwitchArg::reset() { MultiSwitchArg::_value = MultiSwitchArg::_default; } ////////////////////////////////////////////////////////////////////// //END MultiSwitchArg.cpp ////////////////////////////////////////////////////////////////////// } //namespace TCLAP #endif tclap-1.2.1/include/tclap/OptionalUnlabeledTracker.h000644 000765 000765 00000003271 10677013546 022072 0ustar00mesmes000000 000000 /****************************************************************************** * * file: OptionalUnlabeledTracker.h * * Copyright (c) 2005, Michael E. Smoot . * All rights reverved. * * See the file COPYING in the top directory of this distribution for * more information. * * 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. * *****************************************************************************/ #ifndef TCLAP_OPTIONAL_UNLABELED_TRACKER_H #define TCLAP_OPTIONAL_UNLABELED_TRACKER_H #include namespace TCLAP { class OptionalUnlabeledTracker { public: static void check( bool req, const std::string& argName ); static void gotOptional() { alreadyOptionalRef() = true; } static bool& alreadyOptional() { return alreadyOptionalRef(); } private: static bool& alreadyOptionalRef() { static bool ct = false; return ct; } }; inline void OptionalUnlabeledTracker::check( bool req, const std::string& argName ) { if ( OptionalUnlabeledTracker::alreadyOptional() ) throw( SpecificationException( "You can't specify ANY Unlabeled Arg following an optional Unlabeled Arg", argName ) ); if ( !req ) OptionalUnlabeledTracker::gotOptional(); } } // namespace TCLAP #endif tclap-1.2.1/include/tclap/StandardTraits.h000644 000765 000765 00000010655 11510153626 020077 0ustar00mesmes000000 000000 // -*- Mode: c++; c-basic-offset: 4; tab-width: 4; -*- /****************************************************************************** * * file: StandardTraits.h * * Copyright (c) 2007, Daniel Aarno, Michael E. Smoot . * All rights reverved. * * See the file COPYING in the top directory of this distribution for * more information. * * 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. * *****************************************************************************/ // This is an internal tclap file, you should probably not have to // include this directly #ifndef TCLAP_STANDARD_TRAITS_H #define TCLAP_STANDARD_TRAITS_H #ifdef HAVE_CONFIG_H #include // To check for long long #endif // If Microsoft has already typedef'd wchar_t as an unsigned // short, then compiles will break because it's as if we're // creating ArgTraits twice for unsigned short. Thus... #ifdef _MSC_VER #ifndef _NATIVE_WCHAR_T_DEFINED #define TCLAP_DONT_DECLARE_WCHAR_T_ARGTRAITS #endif #endif namespace TCLAP { // ====================================================================== // Integer types // ====================================================================== /** * longs have value-like semantics. */ template<> struct ArgTraits { typedef ValueLike ValueCategory; }; /** * ints have value-like semantics. */ template<> struct ArgTraits { typedef ValueLike ValueCategory; }; /** * shorts have value-like semantics. */ template<> struct ArgTraits { typedef ValueLike ValueCategory; }; /** * chars have value-like semantics. */ template<> struct ArgTraits { typedef ValueLike ValueCategory; }; #ifdef HAVE_LONG_LONG /** * long longs have value-like semantics. */ template<> struct ArgTraits { typedef ValueLike ValueCategory; }; #endif // ====================================================================== // Unsigned integer types // ====================================================================== /** * unsigned longs have value-like semantics. */ template<> struct ArgTraits { typedef ValueLike ValueCategory; }; /** * unsigned ints have value-like semantics. */ template<> struct ArgTraits { typedef ValueLike ValueCategory; }; /** * unsigned shorts have value-like semantics. */ template<> struct ArgTraits { typedef ValueLike ValueCategory; }; /** * unsigned chars have value-like semantics. */ template<> struct ArgTraits { typedef ValueLike ValueCategory; }; // Microsoft implements size_t awkwardly. #if defined(_MSC_VER) && defined(_M_X64) /** * size_ts have value-like semantics. */ template<> struct ArgTraits { typedef ValueLike ValueCategory; }; #endif #ifdef HAVE_LONG_LONG /** * unsigned long longs have value-like semantics. */ template<> struct ArgTraits { typedef ValueLike ValueCategory; }; #endif // ====================================================================== // Float types // ====================================================================== /** * floats have value-like semantics. */ template<> struct ArgTraits { typedef ValueLike ValueCategory; }; /** * doubles have value-like semantics. */ template<> struct ArgTraits { typedef ValueLike ValueCategory; }; // ====================================================================== // Other types // ====================================================================== /** * bools have value-like semantics. */ template<> struct ArgTraits { typedef ValueLike ValueCategory; }; /** * wchar_ts have value-like semantics. */ #ifndef TCLAP_DONT_DECLARE_WCHAR_T_ARGTRAITS template<> struct ArgTraits { typedef ValueLike ValueCategory; }; #endif /** * Strings have string like argument traits. */ template<> struct ArgTraits { typedef StringLike ValueCategory; }; template void SetString(T &dst, const std::string &src) { dst = src; } } // namespace #endif tclap-1.2.1/include/tclap/StdOutput.h000644 000765 000765 00000020406 11550122710 017110 0ustar00mesmes000000 000000 // -*- Mode: c++; c-basic-offset: 4; tab-width: 4; -*- /****************************************************************************** * * file: StdOutput.h * * Copyright (c) 2004, Michael E. Smoot * All rights reverved. * * See the file COPYING in the top directory of this distribution for * more information. * * 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. * *****************************************************************************/ #ifndef TCLAP_STDCMDLINEOUTPUT_H #define TCLAP_STDCMDLINEOUTPUT_H #include #include #include #include #include #include #include #include #include namespace TCLAP { /** * A class that isolates any output from the CmdLine object so that it * may be easily modified. */ class StdOutput : public CmdLineOutput { public: /** * Prints the usage to stdout. Can be overridden to * produce alternative behavior. * \param c - The CmdLine object the output is generated for. */ virtual void usage(CmdLineInterface& c); /** * Prints the version to stdout. Can be overridden * to produce alternative behavior. * \param c - The CmdLine object the output is generated for. */ virtual void version(CmdLineInterface& c); /** * Prints (to stderr) an error message, short usage * Can be overridden to produce alternative behavior. * \param c - The CmdLine object the output is generated for. * \param e - The ArgException that caused the failure. */ virtual void failure(CmdLineInterface& c, ArgException& e ); protected: /** * Writes a brief usage message with short args. * \param c - The CmdLine object the output is generated for. * \param os - The stream to write the message to. */ void _shortUsage( CmdLineInterface& c, std::ostream& os ) const; /** * Writes a longer usage message with long and short args, * provides descriptions and prints message. * \param c - The CmdLine object the output is generated for. * \param os - The stream to write the message to. */ void _longUsage( CmdLineInterface& c, std::ostream& os ) const; /** * This function inserts line breaks and indents long strings * according the params input. It will only break lines at spaces, * commas and pipes. * \param os - The stream to be printed to. * \param s - The string to be printed. * \param maxWidth - The maxWidth allowed for the output line. * \param indentSpaces - The number of spaces to indent the first line. * \param secondLineOffset - The number of spaces to indent the second * and all subsequent lines in addition to indentSpaces. */ void spacePrint( std::ostream& os, const std::string& s, int maxWidth, int indentSpaces, int secondLineOffset ) const; }; inline void StdOutput::version(CmdLineInterface& _cmd) { std::string progName = _cmd.getProgramName(); std::string xversion = _cmd.getVersion(); std::cout << std::endl << progName << " version: " << xversion << std::endl << std::endl; } inline void StdOutput::usage(CmdLineInterface& _cmd ) { std::cout << std::endl << "USAGE: " << std::endl << std::endl; _shortUsage( _cmd, std::cout ); std::cout << std::endl << std::endl << "Where: " << std::endl << std::endl; _longUsage( _cmd, std::cout ); std::cout << std::endl; } inline void StdOutput::failure( CmdLineInterface& _cmd, ArgException& e ) { std::string progName = _cmd.getProgramName(); std::cerr << "PARSE ERROR: " << e.argId() << std::endl << " " << e.error() << std::endl << std::endl; if ( _cmd.hasHelpAndVersion() ) { std::cerr << "Brief USAGE: " << std::endl; _shortUsage( _cmd, std::cerr ); std::cerr << std::endl << "For complete USAGE and HELP type: " << std::endl << " " << progName << " --help" << std::endl << std::endl; } else usage(_cmd); throw ExitException(1); } inline void StdOutput::_shortUsage( CmdLineInterface& _cmd, std::ostream& os ) const { std::list argList = _cmd.getArgList(); std::string progName = _cmd.getProgramName(); XorHandler xorHandler = _cmd.getXorHandler(); std::vector< std::vector > xorList = xorHandler.getXorList(); std::string s = progName + " "; // first the xor for ( int i = 0; static_cast(i) < xorList.size(); i++ ) { s += " {"; for ( ArgVectorIterator it = xorList[i].begin(); it != xorList[i].end(); it++ ) s += (*it)->shortID() + "|"; s[s.length()-1] = '}'; } // then the rest for (ArgListIterator it = argList.begin(); it != argList.end(); it++) if ( !xorHandler.contains( (*it) ) ) s += " " + (*it)->shortID(); // if the program name is too long, then adjust the second line offset int secondLineOffset = static_cast(progName.length()) + 2; if ( secondLineOffset > 75/2 ) secondLineOffset = static_cast(75/2); spacePrint( os, s, 75, 3, secondLineOffset ); } inline void StdOutput::_longUsage( CmdLineInterface& _cmd, std::ostream& os ) const { std::list argList = _cmd.getArgList(); std::string message = _cmd.getMessage(); XorHandler xorHandler = _cmd.getXorHandler(); std::vector< std::vector > xorList = xorHandler.getXorList(); // first the xor for ( int i = 0; static_cast(i) < xorList.size(); i++ ) { for ( ArgVectorIterator it = xorList[i].begin(); it != xorList[i].end(); it++ ) { spacePrint( os, (*it)->longID(), 75, 3, 3 ); spacePrint( os, (*it)->getDescription(), 75, 5, 0 ); if ( it+1 != xorList[i].end() ) spacePrint(os, "-- OR --", 75, 9, 0); } os << std::endl << std::endl; } // then the rest for (ArgListIterator it = argList.begin(); it != argList.end(); it++) if ( !xorHandler.contains( (*it) ) ) { spacePrint( os, (*it)->longID(), 75, 3, 3 ); spacePrint( os, (*it)->getDescription(), 75, 5, 0 ); os << std::endl; } os << std::endl; spacePrint( os, message, 75, 3, 0 ); } inline void StdOutput::spacePrint( std::ostream& os, const std::string& s, int maxWidth, int indentSpaces, int secondLineOffset ) const { int len = static_cast(s.length()); if ( (len + indentSpaces > maxWidth) && maxWidth > 0 ) { int allowedLen = maxWidth - indentSpaces; int start = 0; while ( start < len ) { // find the substring length // int stringLen = std::min( len - start, allowedLen ); // doing it this way to support a VisualC++ 2005 bug using namespace std; int stringLen = min( len - start, allowedLen ); // trim the length so it doesn't end in middle of a word if ( stringLen == allowedLen ) while ( stringLen >= 0 && s[stringLen+start] != ' ' && s[stringLen+start] != ',' && s[stringLen+start] != '|' ) stringLen--; // ok, the word is longer than the line, so just split // wherever the line ends if ( stringLen <= 0 ) stringLen = allowedLen; // check for newlines for ( int i = 0; i < stringLen; i++ ) if ( s[start+i] == '\n' ) stringLen = i+1; // print the indent for ( int i = 0; i < indentSpaces; i++ ) os << " "; if ( start == 0 ) { // handle second line offsets indentSpaces += secondLineOffset; // adjust allowed len allowedLen -= secondLineOffset; } os << s.substr(start,stringLen) << std::endl; // so we don't start a line with a space while ( s[stringLen+start] == ' ' && start < len ) start++; start += stringLen; } } else { for ( int i = 0; i < indentSpaces; i++ ) os << " "; os << s << std::endl; } } } //namespace TCLAP #endif tclap-1.2.1/include/tclap/SwitchArg.h000644 000765 000765 00000016753 11510213136 017041 0ustar00mesmes000000 000000 /****************************************************************************** * * file: SwitchArg.h * * Copyright (c) 2003, Michael E. Smoot . * Copyright (c) 2004, Michael E. Smoot, Daniel Aarno. * All rights reverved. * * See the file COPYING in the top directory of this distribution for * more information. * * 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. * *****************************************************************************/ #ifndef TCLAP_SWITCH_ARG_H #define TCLAP_SWITCH_ARG_H #include #include #include namespace TCLAP { /** * A simple switch argument. If the switch is set on the command line, then * the getValue method will return the opposite of the default value for the * switch. */ class SwitchArg : public Arg { protected: /** * The value of the switch. */ bool _value; /** * Used to support the reset() method so that ValueArg can be * reset to their constructed value. */ bool _default; public: /** * SwitchArg constructor. * \param flag - The one character flag that identifies this * argument on the command line. * \param name - A one word name for the argument. Can be * used as a long flag on the command line. * \param desc - A description of what the argument is for or * does. * \param def - The default value for this Switch. * \param v - An optional visitor. You probably should not * use this unless you have a very good reason. */ SwitchArg(const std::string& flag, const std::string& name, const std::string& desc, bool def = false, Visitor* v = NULL); /** * SwitchArg constructor. * \param flag - The one character flag that identifies this * argument on the command line. * \param name - A one word name for the argument. Can be * used as a long flag on the command line. * \param desc - A description of what the argument is for or * does. * \param parser - A CmdLine parser object to add this Arg to * \param def - The default value for this Switch. * \param v - An optional visitor. You probably should not * use this unless you have a very good reason. */ SwitchArg(const std::string& flag, const std::string& name, const std::string& desc, CmdLineInterface& parser, bool def = false, Visitor* v = NULL); /** * Handles the processing of the argument. * This re-implements the Arg version of this method to set the * _value of the argument appropriately. * \param i - Pointer the the current argument in the list. * \param args - Mutable list of strings. Passed * in from main(). */ virtual bool processArg(int* i, std::vector& args); /** * Checks a string to see if any of the chars in the string * match the flag for this Switch. */ bool combinedSwitchesMatch(std::string& combined); /** * Returns bool, whether or not the switch has been set. */ bool getValue(); virtual void reset(); private: /** * Checks to see if we've found the last match in * a combined string. */ bool lastCombined(std::string& combined); /** * Does the common processing of processArg. */ void commonProcessing(); }; ////////////////////////////////////////////////////////////////////// //BEGIN SwitchArg.cpp ////////////////////////////////////////////////////////////////////// inline SwitchArg::SwitchArg(const std::string& flag, const std::string& name, const std::string& desc, bool default_val, Visitor* v ) : Arg(flag, name, desc, false, false, v), _value( default_val ), _default( default_val ) { } inline SwitchArg::SwitchArg(const std::string& flag, const std::string& name, const std::string& desc, CmdLineInterface& parser, bool default_val, Visitor* v ) : Arg(flag, name, desc, false, false, v), _value( default_val ), _default(default_val) { parser.add( this ); } inline bool SwitchArg::getValue() { return _value; } inline bool SwitchArg::lastCombined(std::string& combinedSwitches ) { for ( unsigned int i = 1; i < combinedSwitches.length(); i++ ) if ( combinedSwitches[i] != Arg::blankChar() ) return false; return true; } inline bool SwitchArg::combinedSwitchesMatch(std::string& combinedSwitches ) { // make sure this is actually a combined switch if ( combinedSwitches.length() > 0 && combinedSwitches[0] != Arg::flagStartString()[0] ) return false; // make sure it isn't a long name if ( combinedSwitches.substr( 0, Arg::nameStartString().length() ) == Arg::nameStartString() ) return false; // make sure the delimiter isn't in the string if ( combinedSwitches.find_first_of( Arg::delimiter() ) != std::string::npos ) return false; // ok, we're not specifying a ValueArg, so we know that we have // a combined switch list. for ( unsigned int i = 1; i < combinedSwitches.length(); i++ ) if ( _flag.length() > 0 && combinedSwitches[i] == _flag[0] && _flag[0] != Arg::flagStartString()[0] ) { // update the combined switches so this one is no longer present // this is necessary so that no unlabeled args are matched // later in the processing. //combinedSwitches.erase(i,1); combinedSwitches[i] = Arg::blankChar(); return true; } // none of the switches passed in the list match. return false; } inline void SwitchArg::commonProcessing() { if ( _xorSet ) throw(CmdLineParseException( "Mutually exclusive argument already set!", toString())); if ( _alreadySet ) throw(CmdLineParseException("Argument already set!", toString())); _alreadySet = true; if ( _value == true ) _value = false; else _value = true; _checkWithVisitor(); } inline bool SwitchArg::processArg(int *i, std::vector& args) { if ( _ignoreable && Arg::ignoreRest() ) return false; // if the whole string matches the flag or name string if ( argMatches( args[*i] ) ) { commonProcessing(); return true; } // if a substring matches the flag as part of a combination else if ( combinedSwitchesMatch( args[*i] ) ) { // check again to ensure we don't misinterpret // this as a MultiSwitchArg if ( combinedSwitchesMatch( args[*i] ) ) throw(CmdLineParseException("Argument already set!", toString())); commonProcessing(); // We only want to return true if we've found the last combined // match in the string, otherwise we return true so that other // switches in the combination will have a chance to match. return lastCombined( args[*i] ); } else return false; } inline void SwitchArg::reset() { Arg::reset(); _value = _default; } ////////////////////////////////////////////////////////////////////// //End SwitchArg.cpp ////////////////////////////////////////////////////////////////////// } //namespace TCLAP #endif tclap-1.2.1/include/tclap/UnlabeledMultiArg.h000644 000765 000765 00000022623 10565614150 020511 0ustar00mesmes000000 000000 /****************************************************************************** * * file: UnlabeledMultiArg.h * * Copyright (c) 2003, Michael E. Smoot. * All rights reverved. * * See the file COPYING in the top directory of this distribution for * more information. * * 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. * *****************************************************************************/ #ifndef TCLAP_MULTIPLE_UNLABELED_ARGUMENT_H #define TCLAP_MULTIPLE_UNLABELED_ARGUMENT_H #include #include #include #include namespace TCLAP { /** * Just like a MultiArg, except that the arguments are unlabeled. Basically, * this Arg will slurp up everything that hasn't been matched to another * Arg. */ template class UnlabeledMultiArg : public MultiArg { // If compiler has two stage name lookup (as gcc >= 3.4 does) // this is requried to prevent undef. symbols using MultiArg::_ignoreable; using MultiArg::_hasBlanks; using MultiArg::_extractValue; using MultiArg::_typeDesc; using MultiArg::_name; using MultiArg::_description; using MultiArg::_alreadySet; using MultiArg::toString; public: /** * Constructor. * \param name - The name of the Arg. Note that this is used for * identification, not as a long flag. * \param desc - A description of what the argument is for or * does. * \param req - Whether the argument is required on the command * line. * \param typeDesc - A short, human readable description of the * type that this object expects. This is used in the generation * of the USAGE statement. The goal is to be helpful to the end user * of the program. * \param ignoreable - Whether or not this argument can be ignored * using the "--" flag. * \param v - An optional visitor. You probably should not * use this unless you have a very good reason. */ UnlabeledMultiArg( const std::string& name, const std::string& desc, bool req, const std::string& typeDesc, bool ignoreable = false, Visitor* v = NULL ); /** * Constructor. * \param name - The name of the Arg. Note that this is used for * identification, not as a long flag. * \param desc - A description of what the argument is for or * does. * \param req - Whether the argument is required on the command * line. * \param typeDesc - A short, human readable description of the * type that this object expects. This is used in the generation * of the USAGE statement. The goal is to be helpful to the end user * of the program. * \param parser - A CmdLine parser object to add this Arg to * \param ignoreable - Whether or not this argument can be ignored * using the "--" flag. * \param v - An optional visitor. You probably should not * use this unless you have a very good reason. */ UnlabeledMultiArg( const std::string& name, const std::string& desc, bool req, const std::string& typeDesc, CmdLineInterface& parser, bool ignoreable = false, Visitor* v = NULL ); /** * Constructor. * \param name - The name of the Arg. Note that this is used for * identification, not as a long flag. * \param desc - A description of what the argument is for or * does. * \param req - Whether the argument is required on the command * line. * \param constraint - A pointer to a Constraint object used * to constrain this Arg. * \param ignoreable - Whether or not this argument can be ignored * using the "--" flag. * \param v - An optional visitor. You probably should not * use this unless you have a very good reason. */ UnlabeledMultiArg( const std::string& name, const std::string& desc, bool req, Constraint* constraint, bool ignoreable = false, Visitor* v = NULL ); /** * Constructor. * \param name - The name of the Arg. Note that this is used for * identification, not as a long flag. * \param desc - A description of what the argument is for or * does. * \param req - Whether the argument is required on the command * line. * \param constraint - A pointer to a Constraint object used * to constrain this Arg. * \param parser - A CmdLine parser object to add this Arg to * \param ignoreable - Whether or not this argument can be ignored * using the "--" flag. * \param v - An optional visitor. You probably should not * use this unless you have a very good reason. */ UnlabeledMultiArg( const std::string& name, const std::string& desc, bool req, Constraint* constraint, CmdLineInterface& parser, bool ignoreable = false, Visitor* v = NULL ); /** * Handles the processing of the argument. * This re-implements the Arg version of this method to set the * _value of the argument appropriately. It knows the difference * between labeled and unlabeled. * \param i - Pointer the the current argument in the list. * \param args - Mutable list of strings. Passed from main(). */ virtual bool processArg(int* i, std::vector& args); /** * Returns the a short id string. Used in the usage. * \param val - value to be used. */ virtual std::string shortID(const std::string& val="val") const; /** * Returns the a long id string. Used in the usage. * \param val - value to be used. */ virtual std::string longID(const std::string& val="val") const; /** * Opertor ==. * \param a - The Arg to be compared to this. */ virtual bool operator==(const Arg& a) const; /** * Pushes this to back of list rather than front. * \param argList - The list this should be added to. */ virtual void addToList( std::list& argList ) const; }; template UnlabeledMultiArg::UnlabeledMultiArg(const std::string& name, const std::string& desc, bool req, const std::string& typeDesc, bool ignoreable, Visitor* v) : MultiArg("", name, desc, req, typeDesc, v) { _ignoreable = ignoreable; OptionalUnlabeledTracker::check(true, toString()); } template UnlabeledMultiArg::UnlabeledMultiArg(const std::string& name, const std::string& desc, bool req, const std::string& typeDesc, CmdLineInterface& parser, bool ignoreable, Visitor* v) : MultiArg("", name, desc, req, typeDesc, v) { _ignoreable = ignoreable; OptionalUnlabeledTracker::check(true, toString()); parser.add( this ); } template UnlabeledMultiArg::UnlabeledMultiArg(const std::string& name, const std::string& desc, bool req, Constraint* constraint, bool ignoreable, Visitor* v) : MultiArg("", name, desc, req, constraint, v) { _ignoreable = ignoreable; OptionalUnlabeledTracker::check(true, toString()); } template UnlabeledMultiArg::UnlabeledMultiArg(const std::string& name, const std::string& desc, bool req, Constraint* constraint, CmdLineInterface& parser, bool ignoreable, Visitor* v) : MultiArg("", name, desc, req, constraint, v) { _ignoreable = ignoreable; OptionalUnlabeledTracker::check(true, toString()); parser.add( this ); } template bool UnlabeledMultiArg::processArg(int *i, std::vector& args) { if ( _hasBlanks( args[*i] ) ) return false; // never ignore an unlabeled multi arg // always take the first value, regardless of the start string _extractValue( args[(*i)] ); /* // continue taking args until we hit the end or a start string while ( (unsigned int)(*i)+1 < args.size() && args[(*i)+1].find_first_of( Arg::flagStartString() ) != 0 && args[(*i)+1].find_first_of( Arg::nameStartString() ) != 0 ) _extractValue( args[++(*i)] ); */ _alreadySet = true; return true; } template std::string UnlabeledMultiArg::shortID(const std::string& val) const { static_cast(val); // Ignore input, don't warn return std::string("<") + _typeDesc + "> ..."; } template std::string UnlabeledMultiArg::longID(const std::string& val) const { static_cast(val); // Ignore input, don't warn return std::string("<") + _typeDesc + "> (accepted multiple times)"; } template bool UnlabeledMultiArg::operator==(const Arg& a) const { if ( _name == a.getName() || _description == a.getDescription() ) return true; else return false; } template void UnlabeledMultiArg::addToList( std::list& argList ) const { argList.push_back( const_cast(static_cast(this)) ); } } #endif tclap-1.2.1/include/tclap/UnlabeledValueArg.h000644 000765 000765 00000026265 11227370470 020501 0ustar00mesmes000000 000000 /****************************************************************************** * * file: UnlabeledValueArg.h * * Copyright (c) 2003, Michael E. Smoot . * Copyright (c) 2004, Michael E. Smoot, Daniel Aarno. * All rights reverved. * * See the file COPYING in the top directory of this distribution for * more information. * * 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. * *****************************************************************************/ #ifndef TCLAP_UNLABELED_VALUE_ARGUMENT_H #define TCLAP_UNLABELED_VALUE_ARGUMENT_H #include #include #include #include namespace TCLAP { /** * The basic unlabeled argument that parses a value. * This is a template class, which means the type T defines the type * that a given object will attempt to parse when an UnlabeledValueArg * is reached in the list of args that the CmdLine iterates over. */ template class UnlabeledValueArg : public ValueArg { // If compiler has two stage name lookup (as gcc >= 3.4 does) // this is requried to prevent undef. symbols using ValueArg::_ignoreable; using ValueArg::_hasBlanks; using ValueArg::_extractValue; using ValueArg::_typeDesc; using ValueArg::_name; using ValueArg::_description; using ValueArg::_alreadySet; using ValueArg::toString; public: /** * UnlabeledValueArg constructor. * \param name - A one word name for the argument. Note that this is used for * identification, not as a long flag. * \param desc - A description of what the argument is for or * does. * \param req - Whether the argument is required on the command * line. * \param value - The default value assigned to this argument if it * is not present on the command line. * \param typeDesc - A short, human readable description of the * type that this object expects. This is used in the generation * of the USAGE statement. The goal is to be helpful to the end user * of the program. * \param ignoreable - Allows you to specify that this argument can be * ignored if the '--' flag is set. This defaults to false (cannot * be ignored) and should generally stay that way unless you have * some special need for certain arguments to be ignored. * \param v - Optional Vistor. You should leave this blank unless * you have a very good reason. */ UnlabeledValueArg( const std::string& name, const std::string& desc, bool req, T value, const std::string& typeDesc, bool ignoreable = false, Visitor* v = NULL); /** * UnlabeledValueArg constructor. * \param name - A one word name for the argument. Note that this is used for * identification, not as a long flag. * \param desc - A description of what the argument is for or * does. * \param req - Whether the argument is required on the command * line. * \param value - The default value assigned to this argument if it * is not present on the command line. * \param typeDesc - A short, human readable description of the * type that this object expects. This is used in the generation * of the USAGE statement. The goal is to be helpful to the end user * of the program. * \param parser - A CmdLine parser object to add this Arg to * \param ignoreable - Allows you to specify that this argument can be * ignored if the '--' flag is set. This defaults to false (cannot * be ignored) and should generally stay that way unless you have * some special need for certain arguments to be ignored. * \param v - Optional Vistor. You should leave this blank unless * you have a very good reason. */ UnlabeledValueArg( const std::string& name, const std::string& desc, bool req, T value, const std::string& typeDesc, CmdLineInterface& parser, bool ignoreable = false, Visitor* v = NULL ); /** * UnlabeledValueArg constructor. * \param name - A one word name for the argument. Note that this is used for * identification, not as a long flag. * \param desc - A description of what the argument is for or * does. * \param req - Whether the argument is required on the command * line. * \param value - The default value assigned to this argument if it * is not present on the command line. * \param constraint - A pointer to a Constraint object used * to constrain this Arg. * \param ignoreable - Allows you to specify that this argument can be * ignored if the '--' flag is set. This defaults to false (cannot * be ignored) and should generally stay that way unless you have * some special need for certain arguments to be ignored. * \param v - Optional Vistor. You should leave this blank unless * you have a very good reason. */ UnlabeledValueArg( const std::string& name, const std::string& desc, bool req, T value, Constraint* constraint, bool ignoreable = false, Visitor* v = NULL ); /** * UnlabeledValueArg constructor. * \param name - A one word name for the argument. Note that this is used for * identification, not as a long flag. * \param desc - A description of what the argument is for or * does. * \param req - Whether the argument is required on the command * line. * \param value - The default value assigned to this argument if it * is not present on the command line. * \param constraint - A pointer to a Constraint object used * to constrain this Arg. * \param parser - A CmdLine parser object to add this Arg to * \param ignoreable - Allows you to specify that this argument can be * ignored if the '--' flag is set. This defaults to false (cannot * be ignored) and should generally stay that way unless you have * some special need for certain arguments to be ignored. * \param v - Optional Vistor. You should leave this blank unless * you have a very good reason. */ UnlabeledValueArg( const std::string& name, const std::string& desc, bool req, T value, Constraint* constraint, CmdLineInterface& parser, bool ignoreable = false, Visitor* v = NULL); /** * Handles the processing of the argument. * This re-implements the Arg version of this method to set the * _value of the argument appropriately. Handling specific to * unlabled arguments. * \param i - Pointer the the current argument in the list. * \param args - Mutable list of strings. */ virtual bool processArg(int* i, std::vector& args); /** * Overrides shortID for specific behavior. */ virtual std::string shortID(const std::string& val="val") const; /** * Overrides longID for specific behavior. */ virtual std::string longID(const std::string& val="val") const; /** * Overrides operator== for specific behavior. */ virtual bool operator==(const Arg& a ) const; /** * Instead of pushing to the front of list, push to the back. * \param argList - The list to add this to. */ virtual void addToList( std::list& argList ) const; }; /** * Constructor implemenation. */ template UnlabeledValueArg::UnlabeledValueArg(const std::string& name, const std::string& desc, bool req, T val, const std::string& typeDesc, bool ignoreable, Visitor* v) : ValueArg("", name, desc, req, val, typeDesc, v) { _ignoreable = ignoreable; OptionalUnlabeledTracker::check(req, toString()); } template UnlabeledValueArg::UnlabeledValueArg(const std::string& name, const std::string& desc, bool req, T val, const std::string& typeDesc, CmdLineInterface& parser, bool ignoreable, Visitor* v) : ValueArg("", name, desc, req, val, typeDesc, v) { _ignoreable = ignoreable; OptionalUnlabeledTracker::check(req, toString()); parser.add( this ); } /** * Constructor implemenation. */ template UnlabeledValueArg::UnlabeledValueArg(const std::string& name, const std::string& desc, bool req, T val, Constraint* constraint, bool ignoreable, Visitor* v) : ValueArg("", name, desc, req, val, constraint, v) { _ignoreable = ignoreable; OptionalUnlabeledTracker::check(req, toString()); } template UnlabeledValueArg::UnlabeledValueArg(const std::string& name, const std::string& desc, bool req, T val, Constraint* constraint, CmdLineInterface& parser, bool ignoreable, Visitor* v) : ValueArg("", name, desc, req, val, constraint, v) { _ignoreable = ignoreable; OptionalUnlabeledTracker::check(req, toString()); parser.add( this ); } /** * Implementation of processArg(). */ template bool UnlabeledValueArg::processArg(int *i, std::vector& args) { if ( _alreadySet ) return false; if ( _hasBlanks( args[*i] ) ) return false; // never ignore an unlabeled arg _extractValue( args[*i] ); _alreadySet = true; return true; } /** * Overriding shortID for specific output. */ template std::string UnlabeledValueArg::shortID(const std::string& val) const { static_cast(val); // Ignore input, don't warn return std::string("<") + _typeDesc + ">"; } /** * Overriding longID for specific output. */ template std::string UnlabeledValueArg::longID(const std::string& val) const { static_cast(val); // Ignore input, don't warn // Ideally we would like to be able to use RTTI to return the name // of the type required for this argument. However, g++ at least, // doesn't appear to return terribly useful "names" of the types. return std::string("<") + _typeDesc + ">"; } /** * Overriding operator== for specific behavior. */ template bool UnlabeledValueArg::operator==(const Arg& a ) const { if ( _name == a.getName() || _description == a.getDescription() ) return true; else return false; } template void UnlabeledValueArg::addToList( std::list& argList ) const { argList.push_back( const_cast(static_cast(this)) ); } } #endif tclap-1.2.1/include/tclap/ValueArg.h000644 000765 000765 00000033504 11510144407 016651 0ustar00mesmes000000 000000 /****************************************************************************** * * file: ValueArg.h * * Copyright (c) 2003, Michael E. Smoot . * Copyright (c) 2004, Michael E. Smoot, Daniel Aarno. * All rights reverved. * * See the file COPYING in the top directory of this distribution for * more information. * * 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. * *****************************************************************************/ #ifndef TCLAP_VALUE_ARGUMENT_H #define TCLAP_VALUE_ARGUMENT_H #include #include #include #include namespace TCLAP { /** * The basic labeled argument that parses a value. * This is a template class, which means the type T defines the type * that a given object will attempt to parse when the flag/name is matched * on the command line. While there is nothing stopping you from creating * an unflagged ValueArg, it is unwise and would cause significant problems. * Instead use an UnlabeledValueArg. */ template class ValueArg : public Arg { protected: /** * The value parsed from the command line. * Can be of any type, as long as the >> operator for the type * is defined. */ T _value; /** * Used to support the reset() method so that ValueArg can be * reset to their constructed value. */ T _default; /** * A human readable description of the type to be parsed. * This is a hack, plain and simple. Ideally we would use RTTI to * return the name of type T, but until there is some sort of * consistent support for human readable names, we are left to our * own devices. */ std::string _typeDesc; /** * A Constraint this Arg must conform to. */ Constraint* _constraint; /** * Extracts the value from the string. * Attempts to parse string as type T, if this fails an exception * is thrown. * \param val - value to be parsed. */ void _extractValue( const std::string& val ); public: /** * Labeled ValueArg constructor. * You could conceivably call this constructor with a blank flag, * but that would make you a bad person. It would also cause * an exception to be thrown. If you want an unlabeled argument, * use the other constructor. * \param flag - The one character flag that identifies this * argument on the command line. * \param name - A one word name for the argument. Can be * used as a long flag on the command line. * \param desc - A description of what the argument is for or * does. * \param req - Whether the argument is required on the command * line. * \param value - The default value assigned to this argument if it * is not present on the command line. * \param typeDesc - A short, human readable description of the * type that this object expects. This is used in the generation * of the USAGE statement. The goal is to be helpful to the end user * of the program. * \param v - An optional visitor. You probably should not * use this unless you have a very good reason. */ ValueArg( const std::string& flag, const std::string& name, const std::string& desc, bool req, T value, const std::string& typeDesc, Visitor* v = NULL); /** * Labeled ValueArg constructor. * You could conceivably call this constructor with a blank flag, * but that would make you a bad person. It would also cause * an exception to be thrown. If you want an unlabeled argument, * use the other constructor. * \param flag - The one character flag that identifies this * argument on the command line. * \param name - A one word name for the argument. Can be * used as a long flag on the command line. * \param desc - A description of what the argument is for or * does. * \param req - Whether the argument is required on the command * line. * \param value - The default value assigned to this argument if it * is not present on the command line. * \param typeDesc - A short, human readable description of the * type that this object expects. This is used in the generation * of the USAGE statement. The goal is to be helpful to the end user * of the program. * \param parser - A CmdLine parser object to add this Arg to * \param v - An optional visitor. You probably should not * use this unless you have a very good reason. */ ValueArg( const std::string& flag, const std::string& name, const std::string& desc, bool req, T value, const std::string& typeDesc, CmdLineInterface& parser, Visitor* v = NULL ); /** * Labeled ValueArg constructor. * You could conceivably call this constructor with a blank flag, * but that would make you a bad person. It would also cause * an exception to be thrown. If you want an unlabeled argument, * use the other constructor. * \param flag - The one character flag that identifies this * argument on the command line. * \param name - A one word name for the argument. Can be * used as a long flag on the command line. * \param desc - A description of what the argument is for or * does. * \param req - Whether the argument is required on the command * line. * \param value - The default value assigned to this argument if it * is not present on the command line. * \param constraint - A pointer to a Constraint object used * to constrain this Arg. * \param parser - A CmdLine parser object to add this Arg to. * \param v - An optional visitor. You probably should not * use this unless you have a very good reason. */ ValueArg( const std::string& flag, const std::string& name, const std::string& desc, bool req, T value, Constraint* constraint, CmdLineInterface& parser, Visitor* v = NULL ); /** * Labeled ValueArg constructor. * You could conceivably call this constructor with a blank flag, * but that would make you a bad person. It would also cause * an exception to be thrown. If you want an unlabeled argument, * use the other constructor. * \param flag - The one character flag that identifies this * argument on the command line. * \param name - A one word name for the argument. Can be * used as a long flag on the command line. * \param desc - A description of what the argument is for or * does. * \param req - Whether the argument is required on the command * line. * \param value - The default value assigned to this argument if it * is not present on the command line. * \param constraint - A pointer to a Constraint object used * to constrain this Arg. * \param v - An optional visitor. You probably should not * use this unless you have a very good reason. */ ValueArg( const std::string& flag, const std::string& name, const std::string& desc, bool req, T value, Constraint* constraint, Visitor* v = NULL ); /** * Handles the processing of the argument. * This re-implements the Arg version of this method to set the * _value of the argument appropriately. It knows the difference * between labeled and unlabeled. * \param i - Pointer the the current argument in the list. * \param args - Mutable list of strings. Passed * in from main(). */ virtual bool processArg(int* i, std::vector& args); /** * Returns the value of the argument. */ T& getValue() ; /** * Specialization of shortID. * \param val - value to be used. */ virtual std::string shortID(const std::string& val = "val") const; /** * Specialization of longID. * \param val - value to be used. */ virtual std::string longID(const std::string& val = "val") const; virtual void reset() ; private: /** * Prevent accidental copying */ ValueArg(const ValueArg& rhs); ValueArg& operator=(const ValueArg& rhs); }; /** * Constructor implementation. */ template ValueArg::ValueArg(const std::string& flag, const std::string& name, const std::string& desc, bool req, T val, const std::string& typeDesc, Visitor* v) : Arg(flag, name, desc, req, true, v), _value( val ), _default( val ), _typeDesc( typeDesc ), _constraint( NULL ) { } template ValueArg::ValueArg(const std::string& flag, const std::string& name, const std::string& desc, bool req, T val, const std::string& typeDesc, CmdLineInterface& parser, Visitor* v) : Arg(flag, name, desc, req, true, v), _value( val ), _default( val ), _typeDesc( typeDesc ), _constraint( NULL ) { parser.add( this ); } template ValueArg::ValueArg(const std::string& flag, const std::string& name, const std::string& desc, bool req, T val, Constraint* constraint, Visitor* v) : Arg(flag, name, desc, req, true, v), _value( val ), _default( val ), _typeDesc( constraint->shortID() ), _constraint( constraint ) { } template ValueArg::ValueArg(const std::string& flag, const std::string& name, const std::string& desc, bool req, T val, Constraint* constraint, CmdLineInterface& parser, Visitor* v) : Arg(flag, name, desc, req, true, v), _value( val ), _default( val ), _typeDesc( constraint->shortID() ), _constraint( constraint ) { parser.add( this ); } /** * Implementation of getValue(). */ template T& ValueArg::getValue() { return _value; } /** * Implementation of processArg(). */ template bool ValueArg::processArg(int *i, std::vector& args) { if ( _ignoreable && Arg::ignoreRest() ) return false; if ( _hasBlanks( args[*i] ) ) return false; std::string flag = args[*i]; std::string value = ""; trimFlag( flag, value ); if ( argMatches( flag ) ) { if ( _alreadySet ) { if ( _xorSet ) throw( CmdLineParseException( "Mutually exclusive argument already set!", toString()) ); else throw( CmdLineParseException("Argument already set!", toString()) ); } if ( Arg::delimiter() != ' ' && value == "" ) throw( ArgParseException( "Couldn't find delimiter for this argument!", toString() ) ); if ( value == "" ) { (*i)++; if ( static_cast(*i) < args.size() ) _extractValue( args[*i] ); else throw( ArgParseException("Missing a value for this argument!", toString() ) ); } else _extractValue( value ); _alreadySet = true; _checkWithVisitor(); return true; } else return false; } /** * Implementation of shortID. */ template std::string ValueArg::shortID(const std::string& val) const { static_cast(val); // Ignore input, don't warn return Arg::shortID( _typeDesc ); } /** * Implementation of longID. */ template std::string ValueArg::longID(const std::string& val) const { static_cast(val); // Ignore input, don't warn return Arg::longID( _typeDesc ); } template void ValueArg::_extractValue( const std::string& val ) { try { ExtractValue(_value, val, typename ArgTraits::ValueCategory()); } catch( ArgParseException &e) { throw ArgParseException(e.error(), toString()); } if ( _constraint != NULL ) if ( ! _constraint->check( _value ) ) throw( CmdLineParseException( "Value '" + val + + "' does not meet constraint: " + _constraint->description(), toString() ) ); } template void ValueArg::reset() { Arg::reset(); _value = _default; } } // namespace TCLAP #endif tclap-1.2.1/include/tclap/ValuesConstraint.h000644 000765 000765 00000006201 11510144407 020441 0ustar00mesmes000000 000000 /****************************************************************************** * * file: ValuesConstraint.h * * Copyright (c) 2005, Michael E. Smoot * All rights reverved. * * See the file COPYING in the top directory of this distribution for * more information. * * 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. * *****************************************************************************/ #ifndef TCLAP_VALUESCONSTRAINT_H #define TCLAP_VALUESCONSTRAINT_H #include #include #include #ifdef HAVE_CONFIG_H #include #else #define HAVE_SSTREAM #endif #if defined(HAVE_SSTREAM) #include #elif defined(HAVE_STRSTREAM) #include #else #error "Need a stringstream (sstream or strstream) to compile!" #endif namespace TCLAP { /** * A Constraint that constrains the Arg to only those values specified * in the constraint. */ template class ValuesConstraint : public Constraint { public: /** * Constructor. * \param allowed - vector of allowed values. */ ValuesConstraint(std::vector& allowed); /** * Virtual destructor. */ virtual ~ValuesConstraint() {} /** * Returns a description of the Constraint. */ virtual std::string description() const; /** * Returns the short ID for the Constraint. */ virtual std::string shortID() const; /** * The method used to verify that the value parsed from the command * line meets the constraint. * \param value - The value that will be checked. */ virtual bool check(const T& value) const; protected: /** * The list of valid values. */ std::vector _allowed; /** * The string used to describe the allowed values of this constraint. */ std::string _typeDesc; }; template ValuesConstraint::ValuesConstraint(std::vector& allowed) : _allowed(allowed), _typeDesc("") { for ( unsigned int i = 0; i < _allowed.size(); i++ ) { #if defined(HAVE_SSTREAM) std::ostringstream os; #elif defined(HAVE_STRSTREAM) std::ostrstream os; #else #error "Need a stringstream (sstream or strstream) to compile!" #endif os << _allowed[i]; std::string temp( os.str() ); if ( i > 0 ) _typeDesc += "|"; _typeDesc += temp; } } template bool ValuesConstraint::check( const T& val ) const { if ( std::find(_allowed.begin(),_allowed.end(),val) == _allowed.end() ) return false; else return true; } template std::string ValuesConstraint::shortID() const { return _typeDesc; } template std::string ValuesConstraint::description() const { return _typeDesc; } } //namespace TCLAP #endif tclap-1.2.1/include/tclap/VersionVisitor.h000644 000765 000765 00000003753 11510144407 020153 0ustar00mesmes000000 000000 // -*- Mode: c++; c-basic-offset: 4; tab-width: 4; -*- /****************************************************************************** * * file: VersionVisitor.h * * Copyright (c) 2003, Michael E. Smoot . * All rights reverved. * * See the file COPYING in the top directory of this distribution for * more information. * * 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. * *****************************************************************************/ #ifndef TCLAP_VERSION_VISITOR_H #define TCLAP_VERSION_VISITOR_H #include #include #include namespace TCLAP { /** * A Vistor that will call the version method of the given CmdLineOutput * for the specified CmdLine object and then exit. */ class VersionVisitor: public Visitor { private: /** * Prevent accidental copying */ VersionVisitor(const VersionVisitor& rhs); VersionVisitor& operator=(const VersionVisitor& rhs); protected: /** * The CmdLine of interest. */ CmdLineInterface* _cmd; /** * The output object. */ CmdLineOutput** _out; public: /** * Constructor. * \param cmd - The CmdLine the output is generated for. * \param out - The type of output. */ VersionVisitor( CmdLineInterface* cmd, CmdLineOutput** out ) : Visitor(), _cmd( cmd ), _out( out ) { } /** * Calls the version method of the output object using the * specified CmdLine. */ void visit() { (*_out)->version(*_cmd); throw ExitException(0); } }; } #endif tclap-1.2.1/include/tclap/Visitor.h000644 000765 000765 00000002352 10407056223 016601 0ustar00mesmes000000 000000 /****************************************************************************** * * file: Visitor.h * * Copyright (c) 2003, Michael E. Smoot . * All rights reverved. * * See the file COPYING in the top directory of this distribution for * more information. * * 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. * *****************************************************************************/ #ifndef TCLAP_VISITOR_H #define TCLAP_VISITOR_H namespace TCLAP { /** * A base class that defines the interface for visitors. */ class Visitor { public: /** * Constructor. Does nothing. */ Visitor() { } /** * Destructor. Does nothing. */ virtual ~Visitor() { } /** * Does nothing. Should be overridden by child. */ virtual void visit() { } }; } #endif tclap-1.2.1/include/tclap/XorHandler.h000644 000765 000765 00000010406 11510213136 017201 0ustar00mesmes000000 000000 /****************************************************************************** * * file: XorHandler.h * * Copyright (c) 2003, Michael E. Smoot . * Copyright (c) 2004, Michael E. Smoot, Daniel Aarno. * All rights reverved. * * See the file COPYING in the top directory of this distribution for * more information. * * 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. * *****************************************************************************/ #ifndef TCLAP_XORHANDLER_H #define TCLAP_XORHANDLER_H #include #include #include #include #include namespace TCLAP { /** * This class handles lists of Arg's that are to be XOR'd on the command * line. This is used by CmdLine and you shouldn't ever use it. */ class XorHandler { protected: /** * The list of of lists of Arg's to be or'd together. */ std::vector< std::vector > _orList; public: /** * Constructor. Does nothing. */ XorHandler( ) : _orList(std::vector< std::vector >()) {} /** * Add a list of Arg*'s that will be orred together. * \param ors - list of Arg* that will be xor'd. */ void add( std::vector& ors ); /** * Checks whether the specified Arg is in one of the xor lists and * if it does match one, returns the size of the xor list that the * Arg matched. If the Arg matches, then it also sets the rest of * the Arg's in the list. You shouldn't use this. * \param a - The Arg to be checked. */ int check( const Arg* a ); /** * Returns the XOR specific short usage. */ std::string shortUsage(); /** * Prints the XOR specific long usage. * \param os - Stream to print to. */ void printLongUsage(std::ostream& os); /** * Simply checks whether the Arg is contained in one of the arg * lists. * \param a - The Arg to be checked. */ bool contains( const Arg* a ); std::vector< std::vector >& getXorList(); }; ////////////////////////////////////////////////////////////////////// //BEGIN XOR.cpp ////////////////////////////////////////////////////////////////////// inline void XorHandler::add( std::vector& ors ) { _orList.push_back( ors ); } inline int XorHandler::check( const Arg* a ) { // iterate over each XOR list for ( int i = 0; static_cast(i) < _orList.size(); i++ ) { // if the XOR list contains the arg.. ArgVectorIterator ait = std::find( _orList[i].begin(), _orList[i].end(), a ); if ( ait != _orList[i].end() ) { // first check to see if a mutually exclusive switch // has not already been set for ( ArgVectorIterator it = _orList[i].begin(); it != _orList[i].end(); it++ ) if ( a != (*it) && (*it)->isSet() ) throw(CmdLineParseException( "Mutually exclusive argument already set!", (*it)->toString())); // go through and set each arg that is not a for ( ArgVectorIterator it = _orList[i].begin(); it != _orList[i].end(); it++ ) if ( a != (*it) ) (*it)->xorSet(); // return the number of required args that have now been set if ( (*ait)->allowMore() ) return 0; else return static_cast(_orList[i].size()); } } if ( a->isRequired() ) return 1; else return 0; } inline bool XorHandler::contains( const Arg* a ) { for ( int i = 0; static_cast(i) < _orList.size(); i++ ) for ( ArgVectorIterator it = _orList[i].begin(); it != _orList[i].end(); it++ ) if ( a == (*it) ) return true; return false; } inline std::vector< std::vector >& XorHandler::getXorList() { return _orList; } ////////////////////////////////////////////////////////////////////// //END XOR.cpp ////////////////////////////////////////////////////////////////////// } //namespace TCLAP #endif tclap-1.2.1/include/tclap/ZshCompletionOutput.h000644 000765 000765 00000017500 11550122710 021155 0ustar00mesmes000000 000000 // -*- Mode: c++; c-basic-offset: 4; tab-width: 4; -*- /****************************************************************************** * * file: ZshCompletionOutput.h * * Copyright (c) 2006, Oliver Kiddle * All rights reverved. * * See the file COPYING in the top directory of this distribution for * more information. * * 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. * *****************************************************************************/ #ifndef TCLAP_ZSHCOMPLETIONOUTPUT_H #define TCLAP_ZSHCOMPLETIONOUTPUT_H #include #include #include #include #include #include #include #include #include namespace TCLAP { /** * A class that generates a Zsh completion function as output from the usage() * method for the given CmdLine and its Args. */ class ZshCompletionOutput : public CmdLineOutput { public: ZshCompletionOutput(); /** * Prints the usage to stdout. Can be overridden to * produce alternative behavior. * \param c - The CmdLine object the output is generated for. */ virtual void usage(CmdLineInterface& c); /** * Prints the version to stdout. Can be overridden * to produce alternative behavior. * \param c - The CmdLine object the output is generated for. */ virtual void version(CmdLineInterface& c); /** * Prints (to stderr) an error message, short usage * Can be overridden to produce alternative behavior. * \param c - The CmdLine object the output is generated for. * \param e - The ArgException that caused the failure. */ virtual void failure(CmdLineInterface& c, ArgException& e ); protected: void basename( std::string& s ); void quoteSpecialChars( std::string& s ); std::string getMutexList( CmdLineInterface& _cmd, Arg* a ); void printOption( Arg* it, std::string mutex ); void printArg( Arg* it ); std::map common; char theDelimiter; }; ZshCompletionOutput::ZshCompletionOutput() : common(std::map()), theDelimiter('=') { common["host"] = "_hosts"; common["hostname"] = "_hosts"; common["file"] = "_files"; common["filename"] = "_files"; common["user"] = "_users"; common["username"] = "_users"; common["directory"] = "_directories"; common["path"] = "_directories"; common["url"] = "_urls"; } inline void ZshCompletionOutput::version(CmdLineInterface& _cmd) { std::cout << _cmd.getVersion() << std::endl; } inline void ZshCompletionOutput::usage(CmdLineInterface& _cmd ) { std::list argList = _cmd.getArgList(); std::string progName = _cmd.getProgramName(); std::string xversion = _cmd.getVersion(); theDelimiter = _cmd.getDelimiter(); basename(progName); std::cout << "#compdef " << progName << std::endl << std::endl << "# " << progName << " version " << _cmd.getVersion() << std::endl << std::endl << "_arguments -s -S"; for (ArgListIterator it = argList.begin(); it != argList.end(); it++) { if ( (*it)->shortID().at(0) == '<' ) printArg((*it)); else if ( (*it)->getFlag() != "-" ) printOption((*it), getMutexList(_cmd, *it)); } std::cout << std::endl; } inline void ZshCompletionOutput::failure( CmdLineInterface& _cmd, ArgException& e ) { static_cast(_cmd); // unused std::cout << e.what() << std::endl; } inline void ZshCompletionOutput::quoteSpecialChars( std::string& s ) { size_t idx = s.find_last_of(':'); while ( idx != std::string::npos ) { s.insert(idx, 1, '\\'); idx = s.find_last_of(':', idx); } idx = s.find_last_of('\''); while ( idx != std::string::npos ) { s.insert(idx, "'\\'"); if (idx == 0) idx = std::string::npos; else idx = s.find_last_of('\'', --idx); } } inline void ZshCompletionOutput::basename( std::string& s ) { size_t p = s.find_last_of('/'); if ( p != std::string::npos ) { s.erase(0, p + 1); } } inline void ZshCompletionOutput::printArg(Arg* a) { static int count = 1; std::cout << " \\" << std::endl << " '"; if ( a->acceptsMultipleValues() ) std::cout << '*'; else std::cout << count++; std::cout << ':'; if ( !a->isRequired() ) std::cout << ':'; std::cout << a->getName() << ':'; std::map::iterator compArg = common.find(a->getName()); if ( compArg != common.end() ) { std::cout << compArg->second; } else { std::cout << "_guard \"^-*\" " << a->getName(); } std::cout << '\''; } inline void ZshCompletionOutput::printOption(Arg* a, std::string mutex) { std::string flag = a->flagStartChar() + a->getFlag(); std::string name = a->nameStartString() + a->getName(); std::string desc = a->getDescription(); // remove full stop and capitalisation from description as // this is the convention for zsh function if (!desc.compare(0, 12, "(required) ")) { desc.erase(0, 12); } if (!desc.compare(0, 15, "(OR required) ")) { desc.erase(0, 15); } size_t len = desc.length(); if (len && desc.at(--len) == '.') { desc.erase(len); } if (len) { desc.replace(0, 1, 1, tolower(desc.at(0))); } std::cout << " \\" << std::endl << " '" << mutex; if ( a->getFlag().empty() ) { std::cout << name; } else { std::cout << "'{" << flag << ',' << name << "}'"; } if ( theDelimiter == '=' && a->isValueRequired() ) std::cout << "=-"; quoteSpecialChars(desc); std::cout << '[' << desc << ']'; if ( a->isValueRequired() ) { std::string arg = a->shortID(); arg.erase(0, arg.find_last_of(theDelimiter) + 1); if ( arg.at(arg.length()-1) == ']' ) arg.erase(arg.length()-1); if ( arg.at(arg.length()-1) == ']' ) { arg.erase(arg.length()-1); } if ( arg.at(0) == '<' ) { arg.erase(arg.length()-1); arg.erase(0, 1); } size_t p = arg.find('|'); if ( p != std::string::npos ) { do { arg.replace(p, 1, 1, ' '); } while ( (p = arg.find_first_of('|', p)) != std::string::npos ); quoteSpecialChars(arg); std::cout << ": :(" << arg << ')'; } else { std::cout << ':' << arg; std::map::iterator compArg = common.find(arg); if ( compArg != common.end() ) { std::cout << ':' << compArg->second; } } } std::cout << '\''; } inline std::string ZshCompletionOutput::getMutexList( CmdLineInterface& _cmd, Arg* a) { XorHandler xorHandler = _cmd.getXorHandler(); std::vector< std::vector > xorList = xorHandler.getXorList(); if (a->getName() == "help" || a->getName() == "version") { return "(-)"; } std::ostringstream list; if ( a->acceptsMultipleValues() ) { list << '*'; } for ( int i = 0; static_cast(i) < xorList.size(); i++ ) { for ( ArgVectorIterator it = xorList[i].begin(); it != xorList[i].end(); it++) if ( a == (*it) ) { list << '('; for ( ArgVectorIterator iu = xorList[i].begin(); iu != xorList[i].end(); iu++ ) { bool notCur = (*iu) != a; bool hasFlag = !(*iu)->getFlag().empty(); if ( iu != xorList[i].begin() && (notCur || hasFlag) ) list << ' '; if (hasFlag) list << (*iu)->flagStartChar() << (*iu)->getFlag() << ' '; if ( notCur || hasFlag ) list << (*iu)->nameStartString() << (*iu)->getName(); } list << ')'; return list.str(); } } // wasn't found in xor list if (!a->getFlag().empty()) { list << "(" << a->flagStartChar() << a->getFlag() << ' ' << a->nameStartString() << a->getName() << ')'; } return list.str(); } } //namespace TCLAP #endif tclap-1.2.1/examples/Makefile.am000644 000765 000765 00000001521 11552414266 016121 0ustar00mesmes000000 000000 noinst_PROGRAMS = test1 test2 test3 test4 test5 test6 test7 test8 test9 \ test10 test11 test12 test13 test14 test15 test16 \ test17 test18 test19 test20 test21 test1_SOURCES = test1.cpp test2_SOURCES = test2.cpp test3_SOURCES = test3.cpp test4_SOURCES = test4.cpp test5_SOURCES = test5.cpp test6_SOURCES = test6.cpp test7_SOURCES = test7.cpp test8_SOURCES = test8.cpp test9_SOURCES = test9.cpp test10_SOURCES = test10.cpp test11_SOURCES = test11.cpp test12_SOURCES = test12.cpp test13_SOURCES = test13.cpp test14_SOURCES = test14.cpp test15_SOURCES = test15.cpp test16_SOURCES = test16.cpp test17_SOURCES = test17.cpp test17-a.cpp test18_SOURCES = test18.cpp test19_SOURCES = test19.cpp test20_SOURCES = test20.cpp test21_SOURCES = test21.cpp AM_CPPFLAGS = -I$(top_srcdir)/include if HAVE_GNU_COMPILERS AM_CXXFLAGS = -Wall -Wextra endif tclap-1.2.1/examples/Makefile.in000644 000765 000765 00000046474 11552414365 016152 0ustar00mesmes000000 000000 # 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 = : noinst_PROGRAMS = test1$(EXEEXT) test2$(EXEEXT) test3$(EXEEXT) \ test4$(EXEEXT) test5$(EXEEXT) test6$(EXEEXT) test7$(EXEEXT) \ test8$(EXEEXT) test9$(EXEEXT) test10$(EXEEXT) test11$(EXEEXT) \ test12$(EXEEXT) test13$(EXEEXT) test14$(EXEEXT) \ test15$(EXEEXT) test16$(EXEEXT) test17$(EXEEXT) \ test18$(EXEEXT) test19$(EXEEXT) test20$(EXEEXT) \ test21$(EXEEXT) subdir = examples DIST_COMMON = $(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 = PROGRAMS = $(noinst_PROGRAMS) am_test1_OBJECTS = test1.$(OBJEXT) test1_OBJECTS = $(am_test1_OBJECTS) test1_LDADD = $(LDADD) am_test10_OBJECTS = test10.$(OBJEXT) test10_OBJECTS = $(am_test10_OBJECTS) test10_LDADD = $(LDADD) am_test11_OBJECTS = test11.$(OBJEXT) test11_OBJECTS = $(am_test11_OBJECTS) test11_LDADD = $(LDADD) am_test12_OBJECTS = test12.$(OBJEXT) test12_OBJECTS = $(am_test12_OBJECTS) test12_LDADD = $(LDADD) am_test13_OBJECTS = test13.$(OBJEXT) test13_OBJECTS = $(am_test13_OBJECTS) test13_LDADD = $(LDADD) am_test14_OBJECTS = test14.$(OBJEXT) test14_OBJECTS = $(am_test14_OBJECTS) test14_LDADD = $(LDADD) am_test15_OBJECTS = test15.$(OBJEXT) test15_OBJECTS = $(am_test15_OBJECTS) test15_LDADD = $(LDADD) am_test16_OBJECTS = test16.$(OBJEXT) test16_OBJECTS = $(am_test16_OBJECTS) test16_LDADD = $(LDADD) am_test17_OBJECTS = test17.$(OBJEXT) test17-a.$(OBJEXT) test17_OBJECTS = $(am_test17_OBJECTS) test17_LDADD = $(LDADD) am_test18_OBJECTS = test18.$(OBJEXT) test18_OBJECTS = $(am_test18_OBJECTS) test18_LDADD = $(LDADD) am_test19_OBJECTS = test19.$(OBJEXT) test19_OBJECTS = $(am_test19_OBJECTS) test19_LDADD = $(LDADD) am_test2_OBJECTS = test2.$(OBJEXT) test2_OBJECTS = $(am_test2_OBJECTS) test2_LDADD = $(LDADD) am_test20_OBJECTS = test20.$(OBJEXT) test20_OBJECTS = $(am_test20_OBJECTS) test20_LDADD = $(LDADD) am_test21_OBJECTS = test21.$(OBJEXT) test21_OBJECTS = $(am_test21_OBJECTS) test21_LDADD = $(LDADD) am_test3_OBJECTS = test3.$(OBJEXT) test3_OBJECTS = $(am_test3_OBJECTS) test3_LDADD = $(LDADD) am_test4_OBJECTS = test4.$(OBJEXT) test4_OBJECTS = $(am_test4_OBJECTS) test4_LDADD = $(LDADD) am_test5_OBJECTS = test5.$(OBJEXT) test5_OBJECTS = $(am_test5_OBJECTS) test5_LDADD = $(LDADD) am_test6_OBJECTS = test6.$(OBJEXT) test6_OBJECTS = $(am_test6_OBJECTS) test6_LDADD = $(LDADD) am_test7_OBJECTS = test7.$(OBJEXT) test7_OBJECTS = $(am_test7_OBJECTS) test7_LDADD = $(LDADD) am_test8_OBJECTS = test8.$(OBJEXT) test8_OBJECTS = $(am_test8_OBJECTS) test8_LDADD = $(LDADD) am_test9_OBJECTS = test9.$(OBJEXT) test9_OBJECTS = $(am_test9_OBJECTS) test9_LDADD = $(LDADD) DEFAULT_INCLUDES = -I. -I$(top_builddir)/config@am__isrc@ depcomp = $(SHELL) $(top_srcdir)/config/depcomp am__depfiles_maybe = depfiles CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \ -o $@ SOURCES = $(test1_SOURCES) $(test10_SOURCES) $(test11_SOURCES) \ $(test12_SOURCES) $(test13_SOURCES) $(test14_SOURCES) \ $(test15_SOURCES) $(test16_SOURCES) $(test17_SOURCES) \ $(test18_SOURCES) $(test19_SOURCES) $(test2_SOURCES) \ $(test20_SOURCES) $(test21_SOURCES) $(test3_SOURCES) \ $(test4_SOURCES) $(test5_SOURCES) $(test6_SOURCES) \ $(test7_SOURCES) $(test8_SOURCES) $(test9_SOURCES) DIST_SOURCES = $(test1_SOURCES) $(test10_SOURCES) $(test11_SOURCES) \ $(test12_SOURCES) $(test13_SOURCES) $(test14_SOURCES) \ $(test15_SOURCES) $(test16_SOURCES) $(test17_SOURCES) \ $(test18_SOURCES) $(test19_SOURCES) $(test2_SOURCES) \ $(test20_SOURCES) $(test21_SOURCES) $(test3_SOURCES) \ $(test4_SOURCES) $(test5_SOURCES) $(test6_SOURCES) \ $(test7_SOURCES) $(test8_SOURCES) $(test9_SOURCES) ETAGS = etags CTAGS = ctags 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@ test1_SOURCES = test1.cpp test2_SOURCES = test2.cpp test3_SOURCES = test3.cpp test4_SOURCES = test4.cpp test5_SOURCES = test5.cpp test6_SOURCES = test6.cpp test7_SOURCES = test7.cpp test8_SOURCES = test8.cpp test9_SOURCES = test9.cpp test10_SOURCES = test10.cpp test11_SOURCES = test11.cpp test12_SOURCES = test12.cpp test13_SOURCES = test13.cpp test14_SOURCES = test14.cpp test15_SOURCES = test15.cpp test16_SOURCES = test16.cpp test17_SOURCES = test17.cpp test17-a.cpp test18_SOURCES = test18.cpp test19_SOURCES = test19.cpp test20_SOURCES = test20.cpp test21_SOURCES = test21.cpp AM_CPPFLAGS = -I$(top_srcdir)/include @HAVE_GNU_COMPILERS_TRUE@AM_CXXFLAGS = -Wall -Wextra all: all-am .SUFFIXES: .SUFFIXES: .cpp .o .obj $(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 examples/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu examples/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 clean-noinstPROGRAMS: -test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS) test1$(EXEEXT): $(test1_OBJECTS) $(test1_DEPENDENCIES) @rm -f test1$(EXEEXT) $(CXXLINK) $(test1_OBJECTS) $(test1_LDADD) $(LIBS) test10$(EXEEXT): $(test10_OBJECTS) $(test10_DEPENDENCIES) @rm -f test10$(EXEEXT) $(CXXLINK) $(test10_OBJECTS) $(test10_LDADD) $(LIBS) test11$(EXEEXT): $(test11_OBJECTS) $(test11_DEPENDENCIES) @rm -f test11$(EXEEXT) $(CXXLINK) $(test11_OBJECTS) $(test11_LDADD) $(LIBS) test12$(EXEEXT): $(test12_OBJECTS) $(test12_DEPENDENCIES) @rm -f test12$(EXEEXT) $(CXXLINK) $(test12_OBJECTS) $(test12_LDADD) $(LIBS) test13$(EXEEXT): $(test13_OBJECTS) $(test13_DEPENDENCIES) @rm -f test13$(EXEEXT) $(CXXLINK) $(test13_OBJECTS) $(test13_LDADD) $(LIBS) test14$(EXEEXT): $(test14_OBJECTS) $(test14_DEPENDENCIES) @rm -f test14$(EXEEXT) $(CXXLINK) $(test14_OBJECTS) $(test14_LDADD) $(LIBS) test15$(EXEEXT): $(test15_OBJECTS) $(test15_DEPENDENCIES) @rm -f test15$(EXEEXT) $(CXXLINK) $(test15_OBJECTS) $(test15_LDADD) $(LIBS) test16$(EXEEXT): $(test16_OBJECTS) $(test16_DEPENDENCIES) @rm -f test16$(EXEEXT) $(CXXLINK) $(test16_OBJECTS) $(test16_LDADD) $(LIBS) test17$(EXEEXT): $(test17_OBJECTS) $(test17_DEPENDENCIES) @rm -f test17$(EXEEXT) $(CXXLINK) $(test17_OBJECTS) $(test17_LDADD) $(LIBS) test18$(EXEEXT): $(test18_OBJECTS) $(test18_DEPENDENCIES) @rm -f test18$(EXEEXT) $(CXXLINK) $(test18_OBJECTS) $(test18_LDADD) $(LIBS) test19$(EXEEXT): $(test19_OBJECTS) $(test19_DEPENDENCIES) @rm -f test19$(EXEEXT) $(CXXLINK) $(test19_OBJECTS) $(test19_LDADD) $(LIBS) test2$(EXEEXT): $(test2_OBJECTS) $(test2_DEPENDENCIES) @rm -f test2$(EXEEXT) $(CXXLINK) $(test2_OBJECTS) $(test2_LDADD) $(LIBS) test20$(EXEEXT): $(test20_OBJECTS) $(test20_DEPENDENCIES) @rm -f test20$(EXEEXT) $(CXXLINK) $(test20_OBJECTS) $(test20_LDADD) $(LIBS) test21$(EXEEXT): $(test21_OBJECTS) $(test21_DEPENDENCIES) @rm -f test21$(EXEEXT) $(CXXLINK) $(test21_OBJECTS) $(test21_LDADD) $(LIBS) test3$(EXEEXT): $(test3_OBJECTS) $(test3_DEPENDENCIES) @rm -f test3$(EXEEXT) $(CXXLINK) $(test3_OBJECTS) $(test3_LDADD) $(LIBS) test4$(EXEEXT): $(test4_OBJECTS) $(test4_DEPENDENCIES) @rm -f test4$(EXEEXT) $(CXXLINK) $(test4_OBJECTS) $(test4_LDADD) $(LIBS) test5$(EXEEXT): $(test5_OBJECTS) $(test5_DEPENDENCIES) @rm -f test5$(EXEEXT) $(CXXLINK) $(test5_OBJECTS) $(test5_LDADD) $(LIBS) test6$(EXEEXT): $(test6_OBJECTS) $(test6_DEPENDENCIES) @rm -f test6$(EXEEXT) $(CXXLINK) $(test6_OBJECTS) $(test6_LDADD) $(LIBS) test7$(EXEEXT): $(test7_OBJECTS) $(test7_DEPENDENCIES) @rm -f test7$(EXEEXT) $(CXXLINK) $(test7_OBJECTS) $(test7_LDADD) $(LIBS) test8$(EXEEXT): $(test8_OBJECTS) $(test8_DEPENDENCIES) @rm -f test8$(EXEEXT) $(CXXLINK) $(test8_OBJECTS) $(test8_LDADD) $(LIBS) test9$(EXEEXT): $(test9_OBJECTS) $(test9_DEPENDENCIES) @rm -f test9$(EXEEXT) $(CXXLINK) $(test9_OBJECTS) $(test9_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test1.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test10.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test11.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test12.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test13.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test14.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test15.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test16.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test17-a.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test17.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test18.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test19.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test2.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test20.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test21.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test3.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test4.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test5.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test6.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test7.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test8.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test9.Po@am__quote@ .cpp.o: @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< .cpp.obj: @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` 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: $(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; }'`; \ 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: $(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) @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 $(PROGRAMS) 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 clean-noinstPROGRAMS mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags 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 -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-noinstPROGRAMS ctags distclean distclean-compile \ distclean-generic distclean-tags 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-compile \ mostlyclean-generic pdf pdf-am ps ps-am tags 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: tclap-1.2.1/examples/test1.cpp000644 000765 000765 00000002247 10376744462 015646 0ustar00mesmes000000 000000 #include #include #include #include "tclap/CmdLine.h" using namespace TCLAP; using namespace std; int main(int argc, char** argv) { // Wrap everything in a try block. Do this every time, // because exceptions will be thrown for problems. try { // Define the command line object. CmdLine cmd("Command description message", ' ', "0.9"); // Define a value argument and add it to the command line. ValueArg nameArg("n","name","Name to print",true,"homer","string"); cmd.add( nameArg ); // Define a switch and add it to the command line. SwitchArg reverseSwitch("r","reverse","Print name backwards", false); cmd.add( reverseSwitch ); // Parse the args. cmd.parse( argc, argv ); // Get the value parsed by each arg. string name = nameArg.getValue(); bool reverseName = reverseSwitch.getValue(); // Do what you intend too... if ( reverseName ) { reverse(name.begin(),name.end()); cout << "My name (spelled backwards) is: " << name << endl; } else cout << "My name is: " << name << endl; } catch (ArgException &e) // catch any exceptions { cerr << "error: " << e.error() << " for arg " << e.argId() << endl; } } tclap-1.2.1/examples/test10.cpp000644 000765 000765 00000001170 11514355030 015700 0ustar00mesmes000000 000000 // Test only makes sure we can use different argv types for the // parser. Don't run, just compile. #include "tclap/CmdLine.h" using namespace TCLAP; int main() { char *argv5[] = {(char*)"Foo", 0}; const char *argv6[] = {"Foo", 0}; const char * const argv7[] = {"Foo", 0}; char **argv1 = argv5; const char **argv2 = argv6; const char * const * argv3 = argv7; const char * const * const argv4 = argv7; CmdLine cmd("Command description message", ' ', "0.9"); cmd.parse(0, argv1); cmd.parse(0, argv2); cmd.parse(0, argv3); cmd.parse(0, argv4); cmd.parse(0, argv5); cmd.parse(0, argv6); cmd.parse(0, argv7); } tclap-1.2.1/examples/test11.cpp000644 000765 000765 00000002141 10634326312 015703 0ustar00mesmes000000 000000 #include "tclap/CmdLine.h" #include using namespace TCLAP; // Define a simple 3D vector type struct Vect3D { double v[3]; // operator= will be used to assign to the vector Vect3D& operator=(const std::string &str) { std::istringstream iss(str); if (!(iss >> v[0] >> v[1] >> v[2])) throw TCLAP::ArgParseException(str + " is not a 3D vector"); return *this; } std::ostream& print(std::ostream &os) const { std::copy(v, v + 3, std::ostream_iterator(os, " ")); return os; } }; // Create an ArgTraits for the 3D vector type that declares it to be // of string like type namespace TCLAP { template<> struct ArgTraits { typedef StringLike ValueCategory; }; } int main(int argc, char *argv[]) { CmdLine cmd("Command description message", ' ', "0.9"); ValueArg vec("v", "vect", "vector", true, Vect3D(), "3D vector", cmd); try { cmd.parse(argc, argv); } catch(std::exception &e) { std::cout << e.what() << std::endl; return EXIT_FAILURE; } vec.getValue().print(std::cout); std::cout << std::endl; } tclap-1.2.1/examples/test12.cpp000644 000765 000765 00000002733 10634326312 015713 0ustar00mesmes000000 000000 #include "tclap/CmdLine.h" #include #include using namespace TCLAP; // Define a simple 3D vector type struct Vect3D { double v[3]; // operator= will be used to assign to the vector Vect3D& operator=(const std::string &str) { std::istringstream iss(str); if (!(iss >> v[0] >> v[1] >> v[2])) throw TCLAP::ArgParseException(str + " is not a 3D vector"); return *this; } std::ostream& print(std::ostream &os) const { std::copy(v, v + 3, std::ostream_iterator(os, " ")); return os; } }; std::ostream& operator<<(std::ostream &os, const Vect3D &v) { return v.print(os); } // Create an ArgTraits for the 3D vector type that declares it to be // of string like type namespace TCLAP { template<> struct ArgTraits { typedef StringLike ValueCategory; }; } int main(int argc, char *argv[]) { CmdLine cmd("Command description message", ' ', "0.9"); MultiArg vec("v", "vect", "vector", true, "3D vector", cmd); try { cmd.parse(argc, argv); } catch(std::exception &e) { std::cout << e.what() << std::endl; return EXIT_FAILURE; } std::copy(vec.begin(), vec.end(), std::ostream_iterator(std::cout, "\n")); std::cout << "REVERSED" << std::endl; // use alt. form getValue() std::vector v(vec.getValue()); std::reverse(v.begin(), v.end()); std::copy(v.begin(), v.end(), std::ostream_iterator(std::cout, "\n")); } tclap-1.2.1/examples/test13.cpp000644 000765 000765 00000002542 10700363051 015705 0ustar00mesmes000000 000000 #include #include #include using namespace TCLAP; // // This file tests that we can parse args from a vector // of strings rather than argv. This also tests a bug // where a single element in the vector contains both // the flag and value AND the value contains the flag // from another switch arg. This would fool the parser // into thinking that the string was a combined switches // string rather than a flag value combo. // // This should not print an error // // Contributed by Nico Lugil. // int main() { try { CmdLine cmd("Test", ' ', "not versioned",true); MultiArg Arg("X","fli","fli module",false,"string"); cmd.add(Arg); MultiSwitchArg ArgMultiSwitch("d","long_d","example"); cmd.add(ArgMultiSwitch); std::vector in; in.push_back("prog name"); in.push_back("-X module"); cmd.parse(in); std::vector s = Arg.getValue(); for(unsigned int i = 0 ; i < s.size() ; i++) { std::cout << s[i] << "\n"; } std::cout << "MultiSwtichArg was found " << ArgMultiSwitch.getValue() << " times.\n"; } catch (ArgException &e) // catch any exceptions { std::cerr << "error: " << e.error() << " for arg " << e.argId() << std::endl; } std::cout << "done...\n"; return 0; } tclap-1.2.1/examples/test14.cpp000644 000765 000765 00000003076 10702743013 015713 0ustar00mesmes000000 000000 #include "tclap/CmdLine.h" #include #include // Define a simple 3D vector type template struct Vect : public TCLAP::StringLikeTrait { //typedef TCLAP::StringLike ValueCategory; T v[LEN]; // operator= will be used to assign to the vector Vect& operator=(const std::string &str) { std::istringstream iss(str); for (size_t n = 0; n < LEN; n++) { if (!(iss >> v[n])) { std::ostringstream oss; oss << " is not a vector of size " << LEN; throw TCLAP::ArgParseException(str + oss.str()); } } if (!iss.eof()) { std::ostringstream oss; oss << " is not a vector of size " << LEN; throw TCLAP::ArgParseException(str + oss.str()); } return *this; } std::ostream& print(std::ostream &os) const { std::copy(v, v + LEN, std::ostream_iterator(os, " ")); return os; } }; int main(int argc, char *argv[]) { TCLAP::CmdLine cmd("Command description message", ' ', "0.9"); TCLAP::ValueArg< Vect > vec("v", "vect", "vector", true, Vect(), "3D vector", cmd); try { cmd.parse(argc, argv); } catch(std::exception &e) { std::cout << e.what() << std::endl; return EXIT_FAILURE; } vec.getValue().print(std::cout); std::cout << std::endl; } tclap-1.2.1/examples/test15.cpp000644 000765 000765 00000003034 10702743013 015706 0ustar00mesmes000000 000000 #include "tclap/CmdLine.h" #include #include // Define a simple 3D vector type template struct Vect { typedef TCLAP::StringLike ValueCategory; T v[LEN]; // operator= will be used to assign to the vector Vect& operator=(const std::string &str) { std::istringstream iss(str); for (size_t n = 0; n < LEN; n++) { if (!(iss >> v[n])) { std::ostringstream oss; oss << " is not a vector of size " << LEN; throw TCLAP::ArgParseException(str + oss.str()); } } if (!iss.eof()) { std::ostringstream oss; oss << " is not a vector of size " << LEN; throw TCLAP::ArgParseException(str + oss.str()); } return *this; } std::ostream& print(std::ostream &os) const { std::copy(v, v + LEN, std::ostream_iterator(os, " ")); return os; } }; int main(int argc, char *argv[]) { TCLAP::CmdLine cmd("Command description message", ' ', "0.9"); TCLAP::ValueArg< Vect > vec("v", "vect", "vector", true, Vect(), "3D vector", cmd); try { cmd.parse(argc, argv); } catch(std::exception &e) { std::cout << e.what() << std::endl; return EXIT_FAILURE; } vec.getValue().print(std::cout); std::cout << std::endl; } tclap-1.2.1/examples/test16.cpp000644 000765 000765 00000002151 10702743013 015706 0ustar00mesmes000000 000000 #include "tclap/CmdLine.h" #include #include namespace TCLAP { template<> struct ArgTraits< std::vector > { typedef StringLike ValueCategory; }; template<> void SetString< std::vector >(std::vector &v, const std::string &s) { std::istringstream iss(s); while (iss) { double tmp; iss >> tmp; v.push_back(tmp); } } } int main(int argc, char *argv[]) { TCLAP::CmdLine cmd("Command description message", ' ', "0.9"); TCLAP::ValueArg< std::vector > vec("v", "vect", "vector", true, std::vector(), "3D vector", cmd); try { cmd.parse(argc, argv); } catch(std::exception &e) { std::cout << e.what() << std::endl; return EXIT_FAILURE; } const std::vector &v = vec.getValue(); std::copy(v.begin(), v.end(), std::ostream_iterator(std::cout, "\n")); std::cout << std::endl; } tclap-1.2.1/examples/test17-a.cpp000644 000765 000765 00000000033 11015111164 016114 0ustar00mesmes000000 000000 #include tclap-1.2.1/examples/test17.cpp000644 000765 000765 00000000053 11015111164 015700 0ustar00mesmes000000 000000 #include int main() { } tclap-1.2.1/examples/test18.cpp000644 000765 000765 00000001073 11052643307 015716 0ustar00mesmes000000 000000 #include #include #include #include "tclap/CmdLine.h" using namespace TCLAP; using namespace std; int main(int argc, char** argv) { try { CmdLine cmd("Command description message", ' ', "0.9", true); cmd.setExceptionHandling(false); cmd.parse(argc, argv); } catch (ArgException &e) { // catch any exceptions cerr << "error: " << e.error() << " for arg " << e.argId() << endl; return 1; } catch (ExitException &e) { // catch any exceptions cerr << "Exiting on ExitException." << endl; return e.getExitStatus(); } } tclap-1.2.1/examples/test19.cpp000644 000765 000765 00000001117 11105117502 015706 0ustar00mesmes000000 000000 #define TCLAP_SETBASE_ZERO 1 #include "tclap/CmdLine.h" #include #include using namespace TCLAP; using namespace std; int main(int argc, char** argv) { try { CmdLine cmd("this is a message", ' ', "0.99" ); ValueArg itest("i", "intTest", "integer test", true, 5, "int"); cmd.add( itest ); // // Parse the command line. // cmd.parse(argc,argv); // // Set variables // int _intTest = itest.getValue(); cout << "found int: " << _intTest << endl; } catch ( ArgException& e ) { cout << "ERROR: " << e.error() << " " << e.argId() << endl; } } tclap-1.2.1/examples/test2.cpp000644 000765 000765 00000004205 10376744462 015643 0ustar00mesmes000000 000000 #include "tclap/CmdLine.h" #include #include using namespace TCLAP; using namespace std; int _intTest; float _floatTest; bool _boolTestA; bool _boolTestB; bool _boolTestC; string _stringTest; string _utest; void parseOptions(int argc, char** argv); int main(int argc, char** argv) { parseOptions(argc,argv); cout << "for float we got : " << _floatTest << endl << "for int we got : " << _intTest<< endl << "for string we got : " << _stringTest<< endl << "for ulabeled we got : " << _utest << endl << "for bool A we got : " << _boolTestA << endl << "for bool B we got : " << _boolTestB << endl << "for bool C we got : " << _boolTestC << endl; } void parseOptions(int argc, char** argv) { try { CmdLine cmd("this is a message", ' ', "0.99" ); // // Define arguments // SwitchArg btest("B","existTestB", "tests for the existence of B", false); cmd.add( btest ); SwitchArg ctest("C","existTestC", "tests for the existence of C", false); cmd.add( ctest ); SwitchArg atest("A","existTestA", "tests for the existence of A", false); cmd.add( atest ); ValueArg stest("s","stringTest","string test",true,"homer", "string"); cmd.add( stest ); ValueArg itest("i", "intTest", "integer test", true, 5, "int"); cmd.add( itest ); ValueArg ftest("f", "floatTest", "float test", false, 3.7, "float"); cmd.add( ftest ); UnlabeledValueArg utest("unTest","unlabeld test", true, "default","string"); cmd.add( utest ); UnlabeledMultiArg mtest("fileName", "file names", false, "string"); cmd.add( mtest ); // // Parse the command line. // cmd.parse(argc,argv); // // Set variables // _intTest = itest.getValue(); _floatTest = ftest.getValue(); _stringTest = stest.getValue(); _boolTestB = btest.getValue(); _boolTestC = ctest.getValue(); _boolTestA = atest.getValue(); _utest = utest.getValue(); vector v = mtest.getValue(); for ( int i = 0; static_cast(i) < v.size(); i++ ) cout << i << " " << v[i] << endl; } catch ( ArgException& e ) { cout << "ERROR: " << e.error() << " " << e.argId() << endl; } } tclap-1.2.1/examples/test20.cpp000644 000765 000765 00000001404 11510156207 015702 0ustar00mesmes000000 000000 #include #include #include #include using namespace TCLAP; using namespace std; int main(int argc, char** argv) { // Wrap everything in a try block. Do this every time, // because exceptions will be thrown for problems. try { // Define the command line object. CmdLine cmd("Command description message", '=', "0.9"); SwitchArg atmcSwitch("a", "atmc", "aContinuous time semantics", false); SwitchArg btmcSwitch("b", "btmc", "bDiscrete time semantics", false); cmd.xorAdd(atmcSwitch, btmcSwitch); // Parse the args. cmd.parse( argc, argv ); } catch (ArgException &e) // catch any exceptions { cerr << "error: " << e.error() << " for arg " << e.argId() << endl; } } tclap-1.2.1/examples/test21.cpp000644 000765 000765 00000002567 11552414266 015726 0ustar00mesmes000000 000000 // This illustrates how to change the flag and name start strings. // Note that these defines need to happen *before* tclap is included! #define TCLAP_NAMESTARTSTRING "~~" #define TCLAP_FLAGSTARTSTRING "/" #include #include #include #include "tclap/CmdLine.h" using namespace TCLAP; using namespace std; int main(int argc, char** argv) { // Wrap everything in a try block. Do this every time, // because exceptions will be thrown for problems. try { // Define the command line object. CmdLine cmd("Command description message", ' ', "0.9"); // Define a value argument and add it to the command line. ValueArg nameArg("n","name","Name to print",true,"homer","string"); cmd.add( nameArg ); // Define a switch and add it to the command line. SwitchArg reverseSwitch("r","reverse","Print name backwards", false); cmd.add( reverseSwitch ); // Parse the args. cmd.parse( argc, argv ); // Get the value parsed by each arg. string name = nameArg.getValue(); bool reverseName = reverseSwitch.getValue(); // Do what you intend too... if ( reverseName ) { reverse(name.begin(),name.end()); cout << "My name (spelled backwards) is: " << name << endl; } else cout << "My name is: " << name << endl; } catch (ArgException &e) // catch any exceptions { cerr << "error: " << e.error() << " for arg " << e.argId() << endl; } } tclap-1.2.1/examples/test3.cpp000644 000765 000765 00000004176 10376744462 015653 0ustar00mesmes000000 000000 #include "tclap/CmdLine.h" #include #include using namespace TCLAP; using namespace std; bool _boolTestB; string _stringTest; string _utest; string _ztest; void parseOptions(int argc, char** argv); int main(int argc, char** argv) { parseOptions(argc,argv); cout << "for string we got : " << _stringTest<< endl << "for ulabeled one we got : " << _utest << endl << "for ulabeled two we got : " << _ztest << endl << "for bool B we got : " << _boolTestB << endl; } void parseOptions(int argc, char** argv) { try { CmdLine cmd("this is a message", '=', "0.99" ); // // Define arguments // SwitchArg btest("B","existTestB", "exist Test B", false); cmd.add( btest ); ValueArg stest("", "stringTest", "string test", true, "homer", "string"); cmd.add( stest ); UnlabeledValueArg utest("unTest1","unlabeled test one", true, "default","string"); cmd.add( utest ); UnlabeledValueArg ztest("unTest2","unlabeled test two", true, "default","string"); cmd.add( ztest ); MultiArg itest("i", "intTest", "multi int test", false,"int" ); cmd.add( itest ); MultiArg ftest("f", "floatTest", "multi float test", false,"float" ); cmd.add( ftest ); UnlabeledMultiArg mtest("fileName","file names",false, "fileNameString"); cmd.add( mtest ); // // Parse the command line. // cmd.parse(argc,argv); // // Set variables // _stringTest = stest.getValue(); _boolTestB = btest.getValue(); _utest = utest.getValue(); _ztest = ztest.getValue(); vector vi = itest.getValue(); for ( int i = 0; static_cast(i) < vi.size(); i++ ) cout << "[-i] " << i << " " << vi[i] << endl; vector vf = ftest.getValue(); for ( int i = 0; static_cast(i) < vf.size(); i++ ) cout << "[-f] " << i << " " << vf[i] << endl; vector v = mtest.getValue(); for ( int i = 0; static_cast(i) < v.size(); i++ ) cout << "[ ] " << i << " " << v[i] << endl; } catch ( ArgException& e ) { cout << "ERROR: " << e.error() << " " << e.argId() << endl; } } tclap-1.2.1/examples/test4.cpp000644 000765 000765 00000004013 10572616771 015641 0ustar00mesmes000000 000000 #include "tclap/CmdLine.h" #include "tclap/DocBookOutput.h" #include "tclap/ZshCompletionOutput.h" #include #include using namespace TCLAP; using namespace std; // This exemplifies how the output class can be overridden to provide // user defined output. class MyOutput : public StdOutput { public: virtual void failure(CmdLineInterface& c, ArgException& e) { static_cast(c); // Ignore input, don't warn cerr << "my failure message: " << endl << e.what() << endl; exit(1); } virtual void usage(CmdLineInterface& c) { cout << "my usage message:" << endl; list args = c.getArgList(); for (ArgListIterator it = args.begin(); it != args.end(); it++) cout << (*it)->longID() << " (" << (*it)->getDescription() << ")" << endl; } virtual void version(CmdLineInterface& c) { static_cast(c); // Ignore input, don't warn cout << "my version message: 0.1" << endl; } }; bool _boolTestB; bool _boolTestA; string _stringTest; void parseOptions(int argc, char** argv); int main(int argc, char** argv) { parseOptions(argc,argv); cout << "for string we got : " << _stringTest<< endl << "for bool B we got : " << _boolTestB << endl << "for bool A we got : " << _boolTestA << endl; } void parseOptions(int argc, char** argv) { try { CmdLine cmd("this is a message", ' ', "0.99" ); // set the output MyOutput my; //ZshCompletionOutput my; //DocBookOutput my; cmd.setOutput(&my); // // Define arguments // SwitchArg btest("B","sB", "exist Test B", false); SwitchArg atest("A","sA", "exist Test A", false); ValueArg stest("s", "Bs", "string test", true, "homer", "string"); cmd.add( stest ); cmd.add( btest ); cmd.add( atest ); // // Parse the command line. // cmd.parse(argc,argv); // // Set variables // _stringTest = stest.getValue(); _boolTestB = btest.getValue(); _boolTestA = atest.getValue(); } catch ( ArgException& e ) { cout << "ERROR: " << e.error() << " " << e.argId() << endl; } } tclap-1.2.1/examples/test5.cpp000644 000765 000765 00000005206 10376744462 015650 0ustar00mesmes000000 000000 #include "tclap/CmdLine.h" #include #include using namespace TCLAP; using namespace std; string _orTest; string _orTest2; string _testc; bool _testd; void parseOptions(int argc, char** argv); int main(int argc, char** argv) { parseOptions(argc,argv); cout << "for A OR B we got : " << _orTest<< endl << "for string C we got : " << _testc << endl << "for string D we got : " << _testd << endl << "for E or F or G we got: " << _orTest2 << endl; } void parseOptions(int argc, char** argv) { try { CmdLine cmd("this is a message", ' ', "0.99" ); // // Define arguments // ValueArg atest("a", "aaa", "or test a", true, "homer", "string"); ValueArg btest("b", "bbb", "or test b", true, "homer", "string"); cmd.xorAdd( atest, btest ); ValueArg ctest("c", "ccc", "c test", true, "homer", "string"); cmd.add( ctest ); SwitchArg dtest("", "ddd", "d test", false); cmd.add( dtest ); ValueArg etest("", "eee", "e test", false, "homer", "string"); ValueArg ftest("", "fff", "f test", false, "homer", "string"); ValueArg gtest("g", "ggg", "g test", false, "homer", "string"); vector xorlist; xorlist.push_back(&etest); xorlist.push_back(&ftest); xorlist.push_back(>est); cmd.xorAdd( xorlist ); MultiArg itest("i", "iii", "or test i", true, "string"); MultiArg jtest("j", "jjj", "or test j", true, "string"); cmd.xorAdd( itest, jtest ); // // Parse the command line. // cmd.parse(argc,argv); // // Set variables // if ( atest.isSet() ) _orTest = atest.getValue(); else if ( btest.isSet() ) _orTest = btest.getValue(); else // Should never get here because TCLAP will note that one of the // required args above has not been set. throw("very bad things..."); _testc = ctest.getValue(); _testd = dtest.getValue(); if ( etest.isSet() ) _orTest2 = etest.getValue(); else if ( ftest.isSet() ) _orTest2 = ftest.getValue(); else if ( gtest.isSet() ) _orTest2 = gtest.getValue(); else throw("still bad"); if ( jtest.isSet() ) { cout << "for J:" << endl; vector v = jtest.getValue(); for ( int z = 0; static_cast(z) < v.size(); z++ ) cout << " " << z << " " << v[z] << endl; } else if ( itest.isSet() ) { cout << "for I:" << endl; vector v = itest.getValue(); for ( int z = 0; static_cast(z) < v.size(); z++ ) cout << " " << z << " " << v[z] << endl; } else throw("yup, still bad"); } catch ( ArgException& e ) { cout << "ERROR: " << e.error() << " " << e.argId() << endl; } } tclap-1.2.1/examples/test6.cpp000644 000765 000765 00000002426 10376744462 015652 0ustar00mesmes000000 000000 #include #include "tclap/CmdLine.h" using namespace TCLAP; using namespace std; int main(int argc, char** argv) { // Wrap everything in a try block. Do this every time, // because exceptions will be thrown for problems. try { // Define the command line object. CmdLine cmd("Command description message", ' ', "0.9"); vector allowed; allowed.push_back("homer"); allowed.push_back("marge"); allowed.push_back("bart"); allowed.push_back("lisa"); allowed.push_back("maggie"); ValuesConstraint allowedVals( allowed ); ValueArg nameArg("n","name","Name to print",true,"homer", &allowedVals); cmd.add( nameArg ); vector iallowed; iallowed.push_back(1); iallowed.push_back(2); iallowed.push_back(3); ValuesConstraint iallowedVals( iallowed ); UnlabeledValueArg intArg("times","Number of times to print",true,1, &iallowedVals,false); cmd.add( intArg ); // Parse the args. cmd.parse( argc, argv ); // Get the value parsed by each arg. int num = intArg.getValue(); string name = nameArg.getValue(); for ( int i = 0; i < num; i++ ) cout << "My name is " << name << endl; } catch ( ArgException& e) // catch any exceptions { cerr << "error: " << e.error() << " for arg " << e.argId() << endl; } } tclap-1.2.1/examples/test7.cpp000644 000765 000765 00000006116 11007772132 015636 0ustar00mesmes000000 000000 #include #include "tclap/CmdLine.h" using namespace TCLAP; using namespace std; int main(int argc, char **argv) { // Wrap everything in a try block. Do this every time, // because exceptions will be thrown for problems. try { // Define the command line object. CmdLine cmd("Command description message. This is a long multi-line message meant to test line wrapping. This is more text that doesn't really do anything besides take up lots of space that otherwise might be used for something real. That should be enough, don't you think?", ' ', "0.9"); vector allowed; allowed.push_back("homer"); allowed.push_back("marge"); allowed.push_back("bart"); allowed.push_back("lisa"); allowed.push_back("maggie"); ValuesConstraint vallowed( allowed ); MultiArg nameArg("n","name","Name to print. This is a long, nonsensical message to test line wrapping. Hopefully it works.",true,&vallowed); cmd.add( nameArg ); vector iallowed; iallowed.push_back(1); iallowed.push_back(2); iallowed.push_back(3); ValuesConstraint iiallowed( iallowed ); UnlabeledMultiArg intArg("times","Number of times to print",false, &iiallowed); cmd.add( intArg ); // Ignore the names and comments! These args mean nothing (to this // program) and are here solely to take up space. ValueArg gapCreate("f","gapCreate", "The cost of creating a gap", false, -10, "negative int"); cmd.add( gapCreate ); ValueArg gapExtend("g","gap-Extend", "The cost for each extension of a gap", false, -2, "negative int"); cmd.add( gapExtend ); SwitchArg dna("d","isDna","The input sequences are DNA", false); cmd.add( dna ); ValueArg scoringMatrixName("s","scoring--Matrix", "Scoring Matrix name", false,"BLOSUM50","name string"); cmd.add( scoringMatrixName ); ValueArg seq1Filename ("x","filename1", "Sequence 1 filename (FASTA format)", false,"","filename"); cmd.add( seq1Filename ); ValueArg seq2Filename ("z","filename2", "Sequence 2 filename (FASTA format)", false,"","filename"); cmd.add( seq2Filename ); ValueArg lowerBound("b","lowerBound", "lower percentage bound", false,1.0,"float lte 1"); cmd.add( lowerBound ); ValueArg upperBound("u","upperBound", "upper percentage bound", false,1.0,"float lte 1"); cmd.add( upperBound ); ValueArg limit("l","limit","Max number of alignments allowed", false, 1000,"int"); cmd.add( limit ); argv[0] = const_cast("ThisIsAVeryLongProgramNameDesignedToTestSpacePrintWhichUsedToHaveProblemsWithLongProgramNamesIThinkItIsNowLongEnough"); // Parse the args. cmd.parse( argc, argv ); // Get the value parsed by each arg. vector num = intArg.getValue(); for ( unsigned int i = 0; i < num.size(); i++ ) cout << "Got num " << num[i] << endl; vector name = nameArg.getValue(); for ( unsigned int i = 0; i < name.size(); i++ ) cout << "Got name " << name[i] << endl; } catch (ArgException& e) // catch any exceptions { cerr << "error: " << e.error() << " for arg " << e.argId() << endl; } } tclap-1.2.1/examples/test8.cpp000644 000765 000765 00000004070 10431705052 015631 0ustar00mesmes000000 000000 #include "tclap/CmdLine.h" #include #include using namespace TCLAP; using namespace std; bool _boolTestB; string _stringTest; string _utest; string _ztest; void parseOptions(int argc, char** argv); int main(int argc, char** argv) { parseOptions(argc,argv); cout << "for string we got : " << _stringTest<< endl << "for ulabeled one we got : " << _utest << endl << "for ulabeled two we got : " << _ztest << endl << "for bool B we got : " << _boolTestB << endl; } void parseOptions(int argc, char** argv) { try { CmdLine cmd("this is a message", '=', "0.99" ); // // Define arguments // SwitchArg btest("B","existTestB", "exist Test B", cmd, false); ValueArg stest("s", "stringTest", "string test", true, "homer", "string", cmd ); UnlabeledValueArg utest("unTest1","unlabeled test one", true, "default","string", cmd ); UnlabeledValueArg ztest("unTest2","unlabeled test two", true, "default","string", cmd ); MultiArg itest("i", "intTest", "multi int test", false,"int", cmd ); MultiArg ftest("f", "floatTest", "multi float test", false,"float", cmd ); UnlabeledMultiArg mtest("fileName","file names", false, "fileNameString", cmd); // // Parse the command line. // cmd.parse(argc,argv); // // Set variables // _stringTest = stest.getValue(); _boolTestB = btest.getValue(); _utest = utest.getValue(); _ztest = ztest.getValue(); vector vi = itest.getValue(); for ( int i = 0; static_cast(i) < vi.size(); i++ ) cout << "[-i] " << i << " " << vi[i] << endl; vector vf = ftest.getValue(); for ( int i = 0; static_cast(i) < vf.size(); i++ ) cout << "[-f] " << i << " " << vf[i] << endl; vector v = mtest.getValue(); for ( int i = 0; static_cast(i) < v.size(); i++ ) cout << "[ ] " << i << " " << v[i] << endl; } catch ( ArgException& e ) { cout << "ERROR: " << e.error() << " " << e.argId() << endl; } } tclap-1.2.1/examples/test9.cpp000644 000765 000765 00000002503 10376744462 015651 0ustar00mesmes000000 000000 #include #include #include #include "tclap/CmdLine.h" using namespace TCLAP; using namespace std; int main(int argc, char** argv) { try { CmdLine cmd("Command description message", ' ', "0.9",false); SwitchArg reverseSwitch("r","reverse","REVERSE instead of FORWARDS", false); cmd.add( reverseSwitch ); MultiSwitchArg verbose("V","verbose","Level of verbosity"); cmd.add( verbose ); MultiSwitchArg noise("N","noise","Level of noise",5); cmd.add( noise ); UnlabeledValueArg word("word","a random word", false, "string", "won't see this",false); cmd.add( word ); // Uncommenting the next arg will (correctly) cause an exception // to be thrown. // UnlabeledMultiArg badword("badword","a bad word", false,"string"); // // cmd.add( badword ); cmd.parse( argc, argv ); bool reverseName = reverseSwitch.getValue(); if ( reverseName ) cout << "REVERSE" << endl; else cout << "FORWARD" << endl; if ( verbose.isSet() ) cout << "Verbose level: " << verbose.getValue() << endl; if ( noise.isSet() ) cout << "Noise level: " << noise.getValue() << endl; if ( word.isSet() ) cout << "Word: " << word.getValue() << endl; } catch (ArgException &e) // catch any exceptions { cerr << "error: " << e.error() << " for arg " << e.argId() << endl; } } tclap-1.2.1/docs/Doxyfile.in000644 000765 000765 00000124263 10176527003 015316 0ustar00mesmes000000 000000 # Doxyfile 1.3.4 # This file describes the settings to be used by the documentation system # doxygen (www.doxygen.org) for a project # # All text after a hash (#) is considered a comment and will be ignored # The format is: # TAG = value [value, ...] # For lists items can also be appended using: # TAG += value [value, ...] # Values that contain spaces should be placed between quotes (" ") #--------------------------------------------------------------------------- # Project related configuration options #--------------------------------------------------------------------------- # The PROJECT_NAME tag is a single word (or a sequence of words surrounded # by quotes) that should identify the project. PROJECT_NAME = tclap # The PROJECT_NUMBER tag can be used to enter a project or revision number. # This could be handy for archiving the generated documentation or # if some version control system is used. PROJECT_NUMBER = "@VERSION@" # The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) # base path where the generated documentation will be put. # If a relative path is entered, it will be relative to the location # where doxygen was started. If left blank the current directory will be used. OUTPUT_DIRECTORY = # The OUTPUT_LANGUAGE tag is used to specify the language in which all # documentation generated by doxygen is written. Doxygen will use this # information to generate all constant output in the proper language. # The default language is English, other supported languages are: # Brazilian, Catalan, Chinese, Chinese-Traditional, Croatian, Czech, Danish, Dutch, # Finnish, French, German, Greek, Hungarian, Italian, Japanese, Japanese-en # (Japanese with English messages), Korean, Norwegian, Polish, Portuguese, # Romanian, Russian, Serbian, Slovak, Slovene, Spanish, Swedish, and Ukrainian. OUTPUT_LANGUAGE = English # This tag can be used to specify the encoding used in the generated output. # The encoding is not always determined by the language that is chosen, # but also whether or not the output is meant for Windows or non-Windows users. # In case there is a difference, setting the USE_WINDOWS_ENCODING tag to YES # forces the Windows encoding (this is the default for the Windows binary), # whereas setting the tag to NO uses a Unix-style encoding (the default for # all platforms other than Windows). USE_WINDOWS_ENCODING = NO # If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will # include brief member descriptions after the members that are listed in # the file and class documentation (similar to JavaDoc). # Set to NO to disable this. BRIEF_MEMBER_DESC = YES # If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend # the brief description of a member or function before the detailed description. # Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the # brief descriptions will be completely suppressed. REPEAT_BRIEF = YES # If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then # Doxygen will generate a detailed section even if there is only a brief # description. ALWAYS_DETAILED_SEC = YES # If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all inherited # members of a class in the documentation of that class as if those members were # ordinary class members. Constructors, destructors and assignment operators of # the base classes will not be shown. INLINE_INHERITED_MEMB = NO # If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full # path before files name in the file list and in the header files. If set # to NO the shortest path that makes the file name unique will be used. FULL_PATH_NAMES = NO # If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag # can be used to strip a user-defined part of the path. Stripping is # only done if one of the specified strings matches the left-hand part of # the path. It is allowed to use relative paths in the argument list. STRIP_FROM_PATH = # If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter # (but less readable) file names. This can be useful is your file systems # doesn't support long names like on DOS, Mac, or CD-ROM. SHORT_NAMES = NO # If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen # will interpret the first line (until the first dot) of a JavaDoc-style # comment as the brief description. If set to NO, the JavaDoc # comments will behave just like the Qt-style comments (thus requiring an # explict @brief command for a brief description. JAVADOC_AUTOBRIEF = YES # The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen # treat a multi-line C++ special comment block (i.e. a block of //! or /// # comments) as a brief description. This used to be the default behaviour. # The new default is to treat a multi-line C++ comment block as a detailed # description. Set this tag to YES if you prefer the old behaviour instead. MULTILINE_CPP_IS_BRIEF = NO # If the DETAILS_AT_TOP tag is set to YES then Doxygen # will output the detailed description near the top, like JavaDoc. # If set to NO, the detailed description appears after the member # documentation. DETAILS_AT_TOP = NO # If the INHERIT_DOCS tag is set to YES (the default) then an undocumented # member inherits the documentation from any documented member that it # reimplements. INHERIT_DOCS = YES # If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC # tag is set to YES, then doxygen will reuse the documentation of the first # member in the group (if any) for the other members of the group. By default # all members of a group must be documented explicitly. DISTRIBUTE_GROUP_DOC = NO # The TAB_SIZE tag can be used to set the number of spaces in a tab. # Doxygen uses this value to replace tabs by spaces in code fragments. TAB_SIZE = 4 # This tag can be used to specify a number of aliases that acts # as commands in the documentation. An alias has the form "name=value". # For example adding "sideeffect=\par Side Effects:\n" will allow you to # put the command \sideeffect (or @sideeffect) in the documentation, which # will result in a user-defined paragraph with heading "Side Effects:". # You can put \n's in the value part of an alias to insert newlines. ALIASES = # Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources # only. Doxygen will then generate output that is more tailored for C. # For instance, some of the names that are used will be different. The list # of all members will be omitted, etc. OPTIMIZE_OUTPUT_FOR_C = NO # Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java sources # only. Doxygen will then generate output that is more tailored for Java. # For instance, namespaces will be presented as packages, qualified scopes # will look different, etc. OPTIMIZE_OUTPUT_JAVA = NO # Set the SUBGROUPING tag to YES (the default) to allow class member groups of # the same type (for instance a group of public functions) to be put as a # subgroup of that type (e.g. under the Public Functions section). Set it to # NO to prevent subgrouping. Alternatively, this can be done per class using # the \nosubgrouping command. SUBGROUPING = YES #--------------------------------------------------------------------------- # Build related configuration options #--------------------------------------------------------------------------- # If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in # documentation are documented, even if no documentation was available. # Private class members and static file members will be hidden unless # the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES EXTRACT_ALL = YES # If the EXTRACT_PRIVATE tag is set to YES all private members of a class # will be included in the documentation. EXTRACT_PRIVATE = NO # If the EXTRACT_STATIC tag is set to YES all static members of a file # will be included in the documentation. EXTRACT_STATIC = YES # If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs) # defined locally in source files will be included in the documentation. # If set to NO only classes defined in header files are included. EXTRACT_LOCAL_CLASSES = YES # If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all # undocumented members of documented classes, files or namespaces. # If set to NO (the default) these members will be included in the # various overviews, but no documentation section is generated. # This option has no effect if EXTRACT_ALL is enabled. HIDE_UNDOC_MEMBERS = NO # If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all # undocumented classes that are normally visible in the class hierarchy. # If set to NO (the default) these classes will be included in the various # overviews. This option has no effect if EXTRACT_ALL is enabled. HIDE_UNDOC_CLASSES = NO # If the HIDE_FRIEND_COMPOUNDS tag is set to YES, Doxygen will hide all # friend (class|struct|union) declarations. # If set to NO (the default) these declarations will be included in the # documentation. HIDE_FRIEND_COMPOUNDS = NO # If the HIDE_IN_BODY_DOCS tag is set to YES, Doxygen will hide any # documentation blocks found inside the body of a function. # If set to NO (the default) these blocks will be appended to the # function's detailed documentation block. HIDE_IN_BODY_DOCS = NO # The INTERNAL_DOCS tag determines if documentation # that is typed after a \internal command is included. If the tag is set # to NO (the default) then the documentation will be excluded. # Set it to YES to include the internal documentation. INTERNAL_DOCS = NO # If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate # file names in lower-case letters. If set to YES upper-case letters are also # allowed. This is useful if you have classes or files whose names only differ # in case and if your file system supports case sensitive file names. Windows # users are advised to set this option to NO. CASE_SENSE_NAMES = YES # If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen # will show members with their full class and namespace scopes in the # documentation. If set to YES the scope will be hidden. HIDE_SCOPE_NAMES = NO # If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen # will put a list of the files that are included by a file in the documentation # of that file. SHOW_INCLUDE_FILES = YES # If the INLINE_INFO tag is set to YES (the default) then a tag [inline] # is inserted in the documentation for inline members. INLINE_INFO = YES # If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen # will sort the (detailed) documentation of file and class members # alphabetically by member name. If set to NO the members will appear in # declaration order. SORT_MEMBER_DOCS = YES # The GENERATE_TODOLIST tag can be used to enable (YES) or # disable (NO) the todo list. This list is created by putting \todo # commands in the documentation. GENERATE_TODOLIST = YES # The GENERATE_TESTLIST tag can be used to enable (YES) or # disable (NO) the test list. This list is created by putting \test # commands in the documentation. GENERATE_TESTLIST = YES # The GENERATE_BUGLIST tag can be used to enable (YES) or # disable (NO) the bug list. This list is created by putting \bug # commands in the documentation. GENERATE_BUGLIST = YES # The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or # disable (NO) the deprecated list. This list is created by putting # \deprecated commands in the documentation. GENERATE_DEPRECATEDLIST= YES # The ENABLED_SECTIONS tag can be used to enable conditional # documentation sections, marked by \if sectionname ... \endif. ENABLED_SECTIONS = # The MAX_INITIALIZER_LINES tag determines the maximum number of lines # the initial value of a variable or define consists of for it to appear in # the documentation. If the initializer consists of more lines than specified # here it will be hidden. Use a value of 0 to hide initializers completely. # The appearance of the initializer of individual variables and defines in the # documentation can be controlled using \showinitializer or \hideinitializer # command in the documentation regardless of this setting. MAX_INITIALIZER_LINES = 30 # Set the SHOW_USED_FILES tag to NO to disable the list of files generated # at the bottom of the documentation of classes and structs. If set to YES the # list will mention the files that were used to generate the documentation. SHOW_USED_FILES = YES #--------------------------------------------------------------------------- # configuration options related to warning and progress messages #--------------------------------------------------------------------------- # The QUIET tag can be used to turn on/off the messages that are generated # by doxygen. Possible values are YES and NO. If left blank NO is used. QUIET = NO # The WARNINGS tag can be used to turn on/off the warning messages that are # generated by doxygen. Possible values are YES and NO. If left blank # NO is used. WARNINGS = YES # If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings # for undocumented members. If EXTRACT_ALL is set to YES then this flag will # automatically be disabled. WARN_IF_UNDOCUMENTED = YES # If WARN_IF_DOC_ERROR is set to YES, doxygen will generate warnings for # potential errors in the documentation, such as not documenting some # parameters in a documented function, or documenting parameters that # don't exist or using markup commands wrongly. WARN_IF_DOC_ERROR = YES # The WARN_FORMAT tag determines the format of the warning messages that # doxygen can produce. The string should contain the $file, $line, and $text # tags, which will be replaced by the file and line number from which the # warning originated and the warning text. WARN_FORMAT = "$file:$line: $text" # The WARN_LOGFILE tag can be used to specify a file to which warning # and error messages should be written. If left blank the output is written # to stderr. WARN_LOGFILE = #--------------------------------------------------------------------------- # configuration options related to the input files #--------------------------------------------------------------------------- # The INPUT tag can be used to specify the files and/or directories that contain # documented source files. You may enter file names like "myfile.cpp" or # directories like "/usr/src/myproject". Separate the files or directories # with spaces. INPUT = @top_srcdir@/include/tclap # If the value of the INPUT tag contains directories, you can use the # FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp # and *.h) to filter out the source-files in the directories. If left # blank the following patterns are tested: # *.c *.cc *.cxx *.cpp *.c++ *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh *.hxx *.hpp # *.h++ *.idl *.odl *.cs *.php *.php3 *.inc FILE_PATTERNS = # The RECURSIVE tag can be used to turn specify whether or not subdirectories # should be searched for input files as well. Possible values are YES and NO. # If left blank NO is used. RECURSIVE = NO # The EXCLUDE tag can be used to specify files and/or directories that should # excluded from the INPUT source files. This way you can easily exclude a # subdirectory from a directory tree whose root is specified with the INPUT tag. EXCLUDE = # The EXCLUDE_SYMLINKS tag can be used select whether or not files or directories # that are symbolic links (a Unix filesystem feature) are excluded from the input. EXCLUDE_SYMLINKS = NO # If the value of the INPUT tag contains directories, you can use the # EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude # certain files from those directories. EXCLUDE_PATTERNS = # The EXAMPLE_PATH tag can be used to specify one or more files or # directories that contain example code fragments that are included (see # the \include command). EXAMPLE_PATH = # If the value of the EXAMPLE_PATH tag contains directories, you can use the # EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp # and *.h) to filter out the source-files in the directories. If left # blank all files are included. EXAMPLE_PATTERNS = # If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be # searched for input files to be used with the \include or \dontinclude # commands irrespective of the value of the RECURSIVE tag. # Possible values are YES and NO. If left blank NO is used. EXAMPLE_RECURSIVE = NO # The IMAGE_PATH tag can be used to specify one or more files or # directories that contain image that are included in the documentation (see # the \image command). IMAGE_PATH = # The INPUT_FILTER tag can be used to specify a program that doxygen should # invoke to filter for each input file. Doxygen will invoke the filter program # by executing (via popen()) the command , where # is the value of the INPUT_FILTER tag, and is the name of an # input file. Doxygen will then use the output that the filter program writes # to standard output. INPUT_FILTER = # If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using # INPUT_FILTER) will be used to filter the input files when producing source # files to browse (i.e. when SOURCE_BROWSER is set to YES). FILTER_SOURCE_FILES = NO #--------------------------------------------------------------------------- # configuration options related to source browsing #--------------------------------------------------------------------------- # If the SOURCE_BROWSER tag is set to YES then a list of source files will # be generated. Documented entities will be cross-referenced with these sources. SOURCE_BROWSER = YES # Setting the INLINE_SOURCES tag to YES will include the body # of functions and classes directly in the documentation. INLINE_SOURCES = NO # Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct # doxygen to hide any special comment blocks from generated source code # fragments. Normal C and C++ comments will always remain visible. STRIP_CODE_COMMENTS = YES # If the REFERENCED_BY_RELATION tag is set to YES (the default) # then for each documented function all documented # functions referencing it will be listed. REFERENCED_BY_RELATION = YES # If the REFERENCES_RELATION tag is set to YES (the default) # then for each documented function all documented entities # called/used by that function will be listed. REFERENCES_RELATION = YES # If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen # will generate a verbatim copy of the header file for each class for # which an include is specified. Set to NO to disable this. VERBATIM_HEADERS = YES #--------------------------------------------------------------------------- # configuration options related to the alphabetical class index #--------------------------------------------------------------------------- # If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index # of all compounds will be generated. Enable this if the project # contains a lot of classes, structs, unions or interfaces. ALPHABETICAL_INDEX = NO # If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then # the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns # in which this list will be split (can be a number in the range [1..20]) COLS_IN_ALPHA_INDEX = 5 # In case all classes in a project start with a common prefix, all # classes will be put under the same header in the alphabetical index. # The IGNORE_PREFIX tag can be used to specify one or more prefixes that # should be ignored while generating the index headers. IGNORE_PREFIX = #--------------------------------------------------------------------------- # configuration options related to the HTML output #--------------------------------------------------------------------------- # If the GENERATE_HTML tag is set to YES (the default) Doxygen will # generate HTML output. GENERATE_HTML = YES # The HTML_OUTPUT tag is used to specify where the HTML docs will be put. # If a relative path is entered the value of OUTPUT_DIRECTORY will be # put in front of it. If left blank `html' will be used as the default path. HTML_OUTPUT = html # The HTML_FILE_EXTENSION tag can be used to specify the file extension for # each generated HTML page (for example: .htm,.php,.asp). If it is left blank # doxygen will generate files with .html extension. HTML_FILE_EXTENSION = .html # The HTML_HEADER tag can be used to specify a personal HTML header for # each generated HTML page. If it is left blank doxygen will generate a # standard header. HTML_HEADER = # The HTML_FOOTER tag can be used to specify a personal HTML footer for # each generated HTML page. If it is left blank doxygen will generate a # standard footer. HTML_FOOTER = # The HTML_STYLESHEET tag can be used to specify a user-defined cascading # style sheet that is used by each HTML page. It can be used to # fine-tune the look of the HTML output. If the tag is left blank doxygen # will generate a default style sheet HTML_STYLESHEET = # If the HTML_ALIGN_MEMBERS tag is set to YES, the members of classes, # files or namespaces will be aligned in HTML using tables. If set to # NO a bullet list will be used. HTML_ALIGN_MEMBERS = YES # If the GENERATE_HTMLHELP tag is set to YES, additional index files # will be generated that can be used as input for tools like the # Microsoft HTML help workshop to generate a compressed HTML help file (.chm) # of the generated HTML documentation. GENERATE_HTMLHELP = NO # If the GENERATE_HTMLHELP tag is set to YES, the CHM_FILE tag can # be used to specify the file name of the resulting .chm file. You # can add a path in front of the file if the result should not be # written to the html output dir. CHM_FILE = # If the GENERATE_HTMLHELP tag is set to YES, the HHC_LOCATION tag can # be used to specify the location (absolute path including file name) of # the HTML help compiler (hhc.exe). If non-empty doxygen will try to run # the HTML help compiler on the generated index.hhp. HHC_LOCATION = # If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag # controls if a separate .chi index file is generated (YES) or that # it should be included in the master .chm file (NO). GENERATE_CHI = NO # If the GENERATE_HTMLHELP tag is set to YES, the BINARY_TOC flag # controls whether a binary table of contents is generated (YES) or a # normal table of contents (NO) in the .chm file. BINARY_TOC = NO # The TOC_EXPAND flag can be set to YES to add extra items for group members # to the contents of the HTML help documentation and to the tree view. TOC_EXPAND = NO # The DISABLE_INDEX tag can be used to turn on/off the condensed index at # top of each HTML page. The value NO (the default) enables the index and # the value YES disables it. DISABLE_INDEX = NO # This tag can be used to set the number of enum values (range [1..20]) # that doxygen will group on one line in the generated HTML documentation. ENUM_VALUES_PER_LINE = 4 # If the GENERATE_TREEVIEW tag is set to YES, a side panel will be # generated containing a tree-like index structure (just like the one that # is generated for HTML Help). For this to work a browser that supports # JavaScript, DHTML, CSS and frames is required (for instance Mozilla 1.0+, # Netscape 6.0+, Internet explorer 5.0+, or Konqueror). Windows users are # probably better off using the HTML help feature. GENERATE_TREEVIEW = NO # If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be # used to set the initial width (in pixels) of the frame in which the tree # is shown. TREEVIEW_WIDTH = 250 #--------------------------------------------------------------------------- # configuration options related to the LaTeX output #--------------------------------------------------------------------------- # If the GENERATE_LATEX tag is set to YES (the default) Doxygen will # generate Latex output. GENERATE_LATEX = NO # The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. # If a relative path is entered the value of OUTPUT_DIRECTORY will be # put in front of it. If left blank `latex' will be used as the default path. LATEX_OUTPUT = latex # The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be # invoked. If left blank `latex' will be used as the default command name. LATEX_CMD_NAME = latex # The MAKEINDEX_CMD_NAME tag can be used to specify the command name to # generate index for LaTeX. If left blank `makeindex' will be used as the # default command name. MAKEINDEX_CMD_NAME = makeindex # If the COMPACT_LATEX tag is set to YES Doxygen generates more compact # LaTeX documents. This may be useful for small projects and may help to # save some trees in general. COMPACT_LATEX = NO # The PAPER_TYPE tag can be used to set the paper type that is used # by the printer. Possible values are: a4, a4wide, letter, legal and # executive. If left blank a4wide will be used. PAPER_TYPE = letter # The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX # packages that should be included in the LaTeX output. EXTRA_PACKAGES = # The LATEX_HEADER tag can be used to specify a personal LaTeX header for # the generated latex document. The header should contain everything until # the first chapter. If it is left blank doxygen will generate a # standard header. Notice: only use this tag if you know what you are doing! LATEX_HEADER = # If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated # is prepared for conversion to pdf (using ps2pdf). The pdf file will # contain links (just like the HTML output) instead of page references # This makes the output suitable for online browsing using a pdf viewer. PDF_HYPERLINKS = NO # If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of # plain latex in the generated Makefile. Set this option to YES to get a # higher quality PDF documentation. USE_PDFLATEX = NO # If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode. # command to the generated LaTeX files. This will instruct LaTeX to keep # running if errors occur, instead of asking the user for help. # This option is also used when generating formulas in HTML. LATEX_BATCHMODE = NO # If LATEX_HIDE_INDICES is set to YES then doxygen will not # include the index chapters (such as File Index, Compound Index, etc.) # in the output. LATEX_HIDE_INDICES = NO #--------------------------------------------------------------------------- # configuration options related to the RTF output #--------------------------------------------------------------------------- # If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output # The RTF output is optimised for Word 97 and may not look very pretty with # other RTF readers or editors. GENERATE_RTF = NO # The RTF_OUTPUT tag is used to specify where the RTF docs will be put. # If a relative path is entered the value of OUTPUT_DIRECTORY will be # put in front of it. If left blank `rtf' will be used as the default path. RTF_OUTPUT = rtf # If the COMPACT_RTF tag is set to YES Doxygen generates more compact # RTF documents. This may be useful for small projects and may help to # save some trees in general. COMPACT_RTF = NO # If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated # will contain hyperlink fields. The RTF file will # contain links (just like the HTML output) instead of page references. # This makes the output suitable for online browsing using WORD or other # programs which support those fields. # Note: wordpad (write) and others do not support links. RTF_HYPERLINKS = NO # Load stylesheet definitions from file. Syntax is similar to doxygen's # config file, i.e. a series of assigments. You only have to provide # replacements, missing definitions are set to their default value. RTF_STYLESHEET_FILE = # Set optional variables used in the generation of an rtf document. # Syntax is similar to doxygen's config file. RTF_EXTENSIONS_FILE = #--------------------------------------------------------------------------- # configuration options related to the man page output #--------------------------------------------------------------------------- # If the GENERATE_MAN tag is set to YES (the default) Doxygen will # generate man pages GENERATE_MAN = NO # The MAN_OUTPUT tag is used to specify where the man pages will be put. # If a relative path is entered the value of OUTPUT_DIRECTORY will be # put in front of it. If left blank `man' will be used as the default path. MAN_OUTPUT = man # The MAN_EXTENSION tag determines the extension that is added to # the generated man pages (default is the subroutine's section .3) MAN_EXTENSION = .3 # If the MAN_LINKS tag is set to YES and Doxygen generates man output, # then it will generate one additional man file for each entity # documented in the real man page(s). These additional files # only source the real man page, but without them the man command # would be unable to find the correct page. The default is NO. MAN_LINKS = NO #--------------------------------------------------------------------------- # configuration options related to the XML output #--------------------------------------------------------------------------- # If the GENERATE_XML tag is set to YES Doxygen will # generate an XML file that captures the structure of # the code including all documentation. Note that this # feature is still experimental and incomplete at the # moment. GENERATE_XML = NO # The XML_OUTPUT tag is used to specify where the XML pages will be put. # If a relative path is entered the value of OUTPUT_DIRECTORY will be # put in front of it. If left blank `xml' will be used as the default path. XML_OUTPUT = xml # The XML_SCHEMA tag can be used to specify an XML schema, # which can be used by a validating XML parser to check the # syntax of the XML files. XML_SCHEMA = # The XML_DTD tag can be used to specify an XML DTD, # which can be used by a validating XML parser to check the # syntax of the XML files. XML_DTD = #--------------------------------------------------------------------------- # configuration options for the AutoGen Definitions output #--------------------------------------------------------------------------- # If the GENERATE_AUTOGEN_DEF tag is set to YES Doxygen will # generate an AutoGen Definitions (see autogen.sf.net) file # that captures the structure of the code including all # documentation. Note that this feature is still experimental # and incomplete at the moment. GENERATE_AUTOGEN_DEF = NO #--------------------------------------------------------------------------- # configuration options related to the Perl module output #--------------------------------------------------------------------------- # If the GENERATE_PERLMOD tag is set to YES Doxygen will # generate a Perl module file that captures the structure of # the code including all documentation. Note that this # feature is still experimental and incomplete at the # moment. GENERATE_PERLMOD = NO # If the PERLMOD_LATEX tag is set to YES Doxygen will generate # the necessary Makefile rules, Perl scripts and LaTeX code to be able # to generate PDF and DVI output from the Perl module output. PERLMOD_LATEX = NO # If the PERLMOD_PRETTY tag is set to YES the Perl module output will be # nicely formatted so it can be parsed by a human reader. This is useful # if you want to understand what is going on. On the other hand, if this # tag is set to NO the size of the Perl module output will be much smaller # and Perl will parse it just the same. PERLMOD_PRETTY = YES # The names of the make variables in the generated doxyrules.make file # are prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX. # This is useful so different doxyrules.make files included by the same # Makefile don't overwrite each other's variables. PERLMOD_MAKEVAR_PREFIX = #--------------------------------------------------------------------------- # Configuration options related to the preprocessor #--------------------------------------------------------------------------- # If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will # evaluate all C-preprocessor directives found in the sources and include # files. ENABLE_PREPROCESSING = YES # If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro # names in the source code. If set to NO (the default) only conditional # compilation will be performed. Macro expansion can be done in a controlled # way by setting EXPAND_ONLY_PREDEF to YES. MACRO_EXPANSION = NO # If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES # then the macro expansion is limited to the macros specified with the # PREDEFINED and EXPAND_AS_PREDEFINED tags. EXPAND_ONLY_PREDEF = NO # If the SEARCH_INCLUDES tag is set to YES (the default) the includes files # in the INCLUDE_PATH (see below) will be search if a #include is found. SEARCH_INCLUDES = YES # The INCLUDE_PATH tag can be used to specify one or more directories that # contain include files that are not input files but should be processed by # the preprocessor. INCLUDE_PATH = # You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard # patterns (like *.h and *.hpp) to filter out the header-files in the # directories. If left blank, the patterns specified with FILE_PATTERNS will # be used. INCLUDE_FILE_PATTERNS = # The PREDEFINED tag can be used to specify one or more macro names that # are defined before the preprocessor is started (similar to the -D option of # gcc). The argument of the tag is a list of macros of the form: name # or name=definition (no spaces). If the definition and the = are # omitted =1 is assumed. PREDEFINED = # If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then # this tag can be used to specify a list of macro names that should be expanded. # The macro definition that is found in the sources will be used. # Use the PREDEFINED tag if you want to use a different macro definition. EXPAND_AS_DEFINED = # If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then # doxygen's preprocessor will remove all function-like macros that are alone # on a line, have an all uppercase name, and do not end with a semicolon. Such # function macros are typically used for boiler-plate code, and will confuse the # parser if not removed. SKIP_FUNCTION_MACROS = YES #--------------------------------------------------------------------------- # Configuration::addtions related to external references #--------------------------------------------------------------------------- # The TAGFILES option can be used to specify one or more tagfiles. # Optionally an initial location of the external documentation # can be added for each tagfile. The format of a tag file without # this location is as follows: # TAGFILES = file1 file2 ... # Adding location for the tag files is done as follows: # TAGFILES = file1=loc1 "file2 = loc2" ... # where "loc1" and "loc2" can be relative or absolute paths or # URLs. If a location is present for each tag, the installdox tool # does not have to be run to correct the links. # Note that each tag file must have a unique name # (where the name does NOT include the path) # If a tag file is not located in the directory in which doxygen # is run, you must also specify the path to the tagfile here. TAGFILES = # When a file name is specified after GENERATE_TAGFILE, doxygen will create # a tag file that is based on the input files it reads. GENERATE_TAGFILE = # If the ALLEXTERNALS tag is set to YES all external classes will be listed # in the class index. If set to NO only the inherited external classes # will be listed. ALLEXTERNALS = NO # If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed # in the modules index. If set to NO, only the current project's groups will # be listed. EXTERNAL_GROUPS = YES # The PERL_PATH should be the absolute path and name of the perl script # interpreter (i.e. the result of `which perl'). PERL_PATH = /usr/bin/perl #--------------------------------------------------------------------------- # Configuration options related to the dot tool #--------------------------------------------------------------------------- # If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will # generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base or # super classes. Setting the tag to NO turns the diagrams off. Note that this # option is superceded by the HAVE_DOT option below. This is only a fallback. It is # recommended to install and use dot, since it yields more powerful graphs. CLASS_DIAGRAMS = YES # If set to YES, the inheritance and collaboration graphs will hide # inheritance and usage relations if the target is undocumented # or is not a class. HIDE_UNDOC_RELATIONS = YES # If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is # available from the path. This tool is part of Graphviz, a graph visualization # toolkit from AT&T and Lucent Bell Labs. The other options in this section # have no effect if this option is set to NO (the default) HAVE_DOT = @DOT@ # If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen # will generate a graph for each documented class showing the direct and # indirect inheritance relations. Setting this tag to YES will force the # the CLASS_DIAGRAMS tag to NO. CLASS_GRAPH = YES # If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen # will generate a graph for each documented class showing the direct and # indirect implementation dependencies (inheritance, containment, and # class references variables) of the class with other documented classes. COLLABORATION_GRAPH = YES # If the UML_LOOK tag is set to YES doxygen will generate inheritance and # collaboration diagrams in a style similiar to the OMG's Unified Modeling # Language. UML_LOOK = NO # If set to YES, the inheritance and collaboration graphs will show the # relations between templates and their instances. TEMPLATE_RELATIONS = YES # If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDE_GRAPH, and HAVE_DOT # tags are set to YES then doxygen will generate a graph for each documented # file showing the direct and indirect include dependencies of the file with # other documented files. INCLUDE_GRAPH = YES # If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and # HAVE_DOT tags are set to YES then doxygen will generate a graph for each # documented header file showing the documented files that directly or # indirectly include this file. INCLUDED_BY_GRAPH = YES # If the CALL_GRAPH and HAVE_DOT tags are set to YES then doxygen will # generate a call dependency graph for every global function or class method. # Note that enabling this option will significantly increase the time of a run. # So in most cases it will be better to enable call graphs for selected # functions only using the \callgraph command. CALL_GRAPH = YES # If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen # will graphical hierarchy of all classes instead of a textual one. GRAPHICAL_HIERARCHY = YES # The DOT_IMAGE_FORMAT tag can be used to set the image format of the images # generated by dot. Possible values are png, jpg, or gif # If left blank png will be used. DOT_IMAGE_FORMAT = png # The tag DOT_PATH can be used to specify the path where the dot tool can be # found. If left blank, it is assumed the dot tool can be found on the path. DOT_PATH = # The DOTFILE_DIRS tag can be used to specify one or more directories that # contain dot files that are included in the documentation (see the # \dotfile command). DOTFILE_DIRS = # The MAX_DOT_GRAPH_WIDTH tag can be used to set the maximum allowed width # (in pixels) of the graphs generated by dot. If a graph becomes larger than # this value, doxygen will try to truncate the graph, so that it fits within # the specified constraint. Beware that most browsers cannot cope with very # large images. MAX_DOT_GRAPH_WIDTH = 1024 # The MAX_DOT_GRAPH_HEIGHT tag can be used to set the maximum allows height # (in pixels) of the graphs generated by dot. If a graph becomes larger than # this value, doxygen will try to truncate the graph, so that it fits within # the specified constraint. Beware that most browsers cannot cope with very # large images. MAX_DOT_GRAPH_HEIGHT = 1024 # The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the # graphs generated by dot. A depth value of 3 means that only nodes reachable # from the root by following a path via at most 3 edges will be shown. Nodes that # lay further from the root node will be omitted. Note that setting this option to # 1 or 2 may greatly reduce the computation time needed for large code bases. Also # note that a graph may be further truncated if the graph's image dimensions are # not sufficient to fit the graph (see MAX_DOT_GRAPH_WIDTH and MAX_DOT_GRAPH_HEIGHT). # If 0 is used for the depth value (the default), the graph is not depth-constrained. MAX_DOT_GRAPH_DEPTH = 0 # If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will # generate a legend page explaining the meaning of the various boxes and # arrows in the dot generated graphs. GENERATE_LEGEND = YES # If the DOT_CLEANUP tag is set to YES (the default) Doxygen will # remove the intermediate dot files that are used to generate # the various graphs. DOT_CLEANUP = YES #--------------------------------------------------------------------------- # Configuration::addtions related to the search engine #--------------------------------------------------------------------------- # The SEARCHENGINE tag specifies whether or not a search engine should be # used. If set to NO the values of all tags below this one will be ignored. SEARCHENGINE = NO tclap-1.2.1/docs/html/000777 000765 000765 00000000000 11552414565 014152 5ustar00mesmes000000 000000 tclap-1.2.1/docs/index.html000644 000765 000765 00000006734 11260200141 015164 0ustar00mesmes000000 000000 tclap -- Templatized C++ Command Line Parser Library

Templatized C++ Command Line Parser Library

Get Templatized C++ Command Line Parser at SourceForge.net. Fast, secure and Free Open Source software downloads

TCLAP is a small, flexible library that provides a simple interface for defining and accessing command line arguments. It was intially inspired by the user friendly CLAP libary. The difference is that this library is templatized, so the argument class is type independent. Type independence avoids identical-except-for-type objects, such as IntArg, FloatArg, and StringArg. While the library is not strictly compliant with the GNU or POSIX standards, it is close.

TCLAP is written in ANSI C++ and is meant to be compatible with any standards-compliant C++ compiler. It is known to work on Linux, MacOS X, Windows, and Solaris platforms. The library is implemented entirely in header files making it easy to use and distribute with other software. It is licensed under the MIT License for worry free distribution.

TCLAP is now a mature, stable, and feature rich package. Unless I get really bored, it probably won't see much further development aside from bug fixes and compatibility updates. Please don't let any apparent project inactivity discourage you from using the software!

Don't hesitate to send us your feedback!

Happy coding!

tclap-1.2.1/docs/Makefile.am000644 000765 000765 00000000716 11550126131 015225 0ustar00mesmes000000 000000 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/* tclap-1.2.1/docs/Makefile.in000644 000765 000765 00000024175 11552414365 015256 0ustar00mesmes000000 000000 # 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: tclap-1.2.1/docs/manual.html000644 000765 000765 00000152230 11552414266 015346 0ustar00mesmes000000 000000 Templatized C++ Command Line Parser Manual

Templatized C++ Command Line Parser Manual

Michael E Smoot


Chapter 1. Basic Usage

Overview

TCLAP has a few key classes to be aware of. The first is the CmdLine (command line) class. This class parses the command line passed to it according to the arguments that it contains. Arguments are separate objects that are added to the CmdLine object one at a time. The six argument classes are: ValueArg, UnlabeledValueArg, SwitchArg, MultiSwitchArg, MultiArg and UnlabeledMultiArg. These classes are templatized, which means they can be defined to parse a value of any type. Once you add the arguments to the CmdLine object, it parses the command line and assigns the data it finds to the specific argument objects it contains. Your program accesses the values parsed by calls to the getValue() methods of the argument objects.

Example

Here is a simple example ...

#include <string>
#include <iostream>
#include <algorithm>
#include <tclap/CmdLine.h>

int main(int argc, char** argv)
{

	// Wrap everything in a try block.  Do this every time, 
	// because exceptions will be thrown for problems.
	try {  

	// Define the command line object, and insert a message
	// that describes the program. The "Command description message" 
	// is printed last in the help text. The second argument is the 
	// delimiter (usually space) and the last one is the version number. 
	// The CmdLine object parses the argv array based on the Arg objects
	// that it contains. 
	TCLAP::CmdLine cmd("Command description message", ' ', "0.9");

	// Define a value argument and add it to the command line.
	// A value arg defines a flag and a type of value that it expects,
	// such as "-n Bishop".
	TCLAP::ValueArg<std::string> nameArg("n","name","Name to print",true,"homer","string");

	// Add the argument nameArg to the CmdLine object. The CmdLine object
	// uses this Arg to parse the command line.
	cmd.add( nameArg );

	// Define a switch and add it to the command line.
	// A switch arg is a boolean argument and only defines a flag that
	// indicates true or false.  In this example the SwitchArg adds itself
	// to the CmdLine object as part of the constructor.  This eliminates
	// the need to call the cmd.add() method.  All args have support in
	// their constructors to add themselves directly to the CmdLine object.
	// It doesn't matter which idiom you choose, they accomplish the same thing.
	TCLAP::SwitchArg reverseSwitch("r","reverse","Print name backwards", cmd, false);

	// Parse the argv array.
	cmd.parse( argc, argv );

	// Get the value parsed by each arg. 
	std::string name = nameArg.getValue();
	bool reverseName = reverseSwitch.getValue();

	// Do what you intend. 
	if ( reverseName )
	{
		std::reverse(name.begin(),name.end());
		std::cout << "My name (spelled backwards) is: " << name << std::endl;
	}
	else
		std::cout << "My name is: " << name << std::endl;


	} catch (TCLAP::ArgException &e)  // catch any exceptions
	{ std::cerr << "error: " << e.error() << " for arg " << e.argId() << std::endl; }
}

The output should look like:


% test1 -n mike
My name is: mike

% test1 -n mike -r
My name (spelled backwards) is: ekim

% test1 -r -n mike
My name (spelled backwards) is: ekim

% test1 -r
PARSE ERROR:
             One or more required arguments missing!

Brief USAGE:
   test1  [-r] -n <string> [--] [-v] [-h]

For complete USAGE and HELP type:
   test1 --help


% test1 --help

USAGE:

   test1  [-r] -n <string> [--] [-v] [-h]


Where:

   -r,  --reverse
     Print name backwards

   -n <string>  --name <string>
     (required)  (value required)  Name to print

   --,  --ignore_rest
     Ignores the rest of the labeled arguments following this flag.

   -v,  --version
     Displays version information and exits.

   -h,  --help
     Displays usage information and exits.


   Command description message

Library Properties

This example shows a number of different properties of the library...

  • Arguments can appear in any order (...mostly, more on this later).
  • The help, version and --SwitchArgs are specified automatically. Using either the -h or --help flag will cause the USAGE message to be displayed, -v or --version will cause any version information to be displayed, and -- or --ignore_rest will cause the remaining labeled arguments to be ignored. These switches are included by default on every command line. You can disable this functionality if desired (although we don't recommend it). How we generate the behavior behind these flags is described later.
  • If there is an error parsing the command line (e.g. a required argument isn't provided), the program exits and displays a brief USAGE and an error message.
  • The program name is assumed to always be argv[0], so it isn't specified directly.
  • A value delimiter character can be specified. This means that if you prefer arguments of the style -s=asdf instead of -s asdf, you can do so.
  • Always wrap everything in a try block that catches ArgExceptions! Any problems found in constructing the CmdLine, constructing the Args, or parsing the command line will throw an ArgException.

Common Argument Properties

Arguments, whatever their type, have a few common properties. These properties are set in the constructors of the arguments.

  • First is the flag or the character preceded by a dash(-) that signals the beginning of the argument on the command line.
  • Arguments also have names, which can also be used as an alternative flag on the command line, this time preceded by two dashes (--) [like the familiar getopt_long()].
  • Next is the description of the argument. This is a short description of the argument displayed in the help/usage message when needed.
  • The following parameters in the constructors vary depending on the type of argument. Some possible values include:
    • A boolean value indicating whether the Arg is required or not.
    • A default value.
    • A description of the type of value expected.
    • A constraint on the value expected.
    • The CmdLine instance that the Arg should be added to.
    • A Visitor.
  • See the API Documentation for more detail.

Compiling

TCLAP is implemented entirely in header files which means you only need to include CmdLine.h to use the library.

        #include <tclap/CmdLine.h>

You'll need to make sure that your compiler can see the header files. If you do the usual "make install" then your compiler should see the files by default. Alternatively, you can use the -I complier argument to specify the exact location of the libraries.

        c++ -o my_program -I /some/place/tclap-1.X/include my_program.cpp

Where /some/place/tclap-1.X is the place you have unpacked the distribution.

Finally, if you want to include TCLAP as part of your software (which is perfectly OK, even encouraged) then simply copy the contents of /some/place/tclap-1.X/include (the tclap directory and all of the header files it contains) into your include directory. The necessary m4 macros for proper configuration are included in the config directory.

TCLAP was developed on Linux and MacOSX systems. It is also known to work on Windows, Sun and Alpha platforms. We've made every effort to keep the library compliant with the ANSI C++ standard so if your compiler meets the standard, then this library should work for you. Please let us know if this is not the case!

Windows Note

As we understand things, Visual C++ does not have the file config.h which is used to make platform specific definitions. In this situation, we assume that you have access to sstream. Our understanding is that this should not be a problem for VC++ 7.x. However, if this is not the case and you need to use strstream, then simply tell your compiler to define the variable HAVE_STRSTREAM and undefine HAVE_SSTREAM That should work. We think. Alternatively, just edit the files ValueArg.h and MultiArg.h.

Random Note

If your compiler doesn't support the using syntax used in UnlabeledValueArg and UnlabeledMultiArg to support two stage name lookup, then you have two options. Either comment out the statements if you don't need two stage name lookup, or do a bunch of search and replace and use the this pointer syntax: e.g. this->_ignoreable instead of just _ignorable (do this for each variable or method referenced by using).

Chapter 2. Fundamental Classes

CmdLine

The CmdLine class contains the arguments that define the command line and manages the parsing of the command line. The CmdLine doesn't parse the command line itself it only manages the parsing. The actual parsing of individual arguments occurs within the arguments themselves. The CmdLine keeps track of of the required arguments, relationships between arguments, and output generation.

SwitchArg

SwitchArgs are what the name implies: simple, on/off, boolean switches. Use SwitchArgs anytime you want to turn some sort of system property on or off. SwitchArgs don't parse a value. They return TRUE or FALSE, depending on whether the switch has been found on the command line and what the default value was defined as.

ValueArg

ValueArgs are arguments that read a value of some type from the command line. Any time you need a file name, a number, etc. use a ValueArg or one of its variants. All ValueArgs are templatized and will attempt to parse the string its flag matches on the command line as the type it is specified as. ValueArg<int> will attempt to parse an int, ValueArg<float> will attempt to parse a float, etc. If operator>> for the specified type doesn't recognize the string on the command line as its defined type, then an exception will be thrown.

MultiArg

A MultiArg is a ValueArg that can be specified more than once on a command line and instead of returning a single value, returns a vector of values.

Imagine a compiler that allows you to specify multiple directories to search for libraries...

                % fooCompiler -L /dir/num1 -L /dir/num2 file.foo 

Exceptions will occur if you try to do this with a ValueArg or a SwitchArg. In situations like this, you will want to use a MultiArg. A MultiArg is essentially a ValueArg that appends any value that it matches and parses onto a vector of values. When the getValue() method is called, a vector of values, instead of a single value is returned. A MultiArg is declared much like a ValueArg:

                MultiArg<int> itest("i", "intTest", "multi int test", false,"int" );
                cmd.add( itest );

Note that MultiArgs can be added to the CmdLine in any order (unlike UnlabeledMultiArg).

MultiSwitchArg

A MultiSwitchArg is a SwitchArg that can be specified more than once on a command line. This can be useful when command lines are constructed automatically from within other applications or when a switch occurring more than once indicates a value (-V means a little verbose -V -V -V means a lot verbose), You can use a MultiSwitchArg. The call to getValue() for a MultiSwitchArg returns the number (int) of times the switch has been found on the command line in addition to the default value. Here is an example using the default initial value of 0:

	MultiSwitchArg quiet("q","quiet","Reduce the volume of output");
	cmd.add( quiet );

Alternatively, you can specify your own initial value:

	MultiSwitchArg quiet("q","quiet","Reduce the volume of output",5);
	cmd.add( quiet );

UnlabeledValueArg

An UnlabeledValueArg is a ValueArg that is not identified by a flag on the command line. Instead UnlabeledValueArgs are identified by their position in the argv array.

To this point all of our arguments have had labels (flags) identifying them on the command line, but there are some situations where flags are burdensome and not worth the effort. One example might be if you want to implement a magical command we'll call copy. All copy does is copy the file specified in the first argument to the file specified in the second argument. We can do this using UnlabeledValueArgs which are pretty much just ValueArgs without the flag specified, which tells the CmdLine object to treat them accordingly. The code would look like this:


                UnlabeledValueArg<float>  nolabel( "name", "unlabeled test", 3.14,
                                                  "nameString"  );
                cmd.add( nolabel );

Everything else is handled identically to what is seen above. The only difference to be aware of, and this is important: the order that UnlabeledValueArgs are added to the CmdLine is the order that they will be parsed!!!! This is not the case for normal SwitchArgs and ValueArgs. What happens internally is the first argument that the CmdLine doesn't recognize is assumed to be the first UnlabeledValueArg and parses it as such. Note that you are allowed to intersperse labeled args (SwitchArgs and ValueArgs) in between UnlabeledValueArgs (either on the command line or in the declaration), but the UnlabeledValueArgs will still be parsed in the order they are added. Just remember that order is important for unlabeled arguments.

UnlabeledMultiArg

An UnlabeledMultiArg is an UnlabeledValueArg that allows more than one value to be specified. Only one UnlabeledMultiArg can be specified per command line. The UnlabeledMultiArg simply reads the remaining values from argv up until -- or the end of the array is reached.

Say you want a strange command that searches each file specified for a given string (let's call it grep), but you don't want to have to type in all of the file names or write a script to do it for you. Say,

                % grep pattern *.txt

First remember that the * is handled by the shell and expanded accordingly, so what the program grep sees is really something like:

                % grep pattern file1.txt file2.txt fileZ.txt

To handle situations where multiple, unlabeled arguments are needed, we provide the UnlabeledMultiArg. UnlabeledMultiArgs are declared much like everything else, but with only a description of the arguments. By default, if an UnlabeledMultiArg is specified, then at least one is required to be present or an exception will be thrown. The most important thing to remember is, that like UnlabeledValueArgs: order matters! In fact, an UnlabeledMultiArg must be the last argument added to the CmdLine!. Here is what a declaration looks like:


                //
                // UnlabeledMultiArg must be the LAST argument added!
                //
                UnlabeledMultiArg<string> multi("file names");
                cmd.add( multi );
                cmd.parse(argc, argv);

                vector<string>  fileNames = multi.getValue();

You must only ever specify one (1) UnlabeledMultiArg. One UnlabeledMultiArg will read every unlabeled Arg that wasn't already processed by a UnlabeledValueArg into a vector of type T. Any UnlabeledValueArg or other UnlabeledMultiArg specified after the first UnlabeledMultiArg will be ignored, and if they are required, exceptions will be thrown. When you call the getValue() method of the UnlabeledValueArg argument, a vector will be returned. If you can imagine a situation where there will be multiple args of multiple types (stings, ints, floats, etc.) then just declare the UnlabeledMultiArg as type string and parse the different values yourself or use several UnlabeledValueArgs.

Chapter 3. Complications

Naturally, what we have seen to this point doesn't satisfy all of our needs.

I want to combine multiple switches into one argument...

Multiple SwitchArgs can be combined into a single argument on the command line. If you have switches -a, -b and -c it is valid to do either:

                % command -a -b -c

or

                % command -abc

or

                % command -ba -c

This is to make this library more in line with the POSIX and GNU standards (as I understand them).

I want one argument or the other, but not both...

Suppose you have a command that must read input from one of two possible locations, either a local file or a URL. The command must read something, so one argument is required, but not both, yet neither argument is strictly necessary by itself. This is called "exclusive or" or "XOR". To accommodate this situation, there is now an option to add two or more Args to a CmdLine that are exclusively or'd with one another: xorAdd(). This means that exactly one of the Args must be set and no more.

xorAdd() comes in two flavors, either xorAdd(Arg& a, Arg& b) to add just two Args to be xor'd and xorAdd( vector<Arg*> xorList ) to add more than two Args.



        ValueArg<string>  fileArg("f","file","File name to read",true,"/dev/null", "filename");
        ValueArg<string>  urlArg("u","url","URL to load",true, "http://example.com", "URL");

        cmd.xorAdd( fileArg, urlArg );
        cmd.parse(argc, argv);

Once one Arg in the xor list is matched on the CmdLine then the others in the xor list will be marked as set. The question then, is how to determine which of the Args has been set? This is accomplished by calling the isSet() method for each Arg. If the Arg has been matched on the command line, the isSet() will return TRUE, whereas if the Arg has been set as a result of matching the other Arg that was xor'd isSet() will return FALSE. (Of course, if the Arg was not xor'd and wasn't matched, it will also return FALSE.)


        if ( fileArg.isSet() )
                readFile( fileArg.getValue() );
        else if ( urlArg.isSet() )
                readURL( urlArg.getValue() );
        else
                // Should never get here because TCLAP will note that one of the
                // required args above has not been set.
                throw("Very bad things...");

It is helpful to note that Args of any type can be xor'd together. This means that you can xor a SwitchArg with a ValueArg. This is helpful in situations where one of several options is necessary and one of the options requires additional information.


        SwitchArg  stdinArg("s", "stdin", "Read from STDIN", false);
        ValueArg<string>  fileArg("f","file","File name to read",true,"/dev/null", "filename");
        ValueArg<string>  urlArg("u","url","URL to load",true, "http://example.com", "URL");

        vector<Arg*>  xorlist;
        xorlist.push_back(&stdinArg);
        xorlist.push_back(&fileArg);
        xorlist.push_back(&urlArg);

        cmd.xorAdd( xorlist );

I have more arguments than single flags make sense for...

Some commands have so many options that single flags no longer map sensibly to the available options. In this case, it is desirable to specify Args using only long options. This one is easy to accomplish, just make the flag value blank in the Arg constructor. This will tell the Arg that only the long option should be matched and will force users to specify the long option on the command line. The help output is updated accordingly.


        ValueArg<string>  fileArg("","file","File name",true,"homer","filename");

        SwitchArg  caseSwitch("","upperCase","Print in upper case",false);

I want to constrain the values allowed for a particular argument...

Interface Change!!! Sorry folks, but we've changed the interface since version 1.0.X for constraining Args. Constraints are now hidden behind the Constraint interface. To constrain an Arg simply implement the interface and specify the new class in the constructor as before.

You can still constrain Args based on a list of values. Instead of adding a vector of allowed values to the Arg directly, create a ValuesConstraint object with a vector of values and add that to the Arg. The Arg constructors have been modified accordingly.

When the value for the Arg is parsed, it is checked against the list of values specified in the ValuesConstraint. If the value is in the list then it is accepted. If not, then an exception is thrown. Here is a simple example:

		vector<string> allowed;
		allowed.push_back("homer");
		allowed.push_back("marge");
		allowed.push_back("bart");
		allowed.push_back("lisa");
		allowed.push_back("maggie");
		ValuesConstraint<string> allowedVals( allowed );
        
		ValueArg<string> nameArg("n","name","Name to print",true,"homer",&allowedVals);
		cmd.add( nameArg );

When a ValuesConstraint is specified, instead of a type description being specified in the Arg, a type description is created by concatenating the values in the allowed list using operator<< for the specified type. The help/usage for the Arg therefore lists the allowable values. Because of this, you might want to keep the list relatively small, however there is no limit on this.

Obviously, a list of allowed values isn't always the best way to constrain things. For instance, one might wish to allow only integers greater than 0. In this case, simply create a class that implements the Constraint<int> interface and checks whether the value parsed is greater than 0 (done in the check() method) and create your Arg with your new Constraint.

I want the Args to add themselves to the CmdLine...

New constructors have been added for each Arg that take a CmdLine object as an argument. Each Arg then adds itself to the CmdLine object. There is no difference in how the Arg is handled between this method and calling the add() method directly. At the moment, there is no way to do an xorAdd() from the constructor. Here is an example:


        // Create the command line.
        CmdLine cmd("this is a message", '=', "0.99" );

        // Note that the following args take the "cmd" object as arguments.
        SwitchArg btest("B","existTestB", "exist Test B", cmd, false );

        ValueArg<string> stest("s", "stringTest", "string test", true, "homer", 
                                               "string", cmd );

        UnlabeledValueArg<string> utest("unTest1","unlabeled test one", 
                                                        "default","string", cmd );
        
        // NO add() calls!

        // Parse the command line.
        cmd.parse(argc,argv);

I want different output than what is provided...

It is straightforward to change the output generated by TCLAP. Either subclass the StdOutput class and re-implement the methods you choose, or write your own class that implements the CmdLineOutput interface. Once you have done this, then use the CmdLine setOutput method to tell the CmdLine to use your new output class. Here is a simple example:

class MyOutput : public StdOutput
{
	public:
		virtual void failure(CmdLineInterface& c, ArgException& e)
		{ 
			cerr << "My special failure message for: " << endl
				 << e.what() << endl;
			exit(1);
		}

		virtual void usage(CmdLineInterface& c)
		{
			cout << "my usage message:" << endl;
			list<Arg*> args = c.getArgList();
			for (ArgListIterator it = args.begin(); it != args.end(); it++)
				cout << (*it)->longID() 
					 << "  (" << (*it)->getDescription() << ")" << endl;
		}

		virtual void version(CmdLineInterface& c)
		{
			cout << "my version message: 0.1" << endl;
		}
};

int main(int argc, char** argv)
{
		CmdLine cmd("this is a message", ' ', "0.99" );

		// set the output
		MyOutput my;
		cmd.setOutput( &my );

		// proceed normally ...

See test4.cpp in the examples directory for the full example. NOTE: if you supply your own Output object, we will not delete it in the CmdLine destructor. This could lead to a (very small) memory leak if you don't take care of the object yourself. Also note that the failure method is now responsible for exiting the application (assuming that is the desired behavior).

I don't want the --help and --version switches to be created automatically...

Help and version information is useful for nearly all command line applications and as such we generate flags that provide those options automatically. However, there are situations when these flags are undesirable. For these cases we've added we've added a forth parameter to the CmdLine constructor. Making this boolean parameter false will disable automatic help and version generation.

		CmdLine cmd("this is a message", ' ', "0.99", false );

I want to ignore certain arguments...

The -- flag is automatically included in the CmdLine. As (almost) per POSIX and GNU standards, any argument specified after the -- flag is ignored. Almost because if an UnlabeledValueArg that has not been set or an UnlabeledMultiArg has been specified, by default we will assign any arguments beyond the -- to the those arguments as per the rules above. This is primarily useful if you want to pass in arguments with a dash as the first character of the argument. It should be noted that even if the -- flag is passed on the command line, the CmdLine will still test to make sure all of the required arguments are present.

Of course, this isn't how POSIX/GNU handle things, they explicitly ignore arguments after the --. To accommodate this, we can make both UnlabeledValueArgs and UnlabeledMultiArgs ignoreable in their constructors. See the API Documentation for details.

I want to read hex integers as arguments...

Sometimes it's desirable to read integers formatted in decimal, hexadecimal, and octal format. This is now possible by #defining the TCLAP_SETBASE_ZERO directive. Simply define this directive in your code and integer arguments will be parsed in each base.


#define TCLAP_SETBASE_ZERO 1

#include "tclap/CmdLine.h"
#include <iostream>

using namespace TCLAP;
using namespace std;

int main(int argc, char** argv)
{

	try {

	CmdLine cmd("this is a message", ' ', "0.99" );

	ValueArg<int> itest("i", "intTest", "integer test", true, 5, "int");
	cmd.add( itest );

	//
	// Parse the command line.
	//
	cmd.parse(argc,argv);

	//
	// Set variables
	//
	int _intTest = itest.getValue();
	cout << "found int: " << _intTest << endl;

	} catch ( ArgException& e )
	{ cout << "ERROR: " << e.error() << " " << e.argId() << endl; }
}

The reason that this behavior is not the default behavior for TCLAP is that the use of setbase(0) appears to be something of a side effect and is not necessarily how setbase() is meant to be used. So while we're making this functionality available, we're not turning it on by default for fear of bad things happening in different compilers. If you know otherwise, please let us know.

I want to use different types...

The usual C++ types (int, long, bool, etc.) are supported by TCLAP out of the box. As long as operator>> and operator<< are supported, other types should work fine too, you'll just need to specify the ArgTraits which tells TCLAP how you expect the type to be handled.

For example, assume that you'd like to read one argument on the command line in as a std::pair object. All you'll need to do is tell TCLAP whether to treat std::pair as a String or Value. StringLike means to treat the string on the command line as a string and use it directly, whereas ValueLike means that a value object should be extracted from the string using operator>>. For std::pair we'll choose ValueLike. To accomplish this, add the following declaration to your file:


  template<class T, class U>
  struct ArgTraits<std::pair<T, U>> {
    typedef ValueLike ValueCategory;
  };

For complete examples see the files test11.cpp and test12.cpp in the examples directory.

I want to use Windows-style flags like "/x" and "/y"...

It is traditional in Posix environments that the "-" and "--" strings are used to signify the beginning of argument flags and long argument names. However, other environments, namely Windows, use different strings. TCLAP allows you to control which strings are used with #define directives. This allows you to use different strings based on your operating environment. Here is an example:

//
// This illustrates how to change the flag and name start strings for 
// Windows, otherwise the defaults are used.
//
// Note that these defines need to happen *before* tclap is included!
//
#ifdef WINDOWS
#define TCLAP_NAMESTARTSTRING "~~"
#define TCLAP_FLAGSTARTSTRING "/"
#endif

#include "tclap/CmdLine.h"

using namespace TCLAP;
using namespace std;

int main(int argc, char** argv)
{
	// Everything else is identical!
	...

Chapter 4. Notes

Like all good rules, there are many exceptions....

Type Descriptions

Ideally this library would use RTTI to return a human readable name of the type declared for a particular argument. Unfortunately, at least for g++, the names returned aren't particularly useful.

Visitors

Disclaimer: Almost no one will have any use for Visitors, they were added to provide special handling for default arguments. Nothing that Visitors do couldn't be accomplished by the user after the command line has been parsed. If you're still interested, keep reading...

Some of you may be wondering how we get the --help, --version and -- arguments to do their thing without mucking up the CmdLine code with lots of if statements and type checking. This is accomplished by using a variation on the Visitor Pattern. Actually, it may not be a Visitor Pattern at all, but that's what inspired me.

If we want some argument to do some sort of special handling, besides simply parsing a value, then we add a Visitor pointer to the Arg. More specifically, we add a subclass of the Visitor class. Once the argument has been successfully parsed, the Visitor for that argument is called. Any data that needs to be operated on is declared in the Visitor constructor and then operated on in the visit() method. A Visitor is added to an Arg as the last argument in its declaration. This may sound complicated, but it is pretty straightforward. Let's see an example.

Say you want to add an --authors flag to a program that prints the names of the authors when present. First subclass Visitor:


#include "Visitor.h"
#include <string>
#include <iostream>

class AuthorVisitor : public Visitor
{
        protected:
                string _author;
        public:
                AuthorVisitor(const string& name ) : Visitor(), _author(name) {} ;
                void visit() { cout << "AUTHOR:  " << _author << endl;  exit(0); };
};

Now include this class definition somewhere and go about creating your command line. When you create the author switch, add the AuthorVisitor pointer as follows:


                SwitchArg author("a","author","Prints author name", false, 
                                         new AuthorVisitor("Homer J. Simpson") );
                cmd.add( author );

Now, any time the -a or --author flag is specified, the program will print the author name, Homer J. Simpson and exit without processing any further (as specified in the visit() method).

More Information

For more information, look at the API Documentation and the examples included with the distribution.

Happy coding!

tclap-1.2.1/docs/manual.xml000644 000765 000765 00000122642 11552414266 015206 0ustar00mesmes000000 000000 Templatized C++ Command Line Parser Manual Michael Smoot E 2003,2004,2005,2006,2009,2011 Michael E. Smoot Basic Usage Overview TCLAP has a few key classes to be aware of. The first is the CmdLine (command line) class. This class parses the command line passed to it according to the arguments that it contains. Arguments are separate objects that are added to the CmdLine object one at a time. The six argument classes are: ValueArg, UnlabeledValueArg, SwitchArg, MultiSwitchArg, MultiArg and UnlabeledMultiArg. These classes are templatized, which means they can be defined to parse a value of any type. Once you add the arguments to the CmdLine object, it parses the command line and assigns the data it finds to the specific argument objects it contains. Your program accesses the values parsed by calls to the getValue() methods of the argument objects. Example Here is a simple example ... #include <string> #include <iostream> #include <algorithm> #include <tclap/CmdLine.h> int main(int argc, char** argv) { // Wrap everything in a try block. Do this every time, // because exceptions will be thrown for problems. try { // Define the command line object, and insert a message // that describes the program. The "Command description message" // is printed last in the help text. The second argument is the // delimiter (usually space) and the last one is the version number. // The CmdLine object parses the argv array based on the Arg objects // that it contains. TCLAP::CmdLine cmd("Command description message", ' ', "0.9"); // Define a value argument and add it to the command line. // A value arg defines a flag and a type of value that it expects, // such as "-n Bishop". TCLAP::ValueArg<std::string> nameArg("n","name","Name to print",true,"homer","string"); // Add the argument nameArg to the CmdLine object. The CmdLine object // uses this Arg to parse the command line. cmd.add( nameArg ); // Define a switch and add it to the command line. // A switch arg is a boolean argument and only defines a flag that // indicates true or false. In this example the SwitchArg adds itself // to the CmdLine object as part of the constructor. This eliminates // the need to call the cmd.add() method. All args have support in // their constructors to add themselves directly to the CmdLine object. // It doesn't matter which idiom you choose, they accomplish the same thing. TCLAP::SwitchArg reverseSwitch("r","reverse","Print name backwards", cmd, false); // Parse the argv array. cmd.parse( argc, argv ); // Get the value parsed by each arg. std::string name = nameArg.getValue(); bool reverseName = reverseSwitch.getValue(); // Do what you intend. if ( reverseName ) { std::reverse(name.begin(),name.end()); std::cout << "My name (spelled backwards) is: " << name << std::endl; } else std::cout << "My name is: " << name << std::endl; } catch (TCLAP::ArgException &e) // catch any exceptions { std::cerr << "error: " << e.error() << " for arg " << e.argId() << std::endl; } } The output should look like: % test1 -n mike My name is: mike % test1 -n mike -r My name (spelled backwards) is: ekim % test1 -r -n mike My name (spelled backwards) is: ekim % test1 -r PARSE ERROR: One or more required arguments missing! Brief USAGE: test1 [-r] -n <string> [--] [-v] [-h] For complete USAGE and HELP type: test1 --help % test1 --help USAGE: test1 [-r] -n <string> [--] [-v] [-h] Where: -r, --reverse Print name backwards -n <string> --name <string> (required) (value required) Name to print --, --ignore_rest Ignores the rest of the labeled arguments following this flag. -v, --version Displays version information and exits. -h, --help Displays usage information and exits. Command description message Library Properties This example shows a number of different properties of the library... Arguments can appear in any order (...mostly, more on this later). The help, version and -- SwitchArgs are specified automatically. Using either the -h or --help flag will cause the USAGE message to be displayed, -v or --version will cause any version information to be displayed, and -- or --ignore_rest will cause the remaining labeled arguments to be ignored. These switches are included by default on every command line. You can disable this functionality if desired (although we don't recommend it). How we generate the behavior behind these flags is described later. If there is an error parsing the command line (e.g. a required argument isn't provided), the program exits and displays a brief USAGE and an error message. The program name is assumed to always be argv[0], so it isn't specified directly. A value delimiter character can be specified. This means that if you prefer arguments of the style -s=asdf instead of -s asdf, you can do so. Always wrap everything in a try block that catches ArgExceptions! Any problems found in constructing the CmdLine, constructing the Args, or parsing the command line will throw an ArgException. Common Argument Properties Arguments, whatever their type, have a few common properties. These properties are set in the constructors of the arguments. First is the flag or the character preceded by a dash(-) that signals the beginning of the argument on the command line. Arguments also have names, which can also be used as an alternative flag on the command line, this time preceded by two dashes (--) [like the familiar getopt_long()]. Next is the description of the argument. This is a short description of the argument displayed in the help/usage message when needed. The following parameters in the constructors vary depending on the type of argument. Some possible values include: A boolean value indicating whether the Arg is required or not. A default value. A description of the type of value expected. A constraint on the value expected. The CmdLine instance that the Arg should be added to. A Visitor. See the API Documentation for more detail. Compiling TCLAP is implemented entirely in header files which means you only need to include CmdLine.h to use the library. #include <tclap/CmdLine.h> You'll need to make sure that your compiler can see the header files. If you do the usual "make install" then your compiler should see the files by default. Alternatively, you can use the -I complier argument to specify the exact location of the libraries. c++ -o my_program -I /some/place/tclap-1.X/include my_program.cpp Where /some/place/tclap-1.X is the place you have unpacked the distribution. Finally, if you want to include TCLAP as part of your software (which is perfectly OK, even encouraged) then simply copy the contents of /some/place/tclap-1.X/include (the tclap directory and all of the header files it contains) into your include directory. The necessary m4 macros for proper configuration are included in the config directory. TCLAP was developed on Linux and MacOSX systems. It is also known to work on Windows, Sun and Alpha platforms. We've made every effort to keep the library compliant with the ANSI C++ standard so if your compiler meets the standard, then this library should work for you. Please let us know if this is not the case! Windows Note As we understand things, Visual C++ does not have the file config.h which is used to make platform specific definitions. In this situation, we assume that you have access to sstream. Our understanding is that this should not be a problem for VC++ 7.x. However, if this is not the case and you need to use strstream, then simply tell your compiler to define the variable HAVE_STRSTREAM and undefine HAVE_SSTREAM That should work. We think. Alternatively, just edit the files ValueArg.h and MultiArg.h. Random Note If your compiler doesn't support the using syntax used in UnlabeledValueArg and UnlabeledMultiArg to support two stage name lookup, then you have two options. Either comment out the statements if you don't need two stage name lookup, or do a bunch of search and replace and use the this pointer syntax: e.g. this->_ignoreable instead of just _ignorable (do this for each variable or method referenced by using). Fundamental Classes <classname>CmdLine</classname> The CmdLine class contains the arguments that define the command line and manages the parsing of the command line. The CmdLine doesn't parse the command line itself it only manages the parsing. The actual parsing of individual arguments occurs within the arguments themselves. The CmdLine keeps track of of the required arguments, relationships between arguments, and output generation. <classname>SwitchArg</classname> SwitchArgs are what the name implies: simple, on/off, boolean switches. Use SwitchArgs anytime you want to turn some sort of system property on or off. SwitchArgs don't parse a value. They return TRUE or FALSE, depending on whether the switch has been found on the command line and what the default value was defined as. <classname>ValueArg</classname> ValueArgs are arguments that read a value of some type from the command line. Any time you need a file name, a number, etc. use a ValueArg or one of its variants. All ValueArgs are templatized and will attempt to parse the string its flag matches on the command line as the type it is specified as. ValueArg<int> will attempt to parse an int, ValueArg<float> will attempt to parse a float, etc. If operator>> for the specified type doesn't recognize the string on the command line as its defined type, then an exception will be thrown. <classname>MultiArg</classname> A MultiArg is a ValueArg that can be specified more than once on a command line and instead of returning a single value, returns a vector of values. Imagine a compiler that allows you to specify multiple directories to search for libraries... % fooCompiler -L /dir/num1 -L /dir/num2 file.foo Exceptions will occur if you try to do this with a ValueArg or a SwitchArg. In situations like this, you will want to use a MultiArg. A MultiArg is essentially a ValueArg that appends any value that it matches and parses onto a vector of values. When the getValue() method is called, a vector of values, instead of a single value is returned. A MultiArg is declared much like a ValueArg: MultiArg<int> itest("i", "intTest", "multi int test", false,"int" ); cmd.add( itest ); Note that MultiArgs can be added to the CmdLine in any order (unlike UnlabeledMultiArg). <classname>MultiSwitchArg</classname> A MultiSwitchArg is a SwitchArg that can be specified more than once on a command line. This can be useful when command lines are constructed automatically from within other applications or when a switch occurring more than once indicates a value (-V means a little verbose -V -V -V means a lot verbose), You can use a MultiSwitchArg. The call to getValue() for a MultiSwitchArg returns the number (int) of times the switch has been found on the command line in addition to the default value. Here is an example using the default initial value of 0: MultiSwitchArg quiet("q","quiet","Reduce the volume of output"); cmd.add( quiet ); Alternatively, you can specify your own initial value: MultiSwitchArg quiet("q","quiet","Reduce the volume of output",5); cmd.add( quiet ); <classname>UnlabeledValueArg</classname> An UnlabeledValueArg is a ValueArg that is not identified by a flag on the command line. Instead UnlabeledValueArgs are identified by their position in the argv array. To this point all of our arguments have had labels (flags) identifying them on the command line, but there are some situations where flags are burdensome and not worth the effort. One example might be if you want to implement a magical command we'll call copy. All copy does is copy the file specified in the first argument to the file specified in the second argument. We can do this using UnlabeledValueArgs which are pretty much just ValueArgs without the flag specified, which tells the CmdLine object to treat them accordingly. The code would look like this: UnlabeledValueArg<float> nolabel( "name", "unlabeled test", 3.14, "nameString" ); cmd.add( nolabel ); Everything else is handled identically to what is seen above. The only difference to be aware of, and this is important: the order that UnlabeledValueArgs are added to the CmdLine is the order that they will be parsed!!!! This is not the case for normal SwitchArgs and ValueArgs. What happens internally is the first argument that the CmdLine doesn't recognize is assumed to be the first UnlabeledValueArg and parses it as such. Note that you are allowed to intersperse labeled args (SwitchArgs and ValueArgs) in between UnlabeledValueArgs (either on the command line or in the declaration), but the UnlabeledValueArgs will still be parsed in the order they are added. Just remember that order is important for unlabeled arguments. <classname>UnlabeledMultiArg</classname> An UnlabeledMultiArg is an UnlabeledValueArg that allows more than one value to be specified. Only one UnlabeledMultiArg can be specified per command line. The UnlabeledMultiArg simply reads the remaining values from argv up until -- or the end of the array is reached. Say you want a strange command that searches each file specified for a given string (let's call it grep), but you don't want to have to type in all of the file names or write a script to do it for you. Say, % grep pattern *.txt First remember that the * is handled by the shell and expanded accordingly, so what the program grep sees is really something like: % grep pattern file1.txt file2.txt fileZ.txt To handle situations where multiple, unlabeled arguments are needed, we provide the UnlabeledMultiArg. UnlabeledMultiArgs are declared much like everything else, but with only a description of the arguments. By default, if an UnlabeledMultiArg is specified, then at least one is required to be present or an exception will be thrown. The most important thing to remember is, that like UnlabeledValueArgs: order matters! In fact, an UnlabeledMultiArg must be the last argument added to the CmdLine!. Here is what a declaration looks like: // // UnlabeledMultiArg must be the LAST argument added! // UnlabeledMultiArg<string> multi("file names"); cmd.add( multi ); cmd.parse(argc, argv); vector<string> fileNames = multi.getValue(); You must only ever specify one (1) UnlabeledMultiArg. One UnlabeledMultiArg will read every unlabeled Arg that wasn't already processed by a UnlabeledValueArg into a vector of type T. Any UnlabeledValueArg or other UnlabeledMultiArg specified after the first UnlabeledMultiArg will be ignored, and if they are required, exceptions will be thrown. When you call the getValue() method of the UnlabeledValueArg argument, a vector will be returned. If you can imagine a situation where there will be multiple args of multiple types (stings, ints, floats, etc.) then just declare the UnlabeledMultiArg as type string and parse the different values yourself or use several UnlabeledValueArgs. Complications Naturally, what we have seen to this point doesn't satisfy all of our needs. I want to combine multiple switches into one argument... Multiple SwitchArgs can be combined into a single argument on the command line. If you have switches -a, -b and -c it is valid to do either: % command -a -b -c or % command -abc or % command -ba -c This is to make this library more in line with the POSIX and GNU standards (as I understand them). I want one argument or the other, but not both... Suppose you have a command that must read input from one of two possible locations, either a local file or a URL. The command must read something, so one argument is required, but not both, yet neither argument is strictly necessary by itself. This is called "exclusive or" or "XOR". To accommodate this situation, there is now an option to add two or more Args to a CmdLine that are exclusively or'd with one another: xorAdd(). This means that exactly one of the Args must be set and no more. xorAdd() comes in two flavors, either xorAdd(Arg& a, Arg& b) to add just two Args to be xor'd and xorAdd( vector<Arg*> xorList ) to add more than two Args. ValueArg<string> fileArg("f","file","File name to read",true,"/dev/null", "filename"); ValueArg<string> urlArg("u","url","URL to load",true, "http://example.com", "URL"); cmd.xorAdd( fileArg, urlArg ); cmd.parse(argc, argv); Once one Arg in the xor list is matched on the CmdLine then the others in the xor list will be marked as set. The question then, is how to determine which of the Args has been set? This is accomplished by calling the isSet() method for each Arg. If the Arg has been matched on the command line, the isSet() will return TRUE, whereas if the Arg has been set as a result of matching the other Arg that was xor'd isSet() will return FALSE. (Of course, if the Arg was not xor'd and wasn't matched, it will also return FALSE.) if ( fileArg.isSet() ) readFile( fileArg.getValue() ); else if ( urlArg.isSet() ) readURL( urlArg.getValue() ); else // Should never get here because TCLAP will note that one of the // required args above has not been set. throw("Very bad things..."); It is helpful to note that Args of any type can be xor'd together. This means that you can xor a SwitchArg with a ValueArg. This is helpful in situations where one of several options is necessary and one of the options requires additional information. SwitchArg stdinArg("s", "stdin", "Read from STDIN", false); ValueArg<string> fileArg("f","file","File name to read",true,"/dev/null", "filename"); ValueArg<string> urlArg("u","url","URL to load",true, "http://example.com", "URL"); vector<Arg*> xorlist; xorlist.push_back(&stdinArg); xorlist.push_back(&fileArg); xorlist.push_back(&urlArg); cmd.xorAdd( xorlist ); I have more arguments than single flags make sense for... Some commands have so many options that single flags no longer map sensibly to the available options. In this case, it is desirable to specify Args using only long options. This one is easy to accomplish, just make the flag value blank in the Arg constructor. This will tell the Arg that only the long option should be matched and will force users to specify the long option on the command line. The help output is updated accordingly. ValueArg<string> fileArg("","file","File name",true,"homer","filename"); SwitchArg caseSwitch("","upperCase","Print in upper case",false); I want to constrain the values allowed for a particular argument... Interface Change!!! Sorry folks, but we've changed the interface since version 1.0.X for constraining Args. Constraints are now hidden behind the Constraint interface. To constrain an Arg simply implement the interface and specify the new class in the constructor as before. You can still constrain Args based on a list of values. Instead of adding a vector of allowed values to the Arg directly, create a ValuesConstraint object with a vector of values and add that to the Arg. The Arg constructors have been modified accordingly. When the value for the Arg is parsed, it is checked against the list of values specified in the ValuesConstraint. If the value is in the list then it is accepted. If not, then an exception is thrown. Here is a simple example: vector<string> allowed; allowed.push_back("homer"); allowed.push_back("marge"); allowed.push_back("bart"); allowed.push_back("lisa"); allowed.push_back("maggie"); ValuesConstraint<string> allowedVals( allowed ); ValueArg<string> nameArg("n","name","Name to print",true,"homer",&allowedVals); cmd.add( nameArg ); When a ValuesConstraint is specified, instead of a type description being specified in the Arg, a type description is created by concatenating the values in the allowed list using operator<< for the specified type. The help/usage for the Arg therefore lists the allowable values. Because of this, you might want to keep the list relatively small, however there is no limit on this. Obviously, a list of allowed values isn't always the best way to constrain things. For instance, one might wish to allow only integers greater than 0. In this case, simply create a class that implements the Constraint<int> interface and checks whether the value parsed is greater than 0 (done in the check() method) and create your Arg with your new Constraint. I want the Args to add themselves to the CmdLine... New constructors have been added for each Arg that take a CmdLine object as an argument. Each Arg then adds itself to the CmdLine object. There is no difference in how the Arg is handled between this method and calling the add() method directly. At the moment, there is no way to do an xorAdd() from the constructor. Here is an example: // Create the command line. CmdLine cmd("this is a message", '=', "0.99" ); // Note that the following args take the "cmd" object as arguments. SwitchArg btest("B","existTestB", "exist Test B", cmd, false ); ValueArg<string> stest("s", "stringTest", "string test", true, "homer", "string", cmd ); UnlabeledValueArg<string> utest("unTest1","unlabeled test one", "default","string", cmd ); // NO add() calls! // Parse the command line. cmd.parse(argc,argv); I want different output than what is provided... It is straightforward to change the output generated by TCLAP. Either subclass the StdOutput class and re-implement the methods you choose, or write your own class that implements the CmdLineOutput interface. Once you have done this, then use the CmdLine setOutput method to tell the CmdLine to use your new output class. Here is a simple example: class MyOutput : public StdOutput { public: virtual void failure(CmdLineInterface& c, ArgException& e) { cerr << "My special failure message for: " << endl << e.what() << endl; exit(1); } virtual void usage(CmdLineInterface& c) { cout << "my usage message:" << endl; list<Arg*> args = c.getArgList(); for (ArgListIterator it = args.begin(); it != args.end(); it++) cout << (*it)->longID() << " (" << (*it)->getDescription() << ")" << endl; } virtual void version(CmdLineInterface& c) { cout << "my version message: 0.1" << endl; } }; int main(int argc, char** argv) { CmdLine cmd("this is a message", ' ', "0.99" ); // set the output MyOutput my; cmd.setOutput( &my ); // proceed normally ... See test4.cpp in the examples directory for the full example. NOTE: if you supply your own Output object, we will not delete it in the CmdLine destructor. This could lead to a (very small) memory leak if you don't take care of the object yourself. Also note that the failure method is now responsible for exiting the application (assuming that is the desired behavior). I don't want the --help and --version switches to be created automatically... Help and version information is useful for nearly all command line applications and as such we generate flags that provide those options automatically. However, there are situations when these flags are undesirable. For these cases we've added we've added a forth parameter to the CmdLine constructor. Making this boolean parameter false will disable automatic help and version generation. CmdLine cmd("this is a message", ' ', "0.99", false ); I want to ignore certain arguments... The -- flag is automatically included in the CmdLine. As (almost) per POSIX and GNU standards, any argument specified after the -- flag is ignored. Almost because if an UnlabeledValueArg that has not been set or an UnlabeledMultiArg has been specified, by default we will assign any arguments beyond the -- to the those arguments as per the rules above. This is primarily useful if you want to pass in arguments with a dash as the first character of the argument. It should be noted that even if the -- flag is passed on the command line, the CmdLine will still test to make sure all of the required arguments are present. Of course, this isn't how POSIX/GNU handle things, they explicitly ignore arguments after the --. To accommodate this, we can make both UnlabeledValueArgs and UnlabeledMultiArgs ignoreable in their constructors. See the API Documentation for details. I want to read hex integers as arguments... Sometimes it's desirable to read integers formatted in decimal, hexadecimal, and octal format. This is now possible by #defining the TCLAP_SETBASE_ZERO directive. Simply define this directive in your code and integer arguments will be parsed in each base. #define TCLAP_SETBASE_ZERO 1 #include "tclap/CmdLine.h" #include <iostream> using namespace TCLAP; using namespace std; int main(int argc, char** argv) { try { CmdLine cmd("this is a message", ' ', "0.99" ); ValueArg<int> itest("i", "intTest", "integer test", true, 5, "int"); cmd.add( itest ); // // Parse the command line. // cmd.parse(argc,argv); // // Set variables // int _intTest = itest.getValue(); cout << "found int: " << _intTest << endl; } catch ( ArgException& e ) { cout << "ERROR: " << e.error() << " " << e.argId() << endl; } } The reason that this behavior is not the default behavior for TCLAP is that the use of setbase(0) appears to be something of a side effect and is not necessarily how setbase() is meant to be used. So while we're making this functionality available, we're not turning it on by default for fear of bad things happening in different compilers. If you know otherwise, please let us know. I want to use different types... The usual C++ types (int, long, bool, etc.) are supported by TCLAP out of the box. As long as operator>> and operator<< are supported, other types should work fine too, you'll just need to specify the ArgTraits which tells TCLAP how you expect the type to be handled. For example, assume that you'd like to read one argument on the command line in as a std::pair object. All you'll need to do is tell TCLAP whether to treat std::pair as a String or Value. StringLike means to treat the string on the command line as a string and use it directly, whereas ValueLike means that a value object should be extracted from the string using operator>>. For std::pair we'll choose ValueLike. To accomplish this, add the following declaration to your file: template<class T, class U> struct ArgTraits<std::pair<T, U>> { typedef ValueLike ValueCategory; }; For complete examples see the files test11.cpp and test12.cpp in the examples directory. I want to use Windows-style flags like "/x" and "/y"... It is traditional in Posix environments that the "-" and "--" strings are used to signify the beginning of argument flags and long argument names. However, other environments, namely Windows, use different strings. TCLAP allows you to control which strings are used with #define directives. This allows you to use different strings based on your operating environment. Here is an example: // // This illustrates how to change the flag and name start strings for // Windows, otherwise the defaults are used. // // Note that these defines need to happen *before* tclap is included! // #ifdef WINDOWS #define TCLAP_NAMESTARTSTRING "~~" #define TCLAP_FLAGSTARTSTRING "/" #endif #include "tclap/CmdLine.h" using namespace TCLAP; using namespace std; int main(int argc, char** argv) { // Everything else is identical! ... Notes Like all good rules, there are many exceptions.... Type Descriptions Ideally this library would use RTTI to return a human readable name of the type declared for a particular argument. Unfortunately, at least for g++, the names returned aren't particularly useful. Visitors Disclaimer: Almost no one will have any use for Visitors, they were added to provide special handling for default arguments. Nothing that Visitors do couldn't be accomplished by the user after the command line has been parsed. If you're still interested, keep reading... Some of you may be wondering how we get the --help, --version and -- arguments to do their thing without mucking up the CmdLine code with lots of if statements and type checking. This is accomplished by using a variation on the Visitor Pattern. Actually, it may not be a Visitor Pattern at all, but that's what inspired me. If we want some argument to do some sort of special handling, besides simply parsing a value, then we add a Visitor pointer to the Arg. More specifically, we add a subclass of the Visitor class. Once the argument has been successfully parsed, the Visitor for that argument is called. Any data that needs to be operated on is declared in the Visitor constructor and then operated on in the visit() method. A Visitor is added to an Arg as the last argument in its declaration. This may sound complicated, but it is pretty straightforward. Let's see an example. Say you want to add an --authors flag to a program that prints the names of the authors when present. First subclass Visitor: #include "Visitor.h" #include <string> #include <iostream> class AuthorVisitor : public Visitor { protected: string _author; public: AuthorVisitor(const string& name ) : Visitor(), _author(name) {} ; void visit() { cout << "AUTHOR: " << _author << endl; exit(0); }; }; Now include this class definition somewhere and go about creating your command line. When you create the author switch, add the AuthorVisitor pointer as follows: SwitchArg author("a","author","Prints author name", false, new AuthorVisitor("Homer J. Simpson") ); cmd.add( author ); Now, any time the -a or --author flag is specified, the program will print the author name, Homer J. Simpson and exit without processing any further (as specified in the visit() method). More Information For more information, look at the API Documentation and the examples included with the distribution. Happy coding! tclap-1.2.1/docs/README000644 000765 000765 00000000405 10532360053 014046 0ustar00mesmes000000 000000 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 tclap-1.2.1/docs/style.css000755 000765 000765 00000003311 11510214257 015043 0ustar00mesmes000000 000000 /* color:#ffffff; white color:#e0e0e0; light gray color:#f8f8f8; light gray color:#003366; dark blue color:#555555; gray color:#ff9933; light orange color:#cc3300; red/brown/orange color:#660066; purple color:#669900; green */ a { color:#003366; text-decoration:underline; } a:hover { color:#ff9933; } body { font-family: verdana, tahoma, helvetica, arial, sans-serif; font-size: 90%; background-color:#ffffff; margin: 1em; } pre { font-family: courier, serif; background-color:#f8f8f8; margin: 1.5em; font-size:90%; } ul { list-style: circle outside; font-stretch:extra-expanded; /* font-size:90%;*/ } ul.menu { /* inherits from ul */ padding-left: 1em; } em { color:#ff9933; font-size:110%; } h1,h2,h3{ color:#ff9933; } h1 { border-color:#d0d0d0; border-style:solid; border-width:1px; font-weight:bold; padding: 0.2em; background-color:#f8f8f8 } h2 { font-size:120%; font-weight:bold; border-bottom-style:solid; border-bottom-width:1px; border-bottom-color:#d0d0d0; } h3 { font-size:110%; font-weight:bold; font-style:italic; } tt { font-family: courier, serif; } tt.classname { font-weight:bold; } tt.constant { font-weight:bold; } p { line-height: 1.5em; } div.links{ float: left; clear: left; width: 12em; background-color:#f8f8f8; border-style:solid; border-width:1px; border-color:#d0d0d0; margin-bottom: 0.5em; padding: 0.5em 0.5em 0.5em 0.5em; margin: 0.5em 0.5em 0em 0em; } div.main{ border-style:solid; border-width:1px; border-color:#d0d0d0; margin: 0.5em 0em 0.5em 14em; padding: 0.5em 0.5em 0.5em 0.5em; } tclap-1.2.1/docs/html/annotated.html000644 000765 000765 00000033642 11552414564 017020 0ustar00mesmes000000 000000 tclap: Class List

Class List

Here are the classes, structs, unions and interfaces with brief descriptions:
TCLAP::ArgA virtual base class that defines the essential data for all arguments
TCLAP::ArgExceptionA simple class that defines and argument exception
TCLAP::ArgParseExceptionThrown from within the child Arg classes when it fails to properly parse the argument it has been passed
TCLAP::ArgTraits< T >Arg traits are used to get compile type specialization when parsing argument values
TCLAP::ArgTraits< bool >Bools have value-like semantics
TCLAP::ArgTraits< char >Chars have value-like semantics
TCLAP::ArgTraits< double >Doubles have value-like semantics
TCLAP::ArgTraits< float >Floats have value-like semantics
TCLAP::ArgTraits< int >Ints have value-like semantics
TCLAP::ArgTraits< long >Longs have value-like semantics
TCLAP::ArgTraits< short >Shorts have value-like semantics
TCLAP::ArgTraits< std::string >Strings have string like argument traits
TCLAP::ArgTraits< unsigned char >Unsigned chars have value-like semantics
TCLAP::ArgTraits< unsigned int >Unsigned ints have value-like semantics
TCLAP::ArgTraits< unsigned long >Unsigned longs have value-like semantics
TCLAP::ArgTraits< unsigned short >Unsigned shorts have value-like semantics
TCLAP::ArgTraits< wchar_t >Wchar_ts have value-like semantics
TCLAP::CmdLineThe base class that manages the command line definition and passes along the parsing to the appropriate Arg classes
TCLAP::CmdLineInterfaceThe base class that manages the command line definition and passes along the parsing to the appropriate Arg classes
TCLAP::CmdLineOutputThe interface that any output object must implement
TCLAP::CmdLineParseExceptionThrown from CmdLine when the arguments on the command line are not properly specified, e.g
TCLAP::Constraint< T >The interface that defines the interaction between the Arg and Constraint
TCLAP::DocBookOutputA class that generates DocBook output for usage() method for the given CmdLine and its Args
TCLAP::ExitException
TCLAP::HelpVisitorA Visitor object that calls the usage method of the given CmdLineOutput object for the specified CmdLine object
TCLAP::IgnoreRestVisitorA Vistor that tells the CmdLine to begin ignoring arguments after this one is parsed
TCLAP::MultiArg< T >An argument that allows multiple values of type T to be specified
TCLAP::MultiSwitchArgA multiple switch argument
TCLAP::OptionalUnlabeledTracker
TCLAP::SpecificationExceptionThrown from Arg and CmdLine when an Arg is improperly specified, e.g
TCLAP::StdOutputA class that isolates any output from the CmdLine object so that it may be easily modified
TCLAP::StringLikeA string like argument value type is a value that can be set using operator=(string)
TCLAP::StringLikeTraitA class can inherit from this object to make it have string like traits
TCLAP::SwitchArgA simple switch argument
TCLAP::UnlabeledMultiArg< T >Just like a MultiArg, except that the arguments are unlabeled
TCLAP::UnlabeledValueArg< T >The basic unlabeled argument that parses a value
TCLAP::ValueArg< T >The basic labeled argument that parses a value
TCLAP::ValueLikeA value like argument value type is a value that can be set using operator>>
TCLAP::ValueLikeTraitA class can inherit from this object to make it have value like traits
TCLAP::ValuesConstraint< T >A Constraint that constrains the Arg to only those values specified in the constraint
TCLAP::VersionVisitorA Vistor that will call the version method of the given CmdLineOutput for the specified CmdLine object and then exit
TCLAP::VisitorA base class that defines the interface for visitors
TCLAP::XorHandlerThis class handles lists of Arg's that are to be XOR'd on the command line
TCLAP::ZshCompletionOutputA class that generates a Zsh completion function as output from the usage() method for the given CmdLine and its Args

Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/Arg_8h.html000644 000765 000765 00000025446 11552414564 016156 0ustar00mesmes000000 000000 tclap: Arg.h File Reference

Arg.h File Reference

#include <string>
#include <vector>
#include <list>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <sstream>
#include <tclap/ArgException.h>
#include <tclap/Visitor.h>
#include <tclap/CmdLineInterface.h>
#include <tclap/ArgTraits.h>
#include <tclap/StandardTraits.h>

Go to the source code of this file.

Classes

class  TCLAP::Arg
 A virtual base class that defines the essential data for all arguments. More...

Namespaces

namespace  TCLAP

Defines

#define HAVE_SSTREAM
#define TCLAP_FLAGSTARTCHAR   '-'
 The char that indicates the beginning of a flag.
#define TCLAP_FLAGSTARTSTRING   "-"
 The sting that indicates the beginning of a flag.
#define TCLAP_NAMESTARTSTRING   "--"
 The sting that indicates the beginning of a name.

Typedefs

typedef std::istringstream istringstream
typedef std::list< Arg * >
::iterator 
TCLAP::ArgListIterator
 Typedef of an Arg list iterator.
typedef std::vector< Arg * >
::iterator 
TCLAP::ArgVectorIterator
 Typedef of an Arg vector iterator.
typedef std::list< Visitor * >
::iterator 
TCLAP::VisitorListIterator
 Typedef of a Visitor list iterator.

Functions

template<typename T >
void TCLAP::ExtractValue (T &destVal, const std::string &strVal, ValueLike vl)
template<typename T >
void TCLAP::ExtractValue (T &destVal, const std::string &strVal, StringLike sl)

Define Documentation

#define HAVE_SSTREAM

Definition at line 31 of file Arg.h.

#define TCLAP_FLAGSTARTCHAR   '-'

The char that indicates the beginning of a flag.

Defaults to '-', but clients can define TCLAP_FLAGSTARTCHAR to override.

Definition at line 224 of file Arg.h.

Referenced by TCLAP::Arg::flagStartChar().

#define TCLAP_FLAGSTARTSTRING   "-"

The sting that indicates the beginning of a flag.

Defaults to "-", but clients can define TCLAP_FLAGSTARTSTRING to override. Should be the same as TCLAP_FLAGSTARTCHAR.

Definition at line 234 of file Arg.h.

Referenced by TCLAP::Arg::flagStartString().

#define TCLAP_NAMESTARTSTRING   "--"

The sting that indicates the beginning of a name.

Defaults to "--", but clients can define TCLAP_NAMESTARTSTRING to override.

Definition at line 243 of file Arg.h.

Referenced by TCLAP::Arg::nameStartString().


Typedef Documentation

Definition at line 43 of file Arg.h.


Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/Arg_8h_source.html000644 000765 000765 00000203324 11552414564 017527 0ustar00mesmes000000 000000 tclap: Arg.h Source File
Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/ArgException_8h.html000644 000765 000765 00000010602 11552414564 020021 0ustar00mesmes000000 000000 tclap: ArgException.h File Reference

ArgException.h File Reference

#include <string>
#include <exception>

Go to the source code of this file.

Classes

class  TCLAP::ArgException
 A simple class that defines and argument exception. More...
class  TCLAP::ArgParseException
 Thrown from within the child Arg classes when it fails to properly parse the argument it has been passed. More...
class  TCLAP::CmdLineParseException
 Thrown from CmdLine when the arguments on the command line are not properly specified, e.g. More...
class  TCLAP::SpecificationException
 Thrown from Arg and CmdLine when an Arg is improperly specified, e.g. More...
class  TCLAP::ExitException

Namespaces

namespace  TCLAP

Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/ArgException_8h_source.html000644 000765 000765 00000040075 11552414564 021410 0ustar00mesmes000000 000000 tclap: ArgException.h Source File
Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/ArgTraits_8h.html000644 000765 000765 00000007634 11552414564 017344 0ustar00mesmes000000 000000 tclap: ArgTraits.h File Reference

ArgTraits.h File Reference

Go to the source code of this file.

Classes

struct  TCLAP::ValueLike
 A value like argument value type is a value that can be set using operator>>. More...
struct  TCLAP::StringLike
 A string like argument value type is a value that can be set using operator=(string). More...
struct  TCLAP::StringLikeTrait
 A class can inherit from this object to make it have string like traits. More...
struct  TCLAP::ValueLikeTrait
 A class can inherit from this object to make it have value like traits. More...
struct  TCLAP::ArgTraits< T >
 Arg traits are used to get compile type specialization when parsing argument values. More...

Namespaces

namespace  TCLAP

Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/ArgTraits_8h_source.html000644 000765 000765 00000022676 11552414564 020727 0ustar00mesmes000000 000000 tclap: ArgTraits.h Source File
Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/classes.html000644 000765 000765 00000027435 11552414564 016503 0ustar00mesmes000000 000000 tclap: Alphabetical List

Class Index

A | C | D | E | H | I | M | O | S | U | V | X | Z
  A  
ArgTraits< std::string > (TCLAP)   
  D  
  O  
  V  
Arg (TCLAP)   ArgTraits< unsigned char > (TCLAP)   DocBookOutput (TCLAP)   OptionalUnlabeledTracker (TCLAP)   ValueArg (TCLAP)   
ArgException (TCLAP)   ArgTraits< unsigned int > (TCLAP)   
  E  
  S  
ValueLike (TCLAP)   
ArgParseException (TCLAP)   ArgTraits< unsigned long > (TCLAP)   ExitException (TCLAP)   SpecificationException (TCLAP)   ValueLikeTrait (TCLAP)   
ArgTraits (TCLAP)   ArgTraits< unsigned short > (TCLAP)   
  H  
StdOutput (TCLAP)   ValuesConstraint (TCLAP)   
ArgTraits< bool > (TCLAP)   ArgTraits< wchar_t > (TCLAP)   HelpVisitor (TCLAP)   StringLike (TCLAP)   VersionVisitor (TCLAP)   
ArgTraits< char > (TCLAP)   
  C  
  I  
StringLikeTrait (TCLAP)   Visitor (TCLAP)   
ArgTraits< double > (TCLAP)   CmdLine (TCLAP)   IgnoreRestVisitor (TCLAP)   SwitchArg (TCLAP)   
  X  
ArgTraits< float > (TCLAP)   CmdLineInterface (TCLAP)   
  M  
  U  
XorHandler (TCLAP)   
ArgTraits< int > (TCLAP)   CmdLineOutput (TCLAP)   MultiArg (TCLAP)   UnlabeledMultiArg (TCLAP)   
  Z  
ArgTraits< long > (TCLAP)   CmdLineParseException (TCLAP)   MultiSwitchArg (TCLAP)   UnlabeledValueArg (TCLAP)   ZshCompletionOutput (TCLAP)   
ArgTraits< short > (TCLAP)   Constraint (TCLAP)   
A | C | D | E | H | I | M | O | S | U | V | X | Z

Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/classTCLAP_1_1Arg-members.html000644 000765 000765 00000030557 11552414564 021460 0ustar00mesmes000000 000000 tclap: Member List

TCLAP::Arg Member List

This is the complete list of members for TCLAP::Arg, including all inherited members.
_acceptsMultipleValuesTCLAP::Arg [protected]
_alreadySetTCLAP::Arg [protected]
_checkWithVisitor() const TCLAP::Arg [inline, protected]
_descriptionTCLAP::Arg [protected]
_flagTCLAP::Arg [protected]
_hasBlanks(const std::string &s) const TCLAP::Arg [inline]
_ignoreableTCLAP::Arg [protected]
_nameTCLAP::Arg [protected]
_requiredTCLAP::Arg [protected]
_requireLabelTCLAP::Arg [protected]
_valueRequiredTCLAP::Arg [protected]
_visitorTCLAP::Arg [protected]
_xorSetTCLAP::Arg [protected]
acceptsMultipleValues()TCLAP::Arg [inline, virtual]
addToList(std::list< Arg * > &argList) const TCLAP::Arg [inline, virtual]
allowMore()TCLAP::Arg [inline, virtual]
Arg(const std::string &flag, const std::string &name, const std::string &desc, bool req, bool valreq, Visitor *v=NULL)TCLAP::Arg [inline, protected]
argMatches(const std::string &s) const TCLAP::Arg [inline, virtual]
beginIgnoring()TCLAP::Arg [inline, static]
blankChar()TCLAP::Arg [inline, static]
delimiter()TCLAP::Arg [inline, static]
flagStartChar()TCLAP::Arg [inline, static]
flagStartString()TCLAP::Arg [inline, static]
forceRequired()TCLAP::Arg [inline]
getDescription() const TCLAP::Arg [inline]
getFlag() const TCLAP::Arg [inline]
getName() const TCLAP::Arg [inline]
ignoreNameString()TCLAP::Arg [inline, static]
ignoreRest()TCLAP::Arg [inline, static]
isIgnoreable() const TCLAP::Arg [inline]
isRequired() const TCLAP::Arg [inline, virtual]
isSet() const TCLAP::Arg [inline]
isValueRequired() const TCLAP::Arg [inline]
longID(const std::string &valueId="val") const TCLAP::Arg [inline, virtual]
nameStartString()TCLAP::Arg [inline, static]
operator==(const Arg &a) const TCLAP::Arg [inline, virtual]
processArg(int *i, std::vector< std::string > &args)=0TCLAP::Arg [pure virtual]
reset()TCLAP::Arg [inline, virtual]
setDelimiter(char c)TCLAP::Arg [inline, static]
setRequireLabel(const std::string &s)TCLAP::Arg [inline]
shortID(const std::string &valueId="val") const TCLAP::Arg [inline, virtual]
toString() const TCLAP::Arg [inline, virtual]
trimFlag(std::string &flag, std::string &value) const TCLAP::Arg [inline, virtual]
xorSet()TCLAP::Arg [inline]
~Arg()TCLAP::Arg [inline, virtual]

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/classTCLAP_1_1Arg.gif000644 000765 000765 00000005205 11552414564 017621 0ustar00mesmes000000 000000 GIF89aiˆòÿÿÿÿÿÀŸŸ`ÀÀÀ!ù,iˆþºÜþ0ÊI«½8뽃ÿ`(Ždižhª®lë¾%'Ïtmßx®ï|ïÿ•pH,)£rÉl:ŸÐ¨,)­ZÔ«vËíz¿»,xL–Ïè´zͳß\7|N¯Û¯ò»Þ˜ßûÿ€}]# ‡b!H„‚‘’v^‹ IyBYœ›€•“¢£¤…lš¨ „Ÿ˜«­¯h¡¥¶·¸|§°©½­‰À™À±‡Â«µx¹ÊËÌCÈZ¬ rTÔˆŠÃÄÙÏUÛÍÞßàØ´¼ÓÖÙŒÃÔjÝáïð¶îRÑäâÆéÒëâdóñÿAí²‡ïÞ¯FäØk°¡Cy1}(6±i/”eþ±ßà ùk8²IÉ(SrSym㙓,cÊ$3\Å45gêÜy#'Ï'> Šèš F“&EªÔYÓ§P;D-ÃtªÕU¯âȪµë?`ÊK¶¬Ù^Óªµe`­Û·p´K·®] òÞÝË·oÞ¹} VûWïàÈ¡œ¸±ãŸŒKž¬22å˘ZÎ̹3³ÍžC‹z´éÓ{J£^ÍzêÖ°c{y-»¶m(´oëÞM$7ïß N¼¸ñãÈ“+_μ¹óçУKŸN½ºõëØ§oà{{wàß[‡ç=~wyÔço§·½~t{ÙïcÇ÷<_üv õ9ç_½ýþýý iNV h†– c vÖ ~ÿ)ð`fbVá`R–¡°¡d>â^#6Vbb'Ö•âa+bØa‹‚Á˜ŒO `ã8æ¨ãŽ<öèã@É£Biä‘H&)A’L6éä‘D>)å”T.Iå•XB™å–\ú(À—`†)æ˜d–iæ™h¦©æšl¶éæ›p’9À’qÖiçxæ©çžfÎÁ|*è „º¦†&ªè¢Œºé'€6*餔úè‘Vªé¦œ:ši§ †*ê¥|*ꩨJJj¦¦êê«‚" 무æ¹*­Öªë®hÞº@®¼+¬²k¬°¾*þì±Ìºš,Ë6+m¨Å:˜ `kfb†°-™Ü–î¸Ýòym§ÏF«è¹dûe¸àv뮸¤I®¸ßòš®µ"`[ï»ùúûo¼aÂ;¦Ál"|'»”V›(Âß{p»W .Ä kKñÄ/|ê¾ BlqÇÜFlñÄÛp¹;KçÃåjLòƧ³Í7'Lóž-7ê°¡&ÌñÉ;ŒqÍ—ìÁÎ%³ünÓ:úr§A£<´Í3ß oÓÿ¬´Ó 5§ MôÙÚV]ôÉ/]óÖƒöÓkŸÙ3£?[‹6Òlcý6ÀpK|¯àX~4¾ôª:5§jï 7߃ûÛ7àþ¿M8䆃Z¶Þ8wNó㕃.zåI§ z»™½²¼‹æMhãž‹>ïÕ_9ÒUËŽæÝn+ºù¦°ómºÀ½oûøíûäuOúû Á×-ûÀBg|{éËC®<ê»ï~7ž®C¿·ôó~_úõÈŸ{Úæ·oþÏW½õå¿™>ö O_üèè.þúøôóšÎ0æ6Û•ov£+ÞêG¨ð j~V#Ý(‡=üIðsÛS`/†7ÿi ‚9«àeV; ®íxZÛÞ¦â(ž-yÝ[_aX4þ}ŽwÞK”[˜3Ьy) Ýý~ˆAî©qô™å×CáÕЉB+bmGBæ‰MþsKä!Ñ|³÷ …I£¢évÄ(²Îwê2×Á¼æ®ZtºË O·4/±aYœTþØØµ.lkÔã_{FÖ‹Z× ÙF?¢ŒˆqÛ!Ÿv:)rÏŽvl`§ ÊP‰]›,å¢*,Rª²V¬Äc"_)ªXÒj‡´\¥[™Ç\ÒŠz+ì¥/Ì]ár˜ÈŸ0“ÉÌ:¹²™ÐôT4§©ÌYRóšoz&6·¦cr“›Úüæ6Ã)Îkz³œÔ$':£©Îu6óœî|ç2ãÉÎyÒó]ʧ>÷ÉÏ,Y©Ÿ ¨@j£ô M¨“¼A#¾4”Dþ/êzŠvå/}F3ÊÃxÇ£•HCºQð&¤"-)GóQ•f”¥(…©wPÊš2À¢µ)€t*¡ˆò§têU„ ¢¾Å¨QAêZ”JŸê”©iªR¤šÓŸ:Õ¦TÕJV‰²U«tu*_… O=4Ö°òĬOAkSÔ:¶&Å­F+Kä:º Å®(ÁëYËzUšêu'ýH`ÛÊ× V&‡Ib²ØÊö?MIdóÚט>ö>“ IfA²Ùptö!ŸuHhzY¿V–¤¥OjQkØÕ®Ô ­Ž¢$ÛÚ´¶ ¥-nzÛÝT·¾Eè=ÑÙÎáæ²¸Æþ}%<“KKä2”Î}î´–+]èÚ³ºªŒ.vEÝí6K»ÞEÖuÃ+­î’wXà=¯®Ò«Þ[‹]õC"%w©=ù†Ð¾ˆ{c~¿h®~Á‰½ôòÖ|=÷ÅÙ݈è+æ#H`çù¾´¯€£Ø² «©}üÅï…û;áC© ’4¤`}#ha o0¿‡ûc¼NÙ=;x„~kÞØ˜Æ@Éíw‹k*1í‚iÍmfjˇ|ÇìÀDþ‹a,M& Yn4¦0à¦Ç>£QYrW<" ëe2‘]“ðoœ\åùnË“Ìßð”&¶Àyl“l`É6K¹vWƳ•M·?I®€|þs/Ù&ïÎÙ‹òõÂ:™¡Ž–1ÔÀx9¦¥ÎÆf,cŸÄ 'DKñÇ \ö<ÆGц§&£œ{lçúÈ"̲© 8êZñÕ†t¢S}kU»Ú×b:4«§¾•‰Ö3Ôõ–ç6E]GùÓ8´[Ï^ll ëÏ¢n¶o=D'ÚP†E3«cìêkW[ÛÈ# UXÅuïúÛÑ6žœ><ìErÃUœa-·oSÚ„& ôþÖŒa{uŒÚò}r±“LÂY_0×÷³"Ù(zzÂW6ñFÝHÔí›ÆœõIp|ç°›ô&°š‘íd[»{å+· ÃžhÝ19‰eBøþOìF|OÚå$×r=9"¢:Vs®÷ ^ßkÜ‘Ì+¡ò޳ocÚÄW“°íó‡ßÙéŒN¶Øe=u2F¼æÀ¦/‚¿§ó ‚ÚÇLÇ5Ùinõ±çí½Fú¸3üðž«,ß":¥!©í¹o[)þuÞQÞb+ |ŽP\„õ=ô>ç™Ð¸Æü—ùÞ¶pMm¿ïÈiÍòvgðç˜÷8¸e}ï ÒqÆz‡~Gyéánò’¯|Û.go7¬äë=oä3™·½cVÜޑϨ%«)ôÌgp¬RýN¿âœ®~òãîÌìk?jćõ¿_hµ¯Zöä˜ùmåýôÜùm:¾ûT?ÖþùKmùö××øóŸ*èó_‡õ÷+´H-X€²„~¨ ÈKø×€ýw€Ø:8 ˆ)X+þ—à\øýÔ[ 8‚$¸PR‚(˜‚H’;tclap-1.2.1/docs/html/classTCLAP_1_1Arg.html000644 000765 000765 00000244154 11552414564 020030 0ustar00mesmes000000 000000 tclap: TCLAP::Arg Class Reference

TCLAP::Arg Class Reference

A virtual base class that defines the essential data for all arguments. More...

#include <Arg.h>

Inheritance diagram for TCLAP::Arg:
TCLAP::MultiArg< T > TCLAP::SwitchArg TCLAP::ValueArg< T > TCLAP::UnlabeledMultiArg< T > TCLAP::MultiSwitchArg TCLAP::UnlabeledValueArg< T >

List of all members.

Public Member Functions

virtual ~Arg ()
 Destructor.
virtual void addToList (std::list< Arg * > &argList) const
 Adds this to the specified list of Args.
virtual bool processArg (int *i, std::vector< std::string > &args)=0
 Pure virtual method meant to handle the parsing and value assignment of the string on the command line.
virtual bool operator== (const Arg &a) const
 Operator ==.
const std::string & getFlag () const
 Returns the argument flag.
const std::string & getName () const
 Returns the argument name.
std::string getDescription () const
 Returns the argument description.
virtual bool isRequired () const
 Indicates whether the argument is required.
void forceRequired ()
 Sets _required to true.
void xorSet ()
 Sets the _alreadySet value to true.
bool isValueRequired () const
 Indicates whether a value must be specified for argument.
bool isSet () const
 Indicates whether the argument has already been set.
bool isIgnoreable () const
 Indicates whether the argument can be ignored, if desired.
virtual bool argMatches (const std::string &s) const
 A method that tests whether a string matches this argument.
virtual std::string toString () const
 Returns a simple string representation of the argument.
virtual std::string shortID (const std::string &valueId="val") const
 Returns a short ID for the usage.
virtual std::string longID (const std::string &valueId="val") const
 Returns a long ID for the usage.
virtual void trimFlag (std::string &flag, std::string &value) const
 Trims a value off of the flag.
bool _hasBlanks (const std::string &s) const
 Checks whether a given string has blank chars, indicating that it is a combined SwitchArg.
void setRequireLabel (const std::string &s)
 Sets the requireLabel.
virtual bool allowMore ()
 Used for MultiArgs and XorHandler to determine whether args can still be set.
virtual bool acceptsMultipleValues ()
 Use by output classes to determine whether an Arg accepts multiple values.
virtual void reset ()
 Clears the Arg object and allows it to be reused by new command lines.

Static Public Member Functions

static void beginIgnoring ()
 Begin ignoring arguments since the "--" argument was specified.
static bool ignoreRest ()
 Whether to ignore the rest.
static char delimiter ()
 The delimiter that separates an argument flag/name from the value.
static char blankChar ()
 The char used as a place holder when SwitchArgs are combined.
static char flagStartChar ()
static const std::string flagStartString ()
static const std::string nameStartString ()
static const std::string ignoreNameString ()
 The name used to identify the ignore rest argument.
static void setDelimiter (char c)
 Sets the delimiter for all arguments.

Protected Member Functions

void _checkWithVisitor () const
 Performs the special handling described by the Vistitor.
 Arg (const std::string &flag, const std::string &name, const std::string &desc, bool req, bool valreq, Visitor *v=NULL)
 Primary constructor.

Protected Attributes

std::string _flag
 The single char flag used to identify the argument.
std::string _name
 A single work namd indentifying the argument.
std::string _description
 Description of the argument.
bool _required
 Indicating whether the argument is required.
std::string _requireLabel
 Label to be used in usage description.
bool _valueRequired
 Indicates whether a value is required for the argument.
bool _alreadySet
 Indicates whether the argument has been set.
Visitor_visitor
 A pointer to a vistitor object.
bool _ignoreable
 Whether this argument can be ignored, if desired.
bool _xorSet
 Indicates that the arg was set as part of an XOR and not on the command line.
bool _acceptsMultipleValues

Detailed Description

A virtual base class that defines the essential data for all arguments.

This class, or one of its existing children, must be subclassed to do anything.

Definition at line 64 of file Arg.h.


Constructor & Destructor Documentation

TCLAP::Arg::Arg ( const std::string &  flag,
const std::string &  name,
const std::string &  desc,
bool  req,
bool  valreq,
Visitor v = NULL 
) [inline, protected]

Primary constructor.

YOU (yes you) should NEVER construct an Arg directly, this is a base class that is extended by various children that are meant to be used. Use SwitchArg, ValueArg, MultiArg, UnlabeledValueArg, or UnlabeledMultiArg instead.

Parameters:
flag - The flag identifying the argument.
name - The name identifying the argument.
desc - The description of the argument, used in the usage.
req - Whether the argument is required.
valreq - Whether the a value is required for the argument.
v - The visitor checked by the argument. Defaults to NULL.

Definition at line 462 of file Arg.h.

References _flag, _name, flagStartString(), ignoreNameString(), nameStartString(), and toString().

TCLAP::Arg::~Arg (  )  [inline, virtual]

Destructor.

Definition at line 503 of file Arg.h.


Member Function Documentation

void TCLAP::Arg::_checkWithVisitor (  )  const [inline, protected]

Performs the special handling described by the Vistitor.

Definition at line 611 of file Arg.h.

References _visitor, and TCLAP::Visitor::visit().

Referenced by TCLAP::ValueArg< T >::processArg(), TCLAP::MultiSwitchArg::processArg(), and TCLAP::MultiArg< T >::processArg().

bool TCLAP::Arg::_hasBlanks ( const std::string &  s  )  const [inline]

Checks whether a given string has blank chars, indicating that it is a combined SwitchArg.

Implementation of _hasBlanks.

If so, return true, otherwise return false.

Parameters:
s - string to be checked.

Definition at line 641 of file Arg.h.

References blankChar().

Referenced by TCLAP::ValueArg< T >::processArg(), TCLAP::UnlabeledValueArg< T >::processArg(), TCLAP::UnlabeledMultiArg< T >::processArg(), and TCLAP::MultiArg< T >::processArg().

bool TCLAP::Arg::acceptsMultipleValues (  )  [inline, virtual]

Use by output classes to determine whether an Arg accepts multiple values.

Definition at line 674 of file Arg.h.

References _acceptsMultipleValues.

Referenced by TCLAP::ZshCompletionOutput::getMutexList(), TCLAP::ZshCompletionOutput::printArg(), and TCLAP::DocBookOutput::printShortArg().

void TCLAP::Arg::addToList ( std::list< Arg * > &  argList  )  const [inline, virtual]

Adds this to the specified list of Args.

Overridden by Args that need to added to the end of the list.

Parameters:
argList - The list to add this to.

Definition at line 664 of file Arg.h.

Referenced by TCLAP::CmdLine::add().

bool TCLAP::Arg::allowMore (  )  [inline, virtual]

Used for MultiArgs and XorHandler to determine whether args can still be set.

Reimplemented in TCLAP::MultiArg< T >.

Definition at line 669 of file Arg.h.

bool TCLAP::Arg::argMatches ( const std::string &  s  )  const [inline, virtual]

A method that tests whether a string matches this argument.

This is generally called by the processArg() method. This method could be re-implemented by a child to change how arguments are specified on the command line.

Parameters:
s - The string to be compared to the flag/name to determine whether the arg matches.

Definition at line 590 of file Arg.h.

References _flag, _name, flagStartString(), and nameStartString().

Referenced by TCLAP::ValueArg< T >::processArg(), TCLAP::SwitchArg::processArg(), TCLAP::MultiSwitchArg::processArg(), and TCLAP::MultiArg< T >::processArg().

static void TCLAP::Arg::beginIgnoring (  )  [inline, static]

Begin ignoring arguments since the "--" argument was specified.

Definition at line 200 of file Arg.h.

Referenced by TCLAP::IgnoreRestVisitor::visit().

static char TCLAP::Arg::blankChar (  )  [inline, static]

The char used as a place holder when SwitchArgs are combined.

Currently set to the bell char (ASCII 7).

Definition at line 217 of file Arg.h.

Referenced by TCLAP::CmdLine::_emptyCombined(), _hasBlanks(), and TCLAP::SwitchArg::combinedSwitchesMatch().

static char TCLAP::Arg::delimiter (  )  [inline, static]

The delimiter that separates an argument flag/name from the value.

Definition at line 211 of file Arg.h.

Referenced by TCLAP::SwitchArg::combinedSwitchesMatch(), longID(), TCLAP::ValueArg< T >::processArg(), TCLAP::MultiArg< T >::processArg(), shortID(), and trimFlag().

static char TCLAP::Arg::flagStartChar (  )  [inline, static]
static const std::string TCLAP::Arg::flagStartString (  )  [inline, static]
void TCLAP::Arg::forceRequired (  )  [inline]

Sets _required to true.

This is used by the XorHandler. You really have no reason to ever use it.

Definition at line 650 of file Arg.h.

References _required.

std::string TCLAP::Arg::getDescription (  )  const [inline]
const std::string & TCLAP::Arg::getFlag (  )  const [inline]

Returns the argument flag.

Definition at line 567 of file Arg.h.

References _flag.

Referenced by TCLAP::ZshCompletionOutput::getMutexList(), and TCLAP::ZshCompletionOutput::printOption().

const std::string & TCLAP::Arg::getName (  )  const [inline]
static const std::string TCLAP::Arg::ignoreNameString (  )  [inline, static]

The name used to identify the ignore rest argument.

Definition at line 250 of file Arg.h.

Referenced by Arg().

static bool TCLAP::Arg::ignoreRest (  )  [inline, static]
bool TCLAP::Arg::isIgnoreable (  )  const [inline]

Indicates whether the argument can be ignored, if desired.

Definition at line 583 of file Arg.h.

References _ignoreable.

bool TCLAP::Arg::isRequired (  )  const [inline, virtual]

Indicates whether the argument is required.

Reimplemented in TCLAP::MultiArg< T >.

Definition at line 571 of file Arg.h.

References _required.

Referenced by TCLAP::CmdLine::add(), TCLAP::XorHandler::check(), TCLAP::ZshCompletionOutput::printArg(), and TCLAP::DocBookOutput::printShortArg().

bool TCLAP::Arg::isSet (  )  const [inline]

Indicates whether the argument has already been set.

Only true if the arg has been matched on the command line.

Definition at line 575 of file Arg.h.

References _alreadySet, and _xorSet.

Referenced by TCLAP::XorHandler::check().

bool TCLAP::Arg::isValueRequired (  )  const [inline]

Indicates whether a value must be specified for argument.

Definition at line 573 of file Arg.h.

References _valueRequired.

Referenced by TCLAP::ZshCompletionOutput::printOption().

std::string TCLAP::Arg::longID ( const std::string &  valueId = "val"  )  const [inline, virtual]

Returns a long ID for the usage.

Parameters:
valueId - The value used in the id.

Reimplemented in TCLAP::MultiArg< T >, TCLAP::MultiSwitchArg, TCLAP::UnlabeledMultiArg< T >, TCLAP::UnlabeledValueArg< T >, and TCLAP::ValueArg< T >.

Definition at line 523 of file Arg.h.

References _flag, _name, _valueRequired, delimiter(), flagStartString(), and nameStartString().

Referenced by TCLAP::CmdLine::add().

static const std::string TCLAP::Arg::nameStartString (  )  [inline, static]
bool TCLAP::Arg::operator== ( const Arg a  )  const [inline, virtual]

Operator ==.

Equality operator. Must be virtual to handle unlabeled args.

Parameters:
a - The Arg to be compared to this.

Definition at line 546 of file Arg.h.

References _flag, and _name.

virtual bool TCLAP::Arg::processArg ( int *  i,
std::vector< std::string > &  args 
) [pure virtual]

Pure virtual method meant to handle the parsing and value assignment of the string on the command line.

Parameters:
i - Pointer the the current argument in the list.
args - Mutable list of strings. What is passed in from main.

Implemented in TCLAP::MultiArg< T >, TCLAP::MultiSwitchArg, TCLAP::SwitchArg, TCLAP::UnlabeledMultiArg< T >, TCLAP::UnlabeledValueArg< T >, and TCLAP::ValueArg< T >.

void TCLAP::Arg::reset (  )  [inline, virtual]

Clears the Arg object and allows it to be reused by new command lines.

Reimplemented in TCLAP::MultiArg< T >, TCLAP::MultiSwitchArg, TCLAP::SwitchArg, and TCLAP::ValueArg< T >.

Definition at line 679 of file Arg.h.

References _alreadySet, and _xorSet.

static void TCLAP::Arg::setDelimiter ( char  c  )  [inline, static]

Sets the delimiter for all arguments.

Parameters:
c - The character that delimits flags/names from values.

Definition at line 256 of file Arg.h.

void TCLAP::Arg::setRequireLabel ( const std::string &  s  )  [inline]

Sets the requireLabel.

Used by XorHandler. You shouldn't ever use this.

Parameters:
s - Set the requireLabel to this value.

Definition at line 585 of file Arg.h.

References _requireLabel.

std::string TCLAP::Arg::shortID ( const std::string &  valueId = "val"  )  const [inline, virtual]

Returns a short ID for the usage.

Parameters:
valueId - The value used in the id.

Reimplemented in TCLAP::MultiArg< T >, TCLAP::MultiSwitchArg, TCLAP::UnlabeledMultiArg< T >, TCLAP::UnlabeledValueArg< T >, and TCLAP::ValueArg< T >.

Definition at line 505 of file Arg.h.

References _flag, _name, _required, _valueRequired, delimiter(), flagStartString(), and nameStartString().

Referenced by TCLAP::ZshCompletionOutput::printOption(), and TCLAP::DocBookOutput::printShortArg().

std::string TCLAP::Arg::toString (  )  const [inline, virtual]
void TCLAP::Arg::trimFlag ( std::string &  flag,
std::string &  value 
) const [inline, virtual]

Trims a value off of the flag.

Implementation of trimFlag.

Parameters:
flag - The string from which the flag and value will be trimmed. Contains the flag once the value has been trimmed.
value - Where the value trimmed from the string will be stored.

Definition at line 620 of file Arg.h.

References delimiter().

Referenced by TCLAP::ValueArg< T >::processArg(), and TCLAP::MultiArg< T >::processArg().

void TCLAP::Arg::xorSet (  )  [inline]

Sets the _alreadySet value to true.

This is used by the XorHandler. You really have no reason to ever use it.

Definition at line 655 of file Arg.h.

References _alreadySet, and _xorSet.


Member Data Documentation

Definition at line 158 of file Arg.h.

Referenced by acceptsMultipleValues(), and TCLAP::MultiArg< T >::MultiArg().

bool TCLAP::Arg::_alreadySet [protected]

Indicates whether the argument has been set.

Indicates that a value on the command line has matched the name/flag of this argument and the values have been set accordingly.

Definition at line 137 of file Arg.h.

Referenced by isSet(), TCLAP::ValueArg< T >::processArg(), TCLAP::UnlabeledValueArg< T >::processArg(), TCLAP::UnlabeledMultiArg< T >::processArg(), TCLAP::MultiSwitchArg::processArg(), TCLAP::MultiArg< T >::processArg(), reset(), and xorSet().

std::string TCLAP::Arg::_description [protected]

Description of the argument.

Definition at line 112 of file Arg.h.

Referenced by getDescription(), TCLAP::UnlabeledValueArg< T >::operator==(), and TCLAP::UnlabeledMultiArg< T >::operator==().

std::string TCLAP::Arg::_flag [protected]

The single char flag used to identify the argument.

This value (preceded by a dash {-}), can be used to identify an argument on the command line. The _flag can be blank, in fact this is how unlabeled args work. Unlabeled args must override appropriate functions to get correct handling. Note that the _flag does NOT include the dash as part of the flag.

Definition at line 98 of file Arg.h.

Referenced by Arg(), argMatches(), TCLAP::SwitchArg::combinedSwitchesMatch(), getFlag(), longID(), operator==(), shortID(), and toString().

std::string TCLAP::Arg::_name [protected]

A single work namd indentifying the argument.

This value (preceded by two dashed {--}) can also be used to identify an argument on the command line. Note that the _name does NOT include the two dashes as part of the _name. The _name cannot be blank.

Definition at line 107 of file Arg.h.

Referenced by Arg(), argMatches(), getName(), longID(), TCLAP::UnlabeledValueArg< T >::operator==(), TCLAP::UnlabeledMultiArg< T >::operator==(), operator==(), shortID(), and toString().

bool TCLAP::Arg::_required [protected]

Indicating whether the argument is required.

Definition at line 117 of file Arg.h.

Referenced by forceRequired(), getDescription(), TCLAP::MultiArg< T >::isRequired(), isRequired(), and shortID().

std::string TCLAP::Arg::_requireLabel [protected]

Label to be used in usage description.

Normally set to "required", but can be changed when necessary.

Definition at line 123 of file Arg.h.

Referenced by getDescription(), and setRequireLabel().

bool TCLAP::Arg::_valueRequired [protected]

Indicates whether a value is required for the argument.

Note that the value may be required but the argument/value combination may not be, as specified by _required.

Definition at line 130 of file Arg.h.

Referenced by isValueRequired(), longID(), and shortID().

A pointer to a vistitor object.

The visitor allows special handling to occur as soon as the argument is matched. This defaults to NULL and should not be used unless absolutely necessary.

Definition at line 145 of file Arg.h.

Referenced by _checkWithVisitor().

bool TCLAP::Arg::_xorSet [protected]

Indicates that the arg was set as part of an XOR and not on the command line.

Definition at line 156 of file Arg.h.

Referenced by isSet(), TCLAP::ValueArg< T >::processArg(), reset(), and xorSet().


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

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/classTCLAP_1_1ArgException-members.html000644 000765 000765 00000006364 11552414564 023336 0ustar00mesmes000000 000000 tclap: Member List

TCLAP::ArgException Member List

This is the complete list of members for TCLAP::ArgException, including all inherited members.
ArgException(const std::string &text="undefined exception", const std::string &id="undefined", const std::string &td="Generic ArgException")TCLAP::ArgException [inline]
argId() const TCLAP::ArgException [inline]
error() const TCLAP::ArgException [inline]
typeDescription() const TCLAP::ArgException [inline]
what() const TCLAP::ArgException [inline]
~ArgException()TCLAP::ArgException [inline, virtual]

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/classTCLAP_1_1ArgException.gif000644 000765 000765 00000003520 11552414564 021476 0ustar00mesmes000000 000000 GIF89a]PòÿÿÿÿÿÀŸŸ`ÀÀÀ!ù,]PþºÜþ0ÊI«½8ë}ƒÿ`(Ždižhª®lë¾!'Ïtmßx®ï|ïÿpH,!£rÉl:ŸÐh%)­Z•Ô«vËíz¿³,xLŽˆËè´zÍÖœÛðê;N¯ÛïÌ9~ÿÓóÿ€‚~6# ˆfA‰…„19IF”ƒ—˜™h–5bY“HŸ ~Bœ¢}[§š¬­®M«2£s¦¤·‹ž¨¢¶»¸ “¤ÂÀ¼ÀÂTŠÄC±¯ÏÐÑ7γ„´ŠÅ٠ھƻÄoÜÉÝÁÚãÛÜ@ÔÒíîï¡DÖAØåñÞäç‘ßÞåÿàê[¯ ÁƒØe˜÷k˜²nŽîùÒWk ¢FÏmËFþ¡Çb`ȱdÀ„ôžL©ÎäD/cvI³æ+‘RÂl¸R‚.-!öZi£òl*]z §…3÷"ý·S¥±`‰f=z¾·Ê=8ä•C8ÒuÓ<6ÔRw^ôçÛ~yèNë|tæ·kNºÓ¢Ën*ß³^x븫^9ïœ÷N5ñÐßN=ÇÅ4ð¦Ïóõ³Ú8ÆÊ¯w￟ÿ9×L—¾÷Û§ï{Ýô»Ì~üÛÇ+ò®#í{éßÌNÇ>ýÍî~œÝÜÚ'@*€dàÑ'ARñÏy¯ûßû&˜»¤5P} aý8˜¿Ê‚¿Cà+ˆªñ‘­|ž[`AÁQPiŒá _–=‚"¤Õ—AíQÏvÚ# ¸ÂÒ„:t¢é6øÃVÑþ|CLb}h¿'P†œŸüü·Ä‚Ì~Ë #þšh>`M gilãc84îpÝë`Yȹ4ž…AÌa¬²ø¸8Îqqm$! ˜¿éÙ,hÜ£GÇ?ZQtÌbÿœ7þ0‚$£Ý—¦Â1NÒ“’¼"éèÆ\Ò|~cåÿ ¸H.V–rcb IHÆ¥n–[\Ý$“ÈÈUš—»¼¥2•ˆL.–Q¢Òdóf)ÌDjq”~Ħ*Gé@ fsÜ\• ]KFQ–Ä|ßæX©ÎK†w‹\g)?´_¦“‘¬æ5IQb²›`ä¥.±wLø е²§ÿšçÏ1&.…þôd<·ùÏfZm¢}&÷ƨ Pt¡d¦Ïé¹§%ò{D¬^ÑPêÄèax¥ë!"[¨P?NÑ‘øÌ)¸;œª•3|§î@º1÷ Uz04 MXÞ”iñŽêRz¯‹¥ÜUwÈÒFV5«TêF[Y1ºl¦ÆjjY׺P_©u]he+1³Õчu^q%Ö[åÊ×¼ºj¯åòk_™5εzÑ^‚¥WMùÊØ¹î °äJ,[%ûªÂ6ö²¿‚,f7ëKaqö³t­hëÙÑšu¥=­j÷W×Õº–©‹}­lšÚÙÚ¶V­½­h5«ÛÍò¶·—µ,pwÛášö·Æ•+¨–ËÜæ:÷R™z®t§KÝéF·ºØÍ®v#•;tclap-1.2.1/docs/html/classTCLAP_1_1ArgException.html000644 000765 000765 00000031030 11552414564 021672 0ustar00mesmes000000 000000 tclap: TCLAP::ArgException Class Reference

TCLAP::ArgException Class Reference

A simple class that defines and argument exception. More...

#include <ArgException.h>

Inheritance diagram for TCLAP::ArgException:
TCLAP::ArgParseException TCLAP::CmdLineParseException TCLAP::SpecificationException

List of all members.

Public Member Functions

 ArgException (const std::string &text="undefined exception", const std::string &id="undefined", const std::string &td="Generic ArgException")
 Constructor.
virtual ~ArgException () throw ()
 Destructor.
std::string error () const
 Returns the error text.
std::string argId () const
 Returns the argument id.
const char * what () const throw ()
 Returns the arg id and error text.
std::string typeDescription () const
 Returns the type of the exception.

Detailed Description

A simple class that defines and argument exception.

Should be caught whenever a CmdLine is created and parsed.

Definition at line 36 of file ArgException.h.


Constructor & Destructor Documentation

TCLAP::ArgException::ArgException ( const std::string &  text = "undefined exception",
const std::string &  id = "undefined",
const std::string &  td = "Generic ArgException" 
) [inline]

Constructor.

Parameters:
text - The text of the exception.
id - The text identifying the argument source.
td - Text describing the type of ArgException it is. of the exception.

Definition at line 47 of file ArgException.h.

virtual TCLAP::ArgException::~ArgException (  )  throw () [inline, virtual]

Destructor.

Definition at line 59 of file ArgException.h.


Member Function Documentation

std::string TCLAP::ArgException::argId (  )  const [inline]

Returns the argument id.

Definition at line 69 of file ArgException.h.

Referenced by TCLAP::StdOutput::failure().

std::string TCLAP::ArgException::error (  )  const [inline]

Returns the error text.

Definition at line 64 of file ArgException.h.

Referenced by TCLAP::ValueArg< T >::_extractValue(), TCLAP::MultiArg< T >::_extractValue(), and TCLAP::StdOutput::failure().

std::string TCLAP::ArgException::typeDescription (  )  const [inline]

Returns the type of the exception.

Used to explain and distinguish between different child exceptions.

Definition at line 91 of file ArgException.h.

const char* TCLAP::ArgException::what (  )  const throw () [inline]

Returns the arg id and error text.

Definition at line 80 of file ArgException.h.

Referenced by TCLAP::ZshCompletionOutput::failure(), and TCLAP::DocBookOutput::failure().


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

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/classTCLAP_1_1ArgParseException-members.html000644 000765 000765 00000007205 11552414564 024324 0ustar00mesmes000000 000000 tclap: Member List

TCLAP::ArgParseException Member List

This is the complete list of members for TCLAP::ArgParseException, including all inherited members.
ArgException(const std::string &text="undefined exception", const std::string &id="undefined", const std::string &td="Generic ArgException")TCLAP::ArgException [inline]
argId() const TCLAP::ArgException [inline]
ArgParseException(const std::string &text="undefined exception", const std::string &id="undefined")TCLAP::ArgParseException [inline]
error() const TCLAP::ArgException [inline]
typeDescription() const TCLAP::ArgException [inline]
what() const TCLAP::ArgException [inline]
~ArgException()TCLAP::ArgException [inline, virtual]

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/classTCLAP_1_1ArgParseException.gif000644 000765 000765 00000001542 11552414564 022473 0ustar00mesmes000000 000000 GIF89a§PòÿÿÿÿÿÀŸŸ`ÀÀÀ!ù,§Pþ8ºÜþ0ÊI«½8_Á»ÿ`(Ždižhª®¦Â¾p,Ï4ëÖx®ïûÍÿÀ °ãHUqh:gtõ<«$,ꪭU»Àå««ýŠ ekV^ÛA1+‚£ÕS*ûsg÷ÁtNVMS„~}‡…pJ4t mX’xf“Q•†‘–œ—šž{~¢0rLxuy‡†g¬£±_W˜°¢•£™y—1§*|uR¥Y÷»g¼˜‚²¡ÍϽ3À©¶¸n¬¼×ȱ¶ÏºÎÝ/¾)d”ªç&æÇ¤â݈¸³ÎñìÑŽÌ­ÛÛóÁ¥„³¤r•ˆ“+€Ë²Í —äÈ¢0løCŽˆF&Rä‘þOÆ!7йPÉ“(k„Lɲ¥‡•.c¢„)³æF 8sêÜɳ§N@ƒ J´¨Ñ£H“*j`©Ó§P£JJµêÒ¦V³jÝʵkT`½ŠK¶¬S°Xͪ]Ë6+Ú°mãÊ[ômZºx󮽫·¯ß®|ÿ ü•°áÃW+^,40ãÇCžŒW2åËm-cÞ\V3çÏ€A‹6ëy´i©¥O«N¼º5ÕÔ®c7–M›uíÛuqëfº»7ؾGz8qÎÆcN®œ2óæŸCg,3—ëØ³kßν»÷ïàËç>Ýu“ò­Ï£W­~½éöîEÃp=èûG ½¢T?þTþ]q!–þI5~BHP &¸ ‚ "¥_ƒI)HaU˜ÕB¸ŸQ:è!Q!:H`‰ÚжGaŠô­èbŒ žW øqÈგXÔØ#*v¨ŒDÒø FþØä“K2)%‚G’˜!Œ>fÉ#€  á‰8j™ä5ÞWãˆ[’¹¤šcžé$š=&h&Ι&”û…I§‹f^ÙfŒa9%”/^)¢–#2Yá‡j®)&šŠÂ9è¡_>)(¤†RiœŽ.z¨ ›6zé/šH%•ƒ*ªª•]æÉg Œ^8i£4†Zf§JÞZ&ŽHÊ$Ÿ[ÎÈi®òm–¡U;B*öçcÇbØ,³É.öìTÑÆ7YµÖB›­|Ón«¶Þ"6Þ¸ä–kî¹èz—;tclap-1.2.1/docs/html/classTCLAP_1_1ArgParseException.html000644 000765 000765 00000012710 11552414564 022671 0ustar00mesmes000000 000000 tclap: TCLAP::ArgParseException Class Reference

TCLAP::ArgParseException Class Reference

Thrown from within the child Arg classes when it fails to properly parse the argument it has been passed. More...

#include <ArgException.h>

Inheritance diagram for TCLAP::ArgParseException:
TCLAP::ArgException

List of all members.

Public Member Functions

 ArgParseException (const std::string &text="undefined exception", const std::string &id="undefined")
 Constructor.

Detailed Description

Thrown from within the child Arg classes when it fails to properly parse the argument it has been passed.

Definition at line 121 of file ArgException.h.


Constructor & Destructor Documentation

TCLAP::ArgParseException::ArgParseException ( const std::string &  text = "undefined exception",
const std::string &  id = "undefined" 
) [inline]

Constructor.

Parameters:
text - The text of the exception.
id - The text identifying the argument source of the exception.

Definition at line 130 of file ArgException.h.


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

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/classTCLAP_1_1CmdLine-members.html000644 000765 000765 00000025203 11552414564 022252 0ustar00mesmes000000 000000 tclap: Member List

TCLAP::CmdLine Member List

This is the complete list of members for TCLAP::CmdLine, including all inherited members.
_argDeleteOnExitListTCLAP::CmdLine [protected]
_argListTCLAP::CmdLine [protected]
_delimiterTCLAP::CmdLine [protected]
_emptyCombined(const std::string &s)TCLAP::CmdLine [inline, protected]
_handleExceptionsTCLAP::CmdLine [protected]
_messageTCLAP::CmdLine [protected]
_numRequiredTCLAP::CmdLine [protected]
_outputTCLAP::CmdLine [protected]
_progNameTCLAP::CmdLine [protected]
_versionTCLAP::CmdLine [protected]
_visitorDeleteOnExitListTCLAP::CmdLine [protected]
_xorHandlerTCLAP::CmdLine [protected]
add(Arg &a)TCLAP::CmdLine [inline, virtual]
add(Arg *a)TCLAP::CmdLine [inline, virtual]
CmdLine(const std::string &message, const char delimiter= ' ', const std::string &version="none", bool helpAndVersion=true)TCLAP::CmdLine [inline]
deleteOnExit(Arg *ptr)TCLAP::CmdLine [inline, protected]
deleteOnExit(Visitor *ptr)TCLAP::CmdLine [inline, protected]
getArgList()TCLAP::CmdLine [inline, virtual]
getDelimiter()TCLAP::CmdLine [inline, virtual]
getExceptionHandling() const TCLAP::CmdLine [inline]
getMessage()TCLAP::CmdLine [inline, virtual]
getOutput()TCLAP::CmdLine [inline, virtual]
getProgramName()TCLAP::CmdLine [inline, virtual]
getVersion()TCLAP::CmdLine [inline, virtual]
getXorHandler()TCLAP::CmdLine [inline, virtual]
hasHelpAndVersion()TCLAP::CmdLine [inline, virtual]
missingArgsException()TCLAP::CmdLine [inline, protected]
parse(int argc, const char *const *argv)TCLAP::CmdLine [inline, virtual]
parse(std::vector< std::string > &args)TCLAP::CmdLine [inline]
reset()TCLAP::CmdLine [inline, virtual]
setExceptionHandling(const bool state)TCLAP::CmdLine [inline]
setOutput(CmdLineOutput *co)TCLAP::CmdLine [inline, virtual]
xorAdd(Arg &a, Arg &b)TCLAP::CmdLine [inline, virtual]
xorAdd(std::vector< Arg * > &xors)TCLAP::CmdLine [inline, virtual]
~CmdLine()TCLAP::CmdLine [inline, virtual]
~CmdLineInterface()TCLAP::CmdLineInterface [inline, virtual]

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/classTCLAP_1_1CmdLine.gif000644 000765 000765 00000001426 11552414564 020424 0ustar00mesmes000000 000000 GIF89aPòÿÿÿÿÿÀŸŸ`ÀÀÀ!ù,Pþ8ºÜþ0ÊI«½87Á»ÿ`(Ždižhª®œÂ¾p,Ï´èÖx®ïïÍÿÀ`Î',$¢ Àl:NèèéqR§Mõ*Mq?_§ìš—œp}V¯Ï¥íÌÍ6Ñ{×ͯûû!OrP‚oUkc„Wr‰YK‰ˆŽ{“!e†~‡ ‹moƒœ‚…lœiƒ¤¨†‹ ©¯p˜zfVSµ¤¬™Ÿ]°u«¼½¾`±³{º`QĶλÆÁ§Ž®ŸÌÓŠ ÚaÈ›¦Ò¿'€ÐÛÅÑ›Àj©ÙawÞßèpæ¹âÑ[ôÖíÃúÙûçÝò8«" —&zò°•e°_A~ø’eÊ‘ šYH2jäþq£Ç0:‚I2‰À’(SŽ©²åG–.c")³fš6sêÐÀ³§ÏŸ@ƒN@´¨Ñ£H“*]Ê´©SN£JJµªÕ«XŸfÝʵ«×¯R ˆK¶¬Ù³KÅBE˶­[«jǾK·.€¸kíêÝ[6/ß¿€³ú L¸pÓÁ†+¾»¸±bÄŽ#ë…,¹ò[Ê–3ŸÅ¬¹óWΞC M,èÒ¨µ¦^ —µë©§_¿Ž-›5íÚ©oã.­{·èÞ¾=®y8qËÆKN®Ü1óæ‹ŸCO,ݱ•ëØ³kßν»÷ïàË?Ý5“ò¬Ï£O­~}éöîEÃÿн¨ûKµÒôþÝTýh”€{ÍGH‚øè`~ J ƒÖƒIQ˜ † *¥¡~b‡ûu_hYH_„HQ(à‹†˜`† Ž8£z N(#Œf©è‡%¶ˆß‚þeè!‰2Þ(äŒJ’X–]É¢ˆ(:ÉÔ‡H:™ä<ò×£†?N)&“Y:…e“].™f[Pr… †9 feîH¤•e6Iæ…sºÙb•ú÷&žyÚžwêXe’/¶™•£ñY×g¤’R*ߤ–*i¦†mÊ)až~ X¨¢ò5Þ©¨¦ªêª¬r—;tclap-1.2.1/docs/html/classTCLAP_1_1CmdLine.html000644 000765 000765 00000171515 11552414564 020632 0ustar00mesmes000000 000000 tclap: TCLAP::CmdLine Class Reference

TCLAP::CmdLine Class Reference

The base class that manages the command line definition and passes along the parsing to the appropriate Arg classes. More...

#include <CmdLine.h>

Inheritance diagram for TCLAP::CmdLine:
TCLAP::CmdLineInterface

List of all members.

Public Member Functions

 CmdLine (const std::string &message, const char delimiter= ' ', const std::string &version="none", bool helpAndVersion=true)
 Command line constructor.
virtual ~CmdLine ()
 Deletes any resources allocated by a CmdLine object.
void add (Arg &a)
 Adds an argument to the list of arguments to be parsed.
void add (Arg *a)
 An alternative add.
void xorAdd (Arg &a, Arg &b)
 Add two Args that will be xor'd.
void xorAdd (std::vector< Arg * > &xors)
 Add a list of Args that will be xor'd.
void parse (int argc, const char *const *argv)
 Parses the command line.
void parse (std::vector< std::string > &args)
 Parses the command line.
CmdLineOutputgetOutput ()
 Returns the CmdLineOutput object.
void setOutput (CmdLineOutput *co)
std::string & getVersion ()
 Returns the version string.
std::string & getProgramName ()
 Returns the program name string.
std::list< Arg * > & getArgList ()
 Returns the argList.
XorHandlergetXorHandler ()
 Returns the XorHandler.
char getDelimiter ()
 Returns the delimiter string.
std::string & getMessage ()
 Returns the message string.
bool hasHelpAndVersion ()
 Indicates whether or not the help and version switches were created automatically.
void setExceptionHandling (const bool state)
 Disables or enables CmdLine's internal parsing exception handling.
bool getExceptionHandling () const
 Returns the current state of the internal exception handling.
void reset ()
 Allows the CmdLine object to be reused.

Protected Member Functions

void missingArgsException ()
 Throws an exception listing the missing args.
bool _emptyCombined (const std::string &s)
 Checks whether a name/flag string matches entirely matches the Arg::blankChar.
void deleteOnExit (Arg *ptr)
 Perform a delete ptr; operation on ptr when this object is deleted.
void deleteOnExit (Visitor *ptr)
 Perform a delete ptr; operation on ptr when this object is deleted.

Protected Attributes

std::list< Arg * > _argList
 The list of arguments that will be tested against the command line.
std::string _progName
 The name of the program.
std::string _message
 A message used to describe the program.
std::string _version
 The version to be displayed with the --version switch.
int _numRequired
 The number of arguments that are required to be present on the command line.
char _delimiter
 The character that is used to separate the argument flag/name from the value.
XorHandler _xorHandler
 The handler that manages xoring lists of args.
std::list< Arg * > _argDeleteOnExitList
 A list of Args to be explicitly deleted when the destructor is called.
std::list< Visitor * > _visitorDeleteOnExitList
 A list of Visitors to be explicitly deleted when the destructor is called.
CmdLineOutput_output
 Object that handles all output for the CmdLine.
bool _handleExceptions
 Should CmdLine handle parsing exceptions internally?

Detailed Description

The base class that manages the command line definition and passes along the parsing to the appropriate Arg classes.

Definition at line 70 of file CmdLine.h.


Constructor & Destructor Documentation

TCLAP::CmdLine::CmdLine ( const std::string &  message,
const char  delimiter = ' ',
const std::string &  version = "none",
bool  helpAndVersion = true 
) [inline]

Command line constructor.

Defines how the arguments will be parsed.

Parameters:
message - The message to be used in the usage output.
delimiter - The character that is used to separate the argument flag/name from the value. Defaults to ' ' (space).
version - The version number to be used in the --version switch.
helpAndVersion - Whether or not to create the Help and Version switches. Defaults to true.

Definition at line 323 of file CmdLine.h.

TCLAP::CmdLine::~CmdLine (  )  [inline, virtual]

Deletes any resources allocated by a CmdLine object.

Definition at line 345 of file CmdLine.h.

References _argDeleteOnExitList, _output, _visitorDeleteOnExitList, and TCLAP::ClearContainer().


Member Function Documentation

bool TCLAP::CmdLine::_emptyCombined ( const std::string &  s  )  [inline, protected]

Checks whether a name/flag string matches entirely matches the Arg::blankChar.

Used when multiple switches are combined into a single argument.

Parameters:
s - The message to be used in the usage.

Definition at line 511 of file CmdLine.h.

References TCLAP::Arg::blankChar(), and TCLAP::Arg::flagStartChar().

Referenced by parse().

void TCLAP::CmdLine::add ( Arg a  )  [inline, virtual]

An alternative add.

Functionally identical.

Parameters:
a - Argument to be added.

Implements TCLAP::CmdLineInterface.

Definition at line 418 of file CmdLine.h.

References _argList, _numRequired, TCLAP::Arg::addToList(), TCLAP::Arg::isRequired(), and TCLAP::Arg::longID().

void TCLAP::CmdLine::add ( Arg a  )  [inline, virtual]

Adds an argument to the list of arguments to be parsed.

Parameters:
a - Argument to be added.

Implements TCLAP::CmdLineInterface.

Definition at line 413 of file CmdLine.h.

Referenced by xorAdd().

void TCLAP::CmdLine::deleteOnExit ( Visitor ptr  )  [inline, protected]

Perform a delete ptr; operation on ptr when this object is deleted.

Definition at line 555 of file CmdLine.h.

References _visitorDeleteOnExitList.

void TCLAP::CmdLine::deleteOnExit ( Arg ptr  )  [inline, protected]

Perform a delete ptr; operation on ptr when this object is deleted.

Definition at line 550 of file CmdLine.h.

References _argDeleteOnExitList.

std::list< Arg * > & TCLAP::CmdLine::getArgList (  )  [inline, virtual]

Returns the argList.

Implements TCLAP::CmdLineInterface.

Definition at line 583 of file CmdLine.h.

References _argList.

char TCLAP::CmdLine::getDelimiter (  )  [inline, virtual]

Returns the delimiter string.

Implements TCLAP::CmdLineInterface.

Definition at line 593 of file CmdLine.h.

References _delimiter.

bool TCLAP::CmdLine::getExceptionHandling (  )  const [inline]

Returns the current state of the internal exception handling.

Return values:
true Parsing exceptions are handled internally.
false Parsing exceptions are propagated to the caller.

Definition at line 613 of file CmdLine.h.

References _handleExceptions.

std::string & TCLAP::CmdLine::getMessage (  )  [inline, virtual]

Returns the message string.

Implements TCLAP::CmdLineInterface.

Definition at line 598 of file CmdLine.h.

References _message.

CmdLineOutput * TCLAP::CmdLine::getOutput (  )  [inline, virtual]

Returns the CmdLineOutput object.

Implements TCLAP::CmdLineInterface.

Definition at line 560 of file CmdLine.h.

References _output.

std::string & TCLAP::CmdLine::getProgramName (  )  [inline, virtual]

Returns the program name string.

Implements TCLAP::CmdLineInterface.

Definition at line 578 of file CmdLine.h.

References _progName.

std::string & TCLAP::CmdLine::getVersion (  )  [inline, virtual]

Returns the version string.

Implements TCLAP::CmdLineInterface.

Definition at line 573 of file CmdLine.h.

References _version.

XorHandler & TCLAP::CmdLine::getXorHandler (  )  [inline, virtual]

Returns the XorHandler.

Implements TCLAP::CmdLineInterface.

Definition at line 588 of file CmdLine.h.

References _xorHandler.

bool TCLAP::CmdLine::hasHelpAndVersion (  )  [inline, virtual]

Indicates whether or not the help and version switches were created automatically.

Implements TCLAP::CmdLineInterface.

Definition at line 603 of file CmdLine.h.

void TCLAP::CmdLine::missingArgsException (  )  [inline, protected]

Throws an exception listing the missing args.

Definition at line 523 of file CmdLine.h.

References _argList.

Referenced by parse().

void TCLAP::CmdLine::parse ( std::vector< std::string > &  args  )  [inline]

Parses the command line.

Parameters:
args - A vector of strings representing the args. args[0] is still the program name.

Reimplemented from TCLAP::CmdLineInterface.

Definition at line 444 of file CmdLine.h.

References _argList, _emptyCombined(), _handleExceptions, _numRequired, _output, _progName, _xorHandler, TCLAP::XorHandler::check(), TCLAP::CmdLineOutput::failure(), TCLAP::ExitException::getExitStatus(), TCLAP::Arg::ignoreRest(), and missingArgsException().

void TCLAP::CmdLine::parse ( int  argc,
const char *const *  argv 
) [inline, virtual]

Parses the command line.

Parameters:
argc - Number of arguments.
argv - Array of arguments.

Implements TCLAP::CmdLineInterface.

Definition at line 433 of file CmdLine.h.

void TCLAP::CmdLine::reset (  )  [inline, virtual]

Allows the CmdLine object to be reused.

Implements TCLAP::CmdLineInterface.

Definition at line 618 of file CmdLine.h.

References _argList, and _progName.

void TCLAP::CmdLine::setExceptionHandling ( const bool  state  )  [inline]

Disables or enables CmdLine's internal parsing exception handling.

Parameters:
state Should CmdLine handle parsing exceptions internally?

Definition at line 608 of file CmdLine.h.

References _handleExceptions.

void TCLAP::CmdLine::setOutput ( CmdLineOutput co  )  [inline, virtual]
Parameters:
co - CmdLineOutput object that we want to use instead.

Implements TCLAP::CmdLineInterface.

Definition at line 565 of file CmdLine.h.

References _output.

void TCLAP::CmdLine::xorAdd ( std::vector< Arg * > &  xors  )  [inline, virtual]

Add a list of Args that will be xor'd.

If this method is used, add does not need to be called.

Parameters:
xors - List of Args to be added and xor'd.

Implements TCLAP::CmdLineInterface.

Definition at line 393 of file CmdLine.h.

References _xorHandler, add(), and TCLAP::XorHandler::add().

void TCLAP::CmdLine::xorAdd ( Arg a,
Arg b 
) [inline, virtual]

Add two Args that will be xor'd.

If this method is used, add does not need to be called.

Parameters:
a - Argument to be added and xor'd.
b - Argument to be added and xor'd.

Implements TCLAP::CmdLineInterface.

Definition at line 405 of file CmdLine.h.


Member Data Documentation

std::list<Arg*> TCLAP::CmdLine::_argDeleteOnExitList [protected]

A list of Args to be explicitly deleted when the destructor is called.

At the moment, this only includes the three default Args.

Definition at line 118 of file CmdLine.h.

Referenced by deleteOnExit(), and ~CmdLine().

std::list<Arg*> TCLAP::CmdLine::_argList [protected]

The list of arguments that will be tested against the command line.

Definition at line 78 of file CmdLine.h.

Referenced by add(), getArgList(), missingArgsException(), parse(), and reset().

char TCLAP::CmdLine::_delimiter [protected]

The character that is used to separate the argument flag/name from the value.

Defaults to ' ' (space).

Definition at line 106 of file CmdLine.h.

Referenced by getDelimiter().

Should CmdLine handle parsing exceptions internally?

Definition at line 135 of file CmdLine.h.

Referenced by getExceptionHandling(), parse(), and setExceptionHandling().

std::string TCLAP::CmdLine::_message [protected]

A message used to describe the program.

Used in the usage output.

Definition at line 88 of file CmdLine.h.

Referenced by getMessage().

The number of arguments that are required to be present on the command line.

This is set dynamically, based on the Args added to the CmdLine object.

Definition at line 100 of file CmdLine.h.

Referenced by add(), and parse().

Object that handles all output for the CmdLine.

Definition at line 130 of file CmdLine.h.

Referenced by getOutput(), parse(), setOutput(), and ~CmdLine().

std::string TCLAP::CmdLine::_progName [protected]

The name of the program.

Set to argv[0].

Definition at line 83 of file CmdLine.h.

Referenced by getProgramName(), parse(), and reset().

std::string TCLAP::CmdLine::_version [protected]

The version to be displayed with the --version switch.

Definition at line 93 of file CmdLine.h.

Referenced by getVersion().

A list of Visitors to be explicitly deleted when the destructor is called.

At the moment, these are the Vistors created for the default Args.

Definition at line 125 of file CmdLine.h.

Referenced by deleteOnExit(), and ~CmdLine().

The handler that manages xoring lists of args.

Definition at line 111 of file CmdLine.h.

Referenced by getXorHandler(), parse(), and xorAdd().


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

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/classTCLAP_1_1CmdLineInterface-members.html000644 000765 000765 00000014406 11552414564 024076 0ustar00mesmes000000 000000 tclap: Member List

TCLAP::CmdLineInterface Member List

This is the complete list of members for TCLAP::CmdLineInterface, including all inherited members.
add(Arg &a)=0TCLAP::CmdLineInterface [pure virtual]
add(Arg *a)=0TCLAP::CmdLineInterface [pure virtual]
getArgList()=0TCLAP::CmdLineInterface [pure virtual]
getDelimiter()=0TCLAP::CmdLineInterface [pure virtual]
getMessage()=0TCLAP::CmdLineInterface [pure virtual]
getOutput()=0TCLAP::CmdLineInterface [pure virtual]
getProgramName()=0TCLAP::CmdLineInterface [pure virtual]
getVersion()=0TCLAP::CmdLineInterface [pure virtual]
getXorHandler()=0TCLAP::CmdLineInterface [pure virtual]
hasHelpAndVersion()=0TCLAP::CmdLineInterface [pure virtual]
parse(int argc, const char *const *argv)=0TCLAP::CmdLineInterface [pure virtual]
parse(std::vector< std::string > &args)TCLAP::CmdLineInterface
reset()=0TCLAP::CmdLineInterface [pure virtual]
setOutput(CmdLineOutput *co)=0TCLAP::CmdLineInterface [pure virtual]
xorAdd(Arg &a, Arg &b)=0TCLAP::CmdLineInterface [pure virtual]
xorAdd(std::vector< Arg * > &xors)=0TCLAP::CmdLineInterface [pure virtual]
~CmdLineInterface()TCLAP::CmdLineInterface [inline, virtual]

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/classTCLAP_1_1CmdLineInterface.gif000644 000765 000765 00000001432 11552414564 022242 0ustar00mesmes000000 000000 GIF89aPòÿÿÿÿÿÀŸŸ`ÀÀÀ!ù,PþºÜþ0ÊI«½87À»ÿ`(Ždižhª®œÂ¾p,Ï´èÖx®ïïÍÿÀ`Î',$"àÑa4GÏ&¹PE— +J›M)cß–Ôså’±ÏtˆkNŠemu)¦³mø»ü¼F³£e]XDUo€e7…bN-„Žqaho‚c“z’R‡~“i‰–†˜˜’ ¡¥§dv|”¬ZS}±£Ÿ‚¯§¤³©ž©M«{ÀKŒ™Pxœ¨ÄÇ~Œ¸¢Š¶¾¦ªŠ¾Æ¼Àf¤n²†´•ÐmÍÊ®jÚת֞æÄëé¹£ëâà·ºåÞÊá¿Ó¯ÌßÜÑóJjTHœ°€Ë’‹¶ì$:H"Jäi¢Å‹u0jÜþ£"Ç ;…IRXÉ“=¢\)D%Ë—;4ÈœI³¦Í›`¾0 ³gž>ƒî0@T¨ÑD]Ê"iQ¦PQ8Uµ* ªV³†Àªµ+®^µ‚ ku,Ù¨fÏ2M«ö(Û¶BßÂõ)w®Îºv_âÍ»r/ß“~ÿ’ ,8$áÂ#Þ¨x1ÆÆŽ-BŽ,q2e$–/ɬYçÎ@>ƒæ!ä€Ó¨S«^ͺµë×°cˆM»¶íÛ®èÞÍ»·ïßÀƒ N¼¸ñãÈ“ë>­¼¹óçУKÎ|ºõëØ³7¯®½»÷ï×¹ƒO¾¼pñÖìf°>x€Þ †³?þ^@}Þ÷ÍóF=¿á}üºù×^~º qõ ¨ßoü]Wào þ÷`€ÀEø^‚ø]H!|*a„Ò5˜Þ¾)x߉bø„j¸¢‡+¦¨"ŠÚ‰8Ý„–Ø^€óAXá†*¾¨cŒA‚ÒáHâ‡0Æ(œ…@n(dŽ4ÆWãß)¹ã’SÊ÷ã”U&xHFç߃ž)¥—;ÎdmƹfxXz—æëͧ¦“ròؤ›<¾¨§”'6™]™ &ªèsˆ.êè£Ã5 餔 i¥˜*zi¦œ–·i§ z÷i¨¤ÒYê© â¦êª¬¶êꫪ&;tclap-1.2.1/docs/html/classTCLAP_1_1CmdLineInterface.html000644 000765 000765 00000073623 11552414564 022454 0ustar00mesmes000000 000000 tclap: TCLAP::CmdLineInterface Class Reference

TCLAP::CmdLineInterface Class Reference

The base class that manages the command line definition and passes along the parsing to the appropriate Arg classes. More...

#include <CmdLineInterface.h>

Inheritance diagram for TCLAP::CmdLineInterface:
TCLAP::CmdLine

List of all members.

Public Member Functions

virtual ~CmdLineInterface ()
 Destructor.
virtual void add (Arg &a)=0
 Adds an argument to the list of arguments to be parsed.
virtual void add (Arg *a)=0
 An alternative add.
virtual void xorAdd (Arg &a, Arg &b)=0
 Add two Args that will be xor'd.
virtual void xorAdd (std::vector< Arg * > &xors)=0
 Add a list of Args that will be xor'd.
virtual void parse (int argc, const char *const *argv)=0
 Parses the command line.
void parse (std::vector< std::string > &args)
 Parses the command line.
virtual CmdLineOutputgetOutput ()=0
 Returns the CmdLineOutput object.
virtual void setOutput (CmdLineOutput *co)=0
virtual std::string & getVersion ()=0
 Returns the version string.
virtual std::string & getProgramName ()=0
 Returns the program name string.
virtual std::list< Arg * > & getArgList ()=0
 Returns the argList.
virtual XorHandlergetXorHandler ()=0
 Returns the XorHandler.
virtual char getDelimiter ()=0
 Returns the delimiter string.
virtual std::string & getMessage ()=0
 Returns the message string.
virtual bool hasHelpAndVersion ()=0
 Indicates whether or not the help and version switches were created automatically.
virtual void reset ()=0
 Resets the instance as if it had just been constructed so that the instance can be reused.

Detailed Description

The base class that manages the command line definition and passes along the parsing to the appropriate Arg classes.

Definition at line 43 of file CmdLineInterface.h.


Constructor & Destructor Documentation

virtual TCLAP::CmdLineInterface::~CmdLineInterface (  )  [inline, virtual]

Destructor.

Definition at line 50 of file CmdLineInterface.h.


Member Function Documentation

virtual void TCLAP::CmdLineInterface::add ( Arg a  )  [pure virtual]

An alternative add.

Functionally identical.

Parameters:
a - Argument to be added.

Implemented in TCLAP::CmdLine.

virtual void TCLAP::CmdLineInterface::add ( Arg a  )  [pure virtual]
virtual std::list<Arg*>& TCLAP::CmdLineInterface::getArgList (  )  [pure virtual]
virtual char TCLAP::CmdLineInterface::getDelimiter (  )  [pure virtual]

Returns the delimiter string.

Implemented in TCLAP::CmdLine.

Referenced by TCLAP::ZshCompletionOutput::usage(), and TCLAP::DocBookOutput::usage().

virtual std::string& TCLAP::CmdLineInterface::getMessage (  )  [pure virtual]

Returns the message string.

Implemented in TCLAP::CmdLine.

Referenced by TCLAP::StdOutput::_longUsage(), and TCLAP::DocBookOutput::usage().

virtual CmdLineOutput* TCLAP::CmdLineInterface::getOutput (  )  [pure virtual]

Returns the CmdLineOutput object.

Implemented in TCLAP::CmdLine.

virtual std::string& TCLAP::CmdLineInterface::getProgramName (  )  [pure virtual]
virtual std::string& TCLAP::CmdLineInterface::getVersion (  )  [pure virtual]
virtual XorHandler& TCLAP::CmdLineInterface::getXorHandler (  )  [pure virtual]
virtual bool TCLAP::CmdLineInterface::hasHelpAndVersion (  )  [pure virtual]

Indicates whether or not the help and version switches were created automatically.

Implemented in TCLAP::CmdLine.

Referenced by TCLAP::StdOutput::failure().

void TCLAP::CmdLineInterface::parse ( std::vector< std::string > &  args  ) 

Parses the command line.

Parameters:
args - A vector of strings representing the args. args[0] is still the program name.

Reimplemented in TCLAP::CmdLine.

virtual void TCLAP::CmdLineInterface::parse ( int  argc,
const char *const *  argv 
) [pure virtual]

Parses the command line.

Parameters:
argc - Number of arguments.
argv - Array of arguments.

Implemented in TCLAP::CmdLine.

virtual void TCLAP::CmdLineInterface::reset (  )  [pure virtual]

Resets the instance as if it had just been constructed so that the instance can be reused.

Implemented in TCLAP::CmdLine.

virtual void TCLAP::CmdLineInterface::setOutput ( CmdLineOutput co  )  [pure virtual]
Parameters:
co - CmdLineOutput object that we want to use instead.

Implemented in TCLAP::CmdLine.

virtual void TCLAP::CmdLineInterface::xorAdd ( std::vector< Arg * > &  xors  )  [pure virtual]

Add a list of Args that will be xor'd.

If this method is used, add does not need to be called.

Parameters:
xors - List of Args to be added and xor'd.

Implemented in TCLAP::CmdLine.

virtual void TCLAP::CmdLineInterface::xorAdd ( Arg a,
Arg b 
) [pure virtual]

Add two Args that will be xor'd.

If this method is used, add does not need to be called.

Parameters:
a - Argument to be added and xor'd.
b - Argument to be added and xor'd.

Implemented in TCLAP::CmdLine.


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

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/classTCLAP_1_1CmdLineOutput-members.html000644 000765 000765 00000005260 11552414564 023474 0ustar00mesmes000000 000000 tclap: Member List

TCLAP::CmdLineOutput Member List

This is the complete list of members for TCLAP::CmdLineOutput, including all inherited members.
failure(CmdLineInterface &c, ArgException &e)=0TCLAP::CmdLineOutput [pure virtual]
usage(CmdLineInterface &c)=0TCLAP::CmdLineOutput [pure virtual]
version(CmdLineInterface &c)=0TCLAP::CmdLineOutput [pure virtual]
~CmdLineOutput()TCLAP::CmdLineOutput [inline, virtual]

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/classTCLAP_1_1CmdLineOutput.gif000644 000765 000765 00000003277 11552414564 021653 0ustar00mesmes000000 000000 GIF89a-PòÿÿÿÿÿÀŸŸ`ÀÀÀ!ù,-PþºÜþ0ÊI«½8kºÿ`(Ždižhª®l;np,Ïtmßx®ï|ôÀ p¨øȤrÉl6ΨZ¯Ø¬v;©r¿àbxL.›Ï/zT³ßð¸üæžÛkõ»~Ïç+" ‚i ]Fjƒ†4‘}•–—R”^U‹Ž y¡ž3¤Ÿš˜­®¯L«¬„u?¨ ©·b‚¼¹’¹¢Ã½¢Æ·ÃÉ´ÂÅ>°ÐÑÒ8²…ÌÁØP¤¦¶ËܦǠܴŒÈ½ÅààÏÓìíî]xỵ̇ºÁãçóÀÀÚÆäù¥û£Ú»ƒ÷¤wM±Dï…Ë×oŸ?qË ÔÇþ±â©„ CºZ¸/bDN&Kâ먎åI‹/Êœ$²¦M=$±ýkɯ#¼˜ÑÁt¹“Ü· <9Ü\ÊtMN‡E b:‘a'©•EÍhn«!©Qûñr&NìǦhÓryª–¡¶mãÊ•wnO*vóêíQwnßM{ ¦9xmáÈ'Æòw±c‘Ó•L¹päÊJ1k¶{ys)Ï ÕºMº´éÓ¨Q‡^Íš‹Ö°c‡~-»¶íÅrßÞÍ[onÚ½ƒ _ú[÷ðãÈž¼¹sXÌŸKŸÞ':õëØßXÏν;˜íÞË—~¼ùóDÊ£_χúöðãkx/¿¾}ôï뿟ÿþùå(à€hà&¨à‚ 6èàƒF(á„VX |ý±—ázb×áþ1ð!u#ŽW¢x'>—¢w+v×br/f£‡†¸ÀŒ×á(œŽÓñ(¼éœÍi›‘È!yœ’±1¹£ 8Ùš”½QdPZ¹›– qy$”x¹™˜²‘Ù$–6š ›šH àæ›pÆ)çœtÖiçxÞi@ž|öéçŸ|Jè „ª§¡ˆ&J¨ Š6ê¨{>*é¤n `饘fªé¦œvêé§ †*ꨤ–jª¦zꪬ¶êê«°ºšjÄjë­¸æª+ªµîêë¯À‹ªªÂkì±­Îþ A¯È6ëì³™V í´Ô«ìÌV«í¶¶^ë@¶Ü†+n©ÒŽkz۸趋®º °ëî¼á–Kï½Ü»€¼øö묾 ðëïÀÖ ª—~p§d à —ú0© k1ÃËJl°[zqÅ›‚ìñÅ!{°°Ã˜’rÆÖn<òÄ|ŒqÊ*Ó 3Ê%w«È8ójÍ8‹ê³½«ò,rÅ>{sÊL¯|ò¨G³Ü´Ò3 ­1­ÈÝtÒKGýtÐK‡=µ×œr]¶±À¯Ö'sÝ0Ùbê¶ÓT»j¶ÙrOM÷ϼ¾ ·ÞLÃ=÷Ø:'\xÜ ›lxâTûŒôÂ&¿Í¸ÒŠþ¯š¶ÁºþýuàznóÈa;^·äoÇõ壯~°«ïíùòÊgvóò[ßxîHË?yýùŸ?=ýçsÞ¥Žg*ï%ít7›úø2Ûýo|æ[`¯‡·PµÏX¤[â€æ°ýio‚¬Þ÷~uÁù±.h¬\ÕÌçA ŠÏyü{áGC¶S”à\³ ²‚ö³aÛ4WÃÞp{X;VkW9Ú¯ˆ¢!?HBî…oþo‹s Õj¾}-œX ¥øDèÝȡԼHÞÅn†Qbôh'Ç3F\VÖ‡F÷É‘|`„#Úòˆ¸n®Xt£ÿà§?3–‘Œ‹4â×g)5BÍ„m¤§ÈfÇBB2ñâý^ˆÈQ•°{˜Œc$ýFÚ퀭¼ã®NyHMþ täõê8JP‚²“žÄ^/a94̽1‹Yd`é§Ââ}®GK]u×Lánxׄà©h©G&¦°pl;àèšØ¿h¦®|åL_6Õ©:B:Žœ»S¤";¦NWªpšÔ¢3×¹O6°ƒÂÄ&:µ™Fcl^N|7Z­„2‰Š ½•C³f9ƒFô\eÕB/ú¬Œ²EF+Òyt› -©ŵQ•^Ò\'-¨KgªÐ”Òô¦é²)Nw-‹òt§-ý©Pƒ*TžZ²¨FÕ)RoJÔ¥Òô¨N}ªR£ªÒ¦Rµ¤P½*V§ªÕ‹Zµ«¥”XÇJÖ²ö‰QfM«Z×ê(´²õ­p«;tclap-1.2.1/docs/html/classTCLAP_1_1CmdLineOutput.html000644 000765 000765 00000025721 11552414564 022050 0ustar00mesmes000000 000000 tclap: TCLAP::CmdLineOutput Class Reference

TCLAP::CmdLineOutput Class Reference

The interface that any output object must implement. More...

#include <CmdLineOutput.h>

Inheritance diagram for TCLAP::CmdLineOutput:
TCLAP::DocBookOutput TCLAP::StdOutput TCLAP::ZshCompletionOutput

List of all members.

Public Member Functions

virtual ~CmdLineOutput ()
 Virtual destructor.
virtual void usage (CmdLineInterface &c)=0
 Generates some sort of output for the USAGE.
virtual void version (CmdLineInterface &c)=0
 Generates some sort of output for the version.
virtual void failure (CmdLineInterface &c, ArgException &e)=0
 Generates some sort of output for a failure.

Detailed Description

The interface that any output object must implement.

Definition at line 41 of file CmdLineOutput.h.


Constructor & Destructor Documentation

virtual TCLAP::CmdLineOutput::~CmdLineOutput (  )  [inline, virtual]

Virtual destructor.

Definition at line 49 of file CmdLineOutput.h.


Member Function Documentation

virtual void TCLAP::CmdLineOutput::failure ( CmdLineInterface c,
ArgException e 
) [pure virtual]

Generates some sort of output for a failure.

Parameters:
c - The CmdLine object the output is generated for.
e - The ArgException that caused the failure.

Implemented in TCLAP::DocBookOutput, TCLAP::StdOutput, and TCLAP::ZshCompletionOutput.

Referenced by TCLAP::CmdLine::parse().

virtual void TCLAP::CmdLineOutput::usage ( CmdLineInterface c  )  [pure virtual]

Generates some sort of output for the USAGE.

Parameters:
c - The CmdLine object the output is generated for.

Implemented in TCLAP::DocBookOutput, TCLAP::StdOutput, and TCLAP::ZshCompletionOutput.

virtual void TCLAP::CmdLineOutput::version ( CmdLineInterface c  )  [pure virtual]

Generates some sort of output for the version.

Parameters:
c - The CmdLine object the output is generated for.

Implemented in TCLAP::DocBookOutput, TCLAP::StdOutput, and TCLAP::ZshCompletionOutput.


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

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/classTCLAP_1_1CmdLineParseException-members.html000644 000765 000765 00000007241 11552414564 025126 0ustar00mesmes000000 000000 tclap: Member List

TCLAP::CmdLineParseException Member List

This is the complete list of members for TCLAP::CmdLineParseException, including all inherited members.
ArgException(const std::string &text="undefined exception", const std::string &id="undefined", const std::string &td="Generic ArgException")TCLAP::ArgException [inline]
argId() const TCLAP::ArgException [inline]
CmdLineParseException(const std::string &text="undefined exception", const std::string &id="undefined")TCLAP::CmdLineParseException [inline]
error() const TCLAP::ArgException [inline]
typeDescription() const TCLAP::ArgException [inline]
what() const TCLAP::ArgException [inline]
~ArgException()TCLAP::ArgException [inline, virtual]

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/classTCLAP_1_1CmdLineParseException.gif000644 000765 000765 00000001634 11552414564 023277 0ustar00mesmes000000 000000 GIF89aÃPòÿÿÿÿÿÀŸŸ`ÀÀÀ!ù,ÃPþ8ºÜþ0ÊI«½8ëí„ÿ`(Ždižhª®l뾟ÏtmßxÊzïÿÀ`‰',È1Él:uË_`J |ª×’TÝš¼ª.ø¶?cä\&YÙܯÀ,ÒÏhu|tï=w€s!~s…fp†lSYŒŠƒ€Žƒ’EQv„|Y‚›mœ‘œŽtž^ž£¢Ÿe§B–@‰"¤›Š”²´ ¦‘X¡Ÿ´§¥«ÂF¯R˜Ç»’„¼Ã¨nºÌTÃÁª¾AÅ>±™Ü)k¿Þ·ÏÝáäÑÑ•iGàâÇ­ZÝèð “î¬ÖÀήëFˆÓÉàÑ;'Ë¡.õX-Ò¥¬Ð£}Øúá™8NÇ2Š ²aL’þ.ÇÅ4‚dg ÇÇ"Gª\‰#%Ë—0Y¸ŒI³¦ˆ™6sÒÄ©³çJ@ƒ J´¨Q’*]Ê´©Ó§P£JJµ©ªX³jÝʵ«×¯`¡^ K¶¬Ù³hÓ*5ÀV­Û·pãše;V®Ý»xñÒm›·¯ß¿`÷ÖL¸°a§ƒ+^ü71ãÇß:ŽL¹r`˘3w¬¹³ç¥œ?‹Îz´éÈ¥O«VœzµkÀ­_ËÖ;»¶áضs§Å­»7YÞ¾ƒoN\-ðâÈ¥OÎÜjóç\—Co.}zòêÖ‹cÏ.|;wßÞ¿ë/Þ6yÙbÒ«_Ͼ½û÷ðãËŸO¿¾ýåóOÉ_~?þÿïþý—]€NG é)U…‚Pá·TR-ˆ•ƒ>˜„f‰…]È …VÈ~"–Ø ˆTqø•‰e‰˜–‹[y˜‹MÁ8#‚(âè”8ª8#‰7Žx#T|$‚DêHd€0²X¤‚L"ù#S2(£Œ:)dF:$û…ù¥!ªX!™>žiæ‘d†Èæ›R*ùe™Zþø[æ©æ“;Þ9g–mÊù§’êi$œÚY' ˆšf`æ(é”QN© g.ú(’O‚Ég‰{úçé¡”nº¦£úIêª.Úç«§ b¦Y®Ê¨¦¸r)+«nʺ郗h«‹ªúç©¢êdJ벯ފi¯9Ré«¢ÈBÛd°P2)!±µBË)³€R‰á¯ŸÞ)f­K†zfªm¸´vg™ñ¸¢½ô2†o‡ûæ{X¿1ìonX\Á÷†p Ìðk÷E,ñÄWlñÅ ;tclap-1.2.1/docs/html/classTCLAP_1_1CmdLineParseException.html000644 000765 000765 00000013124 11552414564 023473 0ustar00mesmes000000 000000 tclap: TCLAP::CmdLineParseException Class Reference

TCLAP::CmdLineParseException Class Reference

Thrown from CmdLine when the arguments on the command line are not properly specified, e.g. More...

#include <ArgException.h>

Inheritance diagram for TCLAP::CmdLineParseException:
TCLAP::ArgException

List of all members.

Public Member Functions

 CmdLineParseException (const std::string &text="undefined exception", const std::string &id="undefined")
 Constructor.

Detailed Description

Thrown from CmdLine when the arguments on the command line are not properly specified, e.g.

too many arguments, required argument missing, etc.

Definition at line 143 of file ArgException.h.


Constructor & Destructor Documentation

TCLAP::CmdLineParseException::CmdLineParseException ( const std::string &  text = "undefined exception",
const std::string &  id = "undefined" 
) [inline]

Constructor.

Parameters:
text - The text of the exception.
id - The text identifying the argument source of the exception.

Definition at line 152 of file ArgException.h.


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

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/classTCLAP_1_1Constraint-members.html000644 000765 000765 00000005223 11552414564 023063 0ustar00mesmes000000 000000 tclap: Member List

TCLAP::Constraint< T > Member List

This is the complete list of members for TCLAP::Constraint< T >, including all inherited members.
check(const T &value) const =0TCLAP::Constraint< T > [pure virtual]
description() const =0TCLAP::Constraint< T > [pure virtual]
shortID() const =0TCLAP::Constraint< T > [pure virtual]
~Constraint()TCLAP::Constraint< T > [inline, virtual]

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/classTCLAP_1_1Constraint.gif000644 000765 000765 00000001572 11552414564 021237 0ustar00mesmes000000 000000 GIF89a¹PòÿÿÿÿÿÀŸŸ`ÀÀÀ!ù,¹PþºÜþ0ÊI«½8ë ºÿ`(Ždižhª®l{*n,Ïtmߌï|ïÿ pH,C£rÉœ%cÜ"G &¬3eu³ãsûùºæòYMõ²¡µtv9–™åüúþV…VI:S{y€yghunJ‹.|"x_“lhˆ‘mƒ—–†—kŸšŸRU<Ž-H˜ž ¤« ™~ž•¬¬zm¥7§,©²W„¢%z”¢“ÄÁZœ°»³¹4Ì*½}ÍÊÂŒ°ÔµÚÊÜ·ÍHÞ¼á+iråßרëœÜ¸í±e·óãâ8çÀ­Áë´R‚‡¶F!ƒh[½t@ 5Yȉ†#úx(±¢E;/j܈þ‚"Ç ;…IÒKÆ’(#zLÉÒᆗ0cÊœI³¦¾–7 àܹQ'ÏŸ Jt¡PŸE“9:T©ÓL‘>ºC*Õ«6¬bÝC+ׯ*¼‚[B,Ù³ Ì¢]«víÙ¶nÇÂûu.Ý­vï^Í«w*ß¾NÿN*x0ц"N¼s1ã–Ž§Œ,¹$åÊ#/c©y3ÇΞ5‚mq4˨S«^ͺµë×°cËž=ÀíÛ¸sëž- ·ïßÀƒ N¼¸ñãÈ“+_μùqÔΣKŸN½ºõ뾡cßν»÷ïÀµƒO¾¼ùàâÏ«_Ï~zz|3O<ðõïç§>ºþ}äÿ `qñ-÷}¿ øß€ Â× ‚Á1ÈàƒÒ)è_uݽY(àpöyØá~ʧ‚¦x¢‰F¸¢ƒ/·àŠ!vøâ‚2Ú˜!ˆÀc‹R˜âƒ8Žhd‰%™$ŠFî8dŽKF å“36yߎHºH‡Y:ùá‘ø‘˜a‘T2¤`™f„V¶ %‰ fÈ¥ˆú¹¸Jx§”3îù¦—nª¡‚{*‰cŒpÖÇàœgâ)¡šÆÕ8h ù#Ÿu>‰$™f¾yiœÂ1¤’@’zÜ£mV¹)¥šê¤¯ºic¢ b)j­7ö‡ê˜Nx§¤9ªHè•1ú©i®jþBŠ©§‘öØÞ³ÐF»¥ÒVk-{\^«í¶ÖeËí·à*çm¸ä–µæ¦«îoã®ëîµí¾+/´»Õkï½øæ«ï¾¬%;tclap-1.2.1/docs/html/classTCLAP_1_1Constraint.html000644 000765 000765 00000023644 11552414564 021442 0ustar00mesmes000000 000000 tclap: TCLAP::Constraint< T > Class Template Reference

TCLAP::Constraint< T > Class Template Reference

The interface that defines the interaction between the Arg and Constraint. More...

#include <Constraint.h>

Inheritance diagram for TCLAP::Constraint< T >:
TCLAP::ValuesConstraint< T >

List of all members.

Public Member Functions

virtual std::string description () const =0
 Returns a description of the Constraint.
virtual std::string shortID () const =0
 Returns the short ID for the Constraint.
virtual bool check (const T &value) const =0
 The method used to verify that the value parsed from the command line meets the constraint.
virtual ~Constraint ()
 Destructor.

Detailed Description

template<class T>
class TCLAP::Constraint< T >

The interface that defines the interaction between the Arg and Constraint.

Definition at line 38 of file Constraint.h.


Constructor & Destructor Documentation

template<class T>
virtual TCLAP::Constraint< T >::~Constraint (  )  [inline, virtual]

Destructor.

Silences warnings about Constraint being a base class with virtual functions but without a virtual destructor.

Definition at line 64 of file Constraint.h.


Member Function Documentation

template<class T>
virtual bool TCLAP::Constraint< T >::check ( const T &  value  )  const [pure virtual]

The method used to verify that the value parsed from the command line meets the constraint.

Parameters:
value - The value that will be checked.

Implemented in TCLAP::ValuesConstraint< T >.

template<class T>
virtual std::string TCLAP::Constraint< T >::description (  )  const [pure virtual]

Returns a description of the Constraint.

Implemented in TCLAP::ValuesConstraint< T >.

template<class T>
virtual std::string TCLAP::Constraint< T >::shortID (  )  const [pure virtual]

Returns the short ID for the Constraint.

Implemented in TCLAP::ValuesConstraint< T >.


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

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/classTCLAP_1_1DocBookOutput-members.html000644 000765 000765 00000010566 11552414564 023506 0ustar00mesmes000000 000000 tclap: Member List

TCLAP::DocBookOutput Member List

This is the complete list of members for TCLAP::DocBookOutput, including all inherited members.
basename(std::string &s)TCLAP::DocBookOutput [inline, protected]
failure(CmdLineInterface &c, ArgException &e)TCLAP::DocBookOutput [inline, virtual]
printLongArg(Arg *it)TCLAP::DocBookOutput [inline, protected]
printShortArg(Arg *it)TCLAP::DocBookOutput [inline, protected]
removeChar(std::string &s, char r)TCLAP::DocBookOutput [inline, protected]
substituteSpecialChars(std::string &s, char r, std::string &x)TCLAP::DocBookOutput [inline, protected]
theDelimiterTCLAP::DocBookOutput [protected]
usage(CmdLineInterface &c)TCLAP::DocBookOutput [inline, virtual]
version(CmdLineInterface &c)TCLAP::DocBookOutput [inline, virtual]
~CmdLineOutput()TCLAP::CmdLineOutput [inline, virtual]

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/classTCLAP_1_1DocBookOutput.gif000644 000765 000765 00000001476 11552414564 021657 0ustar00mesmes000000 000000 GIF89a’PòÿÿÿÿÿÀŸŸ`ÀÀÀ!ù,’Pþ8ºÜþ0ÊI«½xŠÍ»ÿ`(Ždižh*jë¾p,wìlßxnÖzïÿ/pH,r„›€rà0¢f‡).SÒ*TõiKß rêÑfCM3½6eê(4Þ&Ù t[¾çù~Iz€ewJS‡[Ui‡vauŠ}„…qo•ŽƒYok‰ŸŸ‹¤|𥓖«{N]±§~a¢˜Š´¥Œ·¬brv—e°•—³„µ¼T¸Éº¨£G¿xÍÍ_ÑÔǹ۠¨ÁÜȶ½ª×ÝÆÎn糡â»”‹šìØäÓ±ˆ‰¦W¬õ£Äà:u·o˜>AÉôt„0Õ=##¢K¡J¢ÅÅJT¼ÈþGF;Šìr¤Éˆ%Oª’r¥K-_Êœ‘¡¦Í›8sê| §ÏŸ@ƒ J´¨Q¡Ž*]Ê´©Ó§P£H*µªÕ«X³ö4ÀU«×¯`¿r¥¶¬Ù³EÇvE˶mYµdÝÊk5.Ý»x™ÚÍË·/н~ç,¸°\†ŸE¬¸±XÇGž –1åËM-cÞlT3çÏA=ƒ=•´é´§S‡VÍzkkÖ¢_GŽ-Û1íÚŠoã6¬{·àÞ¾ýÎw8q¼ÆÓM.˜ŠóçУKŸN½ºõëØ³3QŽY ÷ËÞ¿O/2ùòÏxîs{ÏDáÿ¤ß}Sú÷…Ú*iþÿöÿÍÔòØÞz¨_‚L˜ß€ .Ø`Pê)ø:h!„ .1y®wž‡"hb‚ýÁ硊)H"€n¡…-*X`‰6æX¢†5öx¢7îø^>h Ž'r¨dŠû))䓾X¤‰#Rˆ#‘:RIá‘Iry$~IÆÇᔩåŽ!f‰%”fÂ(!’3†Ù¦˜(fYæ•x"XcON9§ˆ1Þ¦œpú£šHš©(›‰fŸVX¨}øøç™`I ˆû½(âžLªç]* #©F¢‡—GIªªV¬åê«XÅZÔ¬´æ…k®wíÊë\¾þêV°Â²¥Ý±È&«ì²Ì&;tclap-1.2.1/docs/html/classTCLAP_1_1DocBookOutput.html000644 000765 000765 00000050561 11552414564 022055 0ustar00mesmes000000 000000 tclap: TCLAP::DocBookOutput Class Reference

TCLAP::DocBookOutput Class Reference

A class that generates DocBook output for usage() method for the given CmdLine and its Args. More...

#include <DocBookOutput.h>

Inheritance diagram for TCLAP::DocBookOutput:
TCLAP::CmdLineOutput

List of all members.

Public Member Functions

virtual void usage (CmdLineInterface &c)
 Prints the usage to stdout.
virtual void version (CmdLineInterface &c)
 Prints the version to stdout.
virtual void failure (CmdLineInterface &c, ArgException &e)
 Prints (to stderr) an error message, short usage Can be overridden to produce alternative behavior.

Protected Member Functions

void substituteSpecialChars (std::string &s, char r, std::string &x)
 Substitutes the char r for string x in string s.
void removeChar (std::string &s, char r)
void basename (std::string &s)
void printShortArg (Arg *it)
void printLongArg (Arg *it)

Protected Attributes

char theDelimiter

Detailed Description

A class that generates DocBook output for usage() method for the given CmdLine and its Args.

Definition at line 43 of file DocBookOutput.h.


Member Function Documentation

void TCLAP::DocBookOutput::basename ( std::string &  s  )  [inline, protected]

Definition at line 203 of file DocBookOutput.h.

Referenced by usage().

void TCLAP::DocBookOutput::failure ( CmdLineInterface c,
ArgException e 
) [inline, virtual]

Prints (to stderr) an error message, short usage Can be overridden to produce alternative behavior.

Parameters:
c - The CmdLine object the output is generated for.
e - The ArgException that caused the failure.

Implements TCLAP::CmdLineOutput.

Definition at line 174 of file DocBookOutput.h.

References TCLAP::ArgException::what().

void TCLAP::DocBookOutput::printLongArg ( Arg it  )  [inline, protected]

Definition at line 252 of file DocBookOutput.h.

Referenced by usage().

void TCLAP::DocBookOutput::printShortArg ( Arg it  )  [inline, protected]
void TCLAP::DocBookOutput::removeChar ( std::string &  s,
char  r 
) [inline, protected]

Definition at line 194 of file DocBookOutput.h.

Referenced by printShortArg().

void TCLAP::DocBookOutput::substituteSpecialChars ( std::string &  s,
char  r,
std::string &  x 
) [inline, protected]

Substitutes the char r for string x in string s.

Parameters:
s - The string to operate on.
r - The char to replace.
x - What to replace r with.

Definition at line 182 of file DocBookOutput.h.

Referenced by printShortArg().

void TCLAP::DocBookOutput::usage ( CmdLineInterface c  )  [inline, virtual]
void TCLAP::DocBookOutput::version ( CmdLineInterface c  )  [inline, virtual]

Prints the version to stdout.

Can be overridden to produce alternative behavior.

Parameters:
c - The CmdLine object the output is generated for.

Implements TCLAP::CmdLineOutput.

Definition at line 90 of file DocBookOutput.h.

References TCLAP::CmdLineInterface::getVersion().


Member Data Documentation

Definition at line 86 of file DocBookOutput.h.

Referenced by usage().


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

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/classTCLAP_1_1ExitException-members.html000644 000765 000765 00000004114 11552414564 023525 0ustar00mesmes000000 000000 tclap: Member List

TCLAP::ExitException Member List

This is the complete list of members for TCLAP::ExitException, including all inherited members.
ExitException(int estat)TCLAP::ExitException [inline]
getExitStatus() const TCLAP::ExitException [inline]

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/classTCLAP_1_1ExitException.html000644 000765 000765 00000010657 11552414564 022106 0ustar00mesmes000000 000000 tclap: TCLAP::ExitException Class Reference

TCLAP::ExitException Class Reference

#include <ArgException.h>

List of all members.

Public Member Functions

 ExitException (int estat)
int getExitStatus () const

Detailed Description

Definition at line 187 of file ArgException.h.


Constructor & Destructor Documentation

TCLAP::ExitException::ExitException ( int  estat  )  [inline]

Definition at line 189 of file ArgException.h.


Member Function Documentation

int TCLAP::ExitException::getExitStatus (  )  const [inline]

Definition at line 191 of file ArgException.h.

Referenced by TCLAP::CmdLine::parse().


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

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/classTCLAP_1_1HelpVisitor-members.html000644 000765 000765 00000006051 11552414564 023207 0ustar00mesmes000000 000000 tclap: Member List

TCLAP::HelpVisitor Member List

This is the complete list of members for TCLAP::HelpVisitor, including all inherited members.
_cmdTCLAP::HelpVisitor [protected]
_outTCLAP::HelpVisitor [protected]
HelpVisitor(CmdLineInterface *cmd, CmdLineOutput **out)TCLAP::HelpVisitor [inline]
visit()TCLAP::HelpVisitor [inline, virtual]
Visitor()TCLAP::Visitor [inline]
~Visitor()TCLAP::Visitor [inline, virtual]

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/classTCLAP_1_1HelpVisitor.gif000644 000765 000765 00000001253 11552414564 021357 0ustar00mesmes000000 000000 GIF89axPòÿÿÿÿÿÀŸŸ`ÀÀÀ!ù,xPþ8ºÜþ0ÊI«½CèÍ»ÿ`(Ždi–Ê©®lë¢Ù+Ït­¥v®ïÎÿÀ™ï(›c2„䛨¦)uNÃUUJ!¹Öh§ÊÄÆZ`±8}õ.Û‚âÒ8•ÏYY{¬Ž¿Û]pP„‚Id0/{a|‚Je†~a’•+yDŒc–#_Œv’”ƒ.˜&‹ª£™‹…•¥-§%[“µžŸ¯¤«'³$dOp€j¸¢TË©&ÀAÐÑÏÒÕÐÔÖÙ;ØÚÝ4ÜÞá²gâå6àæé"èêíðñòóô÷øùúûüýþÿú H° Áƒâ¨°¡Ã‡˜±¢Å‹'2ÄÈþ±ãE=Š™äF’(Sú;©²¥K,_Ês¦MŒ5oꄘs§Ï’?ƒ>ì)´èJ£H MÊt)S¤NŸ*5(Õª>¯bÕ©u«Í®^e‚ ër,Y•fÏ¢L«–f[¨o²Ëq.Ýw­b}·¯ß¿€ L¸pà¼>‹ Þ©xñÍÆŽgBŽür2€¾øŽdö@ßΞA÷ëœ4é}¦ZÞ\ºõåѯYß;Ú5?ÚµeÄMpõlÛ¹CÓÛ¶Ö'Ÿ^ž™ùñËÊc7/þû¶õêÒc§Î®ùìíÒ™w/:jÞØ¹ë–½\óh¾Ø·—ŸŸž<ûÛè³çGÿ¹>rõêýGqßyÞz^矸÷Oƒ Æ× ˆ y ¦ç`}þ7yBh߇啶ßyXæö\w«‰ˆ¡v¦Ew^^ùµäÛY9ª´#Y=¦ô#e# I¤GFÉQ’J^Äd“&å”TVi%` ;tclap-1.2.1/docs/html/classTCLAP_1_1HelpVisitor.html000644 000765 000765 00000025416 11552414564 021565 0ustar00mesmes000000 000000 tclap: TCLAP::HelpVisitor Class Reference

TCLAP::HelpVisitor Class Reference

A Visitor object that calls the usage method of the given CmdLineOutput object for the specified CmdLine object. More...

#include <HelpVisitor.h>

Inheritance diagram for TCLAP::HelpVisitor:
TCLAP::Visitor

List of all members.

Public Member Functions

 HelpVisitor (CmdLineInterface *cmd, CmdLineOutput **out)
 Constructor.
void visit ()
 Calls the usage method of the CmdLineOutput for the specified CmdLine.

Protected Attributes

CmdLineInterface_cmd
 The CmdLine the output will be generated for.
CmdLineOutput ** _out
 The output object.

Detailed Description

A Visitor object that calls the usage method of the given CmdLineOutput object for the specified CmdLine object.

Definition at line 35 of file HelpVisitor.h.


Constructor & Destructor Documentation

TCLAP::HelpVisitor::HelpVisitor ( CmdLineInterface cmd,
CmdLineOutput **  out 
) [inline]

Constructor.

Parameters:
cmd - The CmdLine the output will be generated for.
out - The type of output.

Definition at line 63 of file HelpVisitor.h.


Member Function Documentation

void TCLAP::HelpVisitor::visit (  )  [inline, virtual]

Calls the usage method of the CmdLineOutput for the specified CmdLine.

Reimplemented from TCLAP::Visitor.

Definition at line 70 of file HelpVisitor.h.

References _cmd.


Member Data Documentation

The CmdLine the output will be generated for.

Definition at line 49 of file HelpVisitor.h.

Referenced by visit().

The output object.

Definition at line 54 of file HelpVisitor.h.


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

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/classTCLAP_1_1IgnoreRestVisitor-members.html000644 000765 000765 00000005113 11552414564 024376 0ustar00mesmes000000 000000 tclap: Member List

TCLAP::IgnoreRestVisitor Member List

This is the complete list of members for TCLAP::IgnoreRestVisitor, including all inherited members.
IgnoreRestVisitor()TCLAP::IgnoreRestVisitor [inline]
visit()TCLAP::IgnoreRestVisitor [inline, virtual]
Visitor()TCLAP::Visitor [inline]
~Visitor()TCLAP::Visitor [inline, virtual]

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/classTCLAP_1_1IgnoreRestVisitor.gif000644 000765 000765 00000001375 11552414564 022555 0ustar00mesmes000000 000000 GIF89ašPòÿÿÿÿÿÀŸŸ`ÀÀÀ!ù,šPþ8ºÜþ0ÊI«½8+Á»ÿ`(ŽdižhªªÛê¾p,ÏeKßx®ÃöîÿÀ\/H,IC_`É tšÏ‘ÓÓœ†¬œ)–š=ÖÞ-V+r޹×ÏVêE‚çt:Þ-Gë‚e”™Õï‹I@tjrywudxV‰ŒŠOk>?ƒh„ŠPlކh‰›žD’J•–j˜Ÿ%f•~›‹G¡;”‡³¬)©´ž®F°:bœ ¿§¨–¹­´@½9k¦Uxˆr‡«ZÕ²?ÊmÚÛ@° Áƒ*\ȰaC#JœH±¢Å‹BÌÈþ±£Ç ²¤É“(ŽÜ˜²¥Ë—W’„I³&M™,mêÜY2'ÏŸ@1ú J´¨H£H“ªTÊ4éЦPu>JõåÔªXO^ÍÊõãÖ®`…† ò+Ù³Ѫµhv­[‚mß®+-ݺdïâ «wo×¾~³\u0ᨆ7M¬X)ãÆHC.*Yi•˘3kÞ̹³çÏ C‹î«zõØÖ®Á€¹`Û ¬’û%iï&aðâÀ‘TŽü¸BÝÍ—?÷-]¢óê•Gœ»»ñéѽ'8íæ°ËŸ/~ýòãªÙ{o =~záï§‹ÇŽ]~Ä÷ëÂg~Æ÷_uþ8ßø)8àyÆi÷ ãUÈÞmú%È` ®G߆ú×àx×q¡~òg†öf¢†!®ÈDŒäÍHžxê…£ˆr7¡„-¶X"C%I£‰ü I¢tí è ’ù%Ä‚ßQ™“F"Éã4>™¢ƒOŠe•ïчá”AŽX z<Þ'#Žo®(ç~þ_“sVdi>%fl}ú(Ÿ{ÆÕ †6…h¢–Êh£r5Ú¤”Vj饘f–;tclap-1.2.1/docs/html/classTCLAP_1_1IgnoreRestVisitor.html000644 000765 000765 00000013541 11552414564 022752 0ustar00mesmes000000 000000 tclap: TCLAP::IgnoreRestVisitor Class Reference

TCLAP::IgnoreRestVisitor Class Reference

A Vistor that tells the CmdLine to begin ignoring arguments after this one is parsed. More...

#include <IgnoreRestVisitor.h>

Inheritance diagram for TCLAP::IgnoreRestVisitor:
TCLAP::Visitor

List of all members.

Public Member Functions

 IgnoreRestVisitor ()
 Constructor.
void visit ()
 Sets Arg::_ignoreRest.

Detailed Description

A Vistor that tells the CmdLine to begin ignoring arguments after this one is parsed.

Definition at line 35 of file IgnoreRestVisitor.h.


Constructor & Destructor Documentation

TCLAP::IgnoreRestVisitor::IgnoreRestVisitor (  )  [inline]

Constructor.

Definition at line 42 of file IgnoreRestVisitor.h.


Member Function Documentation

void TCLAP::IgnoreRestVisitor::visit (  )  [inline, virtual]

Sets Arg::_ignoreRest.

Reimplemented from TCLAP::Visitor.

Definition at line 47 of file IgnoreRestVisitor.h.

References TCLAP::Arg::beginIgnoring().


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

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/classTCLAP_1_1MultiArg-members.html000644 000765 000765 00000041625 11552414564 022471 0ustar00mesmes000000 000000 tclap: Member List

TCLAP::MultiArg< T > Member List

This is the complete list of members for TCLAP::MultiArg< T >, including all inherited members.
_acceptsMultipleValuesTCLAP::Arg [protected]
_allowMoreTCLAP::MultiArg< T > [protected]
_alreadySetTCLAP::Arg [protected]
_checkWithVisitor() const TCLAP::Arg [inline, protected]
_constraintTCLAP::MultiArg< T > [protected]
_descriptionTCLAP::Arg [protected]
_extractValue(const std::string &val)TCLAP::MultiArg< T > [inline, protected]
_flagTCLAP::Arg [protected]
_hasBlanks(const std::string &s) const TCLAP::Arg [inline]
_ignoreableTCLAP::Arg [protected]
_nameTCLAP::Arg [protected]
_requiredTCLAP::Arg [protected]
_requireLabelTCLAP::Arg [protected]
_typeDescTCLAP::MultiArg< T > [protected]
_valueRequiredTCLAP::Arg [protected]
_valuesTCLAP::MultiArg< T > [protected]
_visitorTCLAP::Arg [protected]
_xorSetTCLAP::Arg [protected]
acceptsMultipleValues()TCLAP::Arg [inline, virtual]
addToList(std::list< Arg * > &argList) const TCLAP::Arg [inline, virtual]
allowMore()TCLAP::MultiArg< T > [inline, virtual]
Arg(const std::string &flag, const std::string &name, const std::string &desc, bool req, bool valreq, Visitor *v=NULL)TCLAP::Arg [inline, protected]
argMatches(const std::string &s) const TCLAP::Arg [inline, virtual]
begin() const TCLAP::MultiArg< T > [inline]
beginIgnoring()TCLAP::Arg [inline, static]
blankChar()TCLAP::Arg [inline, static]
const_iterator typedefTCLAP::MultiArg< T >
container_type typedefTCLAP::MultiArg< T >
delimiter()TCLAP::Arg [inline, static]
end() const TCLAP::MultiArg< T > [inline]
flagStartChar()TCLAP::Arg [inline, static]
flagStartString()TCLAP::Arg [inline, static]
forceRequired()TCLAP::Arg [inline]
getDescription() const TCLAP::Arg [inline]
getFlag() const TCLAP::Arg [inline]
getName() const TCLAP::Arg [inline]
getValue()TCLAP::MultiArg< T > [inline]
ignoreNameString()TCLAP::Arg [inline, static]
ignoreRest()TCLAP::Arg [inline, static]
isIgnoreable() const TCLAP::Arg [inline]
isRequired() const TCLAP::MultiArg< T > [inline, virtual]
isSet() const TCLAP::Arg [inline]
isValueRequired() const TCLAP::Arg [inline]
iterator typedefTCLAP::MultiArg< T >
longID(const std::string &val="val") const TCLAP::MultiArg< T > [inline, virtual]
MultiArg(const std::string &flag, const std::string &name, const std::string &desc, bool req, const std::string &typeDesc, Visitor *v=NULL)TCLAP::MultiArg< T > [inline]
MultiArg(const std::string &flag, const std::string &name, const std::string &desc, bool req, const std::string &typeDesc, CmdLineInterface &parser, Visitor *v=NULL)TCLAP::MultiArg< T > [inline]
MultiArg(const std::string &flag, const std::string &name, const std::string &desc, bool req, Constraint< T > *constraint, Visitor *v=NULL)TCLAP::MultiArg< T > [inline]
MultiArg(const std::string &flag, const std::string &name, const std::string &desc, bool req, Constraint< T > *constraint, CmdLineInterface &parser, Visitor *v=NULL)TCLAP::MultiArg< T > [inline]
nameStartString()TCLAP::Arg [inline, static]
operator==(const Arg &a) const TCLAP::Arg [inline, virtual]
processArg(int *i, std::vector< std::string > &args)TCLAP::MultiArg< T > [inline, virtual]
reset()TCLAP::MultiArg< T > [inline, virtual]
setDelimiter(char c)TCLAP::Arg [inline, static]
setRequireLabel(const std::string &s)TCLAP::Arg [inline]
shortID(const std::string &val="val") const TCLAP::MultiArg< T > [inline, virtual]
toString() const TCLAP::Arg [inline, virtual]
trimFlag(std::string &flag, std::string &value) const TCLAP::Arg [inline, virtual]
xorSet()TCLAP::Arg [inline]
~Arg()TCLAP::Arg [inline, virtual]

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/classTCLAP_1_1MultiArg.gif000644 000765 000765 00000002300 11552414564 020625 0ustar00mesmes000000 000000 GIF89aÁˆòÿÿÿÿÿÀŸŸ`ÀÀÀ!ù,Áˆþ8ºÜþ0ÊI«½8ëÍ„ÿ`(Ždižhª®l뾂ÏtmßxþÉzïÿÀàˆ',È1Él:qËç*@­>Vlé ²rM_é/*ž†ÂÜpW€^oÙåñ îjÔZ»¿V_Ót+d‚`n"|_ŠniZ{]l|…"„”w‡g˜{Yoœ ‹—&–£™“‰žp)^‡¢¦Cs°Ÿ š¶Ž“·¡Ž«³!¥³~Œˆ¶¹™½¢T¾•²ËºÊÐѽÃÕÈ×ËÀÎËÆ£ÜÝ—¯Ýáâ”Uçæêí”ìîñeðòõMôöùFøúýr H° A*\Ȱ¡Ã‡#JœH‘¡Š3jÜÈþ±£Ç ^ I²¤É“(S0ÀR¥Ë—0c’d9R¦Í›8mÒl™³§ÏŸwÖJ´¨Q‹G“*%:t©Ó§.›BJõ£ÔªX³N¼ªµ«×„\¿Š­v¬Y§eϪ5šv­[ŸmßÊÕ9·.S»x{ÆÍË7äÞ¾€9þ L¸âàˆ!NÌxáâÆCN,yráÊ–cÎÜw3缞?Û -z.i·^R«^ͺµë×°cËžM»¶íØ¥sSÉ]z7ïϾg.|2q”ªZQ1C/Í:8½úó“ÉW9¹÷î×Á‹§ÀöïÒͧ,ÿó<ò…ìÆW?Þ{Ãã¾»[¯¢žyþyçÕ˜Ñ|9¹‡|Ô¥'Ÿ}ýYGŸ Fè ~ æ'ßfH v–Tß} ögÞr Rè`ƒÚ÷!…JÔ¡vHÒ‡×ÝG¢ˆí—âŽ'B§¢2âØ\Áè!‚!2ˆâD:.¹ä„5ŠÈâˆ.ºH¤GFÎ¥“Jž˜ã BÉ¥”ßay6e{7úø_„5ö¨¢€aŽ9%•W Ù^žÅù•š}†ÈçQ€jã „"jèZ….*W£Ž¢¦h¤cAJéY·eªé¦œvêé§©åvÚ¥d‘JM¦†jª íÄ*^B½ š¬|JkR¶ÞÊ–®£ñZW®¾þl°zûÖ°ÆÞþ„l²2-Ë,LÎ>•´fEK-JÖ^kR¶ÚÎÔ­WÜ~k•¸Z…K®`çbenº­Ë®aïNån¼ÍëÔAøæúöëo3þ|À¼Á',‡Â ÁOÓB°jX¤SË3­ 1³â±6 s /7PÌ‚%ÔˆÜñƨã2É´"ɹŒÜ‡ß(p--cÂrǸÌJ4p-É+w²ŠÑB'st5Ü5 TÇq>Ý×ðð÷eÄøä‹‘tè§ÿ}ûîC ü ÏOÂöß_ð¿ü÷ïÿÿH;tclap-1.2.1/docs/html/classTCLAP_1_1MultiArg.html000644 000765 000765 00000147123 11552414564 021041 0ustar00mesmes000000 000000 tclap: TCLAP::MultiArg< T > Class Template Reference

TCLAP::MultiArg< T > Class Template Reference

An argument that allows multiple values of type T to be specified. More...

#include <MultiArg.h>

Inheritance diagram for TCLAP::MultiArg< T >:
TCLAP::Arg TCLAP::UnlabeledMultiArg< T >

List of all members.

Public Types

typedef std::vector< T > container_type
typedef container_type::iterator iterator
typedef
container_type::const_iterator 
const_iterator

Public Member Functions

 MultiArg (const std::string &flag, const std::string &name, const std::string &desc, bool req, const std::string &typeDesc, Visitor *v=NULL)
 Constructor.
 MultiArg (const std::string &flag, const std::string &name, const std::string &desc, bool req, const std::string &typeDesc, CmdLineInterface &parser, Visitor *v=NULL)
 Constructor.
 MultiArg (const std::string &flag, const std::string &name, const std::string &desc, bool req, Constraint< T > *constraint, Visitor *v=NULL)
 Constructor.
 MultiArg (const std::string &flag, const std::string &name, const std::string &desc, bool req, Constraint< T > *constraint, CmdLineInterface &parser, Visitor *v=NULL)
 Constructor.
virtual bool processArg (int *i, std::vector< std::string > &args)
 Handles the processing of the argument.
const std::vector< T > & getValue ()
 Returns a vector of type T containing the values parsed from the command line.
const_iterator begin () const
 Returns an iterator over the values parsed from the command line.
const_iterator end () const
 Returns the end of the values parsed from the command line.
virtual std::string shortID (const std::string &val="val") const
 Returns the a short id string.
virtual std::string longID (const std::string &val="val") const
 Returns the a long id string.
virtual bool isRequired () const
 Once we've matched the first value, then the arg is no longer required.
virtual bool allowMore ()
 Used for MultiArgs and XorHandler to determine whether args can still be set.
virtual void reset ()
 Clears the Arg object and allows it to be reused by new command lines.

Protected Member Functions

void _extractValue (const std::string &val)
 Extracts the value from the string.

Protected Attributes

std::vector< T > _values
 The list of values parsed from the CmdLine.
std::string _typeDesc
 The description of type T to be used in the usage.
Constraint< T > * _constraint
 A list of constraint on this Arg.
bool _allowMore
 Used by XorHandler to decide whether to keep parsing for this arg.

Detailed Description

template<class T>
class TCLAP::MultiArg< T >

An argument that allows multiple values of type T to be specified.

Very similar to a ValueArg, except a vector of values will be returned instead of just one.

Definition at line 39 of file MultiArg.h.


Member Typedef Documentation

template<class T>
typedef container_type::const_iterator TCLAP::MultiArg< T >::const_iterator

Definition at line 44 of file MultiArg.h.

template<class T>
typedef std::vector<T> TCLAP::MultiArg< T >::container_type

Definition at line 42 of file MultiArg.h.

template<class T>
typedef container_type::iterator TCLAP::MultiArg< T >::iterator

Definition at line 43 of file MultiArg.h.


Constructor & Destructor Documentation

template<class T >
TCLAP::MultiArg< T >::MultiArg ( const std::string &  flag,
const std::string &  name,
const std::string &  desc,
bool  req,
const std::string &  typeDesc,
Visitor v = NULL 
) [inline]

Constructor.

Parameters:
flag - The one character flag that identifies this argument on the command line.
name - A one word name for the argument. Can be used as a long flag on the command line.
desc - A description of what the argument is for or does.
req - Whether the argument is required on the command line.
typeDesc - A short, human readable description of the type that this object expects. This is used in the generation of the USAGE statement. The goal is to be helpful to the end user of the program.
v - An optional visitor. You probably should not use this unless you have a very good reason.

Definition at line 234 of file MultiArg.h.

References TCLAP::Arg::_acceptsMultipleValues.

template<class T >
TCLAP::MultiArg< T >::MultiArg ( const std::string &  flag,
const std::string &  name,
const std::string &  desc,
bool  req,
const std::string &  typeDesc,
CmdLineInterface parser,
Visitor v = NULL 
) [inline]

Constructor.

Parameters:
flag - The one character flag that identifies this argument on the command line.
name - A one word name for the argument. Can be used as a long flag on the command line.
desc - A description of what the argument is for or does.
req - Whether the argument is required on the command line.
typeDesc - A short, human readable description of the type that this object expects. This is used in the generation of the USAGE statement. The goal is to be helpful to the end user of the program.
parser - A CmdLine parser object to add this Arg to
v - An optional visitor. You probably should not use this unless you have a very good reason.

Definition at line 250 of file MultiArg.h.

References TCLAP::Arg::_acceptsMultipleValues, and TCLAP::CmdLineInterface::add().

template<class T >
TCLAP::MultiArg< T >::MultiArg ( const std::string &  flag,
const std::string &  name,
const std::string &  desc,
bool  req,
Constraint< T > *  constraint,
Visitor v = NULL 
) [inline]

Constructor.

Parameters:
flag - The one character flag that identifies this argument on the command line.
name - A one word name for the argument. Can be used as a long flag on the command line.
desc - A description of what the argument is for or does.
req - Whether the argument is required on the command line.
constraint - A pointer to a Constraint object used to constrain this Arg.
v - An optional visitor. You probably should not use this unless you have a very good reason.

Definition at line 271 of file MultiArg.h.

References TCLAP::Arg::_acceptsMultipleValues.

template<class T >
TCLAP::MultiArg< T >::MultiArg ( const std::string &  flag,
const std::string &  name,
const std::string &  desc,
bool  req,
Constraint< T > *  constraint,
CmdLineInterface parser,
Visitor v = NULL 
) [inline]

Constructor.

Parameters:
flag - The one character flag that identifies this argument on the command line.
name - A one word name for the argument. Can be used as a long flag on the command line.
desc - A description of what the argument is for or does.
req - Whether the argument is required on the command line.
constraint - A pointer to a Constraint object used to constrain this Arg.
parser - A CmdLine parser object to add this Arg to
v - An optional visitor. You probably should not use this unless you have a very good reason.

Definition at line 287 of file MultiArg.h.

References TCLAP::Arg::_acceptsMultipleValues, and TCLAP::CmdLineInterface::add().


Member Function Documentation

template<class T >
void TCLAP::MultiArg< T >::_extractValue ( const std::string &  val  )  [inline, protected]

Extracts the value from the string.

Attempts to parse string as type T, if this fails an exception is thrown.

Parameters:
val - The string to be read.

Definition at line 398 of file MultiArg.h.

References TCLAP::MultiArg< T >::_constraint, TCLAP::MultiArg< T >::_values, TCLAP::ArgException::error(), TCLAP::ExtractValue(), and TCLAP::Arg::toString().

Referenced by TCLAP::UnlabeledMultiArg< T >::processArg(), and TCLAP::MultiArg< T >::processArg().

template<class T >
bool TCLAP::MultiArg< T >::allowMore (  )  [inline, virtual]

Used for MultiArgs and XorHandler to determine whether args can still be set.

Reimplemented from TCLAP::Arg.

Definition at line 417 of file MultiArg.h.

References TCLAP::MultiArg< T >::_allowMore.

template<class T>
const_iterator TCLAP::MultiArg< T >::begin (  )  const [inline]

Returns an iterator over the values parsed from the command line.

Definition at line 194 of file MultiArg.h.

References TCLAP::MultiArg< T >::_values.

template<class T>
const_iterator TCLAP::MultiArg< T >::end (  )  const [inline]

Returns the end of the values parsed from the command line.

Definition at line 200 of file MultiArg.h.

References TCLAP::MultiArg< T >::_values.

template<class T >
const std::vector< T > & TCLAP::MultiArg< T >::getValue (  )  [inline]

Returns a vector of type T containing the values parsed from the command line.

Definition at line 305 of file MultiArg.h.

References TCLAP::MultiArg< T >::_values.

template<class T >
bool TCLAP::MultiArg< T >::isRequired (  )  const [inline, virtual]

Once we've matched the first value, then the arg is no longer required.

Reimplemented from TCLAP::Arg.

Definition at line 383 of file MultiArg.h.

References TCLAP::Arg::_required, and TCLAP::MultiArg< T >::_values.

template<class T >
std::string TCLAP::MultiArg< T >::longID ( const std::string &  val = "val"  )  const [inline, virtual]

Returns the a long id string.

Used in the usage.

Parameters:
val - value to be used.

Reimplemented from TCLAP::Arg.

Reimplemented in TCLAP::UnlabeledMultiArg< T >.

Definition at line 372 of file MultiArg.h.

References TCLAP::MultiArg< T >::_typeDesc.

template<class T >
bool TCLAP::MultiArg< T >::processArg ( int *  i,
std::vector< std::string > &  args 
) [inline, virtual]

Handles the processing of the argument.

This re-implements the Arg version of this method to set the _value of the argument appropriately. It knows the difference between labeled and unlabeled.

Parameters:
i - Pointer the the current argument in the list.
args - Mutable list of strings. Passed from main().

Implements TCLAP::Arg.

Reimplemented in TCLAP::UnlabeledMultiArg< T >.

Definition at line 308 of file MultiArg.h.

References TCLAP::Arg::_alreadySet, TCLAP::Arg::_checkWithVisitor(), TCLAP::MultiArg< T >::_extractValue(), TCLAP::Arg::_hasBlanks(), TCLAP::Arg::_ignoreable, TCLAP::Arg::argMatches(), TCLAP::Arg::delimiter(), TCLAP::Arg::ignoreRest(), TCLAP::Arg::toString(), and TCLAP::Arg::trimFlag().

template<class T >
void TCLAP::MultiArg< T >::reset (  )  [inline, virtual]

Clears the Arg object and allows it to be reused by new command lines.

Reimplemented from TCLAP::Arg.

Definition at line 425 of file MultiArg.h.

References TCLAP::MultiArg< T >::_values.

template<class T >
std::string TCLAP::MultiArg< T >::shortID ( const std::string &  val = "val"  )  const [inline, virtual]

Returns the a short id string.

Used in the usage.

Parameters:
val - value to be used.

Reimplemented from TCLAP::Arg.

Reimplemented in TCLAP::UnlabeledMultiArg< T >.

Definition at line 362 of file MultiArg.h.

References TCLAP::MultiArg< T >::_typeDesc.


Member Data Documentation

template<class T>
bool TCLAP::MultiArg< T >::_allowMore [protected]

Used by XorHandler to decide whether to keep parsing for this arg.

Definition at line 74 of file MultiArg.h.

Referenced by TCLAP::MultiArg< T >::allowMore().

template<class T>
Constraint<T>* TCLAP::MultiArg< T >::_constraint [protected]

A list of constraint on this Arg.

Definition at line 61 of file MultiArg.h.

Referenced by TCLAP::MultiArg< T >::_extractValue().

template<class T>
std::string TCLAP::MultiArg< T >::_typeDesc [protected]

The description of type T to be used in the usage.

Definition at line 56 of file MultiArg.h.

Referenced by TCLAP::UnlabeledMultiArg< T >::longID(), TCLAP::MultiArg< T >::longID(), TCLAP::UnlabeledMultiArg< T >::shortID(), and TCLAP::MultiArg< T >::shortID().


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

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/classTCLAP_1_1MultiSwitchArg-members.html000644 000765 000765 00000036040 11552414564 023646 0ustar00mesmes000000 000000 tclap: Member List

TCLAP::MultiSwitchArg Member List

This is the complete list of members for TCLAP::MultiSwitchArg, including all inherited members.
_acceptsMultipleValuesTCLAP::Arg [protected]
_alreadySetTCLAP::Arg [protected]
_checkWithVisitor() const TCLAP::Arg [inline, protected]
_defaultTCLAP::MultiSwitchArg [protected]
_descriptionTCLAP::Arg [protected]
_flagTCLAP::Arg [protected]
_hasBlanks(const std::string &s) const TCLAP::Arg [inline]
_ignoreableTCLAP::Arg [protected]
_nameTCLAP::Arg [protected]
_requiredTCLAP::Arg [protected]
_requireLabelTCLAP::Arg [protected]
_valueTCLAP::MultiSwitchArg [protected]
_valueRequiredTCLAP::Arg [protected]
_visitorTCLAP::Arg [protected]
_xorSetTCLAP::Arg [protected]
acceptsMultipleValues()TCLAP::Arg [inline, virtual]
addToList(std::list< Arg * > &argList) const TCLAP::Arg [inline, virtual]
allowMore()TCLAP::Arg [inline, virtual]
Arg(const std::string &flag, const std::string &name, const std::string &desc, bool req, bool valreq, Visitor *v=NULL)TCLAP::Arg [inline, protected]
argMatches(const std::string &s) const TCLAP::Arg [inline, virtual]
beginIgnoring()TCLAP::Arg [inline, static]
blankChar()TCLAP::Arg [inline, static]
combinedSwitchesMatch(std::string &combined)TCLAP::SwitchArg [inline]
delimiter()TCLAP::Arg [inline, static]
flagStartChar()TCLAP::Arg [inline, static]
flagStartString()TCLAP::Arg [inline, static]
forceRequired()TCLAP::Arg [inline]
getDescription() const TCLAP::Arg [inline]
getFlag() const TCLAP::Arg [inline]
getName() const TCLAP::Arg [inline]
getValue()TCLAP::MultiSwitchArg [inline]
ignoreNameString()TCLAP::Arg [inline, static]
ignoreRest()TCLAP::Arg [inline, static]
isIgnoreable() const TCLAP::Arg [inline]
isRequired() const TCLAP::Arg [inline, virtual]
isSet() const TCLAP::Arg [inline]
isValueRequired() const TCLAP::Arg [inline]
longID(const std::string &val) const TCLAP::MultiSwitchArg [inline, virtual]
MultiSwitchArg(const std::string &flag, const std::string &name, const std::string &desc, int init=0, Visitor *v=NULL)TCLAP::MultiSwitchArg [inline]
MultiSwitchArg(const std::string &flag, const std::string &name, const std::string &desc, CmdLineInterface &parser, int init=0, Visitor *v=NULL)TCLAP::MultiSwitchArg [inline]
nameStartString()TCLAP::Arg [inline, static]
operator==(const Arg &a) const TCLAP::Arg [inline, virtual]
processArg(int *i, std::vector< std::string > &args)TCLAP::MultiSwitchArg [inline, virtual]
reset()TCLAP::MultiSwitchArg [inline, virtual]
setDelimiter(char c)TCLAP::Arg [inline, static]
setRequireLabel(const std::string &s)TCLAP::Arg [inline]
shortID(const std::string &val) const TCLAP::MultiSwitchArg [inline, virtual]
SwitchArg(const std::string &flag, const std::string &name, const std::string &desc, bool def=false, Visitor *v=NULL)TCLAP::SwitchArg [inline]
SwitchArg(const std::string &flag, const std::string &name, const std::string &desc, CmdLineInterface &parser, bool def=false, Visitor *v=NULL)TCLAP::SwitchArg [inline]
toString() const TCLAP::Arg [inline, virtual]
trimFlag(std::string &flag, std::string &value) const TCLAP::Arg [inline, virtual]
xorSet()TCLAP::Arg [inline]
~Arg()TCLAP::Arg [inline, virtual]

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/classTCLAP_1_1MultiSwitchArg.gif000644 000765 000765 00000002167 11552414564 022022 0ustar00mesmes000000 000000 GIF89aˆòÿÿÿÿÿÀŸŸ`ÀÀÀ!ù,ˆþ8ºÜþ0ÊI«½ŠÍ»ÿ`(Ždižhê)jë¾p, ìlßx>Özïÿ*pH, ¤2ÀY6EÌÎ2:¢OG¢U`nŸ]i•{Ee‡aÐwÃL³ÇÛ6[~=#Åêü{¿÷>ù\~ev?nkTŠNP|Š„e€kdSŽ$˜Žu’“‡x¢}&qœ™C…>¦_¬•ˆ±s‘“–RJMŒ¯z‚§º·Dª¶ÄšµÅÈ%FŸÉÎ!¹ÇÏÓÏÃÔ×@ÖØÛ9ÚÜß2Þàã-æçèéêë îïðñòóôõö÷ñøûüýþÿÔ'° Áƒæ3@P¡Ã‡2l±¢Å‹ö&2ÄÈþ±ãE=Ši0$É“(ù™Lɲ%¼•.c¢„)³¦Gš6sZÄ©³§Cž>ƒ–J"ТH÷MÊ”ÞÒ¦Pß= u*U¦V¯"ͪ•(×®A¿‚í)vlβfk¢Ms-Û–nߦŒ+÷$ݺ#ïâ½i–ß¿€[ G¸[³ÂˆaˆKÌxÅáÆK,ŽÌxr M——]BÄZ´1ÁdéÉö8+RyU ÕškX6,gZýzmÑÚ$™“Û”oZ°w”FÁЯ`‚‰ÊÚÒî[šŸ{ .B6%×›u†Ò)yóãÑ~¢xhÞÏÏ+Cíýü2ÌÐQ™!_j”ýо@“’ÓÞUþ+Üâ¥`~xøW`}àýß‚§uG]ºòÙ&¼d·Hz :7Ý{ÆEGG9ôQö̃ (¢š ≶|"‹0v`bŒ×ÌHã46ÞèLŽ:"#Ø@©Diä‘H&©ä’L6y¤^NF)å”TVi¥’P^©å–\v‰äD^†)æ˜d2 f™h¦©&• ­éæ›p¶ çœt’™exªygž|޹gŸ€rùg „V9h¡ˆ:yh¢Œ&¹h£ùh¤NJi¢–^Zh¦šÊi§}~ jž¢ŽZg©¦Î‰jªo®Êêš®¾šf¬²–Ik­~âªë’·îÚe¯¾n l°WK¬¡ÄNþ¡ì²Ì6ëì³ÐF+í´ÔVÀ±¾&í®Ún‹k·ÞÊ n¸¬Ž À²E.‘î’×9»I¶/‘íÊ«n“õ«¤¼Vš»®»Ÿ»¯ÀÿÒ»/¿ç"0Âü*<ðÃH^ëp”þ\ð‘K°Å3œ¯ÅkûñÆö ¬½à†Œ1ÁëÖ«1Æo¼rÄ7 ²Á%ü±Î6sü²Î(û|q·.w 1Ë3'mï½óæ,4Á#}3ÔS“\³Õ§óÅ2k}rÖúþüôÎóRmvÔO'üuÚ WŒôÖ]£ý°Ø,“möÍÛÝö¿ _ vÂG¿ýwßHë[7Èzg]òØŒWͶÔîÂíõÒ_@î°Ý‡½óËj÷œ9Ñ)ó­tä…N®¦mO|: ‹“¾z£k»þú¨nÏií¶3Š{îˆîÎ;¡Ö/üðÄ?|;tclap-1.2.1/docs/html/classTCLAP_1_1MultiSwitchArg.html000644 000765 000765 00000060012 11552414564 022212 0ustar00mesmes000000 000000 tclap: TCLAP::MultiSwitchArg Class Reference

TCLAP::MultiSwitchArg Class Reference

A multiple switch argument. More...

#include <MultiSwitchArg.h>

Inheritance diagram for TCLAP::MultiSwitchArg:
TCLAP::SwitchArg TCLAP::Arg

List of all members.

Public Member Functions

 MultiSwitchArg (const std::string &flag, const std::string &name, const std::string &desc, int init=0, Visitor *v=NULL)
 MultiSwitchArg constructor.
 MultiSwitchArg (const std::string &flag, const std::string &name, const std::string &desc, CmdLineInterface &parser, int init=0, Visitor *v=NULL)
 MultiSwitchArg constructor.
virtual bool processArg (int *i, std::vector< std::string > &args)
 Handles the processing of the argument.
int getValue ()
 Returns int, the number of times the switch has been set.
std::string shortID (const std::string &val) const
 Returns the shortID for this Arg.
std::string longID (const std::string &val) const
 Returns the longID for this Arg.
void reset ()
 Clears the Arg object and allows it to be reused by new command lines.

Protected Attributes

int _value
 The value of the switch.
int _default
 Used to support the reset() method so that ValueArg can be reset to their constructed value.

Detailed Description

A multiple switch argument.

If the switch is set on the command line, then the getValue method will return the number of times the switch appears.

Definition at line 39 of file MultiSwitchArg.h.


Constructor & Destructor Documentation

TCLAP::MultiSwitchArg::MultiSwitchArg ( const std::string &  flag,
const std::string &  name,
const std::string &  desc,
int  init = 0,
Visitor v = NULL 
) [inline]

MultiSwitchArg constructor.

Parameters:
flag - The one character flag that identifies this argument on the command line.
name - A one word name for the argument. Can be used as a long flag on the command line.
desc - A description of what the argument is for or does.
init - Optional. The initial/default value of this Arg. Defaults to 0.
v - An optional visitor. You probably should not use this unless you have a very good reason.

Definition at line 130 of file MultiSwitchArg.h.

TCLAP::MultiSwitchArg::MultiSwitchArg ( const std::string &  flag,
const std::string &  name,
const std::string &  desc,
CmdLineInterface parser,
int  init = 0,
Visitor v = NULL 
) [inline]

MultiSwitchArg constructor.

Parameters:
flag - The one character flag that identifies this argument on the command line.
name - A one word name for the argument. Can be used as a long flag on the command line.
desc - A description of what the argument is for or does.
parser - A CmdLine parser object to add this Arg to
init - Optional. The initial/default value of this Arg. Defaults to 0.
v - An optional visitor. You probably should not use this unless you have a very good reason.

Definition at line 140 of file MultiSwitchArg.h.

References TCLAP::CmdLineInterface::add().


Member Function Documentation

int TCLAP::MultiSwitchArg::getValue (  )  [inline]

Returns int, the number of times the switch has been set.

Reimplemented from TCLAP::SwitchArg.

Definition at line 153 of file MultiSwitchArg.h.

References _value.

std::string TCLAP::MultiSwitchArg::longID ( const std::string &  val  )  const [inline, virtual]

Returns the longID for this Arg.

Reimplemented from TCLAP::Arg.

Definition at line 199 of file MultiSwitchArg.h.

bool TCLAP::MultiSwitchArg::processArg ( int *  i,
std::vector< std::string > &  args 
) [inline, virtual]

Handles the processing of the argument.

This re-implements the SwitchArg version of this method to set the _value of the argument appropriately.

Parameters:
i - Pointer the the current argument in the list.
args - Mutable list of strings. Passed in from main().

Reimplemented from TCLAP::SwitchArg.

Definition at line 155 of file MultiSwitchArg.h.

References TCLAP::Arg::_alreadySet, TCLAP::Arg::_checkWithVisitor(), TCLAP::Arg::_ignoreable, _value, TCLAP::Arg::argMatches(), TCLAP::SwitchArg::combinedSwitchesMatch(), and TCLAP::Arg::ignoreRest().

void TCLAP::MultiSwitchArg::reset (  )  [inline, virtual]

Clears the Arg object and allows it to be reused by new command lines.

Reimplemented from TCLAP::SwitchArg.

Definition at line 205 of file MultiSwitchArg.h.

References _default, and _value.

std::string TCLAP::MultiSwitchArg::shortID ( const std::string &  val  )  const [inline, virtual]

Returns the shortID for this Arg.

Reimplemented from TCLAP::Arg.

Definition at line 193 of file MultiSwitchArg.h.


Member Data Documentation

Used to support the reset() method so that ValueArg can be reset to their constructed value.

Reimplemented from TCLAP::SwitchArg.

Definition at line 52 of file MultiSwitchArg.h.

Referenced by reset().

The value of the switch.

Reimplemented from TCLAP::SwitchArg.

Definition at line 46 of file MultiSwitchArg.h.

Referenced by getValue(), processArg(), and reset().


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

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/classTCLAP_1_1OptionalUnlabeledTracker-members.html000644 000765 000765 00000004776 11552414564 025670 0ustar00mesmes000000 000000 tclap: Member List

TCLAP::OptionalUnlabeledTracker Member List

This is the complete list of members for TCLAP::OptionalUnlabeledTracker, including all inherited members.
alreadyOptional()TCLAP::OptionalUnlabeledTracker [inline, static]
check(bool req, const std::string &argName)TCLAP::OptionalUnlabeledTracker [inline, static]
gotOptional()TCLAP::OptionalUnlabeledTracker [inline, static]

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/classTCLAP_1_1OptionalUnlabeledTracker.html000644 000765 000765 00000015104 11552414564 024223 0ustar00mesmes000000 000000 tclap: TCLAP::OptionalUnlabeledTracker Class Reference

TCLAP::OptionalUnlabeledTracker Class Reference

#include <OptionalUnlabeledTracker.h>

List of all members.

Static Public Member Functions

static void check (bool req, const std::string &argName)
static void gotOptional ()
static bool & alreadyOptional ()

Detailed Description

Definition at line 31 of file OptionalUnlabeledTracker.h.


Member Function Documentation

static bool& TCLAP::OptionalUnlabeledTracker::alreadyOptional (  )  [inline, static]

Definition at line 40 of file OptionalUnlabeledTracker.h.

Referenced by check().

void TCLAP::OptionalUnlabeledTracker::check ( bool  req,
const std::string &  argName 
) [inline, static]
static void TCLAP::OptionalUnlabeledTracker::gotOptional (  )  [inline, static]

Definition at line 38 of file OptionalUnlabeledTracker.h.

Referenced by check().


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

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/classTCLAP_1_1SpecificationException-members.html000644 000765 000765 00000007250 11552414564 025400 0ustar00mesmes000000 000000 tclap: Member List

TCLAP::SpecificationException Member List

This is the complete list of members for TCLAP::SpecificationException, including all inherited members.
ArgException(const std::string &text="undefined exception", const std::string &id="undefined", const std::string &td="Generic ArgException")TCLAP::ArgException [inline]
argId() const TCLAP::ArgException [inline]
error() const TCLAP::ArgException [inline]
SpecificationException(const std::string &text="undefined exception", const std::string &id="undefined")TCLAP::SpecificationException [inline]
typeDescription() const TCLAP::ArgException [inline]
what() const TCLAP::ArgException [inline]
~ArgException()TCLAP::ArgException [inline, virtual]

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/classTCLAP_1_1SpecificationException.gif000644 000765 000765 00000001616 11552414564 023551 0ustar00mesmes000000 000000 GIF89aºPòÿÿÿÿÿÀŸŸ`ÀÀÀ!ù,ºPþ8ºÜþ0ÊI«½8k,ºÿ`(Ždižhª®l‹*n,Ïtmߌï|ïÿ!pH,E£rɤ%q¨4à™VIÔÏ4[⦶^[6Ì|òÂÞñˆšÖvä70Þ4ïÚ":Û}ÅÂA{pdxRZQWˆ‚‹‰t6vP|!q\–|j—U™Š•š ¡›ž¢¡‚¦<‘7x”y}‹Šk°§µc[œ´¦™§}›=«b“€yV©]Ç»¿kÀœ†¶¥ÑÓÁC­ÅÙÌ'h°£¯½®Ú¾ÓÎ;Â5ÝÛÄáÜ㿼´Œ¼·ÒôË>è4„бñíÙþ9CtËJ!Y@É"øÌÛ}Mš<’11¢ˆ‰˜–þ±ÆŽsJ9â#É“(g˜Lɲ剕.cÊìs¦Í”5oê측§ÏŸ@ƒ ú€Ñ£H“*]Ê´©Ó§P£5 µªÕ«X³jÝʵ+Õ®`ÊK¶,hͪ]˶­×´nãÊë­]ºxóêÍjîÞ¿€ý*¸°aº„+^\61ãÇùFžLYªãʘ3_ÎÌ9òæÎ M:ðèÒ¨óžNÍ:îêÖ°Õ¾ŽM[ììÚ¸·ÞÎÍÛêîÞÀŸþN\éðâÈÏ&_n™¹s§ÇŸóŽ.7õê´¯c‡­};ëîÞQƒG ¦¼ùóèÓ«_Ͼ½û÷ðã«ÿ< }çöï/ϯ9þÿþÄý@yGMQ`S$µ…Sv• Qö=(ÕƒFFYj%àHU˜áR zØ!S"†U¡U'NØVŠWmሠ’8 Œ/ƨTˆþ'Å;ΡŽùí(a3ò—b‰Dh¤’?†Xà’.ºèc7Ú8%’T d–\ú8d—_z æ‡,’Éa˜[ŠyåT>)#‡UÆyeƒ †©ægæ‰`ÞIá‚l¶ ¦ž}z#‹S&Jc‡t"Êà˜=9è¡iº¦¢n ªd¤„NŠ©”%Ê 'Ÿˆ¦¨¤¦J£™—žgŸ£Nj©™¢Š¥‚¸bj¥—¬ú©ê¬¶ªç¢Nþ(«®~VŠè‘Dz"¬Ã6Êä“9&;$NFH-œˆ$¶<^;§Ìbæhqçj˜®aë×n‹ïonóNX/€¥I‰omúî[¿þ¶pÀ©ÉgðÁ'¬ð ';tclap-1.2.1/docs/html/classTCLAP_1_1SpecificationException.html000644 000765 000765 00000014257 11552414564 023755 0ustar00mesmes000000 000000 tclap: TCLAP::SpecificationException Class Reference

TCLAP::SpecificationException Class Reference

Thrown from Arg and CmdLine when an Arg is improperly specified, e.g. More...

#include <ArgException.h>

Inheritance diagram for TCLAP::SpecificationException:
TCLAP::ArgException

List of all members.

Public Member Functions

 SpecificationException (const std::string &text="undefined exception", const std::string &id="undefined")
 Constructor.

Detailed Description

Thrown from Arg and CmdLine when an Arg is improperly specified, e.g.

same flag as another Arg, same name, etc.

Definition at line 167 of file ArgException.h.


Constructor & Destructor Documentation

TCLAP::SpecificationException::SpecificationException ( const std::string &  text = "undefined exception",
const std::string &  id = "undefined" 
) [inline]

Constructor.

Parameters:
text - The text of the exception.
id - The text identifying the argument source of the exception.

Definition at line 176 of file ArgException.h.


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

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/classTCLAP_1_1StdOutput-members.html000644 000765 000765 00000007135 11552414564 022716 0ustar00mesmes000000 000000 tclap: Member List

TCLAP::StdOutput Member List

This is the complete list of members for TCLAP::StdOutput, including all inherited members.
_longUsage(CmdLineInterface &c, std::ostream &os) const TCLAP::StdOutput [inline, protected]
_shortUsage(CmdLineInterface &c, std::ostream &os) const TCLAP::StdOutput [inline, protected]
failure(CmdLineInterface &c, ArgException &e)TCLAP::StdOutput [inline, virtual]
spacePrint(std::ostream &os, const std::string &s, int maxWidth, int indentSpaces, int secondLineOffset) const TCLAP::StdOutput [inline, protected]
usage(CmdLineInterface &c)TCLAP::StdOutput [inline, virtual]
version(CmdLineInterface &c)TCLAP::StdOutput [inline, virtual]
~CmdLineOutput()TCLAP::CmdLineOutput [inline, virtual]

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/classTCLAP_1_1StdOutput.gif000644 000765 000765 00000001433 11552414564 021062 0ustar00mesmes000000 000000 GIF89aPòÿÿÿÿÿÀŸŸ`ÀÀÀ!ù,Pþ8ºÜþ0ÊI«½8ŠÍ»ÿ`(Ždižhú)jë¾p,oìlßxNÖzïÿ-pH, „‚€rà0¢f‡).SÒ*TõiKßã ôÕfÉÉ©½5ef/v5Åíèû&¼Ï÷MokfJm[U„I‰PWH‡|io“†›˜‚ˆ™ˆ•—™ ˜tl—|–Œx¯¥”a‚´©¦·–¹§¯¶‡€®“ªl±ž·²]³£Æµ”u¢¾Ñe½¼Â²ÊÍ¡ÆÒØÌº‘¶wɃ'ã¸{Å×Ë’Ÿ¸êáÙé†ôõÓóÛ]뉋­÷ØZ©r•îXšz³|‘g¤aÃ`;ž9œèâ†3ê°(þ£Æ =‚9Q$É“DL¢\ÙC%Ë—62ÈœI³¦Í› èÜɳ§ÏŸ@ƒ êÓÑ£H“*]Ê´iS£N£JJµjQP­jÝÊ•+Ö¬]Ê;ô+V²hÓ’5 V­Û·SÛÂK7©Üºxóö¼«·o]¾~»,¸ðX†oE¬¸q\Ç»2ŽLéäʘƒ^ÎÌ™çæÎ?ƒÎ,ztåÒ¦#£Níx5kÅ®_Ž-[0íÚ~oãÖ«{7ÞÞ¾éw8ñÁ²©(_μ¹óçУKŸN½º’ã¯cϬ}{åîÞ#ƒïx|Òå;™¤ '¡êu¶wÏ3>{¥óš_š_~â}ÿ?µ×߀@@øß}çIµ~ ú„àz&HŸ{Ú]7ß„R¨áù…â„ç‘áz¦˜ ʇ`‹J¸"€1*H£ƒ&6ˆ¢Œ<Ú8âƒõ‰èc‹ Iä‘2$R^ˆá;ꈤ(9ãIò—#“:¥[F c• tclap: TCLAP::StdOutput Class Reference

TCLAP::StdOutput Class Reference

A class that isolates any output from the CmdLine object so that it may be easily modified. More...

#include <StdOutput.h>

Inheritance diagram for TCLAP::StdOutput:
TCLAP::CmdLineOutput

List of all members.

Public Member Functions

virtual void usage (CmdLineInterface &c)
 Prints the usage to stdout.
virtual void version (CmdLineInterface &c)
 Prints the version to stdout.
virtual void failure (CmdLineInterface &c, ArgException &e)
 Prints (to stderr) an error message, short usage Can be overridden to produce alternative behavior.

Protected Member Functions

void _shortUsage (CmdLineInterface &c, std::ostream &os) const
 Writes a brief usage message with short args.
void _longUsage (CmdLineInterface &c, std::ostream &os) const
 Writes a longer usage message with long and short args, provides descriptions and prints message.
void spacePrint (std::ostream &os, const std::string &s, int maxWidth, int indentSpaces, int secondLineOffset) const
 This function inserts line breaks and indents long strings according the params input.

Detailed Description

A class that isolates any output from the CmdLine object so that it may be easily modified.

Definition at line 43 of file StdOutput.h.


Member Function Documentation

void TCLAP::StdOutput::_longUsage ( CmdLineInterface c,
std::ostream &  os 
) const [inline, protected]

Writes a longer usage message with long and short args, provides descriptions and prints message.

Parameters:
c - The CmdLine object the output is generated for.
os - The stream to write the message to.

Definition at line 191 of file StdOutput.h.

References TCLAP::XorHandler::contains(), TCLAP::CmdLineInterface::getArgList(), TCLAP::CmdLineInterface::getMessage(), TCLAP::CmdLineInterface::getXorHandler(), TCLAP::XorHandler::getXorList(), and spacePrint().

Referenced by usage().

void TCLAP::StdOutput::_shortUsage ( CmdLineInterface c,
std::ostream &  os 
) const [inline, protected]

Writes a brief usage message with short args.

Parameters:
c - The CmdLine object the output is generated for.
os - The stream to write the message to.

Definition at line 156 of file StdOutput.h.

References TCLAP::XorHandler::contains(), TCLAP::CmdLineInterface::getArgList(), TCLAP::CmdLineInterface::getProgramName(), TCLAP::CmdLineInterface::getXorHandler(), TCLAP::XorHandler::getXorList(), and spacePrint().

Referenced by failure(), and usage().

void TCLAP::StdOutput::failure ( CmdLineInterface c,
ArgException e 
) [inline, virtual]

Prints (to stderr) an error message, short usage Can be overridden to produce alternative behavior.

Parameters:
c - The CmdLine object the output is generated for.
e - The ArgException that caused the failure.

Implements TCLAP::CmdLineOutput.

Definition at line 131 of file StdOutput.h.

References _shortUsage(), TCLAP::ArgException::argId(), TCLAP::ArgException::error(), TCLAP::CmdLineInterface::getProgramName(), TCLAP::CmdLineInterface::hasHelpAndVersion(), and usage().

void TCLAP::StdOutput::spacePrint ( std::ostream &  os,
const std::string &  s,
int  maxWidth,
int  indentSpaces,
int  secondLineOffset 
) const [inline, protected]

This function inserts line breaks and indents long strings according the params input.

It will only break lines at spaces, commas and pipes.

Parameters:
os - The stream to be printed to.
s - The string to be printed.
maxWidth - The maxWidth allowed for the output line.
indentSpaces - The number of spaces to indent the first line.
secondLineOffset - The number of spaces to indent the second and all subsequent lines in addition to indentSpaces.

Definition at line 229 of file StdOutput.h.

Referenced by _longUsage(), and _shortUsage().

void TCLAP::StdOutput::usage ( CmdLineInterface c  )  [inline, virtual]

Prints the usage to stdout.

Can be overridden to produce alternative behavior.

Parameters:
c - The CmdLine object the output is generated for.

Implements TCLAP::CmdLineOutput.

Definition at line 117 of file StdOutput.h.

References _longUsage(), and _shortUsage().

Referenced by failure().

void TCLAP::StdOutput::version ( CmdLineInterface c  )  [inline, virtual]

Prints the version to stdout.

Can be overridden to produce alternative behavior.

Parameters:
c - The CmdLine object the output is generated for.

Implements TCLAP::CmdLineOutput.

Definition at line 108 of file StdOutput.h.

References TCLAP::CmdLineInterface::getProgramName(), and TCLAP::CmdLineInterface::getVersion().


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

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/classTCLAP_1_1SwitchArg-members.html000644 000765 000765 00000034226 11552414564 022637 0ustar00mesmes000000 000000 tclap: Member List

TCLAP::SwitchArg Member List

This is the complete list of members for TCLAP::SwitchArg, including all inherited members.
_acceptsMultipleValuesTCLAP::Arg [protected]
_alreadySetTCLAP::Arg [protected]
_checkWithVisitor() const TCLAP::Arg [inline, protected]
_defaultTCLAP::SwitchArg [protected]
_descriptionTCLAP::Arg [protected]
_flagTCLAP::Arg [protected]
_hasBlanks(const std::string &s) const TCLAP::Arg [inline]
_ignoreableTCLAP::Arg [protected]
_nameTCLAP::Arg [protected]
_requiredTCLAP::Arg [protected]
_requireLabelTCLAP::Arg [protected]
_valueTCLAP::SwitchArg [protected]
_valueRequiredTCLAP::Arg [protected]
_visitorTCLAP::Arg [protected]
_xorSetTCLAP::Arg [protected]
acceptsMultipleValues()TCLAP::Arg [inline, virtual]
addToList(std::list< Arg * > &argList) const TCLAP::Arg [inline, virtual]
allowMore()TCLAP::Arg [inline, virtual]
Arg(const std::string &flag, const std::string &name, const std::string &desc, bool req, bool valreq, Visitor *v=NULL)TCLAP::Arg [inline, protected]
argMatches(const std::string &s) const TCLAP::Arg [inline, virtual]
beginIgnoring()TCLAP::Arg [inline, static]
blankChar()TCLAP::Arg [inline, static]
combinedSwitchesMatch(std::string &combined)TCLAP::SwitchArg [inline]
delimiter()TCLAP::Arg [inline, static]
flagStartChar()TCLAP::Arg [inline, static]
flagStartString()TCLAP::Arg [inline, static]
forceRequired()TCLAP::Arg [inline]
getDescription() const TCLAP::Arg [inline]
getFlag() const TCLAP::Arg [inline]
getName() const TCLAP::Arg [inline]
getValue()TCLAP::SwitchArg [inline]
ignoreNameString()TCLAP::Arg [inline, static]
ignoreRest()TCLAP::Arg [inline, static]
isIgnoreable() const TCLAP::Arg [inline]
isRequired() const TCLAP::Arg [inline, virtual]
isSet() const TCLAP::Arg [inline]
isValueRequired() const TCLAP::Arg [inline]
longID(const std::string &valueId="val") const TCLAP::Arg [inline, virtual]
nameStartString()TCLAP::Arg [inline, static]
operator==(const Arg &a) const TCLAP::Arg [inline, virtual]
processArg(int *i, std::vector< std::string > &args)TCLAP::SwitchArg [inline, virtual]
reset()TCLAP::SwitchArg [inline, virtual]
setDelimiter(char c)TCLAP::Arg [inline, static]
setRequireLabel(const std::string &s)TCLAP::Arg [inline]
shortID(const std::string &valueId="val") const TCLAP::Arg [inline, virtual]
SwitchArg(const std::string &flag, const std::string &name, const std::string &desc, bool def=false, Visitor *v=NULL)TCLAP::SwitchArg [inline]
SwitchArg(const std::string &flag, const std::string &name, const std::string &desc, CmdLineInterface &parser, bool def=false, Visitor *v=NULL)TCLAP::SwitchArg [inline]
toString() const TCLAP::Arg [inline, virtual]
trimFlag(std::string &flag, std::string &value) const TCLAP::Arg [inline, virtual]
xorSet()TCLAP::Arg [inline]
~Arg()TCLAP::Arg [inline, virtual]

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/classTCLAP_1_1SwitchArg.gif000644 000765 000765 00000002051 11552414564 020777 0ustar00mesmes000000 000000 GIF89aˆòÿÿÿÿÿÀŸŸ`ÀÀÀ!ù,ˆþ8ºÜþ0ÊI«½ŠÍ»ÿ`(Ždižhê)jë¾p, ìlßx>Özïÿ*pH, ¤2ÀY6EÌÎ2:¢OG¢U`nŸ]i•{Ee‡aÐwÃL³ÇÛ6[~=#Åêü{¿÷>ù\~ev?nkTŠNP|Š„e€kdSŽ$˜Žu’“‡x¢}&qœ™C…>¦_¬•ˆ±s‘“–RJMŒ¯z‚§º·Dª¶ÄšµÅÈ%FŸÉÎ!¹ÇÏÓÏÃÔ×@ÖØÛ9ÚÜß2Þàã-æçèéêë îïðñòóôõö÷ñøûüýþÿÔ'° Áƒæ3@P¡Ã‡2l±¢Å‹ö&2ÄÈþ±ãE=Ši0$É“(ù™Lɲ%¼•.c¢„)³¦Gš6sZÄ©³§Cž>ƒ–J"ТH÷MÊ”ÞÒ¦Pß= u*U¦V¯"ͪ•(×®A¿‚í)vlβfk¢Ms-Û–nߦŒ+÷$ݺ#ïâ½ivŠß¿€ L¸°áÈØ 5 㦎',¹(åÊB/óûûnIçz‹áM±çù^èÐóPËS]Q³?ÖªOÓ[[ôlÛûXã^ @÷C×ýj§¾-ÜïÞ¼¦YÉrØÈmŸ¦-øæÝñ|£ÞŽ[¶ñâܽsïí=ºyòÊÑ´ž»ûôæG›/>½îññwãÿÇ_þñì©•vÞuÑÕW`rñ ˜|ü×ÞgÃØÝƒö!GÝ.|û½æ V¢ˆ¦é!†ôA¸¡†’Ö"i«9÷ŒjÇ¡Œª8~ååØÙ…õ‡™C/ÎVäëØ ’áä‘Lž$d”)MI¥”P^é‘•ZŠ¤Ø—`†)æ˜aš¥W—C¡)ÓDj¶µQ›,ç\ͧpáy§ž3ñÙ§Ÿ$ hFƒæU¨H‚*O¢Š¾Ô(GŒ> @¤RÚ¨¥Šbz¨¦…r:¨§€‚ꧨ|’ª§©x¢j§ªs²Š;°ªc@¬´žCέÝ4ƒë®0ˆÃë¯+è ì°%øJì¯Güñ¥K¨ŒH4zÈÒË#Ð6Œ´—ô*,*iTB%ÐÄ‹/à–bm¶°`G(;qˆ·âÎBF.äÊ;ï³s@¬¦xñ-ë:Ûî2Ý’¢¯¼‚,"ÊÁ–t²/Á¸ôñEÀí^kï&y0ì0)sœ0 gq°Ð r¾ûZ<íÇŸÜpË/K»Hµ#w@±Ë󢌻Ç̲Á÷úœmÏ!Ÿ|s¹®È’î/>³LnÍ?ûRïÈ)¼íÉŒ<û°ÒÓÞB0þzMó/§¼ñÂO|õ±ÀªÍ6±ËXý6ÜUË=÷Ývã}·±zÃwßÛü ø5µnøá±&;tclap-1.2.1/docs/html/classTCLAP_1_1SwitchArg.html000644 000765 000765 00000054043 11552414564 021206 0ustar00mesmes000000 000000 tclap: TCLAP::SwitchArg Class Reference

TCLAP::SwitchArg Class Reference

A simple switch argument. More...

#include <SwitchArg.h>

Inheritance diagram for TCLAP::SwitchArg:
TCLAP::Arg TCLAP::MultiSwitchArg

List of all members.

Public Member Functions

 SwitchArg (const std::string &flag, const std::string &name, const std::string &desc, bool def=false, Visitor *v=NULL)
 SwitchArg constructor.
 SwitchArg (const std::string &flag, const std::string &name, const std::string &desc, CmdLineInterface &parser, bool def=false, Visitor *v=NULL)
 SwitchArg constructor.
virtual bool processArg (int *i, std::vector< std::string > &args)
 Handles the processing of the argument.
bool combinedSwitchesMatch (std::string &combined)
 Checks a string to see if any of the chars in the string match the flag for this Switch.
bool getValue ()
 Returns bool, whether or not the switch has been set.
virtual void reset ()
 Clears the Arg object and allows it to be reused by new command lines.

Protected Attributes

bool _value
 The value of the switch.
bool _default
 Used to support the reset() method so that ValueArg can be reset to their constructed value.

Detailed Description

A simple switch argument.

If the switch is set on the command line, then the getValue method will return the opposite of the default value for the switch.

Definition at line 39 of file SwitchArg.h.


Constructor & Destructor Documentation

TCLAP::SwitchArg::SwitchArg ( const std::string &  flag,
const std::string &  name,
const std::string &  desc,
bool  def = false,
Visitor v = NULL 
) [inline]

SwitchArg constructor.

Parameters:
flag - The one character flag that identifies this argument on the command line.
name - A one word name for the argument. Can be used as a long flag on the command line.
desc - A description of what the argument is for or does.
def - The default value for this Switch.
v - An optional visitor. You probably should not use this unless you have a very good reason.

Definition at line 135 of file SwitchArg.h.

TCLAP::SwitchArg::SwitchArg ( const std::string &  flag,
const std::string &  name,
const std::string &  desc,
CmdLineInterface parser,
bool  def = false,
Visitor v = NULL 
) [inline]

SwitchArg constructor.

Parameters:
flag - The one character flag that identifies this argument on the command line.
name - A one word name for the argument. Can be used as a long flag on the command line.
desc - A description of what the argument is for or does.
parser - A CmdLine parser object to add this Arg to
def - The default value for this Switch.
v - An optional visitor. You probably should not use this unless you have a very good reason.

Definition at line 145 of file SwitchArg.h.

References TCLAP::CmdLineInterface::add().


Member Function Documentation

bool TCLAP::SwitchArg::combinedSwitchesMatch ( std::string &  combined  )  [inline]

Checks a string to see if any of the chars in the string match the flag for this Switch.

Definition at line 169 of file SwitchArg.h.

References TCLAP::Arg::_flag, TCLAP::Arg::blankChar(), TCLAP::Arg::delimiter(), TCLAP::Arg::flagStartString(), and TCLAP::Arg::nameStartString().

Referenced by processArg(), and TCLAP::MultiSwitchArg::processArg().

bool TCLAP::SwitchArg::getValue (  )  [inline]

Returns bool, whether or not the switch has been set.

Reimplemented in TCLAP::MultiSwitchArg.

Definition at line 158 of file SwitchArg.h.

References _value.

bool TCLAP::SwitchArg::processArg ( int *  i,
std::vector< std::string > &  args 
) [inline, virtual]

Handles the processing of the argument.

This re-implements the Arg version of this method to set the _value of the argument appropriately.

Parameters:
i - Pointer the the current argument in the list.
args - Mutable list of strings. Passed in from main().

Implements TCLAP::Arg.

Reimplemented in TCLAP::MultiSwitchArg.

Definition at line 223 of file SwitchArg.h.

References TCLAP::Arg::_ignoreable, TCLAP::Arg::argMatches(), combinedSwitchesMatch(), TCLAP::Arg::ignoreRest(), and TCLAP::Arg::toString().

void TCLAP::SwitchArg::reset (  )  [inline, virtual]

Clears the Arg object and allows it to be reused by new command lines.

Reimplemented from TCLAP::Arg.

Reimplemented in TCLAP::MultiSwitchArg.

Definition at line 255 of file SwitchArg.h.

References _default, and _value.


Member Data Documentation

bool TCLAP::SwitchArg::_default [protected]

Used to support the reset() method so that ValueArg can be reset to their constructed value.

Reimplemented in TCLAP::MultiSwitchArg.

Definition at line 52 of file SwitchArg.h.

Referenced by reset().

bool TCLAP::SwitchArg::_value [protected]

The value of the switch.

Reimplemented in TCLAP::MultiSwitchArg.

Definition at line 46 of file SwitchArg.h.

Referenced by getValue(), and reset().


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

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/classTCLAP_1_1UnlabeledMultiArg-members.html000644 000765 000765 00000046633 11552414564 024311 0ustar00mesmes000000 000000 tclap: Member List

TCLAP::UnlabeledMultiArg< T > Member List

This is the complete list of members for TCLAP::UnlabeledMultiArg< T >, including all inherited members.
_acceptsMultipleValuesTCLAP::Arg [protected]
_allowMoreTCLAP::MultiArg< T > [protected]
_alreadySetTCLAP::Arg [protected]
_checkWithVisitor() const TCLAP::Arg [inline, protected]
_constraintTCLAP::MultiArg< T > [protected]
_descriptionTCLAP::Arg [protected]
_extractValue(const std::string &val)TCLAP::MultiArg< T > [inline, protected]
_flagTCLAP::Arg [protected]
_hasBlanks(const std::string &s) const TCLAP::Arg [inline]
_ignoreableTCLAP::Arg [protected]
_nameTCLAP::Arg [protected]
_requiredTCLAP::Arg [protected]
_requireLabelTCLAP::Arg [protected]
_typeDescTCLAP::MultiArg< T > [protected]
_valueRequiredTCLAP::Arg [protected]
_valuesTCLAP::MultiArg< T > [protected]
_visitorTCLAP::Arg [protected]
_xorSetTCLAP::Arg [protected]
acceptsMultipleValues()TCLAP::Arg [inline, virtual]
addToList(std::list< Arg * > &argList) const TCLAP::UnlabeledMultiArg< T > [inline, virtual]
TCLAP::MultiArg::addToList(std::list< Arg * > &argList) const TCLAP::Arg [inline, virtual]
allowMore()TCLAP::MultiArg< T > [inline, virtual]
Arg(const std::string &flag, const std::string &name, const std::string &desc, bool req, bool valreq, Visitor *v=NULL)TCLAP::Arg [inline, protected]
argMatches(const std::string &s) const TCLAP::Arg [inline, virtual]
begin() const TCLAP::MultiArg< T > [inline]
beginIgnoring()TCLAP::Arg [inline, static]
blankChar()TCLAP::Arg [inline, static]
const_iterator typedefTCLAP::MultiArg< T >
container_type typedefTCLAP::MultiArg< T >
delimiter()TCLAP::Arg [inline, static]
end() const TCLAP::MultiArg< T > [inline]
flagStartChar()TCLAP::Arg [inline, static]
flagStartString()TCLAP::Arg [inline, static]
forceRequired()TCLAP::Arg [inline]
getDescription() const TCLAP::Arg [inline]
getFlag() const TCLAP::Arg [inline]
getName() const TCLAP::Arg [inline]
getValue()TCLAP::MultiArg< T > [inline]
ignoreNameString()TCLAP::Arg [inline, static]
ignoreRest()TCLAP::Arg [inline, static]
isIgnoreable() const TCLAP::Arg [inline]
isRequired() const TCLAP::MultiArg< T > [inline, virtual]
isSet() const TCLAP::Arg [inline]
isValueRequired() const TCLAP::Arg [inline]
iterator typedefTCLAP::MultiArg< T >
longID(const std::string &val="val") const TCLAP::UnlabeledMultiArg< T > [inline, virtual]
MultiArg(const std::string &flag, const std::string &name, const std::string &desc, bool req, const std::string &typeDesc, Visitor *v=NULL)TCLAP::MultiArg< T > [inline]
MultiArg(const std::string &flag, const std::string &name, const std::string &desc, bool req, const std::string &typeDesc, CmdLineInterface &parser, Visitor *v=NULL)TCLAP::MultiArg< T > [inline]
MultiArg(const std::string &flag, const std::string &name, const std::string &desc, bool req, Constraint< T > *constraint, Visitor *v=NULL)TCLAP::MultiArg< T > [inline]
MultiArg(const std::string &flag, const std::string &name, const std::string &desc, bool req, Constraint< T > *constraint, CmdLineInterface &parser, Visitor *v=NULL)TCLAP::MultiArg< T > [inline]
nameStartString()TCLAP::Arg [inline, static]
operator==(const Arg &a) const TCLAP::UnlabeledMultiArg< T > [inline, virtual]
TCLAP::MultiArg::operator==(const Arg &a) const TCLAP::Arg [inline, virtual]
processArg(int *i, std::vector< std::string > &args)TCLAP::UnlabeledMultiArg< T > [inline, virtual]
reset()TCLAP::MultiArg< T > [inline, virtual]
setDelimiter(char c)TCLAP::Arg [inline, static]
setRequireLabel(const std::string &s)TCLAP::Arg [inline]
shortID(const std::string &val="val") const TCLAP::UnlabeledMultiArg< T > [inline, virtual]
toString() const TCLAP::Arg [inline, virtual]
trimFlag(std::string &flag, std::string &value) const TCLAP::Arg [inline, virtual]
UnlabeledMultiArg(const std::string &name, const std::string &desc, bool req, const std::string &typeDesc, bool ignoreable=false, Visitor *v=NULL)TCLAP::UnlabeledMultiArg< T > [inline]
UnlabeledMultiArg(const std::string &name, const std::string &desc, bool req, const std::string &typeDesc, CmdLineInterface &parser, bool ignoreable=false, Visitor *v=NULL)TCLAP::UnlabeledMultiArg< T > [inline]
UnlabeledMultiArg(const std::string &name, const std::string &desc, bool req, Constraint< T > *constraint, bool ignoreable=false, Visitor *v=NULL)TCLAP::UnlabeledMultiArg< T > [inline]
UnlabeledMultiArg(const std::string &name, const std::string &desc, bool req, Constraint< T > *constraint, CmdLineInterface &parser, bool ignoreable=false, Visitor *v=NULL)TCLAP::UnlabeledMultiArg< T > [inline]
xorSet()TCLAP::Arg [inline]
~Arg()TCLAP::Arg [inline, virtual]

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/classTCLAP_1_1UnlabeledMultiArg.gif000644 000765 000765 00000002443 11552414564 022451 0ustar00mesmes000000 000000 GIF89aÁˆòÿÿÿÿÿÀŸŸ`ÀÀÀ!ù,Áˆþ8ºÜþ0ÊI«½8ëÍ„ÿ`(Ždižhª®l뾂ÏtmßxþÉzïÿÀàˆ',È1Él:qËç*@­>Vlé ²rM_é/*ž†ÂÜpW€^oÙåñ îjÔZ»¿V_Ót+d‚`n"|_ŠniZ{]l|…"„”w‡g˜{Yoœ ‹—&–£™“‰žp)^‡¢¦Cs°Ÿ š¶Ž“·¡Ž«³!¥³~Œˆ¶¹™½¢T¾•²ËºÊÐѽÃÕÈ×ËÀÎËÆ£ÜÝ—¯Ýáâ”Uçæêí”ìîñeðòõMôöùFøúýr H° A*\Ȱ¡Ã‡#JœH‘¡Š3jÜÈþ±£Ç ^ I²¤É“(S0ÀR¥Ë—0c’d9R¦Í›8mÒl™³§ÏŸwÖJ´¨Q‹G“*%:t©Ó§.›BJõ£ÔªX³N¼ªµ«×„\¿Š­v¬Y§eϪ5šv­[ŸmßÊÕ9·.S»x{ÆÍË7äÞ¾€9þ L¸âàˆ!NÌxáâÆCN,yráÊ–cÎÜw3缞?Û -z.i·S«^ͺõ°¥ð‹M›ÆìÚ¸[ÜÎÍÅîÞÀcñMRñ\~T[¾)¯Ä¿ ù­‚'TÕôœIþ)‘6Ò÷5~ìyŸS$ŠwÚ']a€¾ÓCUùZ¼ÈEj´Èùþ~öÙíÇ]z[„gC}(hwß+­Ø{ÿˆM(ßThà ž  yÒÓÝ*þ]Ga:ùåÞ‰º¡!âws,"."¾X"…j˜â +Η‹Ôœxc|3y#ˆnrÇŽ0ôHàvÇyds*"c|0N¸^ŠLúàdpöµó%˜Jv9Ïxd§Þ9c¦ [›nögœùÌIg=vÞk|öéçŸ è „j衈&ªè¢Œ6ZèiŽF*餔Vj饘 i¦œvêé§ *JS¨¤–jꩨ®ÄSª¬¶êê«‚ 무֊©¬¶æªë®‡nÊë¯ÀJêk°Äkè°Æ&þK,²Ê6»+³ÎFK+´ÒVÛ*µÖfk*¶Úvû)·Þ†{«¸ä& n¹è6znºì"ºn»ðjO¾K/»öÞ‹n¾ú’Ëo¿áþ p·œmÁW‹pÂÑ.Ìp³?l®ÄGq®Ñe¬ñÆwìñÇ ‡,òÈ$—ìEÅ(+JEÊ,ºrË0ðrÌ,ÏL3Ê6ËLÜ Vðœh…žŒ(Ð>ýs£D/JtÒ„2´ K?ýit“æ\ôÕ2Cm4Ó\µÔ‡:íµÒP;muÑbgv¦k3zvÖ_Ç­u×ríµÚIç=3Ð6Wqµß<ó]vÐQßÍ÷Ê]› 7â’¶­ôÚt»ößMì~·á…¾xæh_žyÔy/Þ¹èž7ý9áGÝöÛ‘ƒ]¹ç=Múì£Ïι喇®ùí¡_nwï:“­rÚ¬¿.¹Ë±Û­òë½ëýró±/ýè‚ÛŽ»ó}Sþ¶ë?› ¹ñÜ+O{긓Þ|íè—.úíæ—¯þï ß}Øßƒ¯ù×÷“oýþÏ«¿;æï;]ûÄ<é¡Nv¤u¶·é1or¿ü"(¸Ã™®€}«^ãwºü/xŽ;¥¶w3]…ÐS$,!¬>xªªðUL• _H¯Ò0^6¼a»r¨Ãtñ°‡å2™‡HÄ"ñˆFL;tclap-1.2.1/docs/html/classTCLAP_1_1UnlabeledMultiArg.html000644 000765 000765 00000104615 11552414564 022654 0ustar00mesmes000000 000000 tclap: TCLAP::UnlabeledMultiArg< T > Class Template Reference

TCLAP::UnlabeledMultiArg< T > Class Template Reference

Just like a MultiArg, except that the arguments are unlabeled. More...

#include <UnlabeledMultiArg.h>

Inheritance diagram for TCLAP::UnlabeledMultiArg< T >:
TCLAP::MultiArg< T > TCLAP::Arg

List of all members.

Public Member Functions

 UnlabeledMultiArg (const std::string &name, const std::string &desc, bool req, const std::string &typeDesc, bool ignoreable=false, Visitor *v=NULL)
 Constructor.
 UnlabeledMultiArg (const std::string &name, const std::string &desc, bool req, const std::string &typeDesc, CmdLineInterface &parser, bool ignoreable=false, Visitor *v=NULL)
 Constructor.
 UnlabeledMultiArg (const std::string &name, const std::string &desc, bool req, Constraint< T > *constraint, bool ignoreable=false, Visitor *v=NULL)
 Constructor.
 UnlabeledMultiArg (const std::string &name, const std::string &desc, bool req, Constraint< T > *constraint, CmdLineInterface &parser, bool ignoreable=false, Visitor *v=NULL)
 Constructor.
virtual bool processArg (int *i, std::vector< std::string > &args)
 Handles the processing of the argument.
virtual std::string shortID (const std::string &val="val") const
 Returns the a short id string.
virtual std::string longID (const std::string &val="val") const
 Returns the a long id string.
virtual bool operator== (const Arg &a) const
 Opertor ==.
virtual void addToList (std::list< Arg * > &argList) const
 Pushes this to back of list rather than front.

Detailed Description

template<class T>
class TCLAP::UnlabeledMultiArg< T >

Just like a MultiArg, except that the arguments are unlabeled.

Basically, this Arg will slurp up everything that hasn't been matched to another Arg.

Definition at line 40 of file UnlabeledMultiArg.h.


Constructor & Destructor Documentation

template<class T >
TCLAP::UnlabeledMultiArg< T >::UnlabeledMultiArg ( const std::string &  name,
const std::string &  desc,
bool  req,
const std::string &  typeDesc,
bool  ignoreable = false,
Visitor v = NULL 
) [inline]

Constructor.

Parameters:
name - The name of the Arg. Note that this is used for identification, not as a long flag.
desc - A description of what the argument is for or does.
req - Whether the argument is required on the command line.
typeDesc - A short, human readable description of the type that this object expects. This is used in the generation of the USAGE statement. The goal is to be helpful to the end user of the program.
ignoreable - Whether or not this argument can be ignored using the "--" flag.
v - An optional visitor. You probably should not use this unless you have a very good reason.

Definition at line 187 of file UnlabeledMultiArg.h.

References TCLAP::Arg::_ignoreable, TCLAP::OptionalUnlabeledTracker::check(), and TCLAP::Arg::toString().

template<class T >
TCLAP::UnlabeledMultiArg< T >::UnlabeledMultiArg ( const std::string &  name,
const std::string &  desc,
bool  req,
const std::string &  typeDesc,
CmdLineInterface parser,
bool  ignoreable = false,
Visitor v = NULL 
) [inline]

Constructor.

Parameters:
name - The name of the Arg. Note that this is used for identification, not as a long flag.
desc - A description of what the argument is for or does.
req - Whether the argument is required on the command line.
typeDesc - A short, human readable description of the type that this object expects. This is used in the generation of the USAGE statement. The goal is to be helpful to the end user of the program.
parser - A CmdLine parser object to add this Arg to
ignoreable - Whether or not this argument can be ignored using the "--" flag.
v - An optional visitor. You probably should not use this unless you have a very good reason.

Definition at line 200 of file UnlabeledMultiArg.h.

References TCLAP::Arg::_ignoreable, TCLAP::CmdLineInterface::add(), TCLAP::OptionalUnlabeledTracker::check(), and TCLAP::Arg::toString().

template<class T >
TCLAP::UnlabeledMultiArg< T >::UnlabeledMultiArg ( const std::string &  name,
const std::string &  desc,
bool  req,
Constraint< T > *  constraint,
bool  ignoreable = false,
Visitor v = NULL 
) [inline]

Constructor.

Parameters:
name - The name of the Arg. Note that this is used for identification, not as a long flag.
desc - A description of what the argument is for or does.
req - Whether the argument is required on the command line.
constraint - A pointer to a Constraint object used to constrain this Arg.
ignoreable - Whether or not this argument can be ignored using the "--" flag.
v - An optional visitor. You probably should not use this unless you have a very good reason.

Definition at line 216 of file UnlabeledMultiArg.h.

References TCLAP::Arg::_ignoreable, TCLAP::OptionalUnlabeledTracker::check(), and TCLAP::Arg::toString().

template<class T >
TCLAP::UnlabeledMultiArg< T >::UnlabeledMultiArg ( const std::string &  name,
const std::string &  desc,
bool  req,
Constraint< T > *  constraint,
CmdLineInterface parser,
bool  ignoreable = false,
Visitor v = NULL 
) [inline]

Constructor.

Parameters:
name - The name of the Arg. Note that this is used for identification, not as a long flag.
desc - A description of what the argument is for or does.
req - Whether the argument is required on the command line.
constraint - A pointer to a Constraint object used to constrain this Arg.
parser - A CmdLine parser object to add this Arg to
ignoreable - Whether or not this argument can be ignored using the "--" flag.
v - An optional visitor. You probably should not use this unless you have a very good reason.

Definition at line 229 of file UnlabeledMultiArg.h.

References TCLAP::Arg::_ignoreable, TCLAP::CmdLineInterface::add(), TCLAP::OptionalUnlabeledTracker::check(), and TCLAP::Arg::toString().


Member Function Documentation

template<class T >
void TCLAP::UnlabeledMultiArg< T >::addToList ( std::list< Arg * > &  argList  )  const [inline, virtual]

Pushes this to back of list rather than front.

Parameters:
argList - The list this should be added to.

Definition at line 294 of file UnlabeledMultiArg.h.

template<class T >
std::string TCLAP::UnlabeledMultiArg< T >::longID ( const std::string &  val = "val"  )  const [inline, virtual]

Returns the a long id string.

Used in the usage.

Parameters:
val - value to be used.

Reimplemented from TCLAP::MultiArg< T >.

Definition at line 278 of file UnlabeledMultiArg.h.

References TCLAP::MultiArg< T >::_typeDesc.

template<class T >
bool TCLAP::UnlabeledMultiArg< T >::operator== ( const Arg a  )  const [inline, virtual]

Opertor ==.

Parameters:
a - The Arg to be compared to this.

Definition at line 285 of file UnlabeledMultiArg.h.

References TCLAP::Arg::_description, TCLAP::Arg::_name, TCLAP::Arg::getDescription(), and TCLAP::Arg::getName().

template<class T >
bool TCLAP::UnlabeledMultiArg< T >::processArg ( int *  i,
std::vector< std::string > &  args 
) [inline, virtual]

Handles the processing of the argument.

This re-implements the Arg version of this method to set the _value of the argument appropriately. It knows the difference between labeled and unlabeled.

Parameters:
i - Pointer the the current argument in the list.
args - Mutable list of strings. Passed from main().

Reimplemented from TCLAP::MultiArg< T >.

Definition at line 245 of file UnlabeledMultiArg.h.

References TCLAP::Arg::_alreadySet, TCLAP::MultiArg< T >::_extractValue(), and TCLAP::Arg::_hasBlanks().

template<class T >
std::string TCLAP::UnlabeledMultiArg< T >::shortID ( const std::string &  val = "val"  )  const [inline, virtual]

Returns the a short id string.

Used in the usage.

Parameters:
val - value to be used.

Reimplemented from TCLAP::MultiArg< T >.

Definition at line 271 of file UnlabeledMultiArg.h.

References TCLAP::MultiArg< T >::_typeDesc.


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

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/classTCLAP_1_1UnlabeledValueArg-members.html000644 000765 000765 00000044331 11552414564 024264 0ustar00mesmes000000 000000 tclap: Member List

TCLAP::UnlabeledValueArg< T > Member List

This is the complete list of members for TCLAP::UnlabeledValueArg< T >, including all inherited members.
_acceptsMultipleValuesTCLAP::Arg [protected]
_alreadySetTCLAP::Arg [protected]
_checkWithVisitor() const TCLAP::Arg [inline, protected]
_constraintTCLAP::ValueArg< T > [protected]
_defaultTCLAP::ValueArg< T > [protected]
_descriptionTCLAP::Arg [protected]
_extractValue(const std::string &val)TCLAP::ValueArg< T > [inline, protected]
_flagTCLAP::Arg [protected]
_hasBlanks(const std::string &s) const TCLAP::Arg [inline]
_ignoreableTCLAP::Arg [protected]
_nameTCLAP::Arg [protected]
_requiredTCLAP::Arg [protected]
_requireLabelTCLAP::Arg [protected]
_typeDescTCLAP::ValueArg< T > [protected]
_valueTCLAP::ValueArg< T > [protected]
_valueRequiredTCLAP::Arg [protected]
_visitorTCLAP::Arg [protected]
_xorSetTCLAP::Arg [protected]
acceptsMultipleValues()TCLAP::Arg [inline, virtual]
addToList(std::list< Arg * > &argList) const TCLAP::UnlabeledValueArg< T > [inline, virtual]
TCLAP::ValueArg::addToList(std::list< Arg * > &argList) const TCLAP::Arg [inline, virtual]
allowMore()TCLAP::Arg [inline, virtual]
Arg(const std::string &flag, const std::string &name, const std::string &desc, bool req, bool valreq, Visitor *v=NULL)TCLAP::Arg [inline, protected]
argMatches(const std::string &s) const TCLAP::Arg [inline, virtual]
beginIgnoring()TCLAP::Arg [inline, static]
blankChar()TCLAP::Arg [inline, static]
delimiter()TCLAP::Arg [inline, static]
flagStartChar()TCLAP::Arg [inline, static]
flagStartString()TCLAP::Arg [inline, static]
forceRequired()TCLAP::Arg [inline]
getDescription() const TCLAP::Arg [inline]
getFlag() const TCLAP::Arg [inline]
getName() const TCLAP::Arg [inline]
getValue()TCLAP::ValueArg< T > [inline]
ignoreNameString()TCLAP::Arg [inline, static]
ignoreRest()TCLAP::Arg [inline, static]
isIgnoreable() const TCLAP::Arg [inline]
isRequired() const TCLAP::Arg [inline, virtual]
isSet() const TCLAP::Arg [inline]
isValueRequired() const TCLAP::Arg [inline]
longID(const std::string &val="val") const TCLAP::UnlabeledValueArg< T > [inline, virtual]
nameStartString()TCLAP::Arg [inline, static]
operator==(const Arg &a) const TCLAP::UnlabeledValueArg< T > [inline, virtual]
TCLAP::ValueArg::operator==(const Arg &a) const TCLAP::Arg [inline, virtual]
processArg(int *i, std::vector< std::string > &args)TCLAP::UnlabeledValueArg< T > [inline, virtual]
reset()TCLAP::ValueArg< T > [inline, virtual]
setDelimiter(char c)TCLAP::Arg [inline, static]
setRequireLabel(const std::string &s)TCLAP::Arg [inline]
shortID(const std::string &val="val") const TCLAP::UnlabeledValueArg< T > [inline, virtual]
toString() const TCLAP::Arg [inline, virtual]
trimFlag(std::string &flag, std::string &value) const TCLAP::Arg [inline, virtual]
UnlabeledValueArg(const std::string &name, const std::string &desc, bool req, T value, const std::string &typeDesc, bool ignoreable=false, Visitor *v=NULL)TCLAP::UnlabeledValueArg< T > [inline]
UnlabeledValueArg(const std::string &name, const std::string &desc, bool req, T value, const std::string &typeDesc, CmdLineInterface &parser, bool ignoreable=false, Visitor *v=NULL)TCLAP::UnlabeledValueArg< T > [inline]
UnlabeledValueArg(const std::string &name, const std::string &desc, bool req, T value, Constraint< T > *constraint, bool ignoreable=false, Visitor *v=NULL)TCLAP::UnlabeledValueArg< T > [inline]
UnlabeledValueArg(const std::string &name, const std::string &desc, bool req, T value, Constraint< T > *constraint, CmdLineInterface &parser, bool ignoreable=false, Visitor *v=NULL)TCLAP::UnlabeledValueArg< T > [inline]
ValueArg(const std::string &flag, const std::string &name, const std::string &desc, bool req, T value, const std::string &typeDesc, Visitor *v=NULL)TCLAP::ValueArg< T > [inline]
ValueArg(const std::string &flag, const std::string &name, const std::string &desc, bool req, T value, const std::string &typeDesc, CmdLineInterface &parser, Visitor *v=NULL)TCLAP::ValueArg< T > [inline]
ValueArg(const std::string &flag, const std::string &name, const std::string &desc, bool req, T value, Constraint< T > *constraint, CmdLineInterface &parser, Visitor *v=NULL)TCLAP::ValueArg< T > [inline]
ValueArg(const std::string &flag, const std::string &name, const std::string &desc, bool req, T value, Constraint< T > *constraint, Visitor *v=NULL)TCLAP::ValueArg< T > [inline]
xorSet()TCLAP::Arg [inline]
~Arg()TCLAP::Arg [inline, virtual]

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/classTCLAP_1_1UnlabeledValueArg.gif000644 000765 000765 00000002331 11552414564 022427 0ustar00mesmes000000 000000 GIF89aLjòÿÿÿÿÿÀŸŸ`ÀÀÀ!ù,Ljþ8ºÜþ0ÊI«½8ë-…ÿ`(Ždižhª®lë¾£Ïtmßx^ÊzïÿÀ`Š',È1Él:˧+@­>Vlé ²rM_©0*ž†ÂÜpW€^oÙåñ >kÔZ»¿V_Ót.d‚)zgwZ{niŠpXl|…;s”,‡nˆ‹{Yoœ _“—"„¤$™Ž]ž(^š¢§(¦²› ¶ª£š¡Ž»µ´µ¹vx~·Ÿ¾ŠT•Ì`"¬¯­œ|‘Æ·Ë¿²ÁÎÝÓÞÜऱãâæ”Uéç–ìïàèðóqòô÷NöøûGúüÿP8H° Áƒ'XȰ¡Ã‡#JœH±¢Åˆ.jÜÈþ±£Ç CŠ´˜q¤É“(Sª\ Ñ€K–0cÊœÉÒeIš8sêÜÉÐæKž@ƒ éóæÐ£H“¶TÊ´iR£N£J uªÕ«&«bÝÊU£Ö®`Ã:ü*¶lW²fÓZE«¶mS¶nã…+·.OºvóÒÄ«·oM¿€ïŒ“/áà #^L’±ã¬#ƒT,¹2åÊ‘/cv¬yóâΞƒ=x4iÀ¦ó&\ͺµë×Ê–âo¶íµoëän·ï¹ oÄ˲NÇ¿ñ’´®ç*´a2.&8&\‘ MKul”tD߯×ë]|y®<¼¼«j®ËWòEÆ)6Þ÷ùå¶SKÖ«ýþþþÛYã‡z¨„Gƒu+ÜW{ì%rÌåä—_+þb¡/ y2—\x¬r\v€°' €H§"†,hh‡Ê]¢~*£,üIrÂ…E¸è vÊ(öw …œAà,fHÞŘè‰7 I ¢„ÈÜ0ëiùb}ÃIÑd>†™àyΔiftïÅóäšpÎòfœtÆ0gx¶“瞥ÜÉgœ°*è „rpÚB©šW¢ŠÊeS£¤= éfEMŠY¥–^š©gŒnjV§žŠj¨`J*W¦žŠUªª®Õ*g¯2Æj¬NÍJ+S¶Þú”®„åÊëP¾þT°Â Vl_Äþ›S²ÊîÕì¢ÏÚÅl´0MKíJÖ^›R¶ÚžÄ­TÆ…+î¸ä–kî¹è¦«îºì¶ë®ݪEE¼iÍKoYöÞV¾úvÅ/á2d…Àà¼LpÂ[¤0E ?¼Ä{D±HoôïÂ<1ÇÌpÇ ±Ã7t1É(¯ŒñG§,sÉ,2Ë3G ðÃ<çksÈ> Ìï¼ tclap: TCLAP::UnlabeledValueArg< T > Class Template Reference

TCLAP::UnlabeledValueArg< T > Class Template Reference

The basic unlabeled argument that parses a value. More...

#include <UnlabeledValueArg.h>

Inheritance diagram for TCLAP::UnlabeledValueArg< T >:
TCLAP::ValueArg< T > TCLAP::Arg

List of all members.

Public Member Functions

 UnlabeledValueArg (const std::string &name, const std::string &desc, bool req, T value, const std::string &typeDesc, bool ignoreable=false, Visitor *v=NULL)
 UnlabeledValueArg constructor.
 UnlabeledValueArg (const std::string &name, const std::string &desc, bool req, T value, const std::string &typeDesc, CmdLineInterface &parser, bool ignoreable=false, Visitor *v=NULL)
 UnlabeledValueArg constructor.
 UnlabeledValueArg (const std::string &name, const std::string &desc, bool req, T value, Constraint< T > *constraint, bool ignoreable=false, Visitor *v=NULL)
 UnlabeledValueArg constructor.
 UnlabeledValueArg (const std::string &name, const std::string &desc, bool req, T value, Constraint< T > *constraint, CmdLineInterface &parser, bool ignoreable=false, Visitor *v=NULL)
 UnlabeledValueArg constructor.
virtual bool processArg (int *i, std::vector< std::string > &args)
 Handles the processing of the argument.
virtual std::string shortID (const std::string &val="val") const
 Overrides shortID for specific behavior.
virtual std::string longID (const std::string &val="val") const
 Overrides longID for specific behavior.
virtual bool operator== (const Arg &a) const
 Overrides operator== for specific behavior.
virtual void addToList (std::list< Arg * > &argList) const
 Instead of pushing to the front of list, push to the back.

Detailed Description

template<class T>
class TCLAP::UnlabeledValueArg< T >

The basic unlabeled argument that parses a value.

This is a template class, which means the type T defines the type that a given object will attempt to parse when an UnlabeledValueArg is reached in the list of args that the CmdLine iterates over.

Definition at line 43 of file UnlabeledValueArg.h.


Constructor & Destructor Documentation

template<class T >
TCLAP::UnlabeledValueArg< T >::UnlabeledValueArg ( const std::string &  name,
const std::string &  desc,
bool  req,
value,
const std::string &  typeDesc,
bool  ignoreable = false,
Visitor v = NULL 
) [inline]

UnlabeledValueArg constructor.

Constructor implemenation.

Parameters:
name - A one word name for the argument. Note that this is used for identification, not as a long flag.
desc - A description of what the argument is for or does.
req - Whether the argument is required on the command line.
value - The default value assigned to this argument if it is not present on the command line.
typeDesc - A short, human readable description of the type that this object expects. This is used in the generation of the USAGE statement. The goal is to be helpful to the end user of the program.
ignoreable - Allows you to specify that this argument can be ignored if the '--' flag is set. This defaults to false (cannot be ignored) and should generally stay that way unless you have some special need for certain arguments to be ignored.
v - Optional Vistor. You should leave this blank unless you have a very good reason.

Definition at line 213 of file UnlabeledValueArg.h.

References TCLAP::Arg::_ignoreable, TCLAP::OptionalUnlabeledTracker::check(), and TCLAP::Arg::toString().

template<class T >
TCLAP::UnlabeledValueArg< T >::UnlabeledValueArg ( const std::string &  name,
const std::string &  desc,
bool  req,
value,
const std::string &  typeDesc,
CmdLineInterface parser,
bool  ignoreable = false,
Visitor v = NULL 
) [inline]

UnlabeledValueArg constructor.

Parameters:
name - A one word name for the argument. Note that this is used for identification, not as a long flag.
desc - A description of what the argument is for or does.
req - Whether the argument is required on the command line.
value - The default value assigned to this argument if it is not present on the command line.
typeDesc - A short, human readable description of the type that this object expects. This is used in the generation of the USAGE statement. The goal is to be helpful to the end user of the program.
parser - A CmdLine parser object to add this Arg to
ignoreable - Allows you to specify that this argument can be ignored if the '--' flag is set. This defaults to false (cannot be ignored) and should generally stay that way unless you have some special need for certain arguments to be ignored.
v - Optional Vistor. You should leave this blank unless you have a very good reason.

Definition at line 229 of file UnlabeledValueArg.h.

References TCLAP::Arg::_ignoreable, TCLAP::CmdLineInterface::add(), TCLAP::OptionalUnlabeledTracker::check(), and TCLAP::Arg::toString().

template<class T >
TCLAP::UnlabeledValueArg< T >::UnlabeledValueArg ( const std::string &  name,
const std::string &  desc,
bool  req,
value,
Constraint< T > *  constraint,
bool  ignoreable = false,
Visitor v = NULL 
) [inline]

UnlabeledValueArg constructor.

Constructor implemenation.

Parameters:
name - A one word name for the argument. Note that this is used for identification, not as a long flag.
desc - A description of what the argument is for or does.
req - Whether the argument is required on the command line.
value - The default value assigned to this argument if it is not present on the command line.
constraint - A pointer to a Constraint object used to constrain this Arg.
ignoreable - Allows you to specify that this argument can be ignored if the '--' flag is set. This defaults to false (cannot be ignored) and should generally stay that way unless you have some special need for certain arguments to be ignored.
v - Optional Vistor. You should leave this blank unless you have a very good reason.

Definition at line 248 of file UnlabeledValueArg.h.

References TCLAP::Arg::_ignoreable, TCLAP::OptionalUnlabeledTracker::check(), and TCLAP::Arg::toString().

template<class T >
TCLAP::UnlabeledValueArg< T >::UnlabeledValueArg ( const std::string &  name,
const std::string &  desc,
bool  req,
value,
Constraint< T > *  constraint,
CmdLineInterface parser,
bool  ignoreable = false,
Visitor v = NULL 
) [inline]

UnlabeledValueArg constructor.

Parameters:
name - A one word name for the argument. Note that this is used for identification, not as a long flag.
desc - A description of what the argument is for or does.
req - Whether the argument is required on the command line.
value - The default value assigned to this argument if it is not present on the command line.
constraint - A pointer to a Constraint object used to constrain this Arg.
parser - A CmdLine parser object to add this Arg to
ignoreable - Allows you to specify that this argument can be ignored if the '--' flag is set. This defaults to false (cannot be ignored) and should generally stay that way unless you have some special need for certain arguments to be ignored.
v - Optional Vistor. You should leave this blank unless you have a very good reason.

Definition at line 262 of file UnlabeledValueArg.h.

References TCLAP::Arg::_ignoreable, TCLAP::CmdLineInterface::add(), TCLAP::OptionalUnlabeledTracker::check(), and TCLAP::Arg::toString().


Member Function Documentation

template<class T >
void TCLAP::UnlabeledValueArg< T >::addToList ( std::list< Arg * > &  argList  )  const [inline, virtual]

Instead of pushing to the front of list, push to the back.

Parameters:
argList - The list to add this to.

Definition at line 334 of file UnlabeledValueArg.h.

template<class T >
std::string TCLAP::UnlabeledValueArg< T >::longID ( const std::string &  val = "val"  )  const [inline, virtual]

Overrides longID for specific behavior.

Overriding longID for specific output.

Reimplemented from TCLAP::ValueArg< T >.

Definition at line 311 of file UnlabeledValueArg.h.

References TCLAP::ValueArg< T >::_typeDesc.

template<class T >
bool TCLAP::UnlabeledValueArg< T >::operator== ( const Arg a  )  const [inline, virtual]

Overrides operator== for specific behavior.

Overriding operator== for specific behavior.

Definition at line 325 of file UnlabeledValueArg.h.

References TCLAP::Arg::_description, TCLAP::Arg::_name, TCLAP::Arg::getDescription(), and TCLAP::Arg::getName().

template<class T >
bool TCLAP::UnlabeledValueArg< T >::processArg ( int *  i,
std::vector< std::string > &  args 
) [inline, virtual]

Handles the processing of the argument.

Implementation of processArg().

This re-implements the Arg version of this method to set the _value of the argument appropriately. Handling specific to unlabled arguments.

Parameters:
i - Pointer the the current argument in the list.
args - Mutable list of strings.

Reimplemented from TCLAP::ValueArg< T >.

Definition at line 281 of file UnlabeledValueArg.h.

References TCLAP::Arg::_alreadySet, TCLAP::ValueArg< T >::_extractValue(), and TCLAP::Arg::_hasBlanks().

template<class T >
std::string TCLAP::UnlabeledValueArg< T >::shortID ( const std::string &  val = "val"  )  const [inline, virtual]

Overrides shortID for specific behavior.

Overriding shortID for specific output.

Reimplemented from TCLAP::ValueArg< T >.

Definition at line 301 of file UnlabeledValueArg.h.

References TCLAP::ValueArg< T >::_typeDesc.


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

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/classTCLAP_1_1ValueArg-members.html000644 000765 000765 00000037257 11552414564 022461 0ustar00mesmes000000 000000 tclap: Member List

TCLAP::ValueArg< T > Member List

This is the complete list of members for TCLAP::ValueArg< T >, including all inherited members.
_acceptsMultipleValuesTCLAP::Arg [protected]
_alreadySetTCLAP::Arg [protected]
_checkWithVisitor() const TCLAP::Arg [inline, protected]
_constraintTCLAP::ValueArg< T > [protected]
_defaultTCLAP::ValueArg< T > [protected]
_descriptionTCLAP::Arg [protected]
_extractValue(const std::string &val)TCLAP::ValueArg< T > [inline, protected]
_flagTCLAP::Arg [protected]
_hasBlanks(const std::string &s) const TCLAP::Arg [inline]
_ignoreableTCLAP::Arg [protected]
_nameTCLAP::Arg [protected]
_requiredTCLAP::Arg [protected]
_requireLabelTCLAP::Arg [protected]
_typeDescTCLAP::ValueArg< T > [protected]
_valueTCLAP::ValueArg< T > [protected]
_valueRequiredTCLAP::Arg [protected]
_visitorTCLAP::Arg [protected]
_xorSetTCLAP::Arg [protected]
acceptsMultipleValues()TCLAP::Arg [inline, virtual]
addToList(std::list< Arg * > &argList) const TCLAP::Arg [inline, virtual]
allowMore()TCLAP::Arg [inline, virtual]
Arg(const std::string &flag, const std::string &name, const std::string &desc, bool req, bool valreq, Visitor *v=NULL)TCLAP::Arg [inline, protected]
argMatches(const std::string &s) const TCLAP::Arg [inline, virtual]
beginIgnoring()TCLAP::Arg [inline, static]
blankChar()TCLAP::Arg [inline, static]
delimiter()TCLAP::Arg [inline, static]
flagStartChar()TCLAP::Arg [inline, static]
flagStartString()TCLAP::Arg [inline, static]
forceRequired()TCLAP::Arg [inline]
getDescription() const TCLAP::Arg [inline]
getFlag() const TCLAP::Arg [inline]
getName() const TCLAP::Arg [inline]
getValue()TCLAP::ValueArg< T > [inline]
ignoreNameString()TCLAP::Arg [inline, static]
ignoreRest()TCLAP::Arg [inline, static]
isIgnoreable() const TCLAP::Arg [inline]
isRequired() const TCLAP::Arg [inline, virtual]
isSet() const TCLAP::Arg [inline]
isValueRequired() const TCLAP::Arg [inline]
longID(const std::string &val="val") const TCLAP::ValueArg< T > [inline, virtual]
nameStartString()TCLAP::Arg [inline, static]
operator==(const Arg &a) const TCLAP::Arg [inline, virtual]
processArg(int *i, std::vector< std::string > &args)TCLAP::ValueArg< T > [inline, virtual]
reset()TCLAP::ValueArg< T > [inline, virtual]
setDelimiter(char c)TCLAP::Arg [inline, static]
setRequireLabel(const std::string &s)TCLAP::Arg [inline]
shortID(const std::string &val="val") const TCLAP::ValueArg< T > [inline, virtual]
toString() const TCLAP::Arg [inline, virtual]
trimFlag(std::string &flag, std::string &value) const TCLAP::Arg [inline, virtual]
ValueArg(const std::string &flag, const std::string &name, const std::string &desc, bool req, T value, const std::string &typeDesc, Visitor *v=NULL)TCLAP::ValueArg< T > [inline]
ValueArg(const std::string &flag, const std::string &name, const std::string &desc, bool req, T value, const std::string &typeDesc, CmdLineInterface &parser, Visitor *v=NULL)TCLAP::ValueArg< T > [inline]
ValueArg(const std::string &flag, const std::string &name, const std::string &desc, bool req, T value, Constraint< T > *constraint, CmdLineInterface &parser, Visitor *v=NULL)TCLAP::ValueArg< T > [inline]
ValueArg(const std::string &flag, const std::string &name, const std::string &desc, bool req, T value, Constraint< T > *constraint, Visitor *v=NULL)TCLAP::ValueArg< T > [inline]
xorSet()TCLAP::Arg [inline]
~Arg()TCLAP::Arg [inline, virtual]

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/classTCLAP_1_1ValueArg.gif000644 000765 000765 00000002330 11552414564 020612 0ustar00mesmes000000 000000 GIF89aLjòÿÿÿÿÿÀŸŸ`ÀÀÀ!ù,Ljþ8ºÜþ0ÊI«½8ë-…ÿ`(Ždižhª®lë¾£Ïtmßx^ÊzïÿÀ`Š',È1Él:˧+@­>Vlé ²rM_©0*ž†ÂÜpW€^oÙåñ >kÔZ»¿V_Ót.d‚)zgwZ{niŠpXl|…;s”,‡nˆ‹{Yoœ _“—"„¤$™Ž]ž(^š¢§(¦²› ¶ª£š¡Ž»µ´µ¹vx~·Ÿ¾ŠT•Ì`"¬¯­œ|‘Æ·Ë¿²ÁÎÝÓÞÜऱãâæ”Uéç–ìïàèðóqòô÷NöøûGúüÿP8H° Áƒ'XȰ¡Ã‡#JœH±¢Åˆ.jÜÈþ±£Ç CŠ´˜q¤É“(Sª\ Ñ€K–0cÊœÉÒeIš8sêÜÉÐæKž@ƒ éóæÐ£H“¶TÊ´iR£N£J uªÕ«&«bÝÊU£Ö®`Ã:ü*¶lW²fÓZE«¶mS¶nã…+·.OºvóÒÄ«·oM¿€ïŒ“/áà #^L’±ã¬#ƒT,¹2åÊ‘/cv¬yóâΞƒ=x4iÀ¦ózYͺµë×°cËžM»¶íÛ¸sŸÞ½ ïݾ“.Ü3ñ☫dÍÐJs‰z.zÇè(™ UÎûóïÞ«‡1<ó ÑWŒ®^dûÜW’‡Øž}úûå¿÷&ŽÝ»þåöÝ×_€½§S|Ëá÷zþéw^oFø „ýQhá…ûEà{˜‡&Í· }úMgÝ„ÕMØ Š+¢Èb‰Æ¢{3º§`ŠÒ9'áz.žW…†àéèã%>‡ Ž9’’'‰ˆäŽ*jDà‹Qùd‹XÆH“KÖ’yó¡&”[âX¡ŠgVY¤†`r—_Âù‘˜Dܘ=Zéà~öýÇ"f¦7%Hq‰ÜFr&eè¡IîÉÕ¢Œ¾™¨¢“F*¤–ªVi¦maÊ饛~jVn¤–jꩨ¦ªjl¼¥&*X®¾º•M²ŠöS­¨ù„k®´îŠš¯¥X¬Â:El±Lþ‹ìSËê¥l³C= mPÒN+˜µqU‹mNÚn»—·mu nLâŽû—¹e•‹nJê®{R»îŽo¼!ÍKïGöÞ›˜¾³ò‹U¾þ^ðT l0¬ð ä°þ<,q Olñ î\¬qoìq3«H#É2Çð22ɉäbòÊ)Ÿ‰Ê0»¢k-˜r 5¨L“ 6È@cÈÏߌ¢ÏC·Pt)ó2ÉÒ:³Ü4(‹µ$!û‚2ÕåèLã?y Iï>¸ð°Ž8Ø„çÞ9.›/ß¼-³û¡7*|ïºéÒ¼žr׉w úÕØ—¾JÐÐdÃu |¾9ØG·>„õ³Óþ ÇO‡úÙéEÔ¯üþûŸÇ(@°€; %ư:ðä@;tclap-1.2.1/docs/html/classTCLAP_1_1ValueArg.html000644 000765 000765 00000133337 11552414564 021025 0ustar00mesmes000000 000000 tclap: TCLAP::ValueArg< T > Class Template Reference

TCLAP::ValueArg< T > Class Template Reference

The basic labeled argument that parses a value. More...

#include <ValueArg.h>

Inheritance diagram for TCLAP::ValueArg< T >:
TCLAP::Arg TCLAP::UnlabeledValueArg< T >

List of all members.

Public Member Functions

 ValueArg (const std::string &flag, const std::string &name, const std::string &desc, bool req, T value, const std::string &typeDesc, Visitor *v=NULL)
 Labeled ValueArg constructor.
 ValueArg (const std::string &flag, const std::string &name, const std::string &desc, bool req, T value, const std::string &typeDesc, CmdLineInterface &parser, Visitor *v=NULL)
 Labeled ValueArg constructor.
 ValueArg (const std::string &flag, const std::string &name, const std::string &desc, bool req, T value, Constraint< T > *constraint, CmdLineInterface &parser, Visitor *v=NULL)
 Labeled ValueArg constructor.
 ValueArg (const std::string &flag, const std::string &name, const std::string &desc, bool req, T value, Constraint< T > *constraint, Visitor *v=NULL)
 Labeled ValueArg constructor.
virtual bool processArg (int *i, std::vector< std::string > &args)
 Handles the processing of the argument.
T & getValue ()
 Returns the value of the argument.
virtual std::string shortID (const std::string &val="val") const
 Specialization of shortID.
virtual std::string longID (const std::string &val="val") const
 Specialization of longID.
virtual void reset ()
 Clears the Arg object and allows it to be reused by new command lines.

Protected Member Functions

void _extractValue (const std::string &val)
 Extracts the value from the string.

Protected Attributes

_value
 The value parsed from the command line.
_default
 Used to support the reset() method so that ValueArg can be reset to their constructed value.
std::string _typeDesc
 A human readable description of the type to be parsed.
Constraint< T > * _constraint
 A Constraint this Arg must conform to.

Detailed Description

template<class T>
class TCLAP::ValueArg< T >

The basic labeled argument that parses a value.

This is a template class, which means the type T defines the type that a given object will attempt to parse when the flag/name is matched on the command line. While there is nothing stopping you from creating an unflagged ValueArg, it is unwise and would cause significant problems. Instead use an UnlabeledValueArg.

Definition at line 43 of file ValueArg.h.


Constructor & Destructor Documentation

template<class T >
TCLAP::ValueArg< T >::ValueArg ( const std::string &  flag,
const std::string &  name,
const std::string &  desc,
bool  req,
value,
const std::string &  typeDesc,
Visitor v = NULL 
) [inline]

Labeled ValueArg constructor.

Constructor implementation.

You could conceivably call this constructor with a blank flag, but that would make you a bad person. It would also cause an exception to be thrown. If you want an unlabeled argument, use the other constructor.

Parameters:
flag - The one character flag that identifies this argument on the command line.
name - A one word name for the argument. Can be used as a long flag on the command line.
desc - A description of what the argument is for or does.
req - Whether the argument is required on the command line.
value - The default value assigned to this argument if it is not present on the command line.
typeDesc - A short, human readable description of the type that this object expects. This is used in the generation of the USAGE statement. The goal is to be helpful to the end user of the program.
v - An optional visitor. You probably should not use this unless you have a very good reason.

Definition at line 252 of file ValueArg.h.

template<class T >
TCLAP::ValueArg< T >::ValueArg ( const std::string &  flag,
const std::string &  name,
const std::string &  desc,
bool  req,
value,
const std::string &  typeDesc,
CmdLineInterface parser,
Visitor v = NULL 
) [inline]

Labeled ValueArg constructor.

You could conceivably call this constructor with a blank flag, but that would make you a bad person. It would also cause an exception to be thrown. If you want an unlabeled argument, use the other constructor.

Parameters:
flag - The one character flag that identifies this argument on the command line.
name - A one word name for the argument. Can be used as a long flag on the command line.
desc - A description of what the argument is for or does.
req - Whether the argument is required on the command line.
value - The default value assigned to this argument if it is not present on the command line.
typeDesc - A short, human readable description of the type that this object expects. This is used in the generation of the USAGE statement. The goal is to be helpful to the end user of the program.
parser - A CmdLine parser object to add this Arg to
v - An optional visitor. You probably should not use this unless you have a very good reason.

Definition at line 267 of file ValueArg.h.

References TCLAP::CmdLineInterface::add().

template<class T >
TCLAP::ValueArg< T >::ValueArg ( const std::string &  flag,
const std::string &  name,
const std::string &  desc,
bool  req,
value,
Constraint< T > *  constraint,
CmdLineInterface parser,
Visitor v = NULL 
) [inline]

Labeled ValueArg constructor.

You could conceivably call this constructor with a blank flag, but that would make you a bad person. It would also cause an exception to be thrown. If you want an unlabeled argument, use the other constructor.

Parameters:
flag - The one character flag that identifies this argument on the command line.
name - A one word name for the argument. Can be used as a long flag on the command line.
desc - A description of what the argument is for or does.
req - Whether the argument is required on the command line.
value - The default value assigned to this argument if it is not present on the command line.
constraint - A pointer to a Constraint object used to constrain this Arg.
parser - A CmdLine parser object to add this Arg to.
v - An optional visitor. You probably should not use this unless you have a very good reason.

Definition at line 300 of file ValueArg.h.

References TCLAP::CmdLineInterface::add().

template<class T >
TCLAP::ValueArg< T >::ValueArg ( const std::string &  flag,
const std::string &  name,
const std::string &  desc,
bool  req,
value,
Constraint< T > *  constraint,
Visitor v = NULL 
) [inline]

Labeled ValueArg constructor.

You could conceivably call this constructor with a blank flag, but that would make you a bad person. It would also cause an exception to be thrown. If you want an unlabeled argument, use the other constructor.

Parameters:
flag - The one character flag that identifies this argument on the command line.
name - A one word name for the argument. Can be used as a long flag on the command line.
desc - A description of what the argument is for or does.
req - Whether the argument is required on the command line.
value - The default value assigned to this argument if it is not present on the command line.
constraint - A pointer to a Constraint object used to constrain this Arg.
v - An optional visitor. You probably should not use this unless you have a very good reason.

Definition at line 285 of file ValueArg.h.


Member Function Documentation

template<class T >
void TCLAP::ValueArg< T >::_extractValue ( const std::string &  val  )  [inline, protected]

Extracts the value from the string.

Attempts to parse string as type T, if this fails an exception is thrown.

Parameters:
val - value to be parsed.

Definition at line 400 of file ValueArg.h.

References TCLAP::ValueArg< T >::_constraint, TCLAP::ValueArg< T >::_value, TCLAP::ArgException::error(), TCLAP::ExtractValue(), and TCLAP::Arg::toString().

Referenced by TCLAP::ValueArg< T >::processArg(), and TCLAP::UnlabeledValueArg< T >::processArg().

template<class T >
T & TCLAP::ValueArg< T >::getValue (  )  [inline]

Returns the value of the argument.

Implementation of getValue().

Definition at line 322 of file ValueArg.h.

References TCLAP::ValueArg< T >::_value.

template<class T >
std::string TCLAP::ValueArg< T >::longID ( const std::string &  val = "val"  )  const [inline, virtual]

Specialization of longID.

Implementation of longID.

Parameters:
val - value to be used.

Reimplemented from TCLAP::Arg.

Reimplemented in TCLAP::UnlabeledValueArg< T >.

Definition at line 393 of file ValueArg.h.

References TCLAP::ValueArg< T >::_typeDesc.

template<class T >
bool TCLAP::ValueArg< T >::processArg ( int *  i,
std::vector< std::string > &  args 
) [inline, virtual]

Handles the processing of the argument.

Implementation of processArg().

This re-implements the Arg version of this method to set the _value of the argument appropriately. It knows the difference between labeled and unlabeled.

Parameters:
i - Pointer the the current argument in the list.
args - Mutable list of strings. Passed in from main().

Implements TCLAP::Arg.

Reimplemented in TCLAP::UnlabeledValueArg< T >.

Definition at line 328 of file ValueArg.h.

References TCLAP::Arg::_alreadySet, TCLAP::Arg::_checkWithVisitor(), TCLAP::ValueArg< T >::_extractValue(), TCLAP::Arg::_hasBlanks(), TCLAP::Arg::_ignoreable, TCLAP::Arg::_xorSet, TCLAP::Arg::argMatches(), TCLAP::Arg::delimiter(), TCLAP::Arg::ignoreRest(), TCLAP::Arg::toString(), and TCLAP::Arg::trimFlag().

template<class T >
void TCLAP::ValueArg< T >::reset (  )  [inline, virtual]

Clears the Arg object and allows it to be reused by new command lines.

Reimplemented from TCLAP::Arg.

Definition at line 417 of file ValueArg.h.

References TCLAP::ValueArg< T >::_default, and TCLAP::ValueArg< T >::_value.

template<class T >
std::string TCLAP::ValueArg< T >::shortID ( const std::string &  val = "val"  )  const [inline, virtual]

Specialization of shortID.

Implementation of shortID.

Parameters:
val - value to be used.

Reimplemented from TCLAP::Arg.

Reimplemented in TCLAP::UnlabeledValueArg< T >.

Definition at line 383 of file ValueArg.h.

References TCLAP::ValueArg< T >::_typeDesc.


Member Data Documentation

template<class T>
Constraint<T>* TCLAP::ValueArg< T >::_constraint [protected]

A Constraint this Arg must conform to.

Definition at line 72 of file ValueArg.h.

Referenced by TCLAP::ValueArg< T >::_extractValue().

template<class T>
T TCLAP::ValueArg< T >::_default [protected]

Used to support the reset() method so that ValueArg can be reset to their constructed value.

Definition at line 58 of file ValueArg.h.

Referenced by TCLAP::ValueArg< T >::reset().

template<class T>
std::string TCLAP::ValueArg< T >::_typeDesc [protected]

A human readable description of the type to be parsed.

This is a hack, plain and simple. Ideally we would use RTTI to return the name of type T, but until there is some sort of consistent support for human readable names, we are left to our own devices.

Definition at line 67 of file ValueArg.h.

Referenced by TCLAP::ValueArg< T >::longID(), TCLAP::UnlabeledValueArg< T >::longID(), TCLAP::ValueArg< T >::shortID(), and TCLAP::UnlabeledValueArg< T >::shortID().

template<class T>
T TCLAP::ValueArg< T >::_value [protected]

The value parsed from the command line.

Can be of any type, as long as the >> operator for the type is defined.

Definition at line 52 of file ValueArg.h.

Referenced by TCLAP::ValueArg< T >::_extractValue(), TCLAP::ValueArg< T >::getValue(), and TCLAP::ValueArg< T >::reset().


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

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/classTCLAP_1_1ValuesConstraint-members.html000644 000765 000765 00000007562 11552414564 024253 0ustar00mesmes000000 000000 tclap: Member List

TCLAP::ValuesConstraint< T > Member List

This is the complete list of members for TCLAP::ValuesConstraint< T >, including all inherited members.
_allowedTCLAP::ValuesConstraint< T > [protected]
_typeDescTCLAP::ValuesConstraint< T > [protected]
check(const T &value) const TCLAP::ValuesConstraint< T > [inline, virtual]
description() const TCLAP::ValuesConstraint< T > [inline, virtual]
shortID() const TCLAP::ValuesConstraint< T > [inline, virtual]
ValuesConstraint(std::vector< T > &allowed)TCLAP::ValuesConstraint< T > [inline]
~Constraint()TCLAP::Constraint< T > [inline, virtual]
~ValuesConstraint()TCLAP::ValuesConstraint< T > [inline, virtual]

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/classTCLAP_1_1ValuesConstraint.gif000644 000765 000765 00000001565 11552414564 022421 0ustar00mesmes000000 000000 GIF89a¹PòÿÿÿÿÿÀŸŸ`ÀÀÀ!ù,¹Pþ8ºÜþ0ÊI«½8ë+ºÿ`(Ždižhª®l{*n,Ïtmߌï|ïÿ pH,C£rÉœ%c¨4à™VIÔÏ4‹•Ò¸&0H<ÚFÏ™œ%w¨l-V.s³ìåeºNÙá}]\plmg‚Š‚‰‹†o'x>{P—oW™šm›~œŽž‰…›¤žse“.•.q"n¥^y±œ¸}²¦¹Œaa¬+®-°Ÿ~V¨ªÆ¢£³‹´¡³’(‘2Ãw˜ÉϼԷÝÜÌÏңͿ%ÖN8ktdíáÊâ¡ÌôÎѽ©¶±Á,Ø+ïj1ªo7d´4+Do "{úªéYפ¢Å‹#þaÜÈþ±‡ÆŽ CÆø(²¤É$Oª\™r¥K‘-_ÊÜs¦Í&rêÜɳ§ÏŸJ´¨Ñ£H“*]Ê´)N£JJµªÕ«X±BÍʵ«×¯`ö¬Ù³h¿ŽÝš¶­Û·o×’…K·®Ý«rÙÞÝË·oQ½~ ¦ x°áÃb+^ܵ0ãÇ•:ŽL¹òäʘ_ÎÌÙðæÎ û~MºîèÒ¨ÛžNͺìêÖ°Çž­š¶m³¯oëfš{·ï£½ |øïâÆw#O~{9sÚΟǎ.½5õꩯc/­=´™ïàËO¾¼ùóèÓ«_?~;ö(î«Ãÿ|>ýäöïÏàûþÐ)ÿ%@Q[H YˆÕ€M1x”ƒJù'!ƒZØŸ†•a†^uá‚\¡U 5âƒH ¸¢ŠnøŸ}v(……š¨"ý]ˆá|.î˜#Œ@¦Ø"Š:¾x ‡6rX#ŒPÊ(ã“SVød’V^ eŽT^©%Ž1z¨cGv¸ä™\Þ£‰_V¹å™hFI¥œ,ºi§‘f>È&–yöÙ£šR2$Ž@Òù'CÖyçŒMÎX¨”5âb„ò%œ—Ú)h ‰v™©“e. ª¡nvÊ艔êê¥sfÚêRZ¹¥§¢¾ik©¤š ©«cöêëªB¦ù¨¬LjìŸr= i~ü)(d£dîÈ*|ƒv:f±TIªmÚn[·Þ¶n¸©Kniæžëݵê–Ën»è²'ï¼ôÖkï½õ&;tclap-1.2.1/docs/html/classTCLAP_1_1ValuesConstraint.html000644 000765 000765 00000037765 11552414564 022633 0ustar00mesmes000000 000000 tclap: TCLAP::ValuesConstraint< T > Class Template Reference

TCLAP::ValuesConstraint< T > Class Template Reference

A Constraint that constrains the Arg to only those values specified in the constraint. More...

#include <ValuesConstraint.h>

Inheritance diagram for TCLAP::ValuesConstraint< T >:
TCLAP::Constraint< T >

List of all members.

Public Member Functions

 ValuesConstraint (std::vector< T > &allowed)
 Constructor.
virtual ~ValuesConstraint ()
 Virtual destructor.
virtual std::string description () const
 Returns a description of the Constraint.
virtual std::string shortID () const
 Returns the short ID for the Constraint.
virtual bool check (const T &value) const
 The method used to verify that the value parsed from the command line meets the constraint.

Protected Attributes

std::vector< T > _allowed
 The list of valid values.
std::string _typeDesc
 The string used to describe the allowed values of this constraint.

Detailed Description

template<class T>
class TCLAP::ValuesConstraint< T >

A Constraint that constrains the Arg to only those values specified in the constraint.

Definition at line 51 of file ValuesConstraint.h.


Constructor & Destructor Documentation

template<class T >
TCLAP::ValuesConstraint< T >::ValuesConstraint ( std::vector< T > &  allowed  )  [inline]

Constructor.

Parameters:
allowed - vector of allowed values.

Definition at line 99 of file ValuesConstraint.h.

References TCLAP::ValuesConstraint< T >::_allowed, and TCLAP::ValuesConstraint< T >::_typeDesc.

template<class T >
virtual TCLAP::ValuesConstraint< T >::~ValuesConstraint (  )  [inline, virtual]

Virtual destructor.

Definition at line 65 of file ValuesConstraint.h.


Member Function Documentation

template<class T >
bool TCLAP::ValuesConstraint< T >::check ( const T &  value  )  const [inline, virtual]

The method used to verify that the value parsed from the command line meets the constraint.

Parameters:
value - The value that will be checked.

Implements TCLAP::Constraint< T >.

Definition at line 125 of file ValuesConstraint.h.

References TCLAP::ValuesConstraint< T >::_allowed.

template<class T >
std::string TCLAP::ValuesConstraint< T >::description (  )  const [inline, virtual]

Returns a description of the Constraint.

Implements TCLAP::Constraint< T >.

Definition at line 140 of file ValuesConstraint.h.

References TCLAP::ValuesConstraint< T >::_typeDesc.

template<class T >
std::string TCLAP::ValuesConstraint< T >::shortID (  )  const [inline, virtual]

Returns the short ID for the Constraint.

Implements TCLAP::Constraint< T >.

Definition at line 134 of file ValuesConstraint.h.

References TCLAP::ValuesConstraint< T >::_typeDesc.


Member Data Documentation

template<class T >
std::vector<T> TCLAP::ValuesConstraint< T >::_allowed [protected]

The list of valid values.

Definition at line 89 of file ValuesConstraint.h.

Referenced by TCLAP::ValuesConstraint< T >::check(), and TCLAP::ValuesConstraint< T >::ValuesConstraint().

template<class T >
std::string TCLAP::ValuesConstraint< T >::_typeDesc [protected]

The string used to describe the allowed values of this constraint.

Definition at line 94 of file ValuesConstraint.h.

Referenced by TCLAP::ValuesConstraint< T >::description(), TCLAP::ValuesConstraint< T >::shortID(), and TCLAP::ValuesConstraint< T >::ValuesConstraint().


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

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/classTCLAP_1_1VersionVisitor-members.html000644 000765 000765 00000006131 11552414564 023743 0ustar00mesmes000000 000000 tclap: Member List

TCLAP::VersionVisitor Member List

This is the complete list of members for TCLAP::VersionVisitor, including all inherited members.
_cmdTCLAP::VersionVisitor [protected]
_outTCLAP::VersionVisitor [protected]
VersionVisitor(CmdLineInterface *cmd, CmdLineOutput **out)TCLAP::VersionVisitor [inline]
visit()TCLAP::VersionVisitor [inline, virtual]
Visitor()TCLAP::Visitor [inline]
~Visitor()TCLAP::Visitor [inline, virtual]

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/classTCLAP_1_1VersionVisitor.gif000644 000765 000765 00000001321 11552414564 022110 0ustar00mesmes000000 000000 GIF89aŠPòÿÿÿÿÿÀŸŸ`ÀÀÀ!ù,ŠPþ8ºÜþ0ÊI«½x‰Í»ÿ`(Ždižhª¤lë¾pÌ­rmßøHç|遲ŸpHÜìj¤2ÀY6EÌÎ2 ¢n¢V鵨9Þ²VlˆÖV=Y(wä•Ïç÷vüœ ’OåŸÇymrhpwusbvT‡ŠˆMi1HfމzjŒ„f‡š72’RNv%d’|šœ•9 1¢…²«(¨³‹­~m9`›“‚ž§Á¸¬³5¯0i¥w¥¾Â†Á…ªXÕ±2ÉkÚÛ"ÙÜßßÞàã\âäç?æèë»ìîå¼ïò=êóö'ùúûüýý H° Áƒ4 °¡Ã‡#JœØ!Å‹3jÜhþ ãÆ CŠìhQ¤É“(’ô˜²¥K“+K¾œIó¢Ìš8sVÔɳ§Á›>ƒæ*´èK¢F“žDª´éG¦N£Ú”JõiÕ«¡bÝú“«W‡Z¿~ +–+Ù²XÏ¢­ªv­Ô¶n«t.]£vï Í«×'ß¾<ÿ:Ø«àÂ4÷œÂ¸±ãÇ#KžL¹²åɈ±&É|u3gªž?G -º)i.Q}0ÀÀ)­_Stý6kÔiÛ®½[`ïݺsã¾ °7ñâ3;4®ðôqæÃ ºî;6rÕ¤§·Í=ôtê×£{GíYIõßÐÁK/Èýùõöáá“Oÿ}ðø·ïë'îÜy˜øè²­ßjÖ‰ÇßqÃÁ'ß‚ÿ%ˆ_ƒÛ ‡à„ä™alÀàxvˆœzÞç¡oéUÇž€ùնቊèây&¦èàƒ¯•ãŒ7âØr4îס| úèãˆØIH¢wòÈœˆZø‡˜cwùé–{Е”Zn™e— tclap: TCLAP::VersionVisitor Class Reference

TCLAP::VersionVisitor Class Reference

A Vistor that will call the version method of the given CmdLineOutput for the specified CmdLine object and then exit. More...

#include <VersionVisitor.h>

Inheritance diagram for TCLAP::VersionVisitor:
TCLAP::Visitor

List of all members.

Public Member Functions

 VersionVisitor (CmdLineInterface *cmd, CmdLineOutput **out)
 Constructor.
void visit ()
 Calls the version method of the output object using the specified CmdLine.

Protected Attributes

CmdLineInterface_cmd
 The CmdLine of interest.
CmdLineOutput ** _out
 The output object.

Detailed Description

A Vistor that will call the version method of the given CmdLineOutput for the specified CmdLine object and then exit.

Definition at line 37 of file VersionVisitor.h.


Constructor & Destructor Documentation

TCLAP::VersionVisitor::VersionVisitor ( CmdLineInterface cmd,
CmdLineOutput **  out 
) [inline]

Constructor.

Parameters:
cmd - The CmdLine the output is generated for.
out - The type of output.

Definition at line 65 of file VersionVisitor.h.


Member Function Documentation

void TCLAP::VersionVisitor::visit (  )  [inline, virtual]

Calls the version method of the output object using the specified CmdLine.

Reimplemented from TCLAP::Visitor.

Definition at line 72 of file VersionVisitor.h.

References _cmd.


Member Data Documentation

The CmdLine of interest.

Definition at line 51 of file VersionVisitor.h.

Referenced by visit().

The output object.

Definition at line 56 of file VersionVisitor.h.


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

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/classTCLAP_1_1Visitor-members.html000644 000765 000765 00000004371 11552414564 022401 0ustar00mesmes000000 000000 tclap: Member List

TCLAP::Visitor Member List

This is the complete list of members for TCLAP::Visitor, including all inherited members.
visit()TCLAP::Visitor [inline, virtual]
Visitor()TCLAP::Visitor [inline]
~Visitor()TCLAP::Visitor [inline, virtual]

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/classTCLAP_1_1Visitor.gif000644 000765 000765 00000002762 11552414564 020554 0ustar00mesmes000000 000000 GIF89aâPòÿÿÿÿÿÀŸŸ`ÀÀÀ!ù,âPþºÜþ0ÊI«½8ÏÀ»ÿ`(Ždižhª®æ¾p,Ïtmßx޵zïÿ0pH,ȤF¨l:3̧tJ­Z}Ñ«6™Ýz¿à0WLÆ–Ïè´ºÒ]»)í·|NÿB O>ýð—yaç„¡Ç^NݱtÓÕ_÷»½o÷³ßñ†W<;çñbÑËU—½U÷®Í+ m}¨÷ÁËGœßlþÿ±ÿ!`X^U PR•`T òÔ S.aThá…f¨á†v衇|(âˆ$–˜¡&¦¨âІÈâ‹0rˆbŒ4Ö8€‹6渢<öèã@)äDiä‘H&©¤’ ¸ä“PF)å”TÙdT©å–\v9e…^†)æ˜a^ A–d¦©æšGšùšlÆ)çš`Îiç]ºéœxöéç’z6À矄d†&ªh  ªè£}2º€£V*'¢–f§¤ Pªé§e: ê¨cbúd=zêüø«®Â*d«>ÒJ+¶ªÉ)ƒ¢Ê£ª¿Êš*°AÞ:æ«IæþZk°Å2ˤ¨Eú*±ÆÆZ+±¸Z{ª’Õ*›í´[še·Ë‚Û¬±èΪí·Í–kdµ¡b©®»æÂlº«¶K&¾Gzël´Oîêé¼ù2k/¸üšËî¿û®KäÁÌ-½¯šðÁäþÊA¾­n\ð­ ƒ<­Ç, q›Ð®‹±º¼q®kœ®­1ó[ò°2;+²Æ“3Â? œ ñiõšÖV(,(Žq­‹£/–=#f 0™ü„„DR}TlTÔýø¬çòTê#"©È,ª‹tÞ™"II@¯’üT )ELÊ‘ž ¥"CYÉM’²” <%%G©JD𲕮L%,ÉÊY6Ò¶Ää+s9ªZòRS»ü%0e)L`^²˜– &2!¥Ìe.JGÐŒ¦4¥9£iZóšØQ5³ÉÍnf3;tclap-1.2.1/docs/html/classTCLAP_1_1Visitor.html000644 000765 000765 00000015361 11552414564 020752 0ustar00mesmes000000 000000 tclap: TCLAP::Visitor Class Reference

TCLAP::Visitor Class Reference

A base class that defines the interface for visitors. More...

#include <Visitor.h>

Inheritance diagram for TCLAP::Visitor:
TCLAP::HelpVisitor TCLAP::IgnoreRestVisitor TCLAP::VersionVisitor

List of all members.

Public Member Functions

 Visitor ()
 Constructor.
virtual ~Visitor ()
 Destructor.
virtual void visit ()
 Does nothing.

Detailed Description

A base class that defines the interface for visitors.

Definition at line 31 of file Visitor.h.


Constructor & Destructor Documentation

TCLAP::Visitor::Visitor (  )  [inline]

Constructor.

Does nothing.

Definition at line 38 of file Visitor.h.

virtual TCLAP::Visitor::~Visitor (  )  [inline, virtual]

Destructor.

Does nothing.

Definition at line 43 of file Visitor.h.


Member Function Documentation

virtual void TCLAP::Visitor::visit (  )  [inline, virtual]

Does nothing.

Should be overridden by child.

Reimplemented in TCLAP::HelpVisitor, TCLAP::IgnoreRestVisitor, and TCLAP::VersionVisitor.

Definition at line 48 of file Visitor.h.

Referenced by TCLAP::Arg::_checkWithVisitor().


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

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/classTCLAP_1_1XorHandler-members.html000644 000765 000765 00000007016 11552414564 023007 0ustar00mesmes000000 000000 tclap: Member List

TCLAP::XorHandler Member List

This is the complete list of members for TCLAP::XorHandler, including all inherited members.
_orListTCLAP::XorHandler [protected]
add(std::vector< Arg * > &ors)TCLAP::XorHandler [inline]
check(const Arg *a)TCLAP::XorHandler [inline]
contains(const Arg *a)TCLAP::XorHandler [inline]
getXorList()TCLAP::XorHandler [inline]
printLongUsage(std::ostream &os)TCLAP::XorHandler
shortUsage()TCLAP::XorHandler
XorHandler()TCLAP::XorHandler [inline]

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/classTCLAP_1_1XorHandler.html000644 000765 000765 00000040312 11552414564 021353 0ustar00mesmes000000 000000 tclap: TCLAP::XorHandler Class Reference

TCLAP::XorHandler Class Reference

This class handles lists of Arg's that are to be XOR'd on the command line. More...

#include <XorHandler.h>

List of all members.

Public Member Functions

 XorHandler ()
 Constructor.
void add (std::vector< Arg * > &ors)
 Add a list of Arg*'s that will be orred together.
int check (const Arg *a)
 Checks whether the specified Arg is in one of the xor lists and if it does match one, returns the size of the xor list that the Arg matched.
std::string shortUsage ()
 Returns the XOR specific short usage.
void printLongUsage (std::ostream &os)
 Prints the XOR specific long usage.
bool contains (const Arg *a)
 Simply checks whether the Arg is contained in one of the arg lists.
std::vector< std::vector< Arg * > > & getXorList ()

Protected Attributes

std::vector< std::vector< Arg * > > _orList
 The list of of lists of Arg's to be or'd together.

Detailed Description

This class handles lists of Arg's that are to be XOR'd on the command line.

This is used by CmdLine and you shouldn't ever use it.

Definition at line 38 of file XorHandler.h.


Constructor & Destructor Documentation

TCLAP::XorHandler::XorHandler (  )  [inline]

Constructor.

Does nothing.

Definition at line 52 of file XorHandler.h.


Member Function Documentation

void TCLAP::XorHandler::add ( std::vector< Arg * > &  ors  )  [inline]

Add a list of Arg*'s that will be orred together.

Parameters:
ors - list of Arg* that will be xor'd.

Definition at line 95 of file XorHandler.h.

References _orList.

Referenced by TCLAP::CmdLine::xorAdd().

int TCLAP::XorHandler::check ( const Arg a  )  [inline]

Checks whether the specified Arg is in one of the xor lists and if it does match one, returns the size of the xor list that the Arg matched.

If the Arg matches, then it also sets the rest of the Arg's in the list. You shouldn't use this.

Parameters:
a - The Arg to be checked.

Definition at line 100 of file XorHandler.h.

References _orList, TCLAP::Arg::isRequired(), and TCLAP::Arg::isSet().

Referenced by TCLAP::CmdLine::parse().

bool TCLAP::XorHandler::contains ( const Arg a  )  [inline]

Simply checks whether the Arg is contained in one of the arg lists.

Parameters:
a - The Arg to be checked.

Definition at line 141 of file XorHandler.h.

References _orList.

Referenced by TCLAP::StdOutput::_longUsage(), TCLAP::StdOutput::_shortUsage(), and TCLAP::DocBookOutput::usage().

std::vector< std::vector< Arg * > > & TCLAP::XorHandler::getXorList (  )  [inline]
void TCLAP::XorHandler::printLongUsage ( std::ostream &  os  ) 

Prints the XOR specific long usage.

Parameters:
os - Stream to print to.
std::string TCLAP::XorHandler::shortUsage (  ) 

Returns the XOR specific short usage.


Member Data Documentation

std::vector< std::vector<Arg*> > TCLAP::XorHandler::_orList [protected]

The list of of lists of Arg's to be or'd together.

Definition at line 45 of file XorHandler.h.

Referenced by add(), check(), contains(), and getXorList().


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

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/classTCLAP_1_1ZshCompletionOutput-members.html000644 000765 000765 00000012072 11552414564 024756 0ustar00mesmes000000 000000 tclap: Member List

TCLAP::ZshCompletionOutput Member List

This is the complete list of members for TCLAP::ZshCompletionOutput, including all inherited members.
basename(std::string &s)TCLAP::ZshCompletionOutput [inline, protected]
commonTCLAP::ZshCompletionOutput [protected]
failure(CmdLineInterface &c, ArgException &e)TCLAP::ZshCompletionOutput [inline, virtual]
getMutexList(CmdLineInterface &_cmd, Arg *a)TCLAP::ZshCompletionOutput [inline, protected]
printArg(Arg *it)TCLAP::ZshCompletionOutput [inline, protected]
printOption(Arg *it, std::string mutex)TCLAP::ZshCompletionOutput [inline, protected]
quoteSpecialChars(std::string &s)TCLAP::ZshCompletionOutput [inline, protected]
theDelimiterTCLAP::ZshCompletionOutput [protected]
usage(CmdLineInterface &c)TCLAP::ZshCompletionOutput [inline, virtual]
version(CmdLineInterface &c)TCLAP::ZshCompletionOutput [inline, virtual]
ZshCompletionOutput()TCLAP::ZshCompletionOutput
~CmdLineOutput()TCLAP::CmdLineOutput [inline, virtual]

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/classTCLAP_1_1ZshCompletionOutput.gif000644 000765 000765 00000001612 11552414564 023125 0ustar00mesmes000000 000000 GIF89a³PòÿÿÿÿÿÀŸŸ`ÀÀÀ!ù,³Pþ8ºÜþ0ÊI«½8ë(ºÿ`(Ždižhª®l*n,ÏtmÓð­ï|ŸpH,Ƥr‰CÊÐhÀ#¥’¦)ö]a·VVµ>•]ÁYüMÙÙk<Õ¦Áåªs+ýœ‡ôo~n…uP„Šsol‰ˆ]a„]3|1w‘‹wu€‰£’g_¡a§’Ѝ¥ª5š.œ z[·c"¢¯Ÿ¬°¼­·À‡‡2²-´ƒT¹€µ…Á½‹¿­c«ÒŬÆ1ÈbË–àÑ&»ÑÃÓľéâ©èçhNvÏÔáÛx¼ì¦ÂÔæÚˆ¡øõöÀSóS kòlùjFLÐALÙü­1è¯Ú%G3 dÂþ±#´"Ý<Š\âŒGÈ‘(‰”Üq2¥Ë—ï`Êœyl#Í›8E´ÌÉóåΞ@EnJ´¨Ñ£H“XÊ´©Ó§P£JJµ*UV³jÝʵ«×¯`Ã2Å*¶¬Ù³hÓŠ5ÀV­Û·pã‚eKV®Ý»xßÒm›·¯ß¿Z÷ÖL¸páÁ†+¾‹x±ãÇgCžLy«äʘ3?½¬¹3fΞC?-º´aÒ¦SûE­ºµ]Ö®c»…-»¶YÚ¶sÅ­»w`ßÀÑòN|sñã^‡#/®|yðæÎ}C®{:uÛÖ¯ËήÝ5÷ƒ7-¾´–óèÓ«_Ͼ½û÷ðãËŸO¼v(ö¯ãÏ}?þÿåþýw\€ Ç”J€SZ(x^T B… YJ¸T…ZM¨àV^Øa‚Maá‡â‰V‘hâS"R¸¡W-¾˜Õ‡‚X¢…Æx#U"V¸ *äŠ> icþxàC2¸ãøAy¤Ö¸ãŠ,âˆeŒ#f âˆ]béäQ*i$‘O’™æ™a¢X$‘a¾I£Š:Ži§Êxå–{N‰æŸʩ栀~i(ŸˆÎ !Š^2¨a†øf¡ŒÆIhœZziŸmj h›K.j££Rª§—‚j©i§„šª©¬~º¦¢Z^ êž·ŠŠêšbƺꪮÎê笘º­‘&R‰'’bšèƒKe©vÙ$•¡.+mžF‚ib€QF+©€ŒRéTVæw®aëBØ®~™½Ë¢¼ä¶–n½¹Ý‹omúî[¿þÚKßÀlðÁ#œ;tclap-1.2.1/docs/html/classTCLAP_1_1ZshCompletionOutput.html000644 000765 000765 00000057332 11552414564 023336 0ustar00mesmes000000 000000 tclap: TCLAP::ZshCompletionOutput Class Reference

TCLAP::ZshCompletionOutput Class Reference

A class that generates a Zsh completion function as output from the usage() method for the given CmdLine and its Args. More...

#include <ZshCompletionOutput.h>

Inheritance diagram for TCLAP::ZshCompletionOutput:
TCLAP::CmdLineOutput

List of all members.

Public Member Functions

 ZshCompletionOutput ()
virtual void usage (CmdLineInterface &c)
 Prints the usage to stdout.
virtual void version (CmdLineInterface &c)
 Prints the version to stdout.
virtual void failure (CmdLineInterface &c, ArgException &e)
 Prints (to stderr) an error message, short usage Can be overridden to produce alternative behavior.

Protected Member Functions

void basename (std::string &s)
void quoteSpecialChars (std::string &s)
std::string getMutexList (CmdLineInterface &_cmd, Arg *a)
void printOption (Arg *it, std::string mutex)
void printArg (Arg *it)

Protected Attributes

std::map< std::string,
std::string > 
common
char theDelimiter

Detailed Description

A class that generates a Zsh completion function as output from the usage() method for the given CmdLine and its Args.

Definition at line 43 of file ZshCompletionOutput.h.


Constructor & Destructor Documentation

TCLAP::ZshCompletionOutput::ZshCompletionOutput (  ) 

Definition at line 86 of file ZshCompletionOutput.h.

References common.


Member Function Documentation

void TCLAP::ZshCompletionOutput::basename ( std::string &  s  )  [inline, protected]

Definition at line 155 of file ZshCompletionOutput.h.

Referenced by usage().

void TCLAP::ZshCompletionOutput::failure ( CmdLineInterface c,
ArgException e 
) [inline, virtual]

Prints (to stderr) an error message, short usage Can be overridden to produce alternative behavior.

Parameters:
c - The CmdLine object the output is generated for.
e - The ArgException that caused the failure.

Implements TCLAP::CmdLineOutput.

Definition at line 129 of file ZshCompletionOutput.h.

References TCLAP::ArgException::what().

std::string TCLAP::ZshCompletionOutput::getMutexList ( CmdLineInterface _cmd,
Arg a 
) [inline, protected]
void TCLAP::ZshCompletionOutput::printArg ( Arg it  )  [inline, protected]
void TCLAP::ZshCompletionOutput::printOption ( Arg it,
std::string  mutex 
) [inline, protected]
void TCLAP::ZshCompletionOutput::quoteSpecialChars ( std::string &  s  )  [inline, protected]

Definition at line 136 of file ZshCompletionOutput.h.

Referenced by printOption().

void TCLAP::ZshCompletionOutput::usage ( CmdLineInterface c  )  [inline, virtual]

Prints the usage to stdout.

Can be overridden to produce alternative behavior.

Parameters:
c - The CmdLine object the output is generated for.

Implements TCLAP::CmdLineOutput.

Definition at line 106 of file ZshCompletionOutput.h.

References basename(), TCLAP::CmdLineInterface::getArgList(), TCLAP::CmdLineInterface::getDelimiter(), getMutexList(), TCLAP::CmdLineInterface::getProgramName(), TCLAP::CmdLineInterface::getVersion(), printArg(), printOption(), and theDelimiter.

void TCLAP::ZshCompletionOutput::version ( CmdLineInterface c  )  [inline, virtual]

Prints the version to stdout.

Can be overridden to produce alternative behavior.

Parameters:
c - The CmdLine object the output is generated for.

Implements TCLAP::CmdLineOutput.

Definition at line 101 of file ZshCompletionOutput.h.

References TCLAP::CmdLineInterface::getVersion().


Member Data Documentation

std::map<std::string, std::string> TCLAP::ZshCompletionOutput::common [protected]

Definition at line 82 of file ZshCompletionOutput.h.

Referenced by printArg(), printOption(), and ZshCompletionOutput().

Definition at line 83 of file ZshCompletionOutput.h.

Referenced by printOption(), and usage().


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

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/CmdLine_8h.html000644 000765 000765 00000011041 11552414564 016742 0ustar00mesmes000000 000000 tclap: CmdLine.h File Reference

CmdLine.h File Reference

#include <tclap/SwitchArg.h>
#include <tclap/MultiSwitchArg.h>
#include <tclap/UnlabeledValueArg.h>
#include <tclap/UnlabeledMultiArg.h>
#include <tclap/XorHandler.h>
#include <tclap/HelpVisitor.h>
#include <tclap/VersionVisitor.h>
#include <tclap/IgnoreRestVisitor.h>
#include <tclap/CmdLineOutput.h>
#include <tclap/StdOutput.h>
#include <tclap/Constraint.h>
#include <tclap/ValuesConstraint.h>
#include <string>
#include <vector>
#include <list>
#include <iostream>
#include <iomanip>
#include <algorithm>
#include <stdlib.h>

Go to the source code of this file.

Classes

class  TCLAP::CmdLine
 The base class that manages the command line definition and passes along the parsing to the appropriate Arg classes. More...

Namespaces

namespace  TCLAP

Functions

template<typename T >
void TCLAP::DelPtr (T ptr)
template<typename C >
void TCLAP::ClearContainer (C &c)

Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/CmdLine_8h_source.html000644 000765 000765 00000173746 11552414564 020347 0ustar00mesmes000000 000000 tclap: CmdLine.h Source File
Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/CmdLineInterface_8h.html000644 000765 000765 00000005032 11552414564 020566 0ustar00mesmes000000 000000 tclap: CmdLineInterface.h File Reference

CmdLineInterface.h File Reference

#include <string>
#include <vector>
#include <list>
#include <iostream>
#include <algorithm>

Go to the source code of this file.

Classes

class  TCLAP::CmdLineInterface
 The base class that manages the command line definition and passes along the parsing to the appropriate Arg classes. More...

Namespaces

namespace  TCLAP

Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/CmdLineInterface_8h_source.html000644 000765 000765 00000026262 11552414564 022156 0ustar00mesmes000000 000000 tclap: CmdLineInterface.h Source File
Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/CmdLineOutput_8h.html000644 000765 000765 00000004563 11552414564 020176 0ustar00mesmes000000 000000 tclap: CmdLineOutput.h File Reference

CmdLineOutput.h File Reference

#include <string>
#include <vector>
#include <list>
#include <iostream>
#include <iomanip>
#include <algorithm>

Go to the source code of this file.

Classes

class  TCLAP::CmdLineOutput
 The interface that any output object must implement. More...

Namespaces

namespace  TCLAP

Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/CmdLineOutput_8h_source.html000644 000765 000765 00000015742 11552414564 021557 0ustar00mesmes000000 000000 tclap: CmdLineOutput.h Source File
Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/Constraint_8h.html000644 000765 000765 00000005214 11552414564 017560 0ustar00mesmes000000 000000 tclap: Constraint.h File Reference

Constraint.h File Reference

#include <string>
#include <vector>
#include <list>
#include <iostream>
#include <iomanip>
#include <algorithm>

Go to the source code of this file.

Classes

class  TCLAP::Constraint< T >
 The interface that defines the interaction between the Arg and Constraint. More...

Namespaces

namespace  TCLAP

Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/Constraint_8h_source.html000644 000765 000765 00000014274 11552414564 021146 0ustar00mesmes000000 000000 tclap: Constraint.h Source File
Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/CVS/000777 000765 000765 00000000000 11552414564 014604 5ustar00mesmes000000 000000 tclap-1.2.1/docs/html/DocBookOutput_8h.html000644 000765 000765 00000006054 11552414564 020200 0ustar00mesmes000000 000000 tclap: DocBookOutput.h File Reference

DocBookOutput.h File Reference

#include <string>
#include <vector>
#include <list>
#include <iostream>
#include <algorithm>
#include <tclap/CmdLineInterface.h>
#include <tclap/CmdLineOutput.h>
#include <tclap/XorHandler.h>
#include <tclap/Arg.h>

Go to the source code of this file.

Classes

class  TCLAP::DocBookOutput
 A class that generates DocBook output for usage() method for the given CmdLine and its Args. More...

Namespaces

namespace  TCLAP

Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/DocBookOutput_8h_source.html000644 000765 000765 00000104516 11552414564 021562 0ustar00mesmes000000 000000 tclap: DocBookOutput.h Source File
Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/doxygen.css000644 000765 000765 00000014733 11552414564 016344 0ustar00mesmes000000 000000 /* The standard CSS for doxygen */ body, table, div, p, dl { font-family: Lucida Grande, Verdana, Geneva, Arial, sans-serif; font-size: 12px; } /* @group Heading Levels */ h1 { text-align: center; font-size: 150%; } h2 { font-size: 120%; } h3 { font-size: 100%; } dt { font-weight: bold; } div.multicol { -moz-column-gap: 1em; -webkit-column-gap: 1em; -moz-column-count: 3; -webkit-column-count: 3; } p.startli, p.startdd { margin-top: 2px; } p.endli { margin-bottom: 0px; } p.enddd { margin-bottom: 4px; } /* @end */ caption { font-weight: bold; } span.legend { font-size: 70%; text-align: center; } div.qindex, div.navtab{ background-color: #e8eef2; border: 1px solid #84b0c7; text-align: center; margin: 2px; padding: 2px; } div.qindex, div.navpath { width: 100%; line-height: 140%; } div.navtab { margin-right: 15px; } /* @group Link Styling */ a { color: #153788; font-weight: normal; text-decoration: none; } .contents a:visited { color: #1b77c5; } a:hover { text-decoration: underline; } a.qindex { font-weight: bold; } a.qindexHL { font-weight: bold; background-color: #6666cc; color: #ffffff; border: 1px double #9295C2; } .contents a.qindexHL:visited { color: #ffffff; } a.el { font-weight: bold; } a.elRef { } a.code { } a.codeRef { } /* @end */ dl.el { margin-left: -1cm; } .fragment { font-family: monospace, fixed; font-size: 105%; } pre.fragment { border: 1px solid #CCCCCC; background-color: #f5f5f5; padding: 4px 6px; margin: 4px 8px 4px 2px; } div.ah { background-color: black; font-weight: bold; color: #ffffff; margin-bottom: 3px; margin-top: 3px } div.groupHeader { margin-left: 16px; margin-top: 12px; margin-bottom: 6px; font-weight: bold; } div.groupText { margin-left: 16px; font-style: italic; } body { background: white; color: black; margin-right: 20px; margin-left: 20px; } td.indexkey { background-color: #e8eef2; font-weight: bold; border: 1px solid #CCCCCC; margin: 2px 0px 2px 0; padding: 2px 10px; } td.indexvalue { background-color: #e8eef2; border: 1px solid #CCCCCC; padding: 2px 10px; margin: 2px 0px; } tr.memlist { background-color: #f0f0f0; } p.formulaDsp { text-align: center; } img.formulaDsp { } img.formulaInl { vertical-align: middle; } div.center { text-align: center; margin-top: 0px; margin-bottom: 0px; padding: 0px; } div.center img { border: 0px; } img.footer { border: 0px; vertical-align: middle; } /* @group Code Colorization */ span.keyword { color: #008000 } span.keywordtype { color: #604020 } span.keywordflow { color: #e08000 } span.comment { color: #800000 } span.preprocessor { color: #806020 } span.stringliteral { color: #002080 } span.charliteral { color: #008080 } span.vhdldigit { color: #ff00ff } span.vhdlchar { color: #000000 } span.vhdlkeyword { color: #700070 } span.vhdllogic { color: #ff0000 } /* @end */ .search { color: #003399; font-weight: bold; } form.search { margin-bottom: 0px; margin-top: 0px; } input.search { font-size: 75%; color: #000080; font-weight: normal; background-color: #e8eef2; } td.tiny { font-size: 75%; } .dirtab { padding: 4px; border-collapse: collapse; border: 1px solid #84b0c7; } th.dirtab { background: #e8eef2; font-weight: bold; } hr { height: 0; border: none; border-top: 1px solid #666; } /* @group Member Descriptions */ .mdescLeft, .mdescRight, .memItemLeft, .memItemRight, .memTemplItemLeft, .memTemplItemRight, .memTemplParams { background-color: #FAFAFA; border: none; margin: 4px; padding: 1px 0 0 8px; } .mdescLeft, .mdescRight { padding: 0px 8px 4px 8px; color: #555; } .memItemLeft, .memItemRight, .memTemplParams { border-top: 1px solid #ccc; } .memItemLeft, .memTemplItemLeft { white-space: nowrap; } .memTemplParams { color: #606060; white-space: nowrap; } /* @end */ /* @group Member Details */ /* Styles for detailed member documentation */ .memtemplate { font-size: 80%; color: #606060; font-weight: normal; margin-left: 3px; } .memnav { background-color: #e8eef2; border: 1px solid #84b0c7; text-align: center; margin: 2px; margin-right: 15px; padding: 2px; } .memitem { padding: 0; margin-bottom: 10px; } .memname { white-space: nowrap; font-weight: bold; } .memproto, .memdoc { border: 1px solid #84b0c7; } .memproto { padding: 0; background-color: #d5e1e8; font-weight: bold; -webkit-border-top-left-radius: 8px; -webkit-border-top-right-radius: 8px; -webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15); -moz-border-radius-topleft: 8px; -moz-border-radius-topright: 8px; -moz-box-shadow: rgba(0, 0, 0, 0.15) 5px 5px 5px; } .memdoc { padding: 2px 5px; background-color: #eef3f5; border-top-width: 0; -webkit-border-bottom-left-radius: 8px; -webkit-border-bottom-right-radius: 8px; -webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15); -moz-border-radius-bottomleft: 8px; -moz-border-radius-bottomright: 8px; -moz-box-shadow: rgba(0, 0, 0, 0.15) 5px 5px 5px; } .paramkey { text-align: right; } .paramtype { white-space: nowrap; } .paramname { color: #602020; white-space: nowrap; } .paramname em { font-style: normal; } /* @end */ /* @group Directory (tree) */ /* for the tree view */ .ftvtree { font-family: sans-serif; margin: 0.5em; } /* these are for tree view when used as main index */ .directory { font-size: 9pt; font-weight: bold; } .directory h3 { margin: 0px; margin-top: 1em; font-size: 11pt; } /* The following two styles can be used to replace the root node title with an image of your choice. Simply uncomment the next two styles, specify the name of your image and be sure to set 'height' to the proper pixel height of your image. */ /* .directory h3.swap { height: 61px; background-repeat: no-repeat; background-image: url("yourimage.gif"); } .directory h3.swap span { display: none; } */ .directory > h3 { margin-top: 0; } .directory p { margin: 0px; white-space: nowrap; } .directory div { display: none; margin: 0px; } .directory img { vertical-align: -30%; } /* these are for tree view when not used as main index */ .directory-alt { font-size: 100%; font-weight: bold; } .directory-alt h3 { margin: 0px; margin-top: 1em; font-size: 11pt; } .directory-alt > h3 { margin-top: 0; } .directory-alt p { margin: 0px; white-space: nowrap; } .directory-alt div { display: none; margin: 0px; } .directory-alt img { vertical-align: -30%; } /* @end */ address { font-style: normal; color: #333; } tclap-1.2.1/docs/html/doxygen.png000644 000765 000765 00000002401 11552414564 016325 0ustar00mesmes000000 000000 ‰PNG  IHDRd-ok>ÂgAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<]PLTEǾÏ"&©ÈÎï¶»ÖÓÚú“¢Þ ¬à¶Âõ‡§ÕÙêÉÊÎáâæ{ŽÔ¡ëˆ™× ²ø§¬¹ÀÀ±ÝÝÎùùéõõçëëåED9×ÖËhg]_X<@:#mhUÿÿÿÝÀ1tRNSÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÍvÿIDATxÚbC£: d#„„………h` @¡X",***LKˆ.–], ºX@t± €èb @ÑÅ€BµD„6–š%""´° € ˜% ˆ™B:H¢ˆ²Áf@• ˆRPy"K`\PbC(!II!h©…ëƒ(ñ„Ä!ꈬC„Ä…àl!0[X\J\$TMˆ(’>a$S„ Ù@ Ш@R.$‚¬LJBR¢‰AÌG1 ¬ Â(FȃÔPhhÁTÀ¢„%!`€&q°%u P ¹¢ ¬ € ¹CT$B¢à|‚ºW„¤Àl £!B`R$( …Ĉ‘’ž@AÅ%ĤÄ%@,(—ʂڱ%$ÁââRPmB U`1IˆYB  99€\1 yCCCÿf"[N 'Ü=TGÈ’øl8˜^Kû5<êSæRɤ”%î@@ à›Ê b1 qÅAXHˆ¸&ØB’R y n˜P„Ìã–4A €€j¹€€>Ü ˜ t!˜+(.ÈÅWQ±A2ÜÜMUÜ‚’’‚‚â `1 %`19€F< 3cZÄ`óe!\ˆ DÈ+. 83‹³Àä¸!lYYA -6‚EJŠ¢V €@©žXXX 4„å Ê@86Ð`RdB´€4I "Ý "–@xrÊŒ‚H€AÊ`—f ÉȰCŒ"XV0ɲ³C b@2…¬H ¬È“ p)!(ì‚ 0Ž4ˆ)(%RÁÎ ¶$€TÊ€¥Àþb‡b,säÐ@7À üѰ‚Òî?f¥Ö—\PIx!I´¦"”Ȉ’3¨ QY˜ÿt^^ÛØgv- }>WJOAV`$&#”¦8ùøø8€\FF ›SFJ$ÂÆ€ÐƊС䈉ÀÀ 4ª…Èäå -Á§‡ €H²…—ŸŸŸf ?ðâ5„ €k1Âd‰,ŒÃ ³ƒ“€.€"­F™ËË€àñ‚½ÁIÈ€"±Ù4ÉH gx|‚f©m)))9´. aMDƒ& ºX@t± €èb @ÑÅ€¢‹%DKˆ.–], ºX@t± €èb @€d`‚ɽSµOIEND®B`‚tclap-1.2.1/docs/html/files.html000644 000765 000765 00000012761 11552414564 016144 0ustar00mesmes000000 000000 tclap: File Index
Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/functions.html000644 000765 000765 00000022724 11552414564 017052 0ustar00mesmes000000 000000 tclap: Class Members
Here is a list of all class members with links to the classes they belong to:

- _ -


Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/functions_0x61.html000644 000765 000765 00000013163 11552414564 017625 0ustar00mesmes000000 000000 tclap: Class Members
Here is a list of all class members with links to the classes they belong to:

- a -


Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/functions_0x62.html000644 000765 000765 00000010417 11552414564 017625 0ustar00mesmes000000 000000 tclap: Class Members
Here is a list of all class members with links to the classes they belong to:

- b -


Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/functions_0x63.html000644 000765 000765 00000012161 11552414564 017624 0ustar00mesmes000000 000000 tclap: Class Members
Here is a list of all class members with links to the classes they belong to:

- c -


Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/functions_0x64.html000644 000765 000765 00000010235 11552414564 017625 0ustar00mesmes000000 000000 tclap: Class Members
Here is a list of all class members with links to the classes they belong to:

- d -


Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/functions_0x65.html000644 000765 000765 00000010050 11552414564 017621 0ustar00mesmes000000 000000 tclap: Class Members
Here is a list of all class members with links to the classes they belong to:

- e -


Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/functions_0x66.html000644 000765 000765 00000010745 11552414564 017635 0ustar00mesmes000000 000000 tclap: Class Members
Here is a list of all class members with links to the classes they belong to:

- f -


Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/functions_0x67.html000644 000765 000765 00000015554 11552414564 017641 0ustar00mesmes000000 000000 tclap: Class Members
Here is a list of all class members with links to the classes they belong to:

- g -


Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/functions_0x68.html000644 000765 000765 00000010031 11552414564 017623 0ustar00mesmes000000 000000 tclap: Class Members
Here is a list of all class members with links to the classes they belong to:

- h -


Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/functions_0x69.html000644 000765 000765 00000011364 11552414564 017636 0ustar00mesmes000000 000000 tclap: Class Members
Here is a list of all class members with links to the classes they belong to:

- i -


Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/functions_0x6c.html000644 000765 000765 00000010557 11552414564 017713 0ustar00mesmes000000 000000 tclap: Class Members
Here is a list of all class members with links to the classes they belong to:

- l -


Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/functions_0x6d.html000644 000765 000765 00000010065 11552414564 017706 0ustar00mesmes000000 000000 tclap: Class Members
Here is a list of all class members with links to the classes they belong to:

- m -


Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/functions_0x6e.html000644 000765 000765 00000007417 11552414564 017716 0ustar00mesmes000000 000000 tclap: Class Members
Here is a list of all class members with links to the classes they belong to:

- n -


Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/functions_0x6f.html000644 000765 000765 00000010026 11552414564 017705 0ustar00mesmes000000 000000 tclap: Class Members
Here is a list of all class members with links to the classes they belong to:

- o -


Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/functions_0x70.html000644 000765 000765 00000012634 11552414564 017627 0ustar00mesmes000000 000000 tclap: Class Members
Here is a list of all class members with links to the classes they belong to:

- p -


Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/functions_0x71.html000644 000765 000765 00000007461 11552414564 017632 0ustar00mesmes000000 000000 tclap: Class Members
Here is a list of all class members with links to the classes they belong to:

- q -


Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/functions_0x72.html000644 000765 000765 00000011067 11552414564 017630 0ustar00mesmes000000 000000 tclap: Class Members
Here is a list of all class members with links to the classes they belong to:

- r -


Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/functions_0x73.html000644 000765 000765 00000013642 11552414564 017632 0ustar00mesmes000000 000000 tclap: Class Members
Here is a list of all class members with links to the classes they belong to:

- s -


Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/functions_0x74.html000644 000765 000765 00000010422 11552414564 017624 0ustar00mesmes000000 000000 tclap: Class Members
Here is a list of all class members with links to the classes they belong to:

- t -


Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/functions_0x75.html000644 000765 000765 00000010676 11552414564 017640 0ustar00mesmes000000 000000 tclap: Class Members
Here is a list of all class members with links to the classes they belong to:

- u -


Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/functions_0x76.html000644 000765 000765 00000016703 11552414564 017636 0ustar00mesmes000000 000000 tclap: Class Members
Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/functions_0x77.html000644 000765 000765 00000007426 11552414564 017641 0ustar00mesmes000000 000000 tclap: Class Members
Here is a list of all class members with links to the classes they belong to:

- w -


Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/functions_0x78.html000644 000765 000765 00000010175 11552414564 017635 0ustar00mesmes000000 000000 tclap: Class Members
Here is a list of all class members with links to the classes they belong to:

- x -


Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/functions_0x7a.html000644 000765 000765 00000007463 11552414564 017714 0ustar00mesmes000000 000000 tclap: Class Members
Here is a list of all class members with links to the classes they belong to:

- z -


Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/functions_0x7e.html000644 000765 000765 00000012637 11552414564 017717 0ustar00mesmes000000 000000 tclap: Class Members
Here is a list of all class members with links to the classes they belong to:

- ~ -


Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/functions_func.html000644 000765 000765 00000011122 11552414564 020053 0ustar00mesmes000000 000000 tclap: Class Members - Functions
 

- _ -


Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/functions_func_0x61.html000644 000765 000765 00000013265 11552414564 020643 0ustar00mesmes000000 000000 tclap: Class Members - Functions
Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/functions_func_0x62.html000644 000765 000765 00000010521 11552414564 020634 0ustar00mesmes000000 000000 tclap: Class Members - Functions
 

- b -


Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/functions_func_0x63.html000644 000765 000765 00000011411 11552414564 020634 0ustar00mesmes000000 000000 tclap: Class Members - Functions
Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/functions_func_0x64.html000644 000765 000765 00000010337 11552414564 020643 0ustar00mesmes000000 000000 tclap: Class Members - Functions
 

- d -


Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/functions_func_0x65.html000644 000765 000765 00000010152 11552414564 020637 0ustar00mesmes000000 000000 tclap: Class Members - Functions
 

- e -


Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/functions_func_0x66.html000644 000765 000765 00000011047 11552414564 020644 0ustar00mesmes000000 000000 tclap: Class Members - Functions
 

- f -


Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/functions_func_0x67.html000644 000765 000765 00000015656 11552414564 020657 0ustar00mesmes000000 000000 tclap: Class Members - Functions
Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/functions_func_0x68.html000644 000765 000765 00000010133 11552414564 020641 0ustar00mesmes000000 000000 tclap: Class Members - Functions
 

- h -


Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/functions_func_0x69.html000644 000765 000765 00000011257 11552414564 020652 0ustar00mesmes000000 000000 tclap: Class Members - Functions
 

- i -


Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/functions_func_0x6c.html000644 000765 000765 00000010661 11552414564 020722 0ustar00mesmes000000 000000 tclap: Class Members - Functions
Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/functions_func_0x6d.html000644 000765 000765 00000010167 11552414564 020724 0ustar00mesmes000000 000000 tclap: Class Members - Functions
 

- m -


Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/functions_func_0x6e.html000644 000765 000765 00000007521 11552414564 020725 0ustar00mesmes000000 000000 tclap: Class Members - Functions
 

- n -


Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/functions_func_0x6f.html000644 000765 000765 00000010130 11552414564 020714 0ustar00mesmes000000 000000 tclap: Class Members - Functions
Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/functions_func_0x70.html000644 000765 000765 00000012736 11552414564 020645 0ustar00mesmes000000 000000 tclap: Class Members - Functions
Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/functions_func_0x71.html000644 000765 000765 00000007563 11552414565 020651 0ustar00mesmes000000 000000 tclap: Class Members - Functions
 

- q -


Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/functions_func_0x72.html000644 000765 000765 00000011171 11552414565 020640 0ustar00mesmes000000 000000 tclap: Class Members - Functions
Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/functions_func_0x73.html000644 000765 000765 00000013744 11552414565 020651 0ustar00mesmes000000 000000 tclap: Class Members - Functions
Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/functions_func_0x74.html000644 000765 000765 00000010113 11552414565 020635 0ustar00mesmes000000 000000 tclap: Class Members - Functions
 

- t -


Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/functions_func_0x75.html000644 000765 000765 00000011000 11552414565 020632 0ustar00mesmes000000 000000 tclap: Class Members - Functions
Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/functions_func_0x76.html000644 000765 000765 00000012307 11552414565 020646 0ustar00mesmes000000 000000 tclap: Class Members - Functions
Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/functions_func_0x77.html000644 000765 000765 00000007530 11552414565 020651 0ustar00mesmes000000 000000 tclap: Class Members - Functions
Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/functions_func_0x78.html000644 000765 000765 00000010277 11552414565 020654 0ustar00mesmes000000 000000 tclap: Class Members - Functions
 

- x -


Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/functions_func_0x7a.html000644 000765 000765 00000007565 11552414565 020733 0ustar00mesmes000000 000000 tclap: Class Members - Functions
 

- z -


Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/functions_func_0x7e.html000644 000765 000765 00000012741 11552414565 020727 0ustar00mesmes000000 000000 tclap: Class Members - Functions
 

- ~ -


Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/functions_type.html000644 000765 000765 00000010700 11552414565 020103 0ustar00mesmes000000 000000 tclap: Class Members - Typedefs
Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/functions_vars.html000644 000765 000765 00000016676 11552414565 020117 0ustar00mesmes000000 000000 tclap: Class Members - Variables
 

- _ -

- c -

- t -


Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/globals.html000644 000765 000765 00000004365 11552414565 016467 0ustar00mesmes000000 000000 tclap: Class Members
Here is a list of all file members with links to the files they belong to:

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/globals_defs.html000644 000765 000765 00000004112 11552414565 017456 0ustar00mesmes000000 000000 tclap: Class Members
 

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/globals_type.html000644 000765 000765 00000003227 11552414565 017524 0ustar00mesmes000000 000000 tclap: Class Members
 

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/HelpVisitor_8h.html000644 000765 000765 00000005547 11552414565 017716 0ustar00mesmes000000 000000 tclap: HelpVisitor.h File Reference

HelpVisitor.h File Reference

#include <tclap/CmdLineInterface.h>
#include <tclap/CmdLineOutput.h>
#include <tclap/Visitor.h>

Go to the source code of this file.

Classes

class  TCLAP::HelpVisitor
 A Visitor object that calls the usage method of the given CmdLineOutput object for the specified CmdLine object. More...

Namespaces

namespace  TCLAP

Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/HelpVisitor_8h_source.html000644 000765 000765 00000021021 11552414565 021257 0ustar00mesmes000000 000000 tclap: HelpVisitor.h Source File
Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/hierarchy.html000644 000765 000765 00000013471 11552414565 017020 0ustar00mesmes000000 000000 tclap: Hierarchical Index
Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/IgnoreRestVisitor_8h.html000644 000765 000765 00000004776 11552414565 021112 0ustar00mesmes000000 000000 tclap: IgnoreRestVisitor.h File Reference

IgnoreRestVisitor.h File Reference

#include <tclap/Visitor.h>
#include <tclap/Arg.h>

Go to the source code of this file.

Classes

class  TCLAP::IgnoreRestVisitor
 A Vistor that tells the CmdLine to begin ignoring arguments after this one is parsed. More...

Namespaces

namespace  TCLAP

Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/IgnoreRestVisitor_8h_source.html000644 000765 000765 00000013343 11552414565 022460 0ustar00mesmes000000 000000 tclap: IgnoreRestVisitor.h Source File
Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/index.html000644 000765 000765 00000002163 11552414565 016145 0ustar00mesmes000000 000000 tclap: Main Page

tclap Documentation

1.2.1


Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/MultiArg_8h.html000644 000765 000765 00000004606 11552414565 017165 0ustar00mesmes000000 000000 tclap: MultiArg.h File Reference

MultiArg.h File Reference

#include <string>
#include <vector>
#include <tclap/Arg.h>
#include <tclap/Constraint.h>

Go to the source code of this file.

Classes

class  TCLAP::MultiArg< T >
 An argument that allows multiple values of type T to be specified. More...

Namespaces

namespace  TCLAP

Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/MultiArg_8h_source.html000644 000765 000765 00000121352 11552414565 020543 0ustar00mesmes000000 000000 tclap: MultiArg.h Source File
Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/MultiSwitchArg_8h.html000644 000765 000765 00000004433 11552414565 020345 0ustar00mesmes000000 000000 tclap: MultiSwitchArg.h File Reference

MultiSwitchArg.h File Reference

#include <string>
#include <vector>
#include <tclap/SwitchArg.h>

Go to the source code of this file.

Classes

class  TCLAP::MultiSwitchArg
 A multiple switch argument. More...

Namespaces

namespace  TCLAP

Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/MultiSwitchArg_8h_source.html000644 000765 000765 00000047214 11552414565 021731 0ustar00mesmes000000 000000 tclap: MultiSwitchArg.h Source File
Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/namespacemembers.html000644 000765 000765 00000004723 11552414565 020351 0ustar00mesmes000000 000000 tclap: Class Members
Here is a list of all namespace members with links to the namespace documentation for each member:

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/namespacemembers_func.html000644 000765 000765 00000004036 11552414565 021361 0ustar00mesmes000000 000000 tclap: Class Members
 

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/namespacemembers_type.html000644 000765 000765 00000003676 11552414565 021420 0ustar00mesmes000000 000000 tclap: Class Members
 
  • ArgListIterator : TCLAP
  • ArgVectorIterator : TCLAP
  • VisitorListIterator : TCLAP

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/namespaces.html000644 000765 000765 00000003011 11552414565 017146 0ustar00mesmes000000 000000 tclap: Namespace Index

Namespace List

Here is a list of all namespaces with brief descriptions:
TCLAP

Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/namespaceTCLAP.html000644 000765 000765 00000103667 11552414565 017571 0ustar00mesmes000000 000000 tclap: TCLAP Namespace Reference

TCLAP Namespace Reference

Classes

class  Arg
 A virtual base class that defines the essential data for all arguments. More...
class  ArgException
 A simple class that defines and argument exception. More...
class  ArgParseException
 Thrown from within the child Arg classes when it fails to properly parse the argument it has been passed. More...
class  CmdLineParseException
 Thrown from CmdLine when the arguments on the command line are not properly specified, e.g. More...
class  SpecificationException
 Thrown from Arg and CmdLine when an Arg is improperly specified, e.g. More...
class  ExitException
struct  ValueLike
 A value like argument value type is a value that can be set using operator>>. More...
struct  StringLike
 A string like argument value type is a value that can be set using operator=(string). More...
struct  StringLikeTrait
 A class can inherit from this object to make it have string like traits. More...
struct  ValueLikeTrait
 A class can inherit from this object to make it have value like traits. More...
struct  ArgTraits
 Arg traits are used to get compile type specialization when parsing argument values. More...
class  CmdLine
 The base class that manages the command line definition and passes along the parsing to the appropriate Arg classes. More...
class  CmdLineInterface
 The base class that manages the command line definition and passes along the parsing to the appropriate Arg classes. More...
class  CmdLineOutput
 The interface that any output object must implement. More...
class  Constraint
 The interface that defines the interaction between the Arg and Constraint. More...
class  DocBookOutput
 A class that generates DocBook output for usage() method for the given CmdLine and its Args. More...
class  HelpVisitor
 A Visitor object that calls the usage method of the given CmdLineOutput object for the specified CmdLine object. More...
class  IgnoreRestVisitor
 A Vistor that tells the CmdLine to begin ignoring arguments after this one is parsed. More...
class  MultiArg
 An argument that allows multiple values of type T to be specified. More...
class  MultiSwitchArg
 A multiple switch argument. More...
class  OptionalUnlabeledTracker
struct  ArgTraits< long >
 longs have value-like semantics. More...
struct  ArgTraits< int >
 ints have value-like semantics. More...
struct  ArgTraits< short >
 shorts have value-like semantics. More...
struct  ArgTraits< char >
 chars have value-like semantics. More...
struct  ArgTraits< unsigned long >
 unsigned longs have value-like semantics. More...
struct  ArgTraits< unsigned int >
 unsigned ints have value-like semantics. More...
struct  ArgTraits< unsigned short >
 unsigned shorts have value-like semantics. More...
struct  ArgTraits< unsigned char >
 unsigned chars have value-like semantics. More...
struct  ArgTraits< float >
 floats have value-like semantics. More...
struct  ArgTraits< double >
 doubles have value-like semantics. More...
struct  ArgTraits< bool >
 bools have value-like semantics. More...
struct  ArgTraits< wchar_t >
 wchar_ts have value-like semantics. More...
struct  ArgTraits< std::string >
 Strings have string like argument traits. More...
class  StdOutput
 A class that isolates any output from the CmdLine object so that it may be easily modified. More...
class  SwitchArg
 A simple switch argument. More...
class  UnlabeledMultiArg
 Just like a MultiArg, except that the arguments are unlabeled. More...
class  UnlabeledValueArg
 The basic unlabeled argument that parses a value. More...
class  ValueArg
 The basic labeled argument that parses a value. More...
class  ValuesConstraint
 A Constraint that constrains the Arg to only those values specified in the constraint. More...
class  VersionVisitor
 A Vistor that will call the version method of the given CmdLineOutput for the specified CmdLine object and then exit. More...
class  Visitor
 A base class that defines the interface for visitors. More...
class  XorHandler
 This class handles lists of Arg's that are to be XOR'd on the command line. More...
class  ZshCompletionOutput
 A class that generates a Zsh completion function as output from the usage() method for the given CmdLine and its Args. More...

Typedefs

typedef std::list< Arg * >
::iterator 
ArgListIterator
 Typedef of an Arg list iterator.
typedef std::vector< Arg * >
::iterator 
ArgVectorIterator
 Typedef of an Arg vector iterator.
typedef std::list< Visitor * >
::iterator 
VisitorListIterator
 Typedef of a Visitor list iterator.

Functions

template<typename T >
void ExtractValue (T &destVal, const std::string &strVal, ValueLike vl)
template<typename T >
void ExtractValue (T &destVal, const std::string &strVal, StringLike sl)
template<typename T >
void DelPtr (T ptr)
template<typename C >
void ClearContainer (C &c)
template<typename T >
void SetString (T &dst, const std::string &src)

Typedef Documentation

typedef std::list<Arg*>::iterator TCLAP::ArgListIterator

Typedef of an Arg list iterator.

Definition at line 396 of file Arg.h.

typedef std::vector<Arg*>::iterator TCLAP::ArgVectorIterator

Typedef of an Arg vector iterator.

Definition at line 401 of file Arg.h.

typedef std::list<Visitor*>::iterator TCLAP::VisitorListIterator

Typedef of a Visitor list iterator.

Definition at line 406 of file Arg.h.


Function Documentation

template<typename C >
void TCLAP::ClearContainer ( C &  c  )  [inline]

Definition at line 58 of file CmdLine.h.

Referenced by TCLAP::CmdLine::~CmdLine().

template<typename T >
void TCLAP::DelPtr ( ptr  )  [inline]

Definition at line 53 of file CmdLine.h.

template<typename T >
void TCLAP::ExtractValue ( T &  destVal,
const std::string &  strVal,
StringLike  sl 
) [inline]

Definition at line 452 of file Arg.h.

References SetString().

template<typename T >
void TCLAP::ExtractValue ( T &  destVal,
const std::string &  strVal,
ValueLike  vl 
) [inline]
template<typename T >
void TCLAP::SetString ( T &  dst,
const std::string &  src 
) [inline]

Definition at line 200 of file StandardTraits.h.

Referenced by ExtractValue().


Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/OptionalUnlabeledTracker_8h.html000644 000765 000765 00000004023 11552414565 022347 0ustar00mesmes000000 000000 tclap: OptionalUnlabeledTracker.h File Reference

OptionalUnlabeledTracker.h File Reference

#include <string>

Go to the source code of this file.

Classes

class  TCLAP::OptionalUnlabeledTracker

Namespaces

namespace  TCLAP

Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/OptionalUnlabeledTracker_8h_source.html000644 000765 000765 00000017210 11552414565 023731 0ustar00mesmes000000 000000 tclap: OptionalUnlabeledTracker.h Source File
Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/StandardTraits_8h.html000644 000765 000765 00000017016 11552414565 020367 0ustar00mesmes000000 000000 tclap: StandardTraits.h File Reference

StandardTraits.h File Reference

Go to the source code of this file.

Classes

struct  TCLAP::ArgTraits< long >
 longs have value-like semantics. More...
struct  TCLAP::ArgTraits< int >
 ints have value-like semantics. More...
struct  TCLAP::ArgTraits< short >
 shorts have value-like semantics. More...
struct  TCLAP::ArgTraits< char >
 chars have value-like semantics. More...
struct  TCLAP::ArgTraits< unsigned long >
 unsigned longs have value-like semantics. More...
struct  TCLAP::ArgTraits< unsigned int >
 unsigned ints have value-like semantics. More...
struct  TCLAP::ArgTraits< unsigned short >
 unsigned shorts have value-like semantics. More...
struct  TCLAP::ArgTraits< unsigned char >
 unsigned chars have value-like semantics. More...
struct  TCLAP::ArgTraits< float >
 floats have value-like semantics. More...
struct  TCLAP::ArgTraits< double >
 doubles have value-like semantics. More...
struct  TCLAP::ArgTraits< bool >
 bools have value-like semantics. More...
struct  TCLAP::ArgTraits< wchar_t >
 wchar_ts have value-like semantics. More...
struct  TCLAP::ArgTraits< std::string >
 Strings have string like argument traits. More...

Namespaces

namespace  TCLAP

Functions

template<typename T >
void TCLAP::SetString (T &dst, const std::string &src)

Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/StandardTraits_8h_source.html000644 000765 000765 00000055456 11552414565 021761 0ustar00mesmes000000 000000 tclap: StandardTraits.h Source File
Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/StdOutput_8h.html000644 000765 000765 00000005623 11552414565 017414 0ustar00mesmes000000 000000 tclap: StdOutput.h File Reference

StdOutput.h File Reference

#include <string>
#include <vector>
#include <list>
#include <iostream>
#include <algorithm>
#include <tclap/CmdLineInterface.h>
#include <tclap/CmdLineOutput.h>
#include <tclap/XorHandler.h>
#include <tclap/Arg.h>

Go to the source code of this file.

Classes

class  TCLAP::StdOutput
 A class that isolates any output from the CmdLine object so that it may be easily modified. More...

Namespaces

namespace  TCLAP

Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/StdOutput_8h_source.html000644 000765 000765 00000077246 11552414565 021006 0ustar00mesmes000000 000000 tclap: StdOutput.h Source File
Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/structTCLAP_1_1ArgTraits-members.html000644 000765 000765 00000004077 11552414565 023065 0ustar00mesmes000000 000000 tclap: Member List

TCLAP::ArgTraits< T > Member List

This is the complete list of members for TCLAP::ArgTraits< T >, including all inherited members.
ValueCategory typedefTCLAP::ArgTraits< T >
~ArgTraits()TCLAP::ArgTraits< T > [inline, virtual]

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/structTCLAP_1_1ArgTraits.html000644 000765 000765 00000013275 11552414565 021435 0ustar00mesmes000000 000000 tclap: TCLAP::ArgTraits< T > Struct Template Reference

TCLAP::ArgTraits< T > Struct Template Reference

Arg traits are used to get compile type specialization when parsing argument values. More...

#include <ArgTraits.h>

List of all members.

Public Types

typedef T::ValueCategory ValueCategory

Public Member Functions

virtual ~ArgTraits ()

Detailed Description

template<typename T>
struct TCLAP::ArgTraits< T >

Arg traits are used to get compile type specialization when parsing argument values.

Using an ArgTraits you can specify the way that values gets assigned to any particular type during parsing. The two supported types are StringLike and ValueLike.

Definition at line 79 of file ArgTraits.h.


Member Typedef Documentation

template<typename T>
typedef T::ValueCategory TCLAP::ArgTraits< T >::ValueCategory

Definition at line 80 of file ArgTraits.h.


Constructor & Destructor Documentation

template<typename T>
virtual TCLAP::ArgTraits< T >::~ArgTraits (  )  [inline, virtual]

Definition at line 81 of file ArgTraits.h.


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

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/structTCLAP_1_1ArgTraits_3_01bool_01_4-members.html000644 000765 000765 00000003545 11552414565 025205 0ustar00mesmes000000 000000 tclap: Member List

TCLAP::ArgTraits< bool > Member List

This is the complete list of members for TCLAP::ArgTraits< bool >, including all inherited members.
ValueCategory typedefTCLAP::ArgTraits< bool >

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/structTCLAP_1_1ArgTraits_3_01bool_01_4.html000644 000765 000765 00000007247 11552414565 023560 0ustar00mesmes000000 000000 tclap: TCLAP::ArgTraits< bool > Struct Template Reference

TCLAP::ArgTraits< bool > Struct Template Reference

bools have value-like semantics. More...

#include <StandardTraits.h>

List of all members.

Public Types

typedef ValueLike ValueCategory

Detailed Description

template<>
struct TCLAP::ArgTraits< bool >

bools have value-like semantics.

Definition at line 176 of file StandardTraits.h.


Member Typedef Documentation

Definition at line 177 of file StandardTraits.h.


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

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/structTCLAP_1_1ArgTraits_3_01char_01_4-members.html000644 000765 000765 00000003545 11552414565 025167 0ustar00mesmes000000 000000 tclap: Member List

TCLAP::ArgTraits< char > Member List

This is the complete list of members for TCLAP::ArgTraits< char >, including all inherited members.
ValueCategory typedefTCLAP::ArgTraits< char >

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/structTCLAP_1_1ArgTraits_3_01char_01_4.html000644 000765 000765 00000007245 11552414565 023540 0ustar00mesmes000000 000000 tclap: TCLAP::ArgTraits< char > Struct Template Reference

TCLAP::ArgTraits< char > Struct Template Reference

chars have value-like semantics. More...

#include <StandardTraits.h>

List of all members.

Public Types

typedef ValueLike ValueCategory

Detailed Description

template<>
struct TCLAP::ArgTraits< char >

chars have value-like semantics.

Definition at line 76 of file StandardTraits.h.


Member Typedef Documentation

Definition at line 77 of file StandardTraits.h.


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

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/structTCLAP_1_1ArgTraits_3_01double_01_4-members.html000644 000765 000765 00000003561 11552414565 025522 0ustar00mesmes000000 000000 tclap: Member List

TCLAP::ArgTraits< double > Member List

This is the complete list of members for TCLAP::ArgTraits< double >, including all inherited members.
ValueCategory typedefTCLAP::ArgTraits< double >

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/structTCLAP_1_1ArgTraits_3_01double_01_4.html000644 000765 000765 00000007277 11552414565 024102 0ustar00mesmes000000 000000 tclap: TCLAP::ArgTraits< double > Struct Template Reference

TCLAP::ArgTraits< double > Struct Template Reference

doubles have value-like semantics. More...

#include <StandardTraits.h>

List of all members.

Public Types

typedef ValueLike ValueCategory

Detailed Description

template<>
struct TCLAP::ArgTraits< double >

doubles have value-like semantics.

Definition at line 164 of file StandardTraits.h.


Member Typedef Documentation

Definition at line 165 of file StandardTraits.h.


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

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/structTCLAP_1_1ArgTraits_3_01float_01_4-members.html000644 000765 000765 00000003553 11552414565 025356 0ustar00mesmes000000 000000 tclap: Member List

TCLAP::ArgTraits< float > Member List

This is the complete list of members for TCLAP::ArgTraits< float >, including all inherited members.
ValueCategory typedefTCLAP::ArgTraits< float >

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/structTCLAP_1_1ArgTraits_3_01float_01_4.html000644 000765 000765 00000007263 11552414565 023730 0ustar00mesmes000000 000000 tclap: TCLAP::ArgTraits< float > Struct Template Reference

TCLAP::ArgTraits< float > Struct Template Reference

floats have value-like semantics. More...

#include <StandardTraits.h>

List of all members.

Public Types

typedef ValueLike ValueCategory

Detailed Description

template<>
struct TCLAP::ArgTraits< float >

floats have value-like semantics.

Definition at line 156 of file StandardTraits.h.


Member Typedef Documentation

Definition at line 157 of file StandardTraits.h.


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

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/structTCLAP_1_1ArgTraits_3_01int_01_4-members.html000644 000765 000765 00000003537 11552414565 025045 0ustar00mesmes000000 000000 tclap: Member List

TCLAP::ArgTraits< int > Member List

This is the complete list of members for TCLAP::ArgTraits< int >, including all inherited members.
ValueCategory typedefTCLAP::ArgTraits< int >

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/structTCLAP_1_1ArgTraits_3_01int_01_4.html000644 000765 000765 00000007231 11552414565 023410 0ustar00mesmes000000 000000 tclap: TCLAP::ArgTraits< int > Struct Template Reference

TCLAP::ArgTraits< int > Struct Template Reference

ints have value-like semantics. More...

#include <StandardTraits.h>

List of all members.

Public Types

typedef ValueLike ValueCategory

Detailed Description

template<>
struct TCLAP::ArgTraits< int >

ints have value-like semantics.

Definition at line 60 of file StandardTraits.h.


Member Typedef Documentation

Definition at line 61 of file StandardTraits.h.


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

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/structTCLAP_1_1ArgTraits_3_01long_01_4-members.html000644 000765 000765 00000003545 11552414565 025211 0ustar00mesmes000000 000000 tclap: Member List

TCLAP::ArgTraits< long > Member List

This is the complete list of members for TCLAP::ArgTraits< long >, including all inherited members.
ValueCategory typedefTCLAP::ArgTraits< long >

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/structTCLAP_1_1ArgTraits_3_01long_01_4.html000644 000765 000765 00000007245 11552414565 023562 0ustar00mesmes000000 000000 tclap: TCLAP::ArgTraits< long > Struct Template Reference

TCLAP::ArgTraits< long > Struct Template Reference

longs have value-like semantics. More...

#include <StandardTraits.h>

List of all members.

Public Types

typedef ValueLike ValueCategory

Detailed Description

template<>
struct TCLAP::ArgTraits< long >

longs have value-like semantics.

Definition at line 52 of file StandardTraits.h.


Member Typedef Documentation

Definition at line 53 of file StandardTraits.h.


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

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/structTCLAP_1_1ArgTraits_3_01short_01_4-members.html000644 000765 000765 00000003553 11552414565 025410 0ustar00mesmes000000 000000 tclap: Member List

TCLAP::ArgTraits< short > Member List

This is the complete list of members for TCLAP::ArgTraits< short >, including all inherited members.
ValueCategory typedefTCLAP::ArgTraits< short >

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/structTCLAP_1_1ArgTraits_3_01short_01_4.html000644 000765 000765 00000007261 11552414565 023760 0ustar00mesmes000000 000000 tclap: TCLAP::ArgTraits< short > Struct Template Reference

TCLAP::ArgTraits< short > Struct Template Reference

shorts have value-like semantics. More...

#include <StandardTraits.h>

List of all members.

Public Types

typedef ValueLike ValueCategory

Detailed Description

template<>
struct TCLAP::ArgTraits< short >

shorts have value-like semantics.

Definition at line 68 of file StandardTraits.h.


Member Typedef Documentation

Definition at line 69 of file StandardTraits.h.


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

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/structTCLAP_1_1ArgTraits_3_01std_1_1string_01_4-members.html000644 000765 000765 00000003625 11552414565 026732 0ustar00mesmes000000 000000 tclap: Member List

TCLAP::ArgTraits< std::string > Member List

This is the complete list of members for TCLAP::ArgTraits< std::string >, including all inherited members.
ValueCategory typedefTCLAP::ArgTraits< std::string >

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/structTCLAP_1_1ArgTraits_3_01std_1_1string_01_4.html000644 000765 000765 00000007412 11552414565 025300 0ustar00mesmes000000 000000 tclap: TCLAP::ArgTraits< std::string > Struct Template Reference

TCLAP::ArgTraits< std::string > Struct Template Reference

Strings have string like argument traits. More...

#include <StandardTraits.h>

List of all members.

Public Types

typedef StringLike ValueCategory

Detailed Description

template<>
struct TCLAP::ArgTraits< std::string >

Strings have string like argument traits.

Definition at line 195 of file StandardTraits.h.


Member Typedef Documentation

typedef StringLike TCLAP::ArgTraits< std::string >::ValueCategory

Definition at line 196 of file StandardTraits.h.


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

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/structTCLAP_1_1ArgTraits_3_01unsigned_01char_01_4-members.html000644 000765 000765 00000003641 11552414565 027221 0ustar00mesmes000000 000000 tclap: Member List

TCLAP::ArgTraits< unsigned char > Member List

This is the complete list of members for TCLAP::ArgTraits< unsigned char >, including all inherited members.
ValueCategory typedefTCLAP::ArgTraits< unsigned char >

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/structTCLAP_1_1ArgTraits_3_01unsigned_01char_01_4.html000644 000765 000765 00000007431 11552414565 025572 0ustar00mesmes000000 000000 tclap: TCLAP::ArgTraits< unsigned char > Struct Template Reference

TCLAP::ArgTraits< unsigned char > Struct Template Reference

unsigned chars have value-like semantics. More...

#include <StandardTraits.h>

List of all members.

Public Types

typedef ValueLike ValueCategory

Detailed Description

template<>
struct TCLAP::ArgTraits< unsigned char >

unsigned chars have value-like semantics.

Definition at line 122 of file StandardTraits.h.


Member Typedef Documentation

typedef ValueLike TCLAP::ArgTraits< unsigned char >::ValueCategory

Definition at line 123 of file StandardTraits.h.


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

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/structTCLAP_1_1ArgTraits_3_01unsigned_01int_01_4-members.html000644 000765 000765 00000003633 11552414565 027077 0ustar00mesmes000000 000000 tclap: Member List

TCLAP::ArgTraits< unsigned int > Member List

This is the complete list of members for TCLAP::ArgTraits< unsigned int >, including all inherited members.
ValueCategory typedefTCLAP::ArgTraits< unsigned int >

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/structTCLAP_1_1ArgTraits_3_01unsigned_01int_01_4.html000644 000765 000765 00000007415 11552414565 025451 0ustar00mesmes000000 000000 tclap: TCLAP::ArgTraits< unsigned int > Struct Template Reference

TCLAP::ArgTraits< unsigned int > Struct Template Reference

unsigned ints have value-like semantics. More...

#include <StandardTraits.h>

List of all members.

Public Types

typedef ValueLike ValueCategory

Detailed Description

template<>
struct TCLAP::ArgTraits< unsigned int >

unsigned ints have value-like semantics.

Definition at line 106 of file StandardTraits.h.


Member Typedef Documentation

typedef ValueLike TCLAP::ArgTraits< unsigned int >::ValueCategory

Definition at line 107 of file StandardTraits.h.


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

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/structTCLAP_1_1ArgTraits_3_01unsigned_01long_01_4-members.html000644 000765 000765 00000003641 11552414565 027243 0ustar00mesmes000000 000000 tclap: Member List

TCLAP::ArgTraits< unsigned long > Member List

This is the complete list of members for TCLAP::ArgTraits< unsigned long >, including all inherited members.
ValueCategory typedefTCLAP::ArgTraits< unsigned long >

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/structTCLAP_1_1ArgTraits_3_01unsigned_01long_01_4.html000644 000765 000765 00000007427 11552414565 025621 0ustar00mesmes000000 000000 tclap: TCLAP::ArgTraits< unsigned long > Struct Template Reference

TCLAP::ArgTraits< unsigned long > Struct Template Reference

unsigned longs have value-like semantics. More...

#include <StandardTraits.h>

List of all members.

Public Types

typedef ValueLike ValueCategory

Detailed Description

template<>
struct TCLAP::ArgTraits< unsigned long >

unsigned longs have value-like semantics.

Definition at line 98 of file StandardTraits.h.


Member Typedef Documentation

typedef ValueLike TCLAP::ArgTraits< unsigned long >::ValueCategory

Definition at line 99 of file StandardTraits.h.


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

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/structTCLAP_1_1ArgTraits_3_01unsigned_01short_01_4-members.html000644 000765 000765 00000003647 11552414565 027451 0ustar00mesmes000000 000000 tclap: Member List

TCLAP::ArgTraits< unsigned short > Member List

This is the complete list of members for TCLAP::ArgTraits< unsigned short >, including all inherited members.
ValueCategory typedefTCLAP::ArgTraits< unsigned short >

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/structTCLAP_1_1ArgTraits_3_01unsigned_01short_01_4.html000644 000765 000765 00000007445 11552414565 026021 0ustar00mesmes000000 000000 tclap: TCLAP::ArgTraits< unsigned short > Struct Template Reference

TCLAP::ArgTraits< unsigned short > Struct Template Reference

unsigned shorts have value-like semantics. More...

#include <StandardTraits.h>

List of all members.

Public Types

typedef ValueLike ValueCategory

Detailed Description

template<>
struct TCLAP::ArgTraits< unsigned short >

unsigned shorts have value-like semantics.

Definition at line 114 of file StandardTraits.h.


Member Typedef Documentation

typedef ValueLike TCLAP::ArgTraits< unsigned short >::ValueCategory

Definition at line 115 of file StandardTraits.h.


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

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/structTCLAP_1_1ArgTraits_3_01wchar__t_01_4-members.html000644 000765 000765 00000003572 11552414565 026040 0ustar00mesmes000000 000000 tclap: Member List

TCLAP::ArgTraits< wchar_t > Member List

This is the complete list of members for TCLAP::ArgTraits< wchar_t >, including all inherited members.
ValueCategory typedefTCLAP::ArgTraits< wchar_t >

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/structTCLAP_1_1ArgTraits_3_01wchar__t_01_4.html000644 000765 000765 00000007316 11552414565 024410 0ustar00mesmes000000 000000 tclap: TCLAP::ArgTraits< wchar_t > Struct Template Reference

TCLAP::ArgTraits< wchar_t > Struct Template Reference

wchar_ts have value-like semantics. More...

#include <StandardTraits.h>

List of all members.

Public Types

typedef ValueLike ValueCategory

Detailed Description

template<>
struct TCLAP::ArgTraits< wchar_t >

wchar_ts have value-like semantics.

Definition at line 186 of file StandardTraits.h.


Member Typedef Documentation

Definition at line 187 of file StandardTraits.h.


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

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/structTCLAP_1_1StringLike-members.html000644 000765 000765 00000003456 11552414565 023240 0ustar00mesmes000000 000000 tclap: Member List

TCLAP::StringLike Member List

This is the complete list of members for TCLAP::StringLike, including all inherited members.
~StringLike()TCLAP::StringLike [inline, virtual]

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/structTCLAP_1_1StringLike.html000644 000765 000765 00000007075 11552414565 021611 0ustar00mesmes000000 000000 tclap: TCLAP::StringLike Struct Reference

TCLAP::StringLike Struct Reference

A string like argument value type is a value that can be set using operator=(string). More...

#include <ArgTraits.h>

List of all members.

Public Member Functions

virtual ~StringLike ()

Detailed Description

A string like argument value type is a value that can be set using operator=(string).

Usefull if the value type contains spaces which will be broken up into individual tokens by operator>>.

Definition at line 48 of file ArgTraits.h.


Constructor & Destructor Documentation

virtual TCLAP::StringLike::~StringLike (  )  [inline, virtual]

Definition at line 49 of file ArgTraits.h.


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

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/structTCLAP_1_1StringLikeTrait-members.html000644 000765 000765 00000004117 11552414565 024237 0ustar00mesmes000000 000000 tclap: Member List

TCLAP::StringLikeTrait Member List

This is the complete list of members for TCLAP::StringLikeTrait, including all inherited members.
ValueCategory typedefTCLAP::StringLikeTrait
~StringLikeTrait()TCLAP::StringLikeTrait [inline, virtual]

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/structTCLAP_1_1StringLikeTrait.html000644 000765 000765 00000011211 11552414565 022600 0ustar00mesmes000000 000000 tclap: TCLAP::StringLikeTrait Struct Reference

TCLAP::StringLikeTrait Struct Reference

A class can inherit from this object to make it have string like traits. More...

#include <ArgTraits.h>

List of all members.

Public Types

typedef StringLike ValueCategory

Public Member Functions

virtual ~StringLikeTrait ()

Detailed Description

A class can inherit from this object to make it have string like traits.

This is a compile time thing and does not add any overhead to the inherenting class.

Definition at line 57 of file ArgTraits.h.


Member Typedef Documentation

Definition at line 58 of file ArgTraits.h.


Constructor & Destructor Documentation

virtual TCLAP::StringLikeTrait::~StringLikeTrait (  )  [inline, virtual]

Definition at line 59 of file ArgTraits.h.


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

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/structTCLAP_1_1ValueLike-members.html000644 000765 000765 00000004023 11552414565 023035 0ustar00mesmes000000 000000 tclap: Member List

TCLAP::ValueLike Member List

This is the complete list of members for TCLAP::ValueLike, including all inherited members.
ValueCategory typedefTCLAP::ValueLike
~ValueLike()TCLAP::ValueLike [inline, virtual]

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/structTCLAP_1_1ValueLike.html000644 000765 000765 00000011013 11552414565 021402 0ustar00mesmes000000 000000 tclap: TCLAP::ValueLike Struct Reference

TCLAP::ValueLike Struct Reference

A value like argument value type is a value that can be set using operator>>. More...

#include <ArgTraits.h>

List of all members.

Public Types

typedef ValueLike ValueCategory

Public Member Functions

virtual ~ValueLike ()

Detailed Description

A value like argument value type is a value that can be set using operator>>.

This is the default value type.

Definition at line 38 of file ArgTraits.h.


Member Typedef Documentation

Definition at line 39 of file ArgTraits.h.


Constructor & Destructor Documentation

virtual TCLAP::ValueLike::~ValueLike (  )  [inline, virtual]

Definition at line 40 of file ArgTraits.h.


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

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/structTCLAP_1_1ValueLikeTrait-members.html000644 000765 000765 00000004105 11552414565 024042 0ustar00mesmes000000 000000 tclap: Member List

TCLAP::ValueLikeTrait Member List

This is the complete list of members for TCLAP::ValueLikeTrait, including all inherited members.
ValueCategory typedefTCLAP::ValueLikeTrait
~ValueLikeTrait()TCLAP::ValueLikeTrait [inline, virtual]

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/structTCLAP_1_1ValueLikeTrait.html000644 000765 000765 00000011163 11552414565 022414 0ustar00mesmes000000 000000 tclap: TCLAP::ValueLikeTrait Struct Reference

TCLAP::ValueLikeTrait Struct Reference

A class can inherit from this object to make it have value like traits. More...

#include <ArgTraits.h>

List of all members.

Public Types

typedef ValueLike ValueCategory

Public Member Functions

virtual ~ValueLikeTrait ()

Detailed Description

A class can inherit from this object to make it have value like traits.

This is a compile time thing and does not add any overhead to the inherenting class.

Definition at line 67 of file ArgTraits.h.


Member Typedef Documentation

Definition at line 68 of file ArgTraits.h.


Constructor & Destructor Documentation

virtual TCLAP::ValueLikeTrait::~ValueLikeTrait (  )  [inline, virtual]

Definition at line 69 of file ArgTraits.h.


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

Generated on Sat Apr 16 15:34:25 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/SwitchArg_8h.html000644 000765 000765 00000004357 11552414565 017337 0ustar00mesmes000000 000000 tclap: SwitchArg.h File Reference

SwitchArg.h File Reference

#include <string>
#include <vector>
#include <tclap/Arg.h>

Go to the source code of this file.

Classes

class  TCLAP::SwitchArg
 A simple switch argument. More...

Namespaces

namespace  TCLAP

Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/SwitchArg_8h_source.html000644 000765 000765 00000063737 11552414565 020726 0ustar00mesmes000000 000000 tclap: SwitchArg.h Source File
Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/tab_b.gif000644 000765 000765 00000000043 11552414565 015701 0ustar00mesmes000000 000000 GIF89a€„°Ç,D;tclap-1.2.1/docs/html/tab_l.gif000644 000765 000765 00000001302 11552414565 015712 0ustar00mesmes000000 000000 GIF89a ,Õö÷ùñô÷öøúüýþúûüùúûøùúêïóïóöÆÕßÒÞæØâéÞçíÝæìåìñèîòô÷ùóöø³ÈÕÁÒÝËÙâÏÜäÖá薴ŹɯÂÍ»ÎÙÃÔÞÂÓÝÈ×àÌÚâÕáèÙäê×âèåìðëðó„°ÇÑÞåÜæëãëïëñôîóõ÷úûûüüÿÿÿþþþ, ,ÿ@–P±É`H$!%CqVe2X­ŠÌJ(“Ä +€˜3 2$ÀÆ ¼kvŠä-Ëçõu*…"}ã|}|~q(" $f„ 'Žl(Œ&&$r‘™ › & ! )¢¤›{¨£¥r­ª°©¯„±¯¬´¦·»º³®«§¾¶ÃÂÀ¿²¹ÇÄËÆ²ÌÉεҽͼ„ÔÈÓ×иÙÝÕÏÙÊâÜßãçæê¾äÛÅëÇíáîÖìéïøñ÷õüÑðåùü¤Pß?‚ƒœÇÛBm åAœÎáÀ†%V܈î!Çk÷Ø/áÄ;^¤¨²$Æ–#Mf)f͇(WÎL‰“æKçÒ„° ’I)L:eD ¡Cµ´x*4 U¨h  %A«£^ÁNKb¬Ùe§X±‚´k»x!ÁÖí—2tÝÖ !¯š5tÛæé—À]$¬´%ƒXíâ.i[¬]Y­•ÊfžEëõkg`µ††:zëçÒž;£}ºµj×aa‹–Mš¶é׸cçž½»vïÛºƒóî›8ðáÈ‹'?®¼9óç©G_>Ýyuè¬_ßž]zwêß­‡Ç¾º¼mîæµG~½ûôÞთ/ž>ùööÙ«Ïÿ¿ÿýÿÅà|ÖWà}v;tclap-1.2.1/docs/html/tab_r.gif000644 000765 000765 00000005031 11552414565 015723 0ustar00mesmes000000 000000 GIF89a,Õö÷ùñô÷öøúüýþúûüùúûøùúêïóïóöÆÕßÒÞæØâéÞçíÝæìåìñèîòô÷ùóöø³ÈÕÁÒÝËÙâÏÜäÖá薴ŹɯÂÍ»ÎÙÃÔÞÂÓÝÈ×àÌÚâÕáèÙäê×âèåìðëðó„°ÇÑÞåÜæëãëïëñôîóõ÷úûûüüÿÿÿþþþ,,ÿ@’pH,ȤrÉl:ŸÐ¨tJ­Z¯Ø¬v •h<¬pkL.›Ïè´zÍn»ßð¸|N¯Ûïø¼~ÏwVa+‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ “*)^,*ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂö)'ÆÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæÚ¥(" ðñòóôõö÷øùúûüýþÿ H° ÁƒòK"ƒRHœH±¢Å‹3jÜȱ£Ç CŠI²¤É“(Sª\éÅu&@€ Á²¦Í›8sêÜɳ§Oÿ–(±€DУH“*]Ê´©Ó§P£JJµªÕ«X³jÝʵ«×¯S84± ‰hÓª]˶­Û·pãÊK·®Ý»xóêÝË·¯ß¿€Ó} âDÌf(^̸±ãÇ#KžL¹²å˘3kÞ̹³çÏ C‹m¹ðCÄHœXͺµë×°cËžM»¶íÛ¸sëÞÍ»·ïßÀƒ N÷ÃJ” Á®¹óçУKŸN½ºõëØ³kßν»÷ïàËO¾úñ€ dÇ@€‚‚L¤"ÉÈF:ò‘Œ¤$9† (8…&ÉÉNzò“  ¥(G©FB^²!˨)WÉÊVºò•°l¤)1™ wÄò–¸Ì¥.wÊYºäƒà¥0‡IÌbó¾|ÉHpÌf:ó™Ðìe pJ±ˆ€}Ȧ6·ÉÍnzó›à §8û0Â%"¸æ8×ÉÎvºóðŒ§<ÉPÎQ`ò%×$€>÷ÉÏ~úóŸ ¨@JЂô M¨BÊІ:ô¡¨D'ZPKF Ö¼&16ÊÑŽzô£ ©HGJRb ÷Lç5ÏÁÒ–ºô¥ÿ0©LgJÓšš#(e>¯‰Óžúô§@ ªP‡JÔ¢õ¨HMªR—ÊÔ¦:õ©PªT§JÕª&5;%U·ÊÕ®zõ«` «XÇJV«ÂC§‹ÑjY×ÊÖ¶ºõ­p«\ŠU´À¦xÍ«^÷Ê×¾úõ¯ÐÀi)$‚”ô°ˆM¬bËØÆ:vˆ, ಘͬf7ËÙÎzö³  ­hGKÚÒšö´¨M­jWËÚÖºöµ°­*$ÛSPô¶¸Í­nwËÛÞúö·ÀÅm +„â¸ÈM®r—ËÜæ:÷¹ÐE®?±9ÏêZ÷ºØÍ®v¿9€î"‚ºÛ ¯xÇKÞòb—™ÑLÿ¯z×Ë^A¢·½ð¯|ç†÷Ò÷¾øÍ¯0í«ßþú÷¿¡ä/€Là»×ÀN°‚ï(à;øÁ n0„'LaýJ¸ÂÎ0{/¬á{ؘþ°ˆG|Ë“øÄ(¥‰SÌâCrÅ.ޱŒ ãÛøÆv¬1ŽwÌc6ê¸Ç@ÞñƒLd¹ÈHNñ‘“Ìd/¹ÉPÎð“£LeO¹ÊXŽp–·|â+sùËýõ2˜ÇL_1“ùÌí53š×M5³ùÍÇt3œç¼_:ÛÙÂwÎs™õÌgøÊ¹Ï€p ýÌ?úÐ/F´¢ë¼èFãÒÐŽŽt!-éJã‘Ò–Îô1­éN»‘ÓžuÿA-êP“ºÔ>5ª3­êUWºÕ®Ž4¬cÝèYÓZѶ¾õ¡s­ëAóº×€þ5°ù,ìaç¹ØÆ¶3²“=çe3ûÍÎ~öš£-í3S»Úc¾6¶¿¬ímo¹ÛÞÆ2¸ÃMåq“Êæ>7“Ó­n$³»ÝD~7¼,ïyó¸ÞöÆ1¾ómã}óÛÈÿvµ¿Þâ\É/µÁNâ…3ÜÉ÷´Ã#Þá‰S\ÊguÆ-mñO¸ã0ÈC¾à‘“\Ë'_´ÉS^à•³|À.ùc.ó0לÐ4¿9~s®ó=÷¼Ï<ÿy|ƒ.ô4]ÏD?ºz“®ô67]ÙO§3Ó£ÞÌ©SÄW‡vÖÙl>õ­3Úëdî:Øu)ö±?ÚìÙF;˜Ë®öW²½í­|;ÜW)÷¹²îvtÞ˽w¾÷Ý|à×=xÂÞÝA;tclap-1.2.1/docs/html/tabs.css000644 000765 000765 00000003464 11552414565 015620 0ustar00mesmes000000 000000 /* tabs styles, based on http://www.alistapart.com/articles/slidingdoors */ DIV.tabs { float : left; width : 100%; background : url("tab_b.gif") repeat-x bottom; margin-bottom : 4px; } DIV.tabs UL { margin : 0px; padding-left : 10px; list-style : none; } DIV.tabs LI, DIV.tabs FORM { display : inline; margin : 0px; padding : 0px; } DIV.tabs FORM { float : right; } DIV.tabs A { float : left; background : url("tab_r.gif") no-repeat right top; border-bottom : 1px solid #84B0C7; font-size : 80%; font-weight : bold; text-decoration : none; } DIV.tabs A:hover { background-position: 100% -150px; } DIV.tabs A:link, DIV.tabs A:visited, DIV.tabs A:active, DIV.tabs A:hover { color: #1A419D; } DIV.tabs SPAN { float : left; display : block; background : url("tab_l.gif") no-repeat left top; padding : 5px 9px; white-space : nowrap; } DIV.tabs #MSearchBox { float : right; display : inline; font-size : 1em; } DIV.tabs TD { font-size : 80%; font-weight : bold; text-decoration : none; } /* Commented Backslash Hack hides rule from IE5-Mac \*/ DIV.tabs SPAN {float : none;} /* End IE5-Mac hack */ DIV.tabs A:hover SPAN { background-position: 0% -150px; } DIV.tabs LI.current A { background-position: 100% -150px; border-width : 0px; } DIV.tabs LI.current SPAN { background-position: 0% -150px; padding-bottom : 6px; } DIV.navpath { background : none; border : none; border-bottom : 1px solid #84B0C7; text-align : center; margin : 2px; padding : 2px; } tclap-1.2.1/docs/html/UnlabeledMultiArg_8h.html000644 000765 000765 00000005136 11552414565 021000 0ustar00mesmes000000 000000 tclap: UnlabeledMultiArg.h File Reference

UnlabeledMultiArg.h File Reference

#include <string>
#include <vector>
#include <tclap/MultiArg.h>
#include <tclap/OptionalUnlabeledTracker.h>

Go to the source code of this file.

Classes

class  TCLAP::UnlabeledMultiArg< T >
 Just like a MultiArg, except that the arguments are unlabeled. More...

Namespaces

namespace  TCLAP

Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/UnlabeledMultiArg_8h_source.html000644 000765 000765 00000074134 11552414565 022364 0ustar00mesmes000000 000000 tclap: UnlabeledMultiArg.h Source File
Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/UnlabeledValueArg_8h.html000644 000765 000765 00000004721 11552414565 020761 0ustar00mesmes000000 000000 tclap: UnlabeledValueArg.h File Reference

UnlabeledValueArg.h File Reference

#include <string>
#include <vector>
#include <tclap/ValueArg.h>
#include <tclap/OptionalUnlabeledTracker.h>

Go to the source code of this file.

Classes

class  TCLAP::UnlabeledValueArg< T >
 The basic unlabeled argument that parses a value. More...

Namespaces

namespace  TCLAP

Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/UnlabeledValueArg_8h_source.html000644 000765 000765 00000075071 11552414565 022347 0ustar00mesmes000000 000000 tclap: UnlabeledValueArg.h Source File
Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/ValueArg_8h.html000644 000765 000765 00000004563 11552414565 017151 0ustar00mesmes000000 000000 tclap: ValueArg.h File Reference

ValueArg.h File Reference

#include <string>
#include <vector>
#include <tclap/Arg.h>
#include <tclap/Constraint.h>

Go to the source code of this file.

Classes

class  TCLAP::ValueArg< T >
 The basic labeled argument that parses a value. More...

Namespaces

namespace  TCLAP

Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/ValueArg_8h_source.html000644 000765 000765 00000107142 11552414565 020526 0ustar00mesmes000000 000000 tclap: ValueArg.h Source File
Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/ValuesConstraint_8h.html000644 000765 000765 00000007007 11552414565 020743 0ustar00mesmes000000 000000 tclap: ValuesConstraint.h File Reference

ValuesConstraint.h File Reference

#include <string>
#include <vector>
#include <tclap/Constraint.h>
#include <sstream>

Go to the source code of this file.

Classes

class  TCLAP::ValuesConstraint< T >
 A Constraint that constrains the Arg to only those values specified in the constraint. More...

Namespaces

namespace  TCLAP

Defines

#define HAVE_SSTREAM

Define Documentation

#define HAVE_SSTREAM

Definition at line 33 of file ValuesConstraint.h.


Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/ValuesConstraint_8h_source.html000644 000765 000765 00000035241 11552414565 022324 0ustar00mesmes000000 000000 tclap: ValuesConstraint.h Source File
Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/VersionVisitor_8h.html000644 000765 000765 00000005414 11552414565 020444 0ustar00mesmes000000 000000 tclap: VersionVisitor.h File Reference

VersionVisitor.h File Reference

#include <tclap/CmdLineInterface.h>
#include <tclap/CmdLineOutput.h>
#include <tclap/Visitor.h>

Go to the source code of this file.

Classes

class  TCLAP::VersionVisitor
 A Vistor that will call the version method of the given CmdLineOutput for the specified CmdLine object and then exit. More...

Namespaces

namespace  TCLAP

Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/VersionVisitor_8h_source.html000644 000765 000765 00000021506 11552414565 022024 0ustar00mesmes000000 000000 tclap: VersionVisitor.h Source File
Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/Visitor_8h.html000644 000765 000765 00000004120 11552414565 017067 0ustar00mesmes000000 000000 tclap: Visitor.h File Reference

Visitor.h File Reference

Go to the source code of this file.

Classes

class  TCLAP::Visitor
 A base class that defines the interface for visitors. More...

Namespaces

namespace  TCLAP

Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/Visitor_8h_source.html000644 000765 000765 00000012171 11552414565 020454 0ustar00mesmes000000 000000 tclap: Visitor.h Source File
Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/XorHandler_8h.html000644 000765 000765 00000004600 11552414565 017501 0ustar00mesmes000000 000000 tclap: XorHandler.h File Reference

XorHandler.h File Reference

#include <tclap/Arg.h>
#include <string>
#include <vector>
#include <algorithm>
#include <iostream>

Go to the source code of this file.

Classes

class  TCLAP::XorHandler
 This class handles lists of Arg's that are to be XOR'd on the command line. More...

Namespaces

namespace  TCLAP

Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/XorHandler_8h_source.html000644 000765 000765 00000043472 11552414565 021073 0ustar00mesmes000000 000000 tclap: XorHandler.h Source File
Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/ZshCompletionOutput_8h.html000644 000765 000765 00000006152 11552414565 021456 0ustar00mesmes000000 000000 tclap: ZshCompletionOutput.h File Reference

ZshCompletionOutput.h File Reference

#include <string>
#include <vector>
#include <list>
#include <iostream>
#include <map>
#include <tclap/CmdLineInterface.h>
#include <tclap/CmdLineOutput.h>
#include <tclap/XorHandler.h>
#include <tclap/Arg.h>

Go to the source code of this file.

Classes

class  TCLAP::ZshCompletionOutput
 A class that generates a Zsh completion function as output from the usage() method for the given CmdLine and its Args. More...

Namespaces

namespace  TCLAP

Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/ZshCompletionOutput_8h_source.html000644 000765 000765 00000114172 11552414565 023040 0ustar00mesmes000000 000000 tclap: ZshCompletionOutput.h Source File
Generated on Sat Apr 16 15:34:24 2011 for tclap by  doxygen 1.6.0
tclap-1.2.1/docs/html/CVS/Entries000644 000765 000765 00000000002 11552414564 016124 0ustar00mesmes000000 000000 D tclap-1.2.1/docs/html/CVS/Repository000644 000765 000765 00000000020 11552414564 016672 0ustar00mesmes000000 000000 tclap/docs/html tclap-1.2.1/docs/html/CVS/Root000644 000765 000765 00000000064 11552414564 015446 0ustar00mesmes000000 000000 :ext:mes5k@tclap.cvs.sourceforge.net:/cvsroot/tclap tclap-1.2.1/config/ac_cxx_have_long_long.m4000644 000765 000765 00000001004 10702743014 020250 0ustar00mesmes000000 000000 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 ]) tclap-1.2.1/config/ac_cxx_have_sstream.m4000644 000765 000765 00000001375 10376744024 017774 0ustar00mesmes000000 000000 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 #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 ]) tclap-1.2.1/config/ac_cxx_have_strstream.m4000644 000765 000765 00000001475 10376744024 020343 0ustar00mesmes000000 000000 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 #else # include #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 ]) tclap-1.2.1/config/ac_cxx_namespaces.m4000644 000765 000765 00000001321 07635754200 017422 0ustar00mesmes000000 000000 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 ]) tclap-1.2.1/config/ac_cxx_warn_effective_cxx.m4000644 000765 000765 00000001547 11537646370 021172 0ustar00mesmes000000 000000 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]) ]) tclap-1.2.1/config/bb_enable_doxygen.m4000644 000765 000765 00000001052 10431705230 017370 0ustar00mesmes000000 000000 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) ]) tclap-1.2.1/config/config.h.in000644 000765 000765 00000003335 11552414363 015542 0ustar00mesmes000000 000000 /* 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 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 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 header file. */ #undef HAVE_STDINT_H /* Define to 1 if you have the header file. */ #undef HAVE_STDLIB_H /* Define to 1 if you have the header file. */ #undef HAVE_STRINGS_H /* Define to 1 if you have the header file. */ #undef HAVE_STRING_H /* Define to 1 if you have the header file. */ #undef HAVE_STRSTREAM /* Define to 1 if you have the header file. */ #undef HAVE_SYS_STAT_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_TYPES_H /* Define to 1 if you have the 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 tclap-1.2.1/config/depcomp000755 000765 000765 00000027525 07643074727 015117 0ustar00mesmes000000 000000 #! /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 . 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 tclap-1.2.1/config/install-sh000755 000765 000765 00000012736 07643074726 015543 0ustar00mesmes000000 000000 #!/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 tclap-1.2.1/config/Makefile.am000644 000765 000765 00000000202 10431750637 015543 0ustar00mesmes000000 000000 EXTRA_DIST = ac_cxx_have_sstream.m4\ ac_cxx_have_strstream.m4\ ac_cxx_namespaces.m4\ bb_enable_doxygen.m4 tclap-1.2.1/config/Makefile.in000644 000765 000765 00000021547 11552414365 015573 0ustar00mesmes000000 000000 # 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: tclap-1.2.1/config/missing000755 000765 000765 00000021231 07643074726 015124 0ustar00mesmes000000 000000 #! /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 , 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 tclap-1.2.1/config/mkinstalldirs000755 000765 000765 00000001323 07643074725 016332 0ustar00mesmes000000 000000 #! /bin/sh # mkinstalldirs --- make directory hierarchy # Author: Noah Friedman # 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