Basic support for array-of-structs in options
authorTeemu Murtola <teemu.murtola@gmail.com>
Tue, 5 Jul 2016 18:24:27 +0000 (21:24 +0300)
committerMark Abraham <mark.j.abraham@gmail.com>
Wed, 17 Aug 2016 19:47:16 +0000 (21:47 +0200)
commitc8fd6e2b8559c4c5a1420685c8635263f111b893
tree323358abc6e01221e541ca6ca5c82360796fa8bc
parent310516ff1be1433b9281333d6b7fa428ed1b4fa8
Basic support for array-of-structs in options

This makes it possible to parse structured data that has
arrays-of-struct type of constructs (as long as the structure for the
array elements is reasonably uniform).  Iteration over the sections does
not work reasonably for these types of sections yet, and there are other
things that might not work.  For complicated nested data structures,
there is also some unnecessary copying.  But the tests show that basic
stuff does work.

Change-Id: Ib485248a5adabecc3ed126dfa3736a5e71577bfd
14 files changed:
src/gromacs/options/CMakeLists.txt
src/gromacs/options/abstractsection.cpp
src/gromacs/options/abstractsection.h
src/gromacs/options/isectionstorage.h [new file with mode: 0644]
src/gromacs/options/options-impl.h
src/gromacs/options/options.cpp
src/gromacs/options/optionsassigner.cpp
src/gromacs/options/optionsection.cpp [new file with mode: 0644]
src/gromacs/options/optionsection.h
src/gromacs/options/optionstoragetemplate.h
src/gromacs/options/repeatingsection.h [new file with mode: 0644]
src/gromacs/options/tests/CMakeLists.txt
src/gromacs/options/tests/repeatingsection.cpp [new file with mode: 0644]
src/gromacs/options/valuestore.h