Split CommandLineHelpModule into a separate file
authorTeemu Murtola <teemu.murtola@gmail.com>
Thu, 26 Dec 2013 06:13:21 +0000 (08:13 +0200)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Tue, 14 Jan 2014 06:11:11 +0000 (07:11 +0100)
commit15bdf840a191d3fc73b9a495e01dc7f817f90684
tree14f09c47c8b3cdeaf4b77d63f1636e20c085aba0
parenta514f1b9cd2c450591f4fecc259af46ebeb824f9
Split CommandLineHelpModule into a separate file

- Move CommandLineHelpModule and supporting classes into
  cmdlinehelpmodule.cpp.  The declaration is in a corresponding header.
- Move declarations required in both .cpp files into
  cmdlinemodulemanager-impl.h.
- Make CommandLineHelpModule use a private implementation class to be
  able to keep most classes internal to cmdlinehelpmodule.cpp.  The
  implementation class is a separate class (not a private inner class)
  to allow using it from contexts outside the actual module (necessary
  for subsequent changes).

cmdlinemodulemanager.cpp was getting long, and contained a lot of
declarations for which order mattered.  Now, the most important such
declarations are in headers, and the division between general module
management and the help management is clearer, simplifying things.

Change-Id: Iecc9a6bf6aa8b020ab153cdde6c882523574a7ab
src/gromacs/commandline/cmdlinehelpmodule.cpp [new file with mode: 0644]
src/gromacs/commandline/cmdlinehelpmodule.h [new file with mode: 0644]
src/gromacs/commandline/cmdlinemodulemanager-impl.h [new file with mode: 0644]
src/gromacs/commandline/cmdlinemodulemanager.cpp
src/gromacs/commandline/cmdlinemodulemanager.h