Simplify ProgramInfo
authorTeemu Murtola <teemu.murtola@gmail.com>
Sat, 28 Dec 2013 06:35:26 +0000 (08:35 +0200)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Mon, 27 Jan 2014 11:58:23 +0000 (12:58 +0100)
commit05665c91ff3334ff06b01533cee5f43993375e51
treed871190c9500f323a60df8f59d7233d4976908de
parent7020b9d8897b078af9f988befb396196191c85bb
Simplify ProgramInfo

Remove realBinaryName() and invariantBinaryName() from ProgramInfo, as
they were only necessary for the command line module manager.  Instead,
pass the binary name to CommandLineModuleManager constructor and move
the invariant name logic into the manager.  This removes unnecessary
functionality from ProgramInfo, allowing to simplify it further.

Change-Id: I2f18dffcb5dde8e2101376444435bb13daf8c236
12 files changed:
src/gromacs/commandline/cmdlinehelpmodule.cpp
src/gromacs/commandline/cmdlinehelpmodule.h
src/gromacs/commandline/cmdlinemodulemanager.cpp
src/gromacs/commandline/cmdlinemodulemanager.h
src/gromacs/commandline/tests/cmdlinemodulemanager.cpp
src/gromacs/trajectoryanalysis/tests/test_selection.cpp
src/gromacs/utility/init.cpp
src/gromacs/utility/init.h
src/gromacs/utility/programinfo.cpp
src/gromacs/utility/programinfo.h
src/gromacs/utility/tests/programinfo.cpp
src/programs/gmx/gmx.cpp