Framework for help export from wrapper binary.
authorTeemu Murtola <teemu.murtola@gmail.com>
Thu, 5 Sep 2013 03:22:08 +0000 (06:22 +0300)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Thu, 19 Sep 2013 03:16:37 +0000 (05:16 +0200)
commitf107cc6f5853c3d428818fbb848985e90eeb9963
treedee5149d42c50a32ffa7ebe27619ab4bcd53a423
parent8e2028cd39f1dbcf3ea782a7aaeea9a0b412aa58
Framework for help export from wrapper binary.

- Add a separate CommandLineHelpContext.  This class layers extra
  information on top of a HelpWriterContext, specific for command-line
  help export.
- Add a global instance of the above to be able to pass it into
  write_man() through functions unaware of its existence.  Make
  write_man() use the instance if present.
- Add -export option for 'gmx help', and an interface that needs to be
  implemented to export a particular format.

Related to #685 and #969.

Change-Id: Ica16895f8136a09bc5995812c4da5363d097c2b1
15 files changed:
src/gromacs/commandline/cmdlinehelpcontext.cpp [new file with mode: 0644]
src/gromacs/commandline/cmdlinehelpcontext.h [new file with mode: 0644]
src/gromacs/commandline/cmdlinehelpwriter.cpp
src/gromacs/commandline/cmdlinehelpwriter.h
src/gromacs/commandline/cmdlinemodule.h
src/gromacs/commandline/cmdlinemodulemanager.cpp
src/gromacs/commandline/tests/cmdlinehelpwriter.cpp
src/gromacs/commandline/tests/cmdlinemodulemanager.cpp
src/gromacs/gmxlib/statutil.cpp
src/gromacs/onlinehelp/helpwritercontext.cpp
src/gromacs/onlinehelp/wman.cpp
src/gromacs/onlinehelp/wman.h
src/gromacs/trajectoryanalysis/cmdlinerunner.cpp
src/gromacs/trajectoryanalysis/cmdlinerunner.h
src/testutils/testoptions.cpp