summaryrefslogtreecommitdiff
path: root/tclap-1.2.1/examples
diff options
context:
space:
mode:
Diffstat (limited to 'tclap-1.2.1/examples')
-rw-r--r--tclap-1.2.1/examples/Makefile.am32
-rw-r--r--tclap-1.2.1/examples/Makefile.in575
-rw-r--r--tclap-1.2.1/examples/test1.cpp46
-rw-r--r--tclap-1.2.1/examples/test10.cpp26
-rw-r--r--tclap-1.2.1/examples/test11.cpp52
-rw-r--r--tclap-1.2.1/examples/test12.cpp68
-rw-r--r--tclap-1.2.1/examples/test13.cpp57
-rw-r--r--tclap-1.2.1/examples/test14.cpp56
-rw-r--r--tclap-1.2.1/examples/test15.cpp56
-rw-r--r--tclap-1.2.1/examples/test16.cpp41
-rw-r--r--tclap-1.2.1/examples/test17-a.cpp1
-rw-r--r--tclap-1.2.1/examples/test17.cpp3
-rw-r--r--tclap-1.2.1/examples/test18.cpp27
-rw-r--r--tclap-1.2.1/examples/test19.cpp39
-rw-r--r--tclap-1.2.1/examples/test2.cpp97
-rw-r--r--tclap-1.2.1/examples/test20.cpp27
-rw-r--r--tclap-1.2.1/examples/test21.cpp52
-rw-r--r--tclap-1.2.1/examples/test3.cpp95
-rw-r--r--tclap-1.2.1/examples/test4.cpp106
-rw-r--r--tclap-1.2.1/examples/test5.cpp118
-rw-r--r--tclap-1.2.1/examples/test6.cpp51
-rw-r--r--tclap-1.2.1/examples/test7.cpp94
-rw-r--r--tclap-1.2.1/examples/test8.cpp89
-rw-r--r--tclap-1.2.1/examples/test9.cpp56
24 files changed, 1864 insertions, 0 deletions
diff --git a/tclap-1.2.1/examples/Makefile.am b/tclap-1.2.1/examples/Makefile.am
new file mode 100644
index 0000000..1dd898c
--- /dev/null
+++ b/tclap-1.2.1/examples/Makefile.am
@@ -0,0 +1,32 @@
+
+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
diff --git a/tclap-1.2.1/examples/Makefile.in b/tclap-1.2.1/examples/Makefile.in
new file mode 100644
index 0000000..608b8f4
--- /dev/null
+++ b/tclap-1.2.1/examples/Makefile.in
@@ -0,0 +1,575 @@
+# 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:
diff --git a/tclap-1.2.1/examples/test1.cpp b/tclap-1.2.1/examples/test1.cpp
new file mode 100644
index 0000000..bf87af4
--- /dev/null
+++ b/tclap-1.2.1/examples/test1.cpp
@@ -0,0 +1,46 @@
+#include <string>
+#include <iostream>
+#include <algorithm>
+#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<string> 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; }
+}
+
diff --git a/tclap-1.2.1/examples/test10.cpp b/tclap-1.2.1/examples/test10.cpp
new file mode 100644
index 0000000..8425854
--- /dev/null
+++ b/tclap-1.2.1/examples/test10.cpp
@@ -0,0 +1,26 @@
+// 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);
+}
+
diff --git a/tclap-1.2.1/examples/test11.cpp b/tclap-1.2.1/examples/test11.cpp
new file mode 100644
index 0000000..f7d06fe
--- /dev/null
+++ b/tclap-1.2.1/examples/test11.cpp
@@ -0,0 +1,52 @@
+#include "tclap/CmdLine.h"
+#include <iterator>
+
+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<double>(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<Vect3D> {
+ typedef StringLike ValueCategory;
+};
+}
+
+int main(int argc, char *argv[])
+{
+ CmdLine cmd("Command description message", ' ', "0.9");
+ ValueArg<Vect3D> 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;
+}
+
diff --git a/tclap-1.2.1/examples/test12.cpp b/tclap-1.2.1/examples/test12.cpp
new file mode 100644
index 0000000..21016ea
--- /dev/null
+++ b/tclap-1.2.1/examples/test12.cpp
@@ -0,0 +1,68 @@
+#include "tclap/CmdLine.h"
+#include <iterator>
+#include <algorithm>
+
+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<double>(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<Vect3D> {
+ typedef StringLike ValueCategory;
+};
+}
+
+int main(int argc, char *argv[])
+{
+ CmdLine cmd("Command description message", ' ', "0.9");
+ MultiArg<Vect3D> 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<Vect3D>(std::cout, "\n"));
+
+ std::cout << "REVERSED" << std::endl;
+
+ // use alt. form getValue()
+ std::vector<Vect3D> v(vec.getValue());
+ std::reverse(v.begin(), v.end());
+
+ std::copy(v.begin(), v.end(),
+ std::ostream_iterator<Vect3D>(std::cout, "\n"));
+}
+
diff --git a/tclap-1.2.1/examples/test13.cpp b/tclap-1.2.1/examples/test13.cpp
new file mode 100644
index 0000000..12fa8bc
--- /dev/null
+++ b/tclap-1.2.1/examples/test13.cpp
@@ -0,0 +1,57 @@
+#include <iostream>
+#include <string>
+
+#include <tclap/CmdLine.h>
+
+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<std::string> Arg("X","fli","fli module",false,"string");
+ cmd.add(Arg);
+ MultiSwitchArg ArgMultiSwitch("d","long_d","example");
+ cmd.add(ArgMultiSwitch);
+
+ std::vector<std::string> in;
+ in.push_back("prog name");
+ in.push_back("-X module");
+ cmd.parse(in);
+
+ std::vector<std::string> 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;
+}
+
+
+
diff --git a/tclap-1.2.1/examples/test14.cpp b/tclap-1.2.1/examples/test14.cpp
new file mode 100644
index 0000000..e194845
--- /dev/null
+++ b/tclap-1.2.1/examples/test14.cpp
@@ -0,0 +1,56 @@
+#include "tclap/CmdLine.h"
+#include <iterator>
+#include <algorithm>
+
+// Define a simple 3D vector type
+template<typename T, size_t LEN>
+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<T>(os, " "));
+ return os;
+ }
+
+};
+
+int main(int argc, char *argv[])
+{
+ TCLAP::CmdLine cmd("Command description message", ' ', "0.9");
+ TCLAP::ValueArg< Vect<double, 3> > vec("v", "vect", "vector",
+ true, Vect<double, 3>(),
+ "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;
+}
diff --git a/tclap-1.2.1/examples/test15.cpp b/tclap-1.2.1/examples/test15.cpp
new file mode 100644
index 0000000..62cd95b
--- /dev/null
+++ b/tclap-1.2.1/examples/test15.cpp
@@ -0,0 +1,56 @@
+#include "tclap/CmdLine.h"
+#include <iterator>
+#include <algorithm>
+
+// Define a simple 3D vector type
+template<typename T, size_t LEN>
+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<T>(os, " "));
+ return os;
+ }
+
+};
+
+int main(int argc, char *argv[])
+{
+ TCLAP::CmdLine cmd("Command description message", ' ', "0.9");
+ TCLAP::ValueArg< Vect<double, 3> > vec("v", "vect", "vector",
+ true, Vect<double, 3>(),
+ "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;
+}
diff --git a/tclap-1.2.1/examples/test16.cpp b/tclap-1.2.1/examples/test16.cpp
new file mode 100644
index 0000000..fae185c
--- /dev/null
+++ b/tclap-1.2.1/examples/test16.cpp
@@ -0,0 +1,41 @@
+#include "tclap/CmdLine.h"
+#include <iterator>
+#include <algorithm>
+
+namespace TCLAP {
+ template<>
+ struct ArgTraits< std::vector<double> > {
+ typedef StringLike ValueCategory;
+ };
+
+ template<>
+ void SetString< std::vector<double> >(std::vector<double> &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<double> > vec("v", "vect", "vector",
+ true, std::vector<double>(),
+ "3D vector", cmd);
+ try {
+ cmd.parse(argc, argv);
+ } catch(std::exception &e) {
+ std::cout << e.what() << std::endl;
+ return EXIT_FAILURE;
+ }
+
+ const std::vector<double> &v = vec.getValue();
+ std::copy(v.begin(), v.end(),
+ std::ostream_iterator<double>(std::cout, "\n"));
+ std::cout << std::endl;
+}
diff --git a/tclap-1.2.1/examples/test17-a.cpp b/tclap-1.2.1/examples/test17-a.cpp
new file mode 100644
index 0000000..f1b6354
--- /dev/null
+++ b/tclap-1.2.1/examples/test17-a.cpp
@@ -0,0 +1 @@
+#include <tclap/CmdLine.h>
diff --git a/tclap-1.2.1/examples/test17.cpp b/tclap-1.2.1/examples/test17.cpp
new file mode 100644
index 0000000..b394f76
--- /dev/null
+++ b/tclap-1.2.1/examples/test17.cpp
@@ -0,0 +1,3 @@
+#include <tclap/CmdLine.h>
+
+int main() { }
diff --git a/tclap-1.2.1/examples/test18.cpp b/tclap-1.2.1/examples/test18.cpp
new file mode 100644
index 0000000..f797745
--- /dev/null
+++ b/tclap-1.2.1/examples/test18.cpp
@@ -0,0 +1,27 @@
+#include <string>
+#include <iostream>
+#include <algorithm>
+#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();
+ }
+}
+
diff --git a/tclap-1.2.1/examples/test19.cpp b/tclap-1.2.1/examples/test19.cpp
new file mode 100644
index 0000000..5513e78
--- /dev/null
+++ b/tclap-1.2.1/examples/test19.cpp
@@ -0,0 +1,39 @@
+
+
+#define TCLAP_SETBASE_ZERO 1
+
+#include "tclap/CmdLine.h"
+#include <iostream>
+#include <string>
+
+
+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; }
+}
+
+
+
diff --git a/tclap-1.2.1/examples/test2.cpp b/tclap-1.2.1/examples/test2.cpp
new file mode 100644
index 0000000..404cecd
--- /dev/null
+++ b/tclap-1.2.1/examples/test2.cpp
@@ -0,0 +1,97 @@
+
+
+#include "tclap/CmdLine.h"
+#include <iostream>
+#include <string>
+
+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<string> stest("s","stringTest","string test",true,"homer",
+ "string");
+ cmd.add( stest );
+
+ ValueArg<int> itest("i", "intTest", "integer test", true, 5, "int");
+ cmd.add( itest );
+
+ ValueArg<double> ftest("f", "floatTest", "float test", false, 3.7, "float");
+ cmd.add( ftest );
+
+ UnlabeledValueArg<string> utest("unTest","unlabeld test", true,
+ "default","string");
+ cmd.add( utest );
+
+ UnlabeledMultiArg<string> 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<string> v = mtest.getValue();
+ for ( int i = 0; static_cast<unsigned int>(i) < v.size(); i++ )
+ cout << i << " " << v[i] << endl;
+
+ } catch ( ArgException& e )
+ { cout << "ERROR: " << e.error() << " " << e.argId() << endl; }
+}
+
+
+
diff --git a/tclap-1.2.1/examples/test20.cpp b/tclap-1.2.1/examples/test20.cpp
new file mode 100644
index 0000000..38c0307
--- /dev/null
+++ b/tclap-1.2.1/examples/test20.cpp
@@ -0,0 +1,27 @@
+#include <string>
+#include <iostream>
+#include <algorithm>
+#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");
+
+ 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; }
+}
diff --git a/tclap-1.2.1/examples/test21.cpp b/tclap-1.2.1/examples/test21.cpp
new file mode 100644
index 0000000..1d49cd2
--- /dev/null
+++ b/tclap-1.2.1/examples/test21.cpp
@@ -0,0 +1,52 @@
+
+// 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 <string>
+#include <iostream>
+#include <algorithm>
+#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<string> 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; }
+}
+
diff --git a/tclap-1.2.1/examples/test3.cpp b/tclap-1.2.1/examples/test3.cpp
new file mode 100644
index 0000000..9602e64
--- /dev/null
+++ b/tclap-1.2.1/examples/test3.cpp
@@ -0,0 +1,95 @@
+
+
+#include "tclap/CmdLine.h"
+#include <iostream>
+#include <string>
+
+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<string> stest("", "stringTest", "string test", true, "homer",
+ "string");
+ cmd.add( stest );
+
+ UnlabeledValueArg<string> utest("unTest1","unlabeled test one", true,
+ "default","string");
+ cmd.add( utest );
+
+ UnlabeledValueArg<string> ztest("unTest2","unlabeled test two", true,
+ "default","string");
+ cmd.add( ztest );
+
+ MultiArg<int> itest("i", "intTest", "multi int test", false,"int" );
+ cmd.add( itest );
+
+ MultiArg<float> ftest("f", "floatTest", "multi float test", false,"float" );
+ cmd.add( ftest );
+
+ UnlabeledMultiArg<string> 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<int> vi = itest.getValue();
+ for ( int i = 0; static_cast<unsigned int>(i) < vi.size(); i++ )
+ cout << "[-i] " << i << " " << vi[i] << endl;
+
+ vector<float> vf = ftest.getValue();
+ for ( int i = 0; static_cast<unsigned int>(i) < vf.size(); i++ )
+ cout << "[-f] " << i << " " << vf[i] << endl;
+
+ vector<string> v = mtest.getValue();
+ for ( int i = 0; static_cast<unsigned int>(i) < v.size(); i++ )
+ cout << "[ ] " << i << " " << v[i] << endl;
+
+ } catch ( ArgException& e )
+ { cout << "ERROR: " << e.error() << " " << e.argId() << endl; }
+}
+
+
+
diff --git a/tclap-1.2.1/examples/test4.cpp b/tclap-1.2.1/examples/test4.cpp
new file mode 100644
index 0000000..a1dd88e
--- /dev/null
+++ b/tclap-1.2.1/examples/test4.cpp
@@ -0,0 +1,106 @@
+
+
+#include "tclap/CmdLine.h"
+#include "tclap/DocBookOutput.h"
+#include "tclap/ZshCompletionOutput.h"
+#include <iostream>
+#include <string>
+
+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<void>(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<Arg*> 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<void>(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<string> 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; }
+}
+
+
+
diff --git a/tclap-1.2.1/examples/test5.cpp b/tclap-1.2.1/examples/test5.cpp
new file mode 100644
index 0000000..ebc5e4a
--- /dev/null
+++ b/tclap-1.2.1/examples/test5.cpp
@@ -0,0 +1,118 @@
+
+
+#include "tclap/CmdLine.h"
+#include <iostream>
+#include <string>
+
+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<string> atest("a", "aaa", "or test a", true, "homer", "string");
+ ValueArg<string> btest("b", "bbb", "or test b", true, "homer", "string");
+ cmd.xorAdd( atest, btest );
+
+ ValueArg<string> ctest("c", "ccc", "c test", true, "homer", "string");
+ cmd.add( ctest );
+
+ SwitchArg dtest("", "ddd", "d test", false);
+ cmd.add( dtest );
+
+ ValueArg<string> etest("", "eee", "e test", false, "homer", "string");
+ ValueArg<string> ftest("", "fff", "f test", false, "homer", "string");
+ ValueArg<string> gtest("g", "ggg", "g test", false, "homer", "string");
+ vector<Arg*> xorlist;
+ xorlist.push_back(&etest);
+ xorlist.push_back(&ftest);
+ xorlist.push_back(&gtest);
+ cmd.xorAdd( xorlist );
+
+ MultiArg<string> itest("i", "iii", "or test i", true, "string");
+ MultiArg<string> 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<string> v = jtest.getValue();
+ for ( int z = 0; static_cast<unsigned int>(z) < v.size(); z++ )
+ cout << " " << z << " " << v[z] << endl;
+ }
+ else if ( itest.isSet() )
+ {
+ cout << "for I:" << endl;
+ vector<string> v = itest.getValue();
+ for ( int z = 0; static_cast<unsigned int>(z) < v.size(); z++ )
+ cout << " " << z << " " << v[z] << endl;
+ }
+ else
+ throw("yup, still bad");
+
+
+
+ } catch ( ArgException& e )
+ { cout << "ERROR: " << e.error() << " " << e.argId() << endl; }
+}
+
+
+
diff --git a/tclap-1.2.1/examples/test6.cpp b/tclap-1.2.1/examples/test6.cpp
new file mode 100644
index 0000000..b792265
--- /dev/null
+++ b/tclap-1.2.1/examples/test6.cpp
@@ -0,0 +1,51 @@
+#include <string>
+#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<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 );
+
+ vector<int> iallowed;
+ iallowed.push_back(1);
+ iallowed.push_back(2);
+ iallowed.push_back(3);
+ ValuesConstraint<int> iallowedVals( iallowed );
+
+ UnlabeledValueArg<int> 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; }
+}
+
diff --git a/tclap-1.2.1/examples/test7.cpp b/tclap-1.2.1/examples/test7.cpp
new file mode 100644
index 0000000..0d91e6e
--- /dev/null
+++ b/tclap-1.2.1/examples/test7.cpp
@@ -0,0 +1,94 @@
+#include <string>
+#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<string> allowed;
+ allowed.push_back("homer");
+ allowed.push_back("marge");
+ allowed.push_back("bart");
+ allowed.push_back("lisa");
+ allowed.push_back("maggie");
+ ValuesConstraint<string> vallowed( allowed );
+
+ MultiArg<string> 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<int> iallowed;
+ iallowed.push_back(1);
+ iallowed.push_back(2);
+ iallowed.push_back(3);
+ ValuesConstraint<int> iiallowed( iallowed );
+
+ UnlabeledMultiArg<int> 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<int> gapCreate("f","gapCreate", "The cost of creating a gap",
+ false, -10, "negative int");
+ cmd.add( gapCreate );
+
+ ValueArg<int> 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<string> scoringMatrixName("s","scoring--Matrix",
+ "Scoring Matrix name", false,"BLOSUM50","name string");
+ cmd.add( scoringMatrixName );
+
+ ValueArg<string> seq1Filename ("x","filename1",
+ "Sequence 1 filename (FASTA format)", false,"","filename");
+ cmd.add( seq1Filename );
+
+ ValueArg<string> seq2Filename ("z","filename2",
+ "Sequence 2 filename (FASTA format)", false,"","filename");
+ cmd.add( seq2Filename );
+
+ ValueArg<float> lowerBound("b","lowerBound", "lower percentage bound",
+ false,1.0,"float lte 1");
+ cmd.add( lowerBound );
+
+ ValueArg<float> upperBound("u","upperBound", "upper percentage bound",
+ false,1.0,"float lte 1");
+ cmd.add( upperBound );
+
+ ValueArg<int> limit("l","limit","Max number of alignments allowed",
+ false, 1000,"int");
+ cmd.add( limit );
+
+ argv[0] = const_cast<char*>("ThisIsAVeryLongProgramNameDesignedToTestSpacePrintWhichUsedToHaveProblemsWithLongProgramNamesIThinkItIsNowLongEnough");
+
+ // Parse the args.
+ cmd.parse( argc, argv );
+
+ // Get the value parsed by each arg.
+ vector<int> num = intArg.getValue();
+
+ for ( unsigned int i = 0; i < num.size(); i++ )
+ cout << "Got num " << num[i] << endl;
+
+ vector<string> 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; }
+}
+
diff --git a/tclap-1.2.1/examples/test8.cpp b/tclap-1.2.1/examples/test8.cpp
new file mode 100644
index 0000000..6063e02
--- /dev/null
+++ b/tclap-1.2.1/examples/test8.cpp
@@ -0,0 +1,89 @@
+
+
+#include "tclap/CmdLine.h"
+#include <iostream>
+#include <string>
+
+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<string> stest("s", "stringTest", "string test", true, "homer",
+ "string", cmd );
+
+ UnlabeledValueArg<string> utest("unTest1","unlabeled test one", true,
+ "default","string", cmd );
+
+ UnlabeledValueArg<string> ztest("unTest2","unlabeled test two", true,
+ "default","string", cmd );
+
+ MultiArg<int> itest("i", "intTest", "multi int test", false,"int", cmd );
+
+ MultiArg<float> ftest("f", "floatTest", "multi float test", false,"float",
+ cmd );
+
+ UnlabeledMultiArg<string> 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<int> vi = itest.getValue();
+ for ( int i = 0; static_cast<unsigned int>(i) < vi.size(); i++ )
+ cout << "[-i] " << i << " " << vi[i] << endl;
+
+ vector<float> vf = ftest.getValue();
+ for ( int i = 0; static_cast<unsigned int>(i) < vf.size(); i++ )
+ cout << "[-f] " << i << " " << vf[i] << endl;
+
+ vector<string> v = mtest.getValue();
+ for ( int i = 0; static_cast<unsigned int>(i) < v.size(); i++ )
+ cout << "[ ] " << i << " " << v[i] << endl;
+
+ } catch ( ArgException& e )
+ { cout << "ERROR: " << e.error() << " " << e.argId() << endl; }
+}
+
+
+
diff --git a/tclap-1.2.1/examples/test9.cpp b/tclap-1.2.1/examples/test9.cpp
new file mode 100644
index 0000000..8d9e64e
--- /dev/null
+++ b/tclap-1.2.1/examples/test9.cpp
@@ -0,0 +1,56 @@
+#include <string>
+#include <iostream>
+#include <algorithm>
+#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<string> 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<string> 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; }
+}
+