Reorganize CommandLineHelpWriter implementation.
authorTeemu Murtola <teemu.murtola@gmail.com>
Sun, 26 Aug 2012 03:50:07 +0000 (06:50 +0300)
committerRoland Schulz <roland@utk.edu>
Fri, 31 Aug 2012 15:07:46 +0000 (11:07 -0400)
commit5145db0152229730ef8ca4715fe115ede1fbb4df
treedd61f77ed47708ed9fde862f1ae991b23c20b95a
parent030c229f14cd3c19962c5908fbbda479dae51175
Reorganize CommandLineHelpWriter implementation.

Instead of separate classes to write out descriptions and different
types of options, there is now three main local classes:
 - OptionsFilter: has output format independent logic to do the
   filterting that was previously implemented in each class separately.
 - OptionsFormatterInterface: interface that OptionsFilter uses to do
   output format specific formatting for the options.
 - OptionsConsoleFormatter: implements the above interface to produce
   the console help that was previously done by the separate classes.

Prerequisite for #969 independent of the chosen solution.
May need additional work as part of that issue.

Change-Id: Ica506f3567b4527f210c48c1b43069d4b64007ec
src/gromacs/commandline/cmdlinehelpwriter.cpp