Clean up option and selection flags.
authorTeemu Murtola <teemu.murtola@gmail.com>
Sat, 9 Jun 2012 11:09:37 +0000 (14:09 +0300)
committerTeemu Murtola <teemu.murtola@gmail.com>
Wed, 20 Jun 2012 17:52:53 +0000 (20:52 +0300)
commit7f772421d32dd3be469823f1e9bc53a94e785600
tree3671159f901f5da8401b3b0fac114ef9349ef404
parente39fb5f4a468aa878a2e7262c3326c77ff6edead
Clean up option and selection flags.

Rename the enums used for flags such that they are more likely unique.
Also a bit of other clean-up to limit the use of the option flags more
into the generic parts.  Removed a few unnecessary flags.  Made
efClearOnNextSet work more correctly for classes that don't use
OptionStorageTemplate, although currently it didn't cause any issues
(noticed some issues while developing SelectionFileOption, but the final
version worked without these fixes).

Change-Id: I78c243c4f73b87b285eb54d6ff3ae42699678962
13 files changed:
src/gromacs/options/abstractoption.cpp
src/gromacs/options/abstractoption.h
src/gromacs/options/abstractoptionstorage.h
src/gromacs/options/basicoptions.cpp
src/gromacs/options/basicoptionstorage.h
src/gromacs/options/optionflags.h
src/gromacs/options/optionstoragetemplate.h
src/gromacs/options/tests/abstractoptionstorage.cpp
src/gromacs/selection/compiler.cpp
src/gromacs/selection/selection.cpp
src/gromacs/selection/selectionenums.h
src/gromacs/selection/selectionoption.cpp
src/gromacs/selection/selectionoption.h