Make OptionsInfo more generic.
authorTeemu Murtola <teemu.murtola@gmail.com>
Fri, 3 Feb 2012 17:27:18 +0000 (19:27 +0200)
committerTeemu Murtola <teemu.murtola@gmail.com>
Mon, 20 Feb 2012 18:26:42 +0000 (20:26 +0200)
commit10414111bb863c9766650a89bbd77cbfcb5b0f83
treed16f8f33f266794025f0fa16e7a0795544065483
parentfaf2465896f914a6c24f44593f226b66f9d76bb1
Make OptionsInfo more generic.

It is now possible to access information specific to a particular option
type from an OptionsVisitor.  Removed hacks that were in place to treat
file name options specifically, since they can now be treated through
the generic framework.

Also added possibility to modify options using a non-const OptionInfo
object, plus visitor and iterator interfaces to use this.  Not used yet
in any code, but will be in subsequent commits.

Part of issue #839.

Change-Id: If812252c73616a775ea5e2e13886a0a54db6ceaa
19 files changed:
src/gromacs/options/CMakeLists.txt
src/gromacs/options/abstractoption.cpp
src/gromacs/options/abstractoptionstorage.h
src/gromacs/options/asciihelpwriter-impl.h
src/gromacs/options/asciihelpwriter.cpp
src/gromacs/options/basicoptioninfo.h [new file with mode: 0644]
src/gromacs/options/basicoptions.cpp
src/gromacs/options/basicoptions.h
src/gromacs/options/basicoptionstorage.h
src/gromacs/options/optionflags.h
src/gromacs/options/optioninfo.h [new file with mode: 0644]
src/gromacs/options/options.h
src/gromacs/options/optionsvisitor.cpp
src/gromacs/options/optionsvisitor.h
src/gromacs/options/tests/abstractoptionstorage.cpp
src/gromacs/selection/CMakeLists.txt
src/gromacs/selection/selectionoption.cpp
src/gromacs/selection/selectionoptioninfo.h [new file with mode: 0644]
src/gromacs/selection/selectionoptionstorage.h