Pass settings object to initAnalysis().
authorTeemu Murtola <teemu.murtola@gmail.com>
Sun, 5 Feb 2012 16:37:22 +0000 (18:37 +0200)
committerTeemu Murtola <teemu.murtola@gmail.com>
Mon, 6 Feb 2012 16:36:33 +0000 (18:36 +0200)
commite9b138dd1bc530b7d936113f007ebca24e0a3f87
tree82af08e6ea9aecb25d6607889cab2f708a23a366
parent5ee972534dc091d35e5b77d41cff97dff014128e
Pass settings object to initAnalysis().

Makes it easier to write analysis modules that need to access some
settings based on user input, and is also prerequisite for issue #839.
With the settings object, it is possible to pass additional information
to this method without changing the signature, simplifying maintenance.
In an earlier design, the settings object was available in all methods
through a separate accessor method, but the availability of the settings
became too restricted when this was refactored to make
TrajectoryAnalysisModule more interface-like.

Change-Id: If775db348354b6ba35c6d7cb0a10fe5057b6e1b2
share/template/template.cpp
src/gromacs/trajectoryanalysis/analysismodule.h
src/gromacs/trajectoryanalysis/cmdlinerunner.cpp
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/gromacs/trajectoryanalysis/tests/test_selection.cpp