Generic handling for multiple cmd-line modules.
authorTeemu Murtola <teemu.murtola@gmail.com>
Mon, 7 May 2012 09:36:43 +0000 (12:36 +0300)
committerTeemu Murtola <teemu.murtola@gmail.com>
Mon, 7 May 2012 10:16:23 +0000 (13:16 +0300)
commitab3007582338917c2a2680ff53e4300e8ad93a07
tree3408dd00b41dfc9a366dbedf763421667cf15ce5
parent877265a28e2020a0dcd32d802e813dbd6b2c09f1
Generic handling for multiple cmd-line modules.

Added generic methods for multiple independent modules within a single
command-line tool, and modified g_ana to use this.

By itself, does not change the external behavior significantly, but
makes it easier to implement parts of #666 and #672.
The wrapper binary in #685 should also be easy to implement using this
approach.

Change-Id: I3058bf5db2cbb7c7a1f9e4c87dd2db8f9727fe82
16 files changed:
src/gromacs/commandline/cmdlinemodule.h [new file with mode: 0644]
src/gromacs/commandline/cmdlinemodulemanager.cpp [new file with mode: 0644]
src/gromacs/commandline/cmdlinemodulemanager.h [new file with mode: 0644]
src/gromacs/commandline/tests/CMakeLists.txt
src/gromacs/commandline/tests/cmdlinemodulemanager.cpp [new file with mode: 0644]
src/gromacs/trajectoryanalysis/cmdlinerunner.cpp
src/gromacs/trajectoryanalysis/cmdlinerunner.h
src/gromacs/trajectoryanalysis/modules.cpp
src/gromacs/trajectoryanalysis/modules.h
src/gromacs/trajectoryanalysis/modules/angle.cpp
src/gromacs/trajectoryanalysis/modules/angle.h
src/gromacs/trajectoryanalysis/modules/distance.cpp
src/gromacs/trajectoryanalysis/modules/distance.h
src/gromacs/trajectoryanalysis/modules/select.cpp
src/gromacs/trajectoryanalysis/modules/select.h
src/programs/g_ana/g_ana.cpp