Add back-mapping to KeyValueTreeTransform
commit18879ec0959357108882a7551cba062e8f5534cc
authorTeemu Murtola <teemu.murtola@gmail.com>
Sun, 2 Oct 2016 04:58:38 +0000 (2 07:58 +0300)
committerMark Abraham <mark.j.abraham@gmail.com>
Thu, 13 Oct 2016 09:12:14 +0000 (13 11:12 +0200)
treefe983fda723f4d8548b719f7b9437e77cc9c8f9f
parenta34f8680173ed297635fbe360a62c972f1bd44dd
Add back-mapping to KeyValueTreeTransform

Add ability to map paths from the output structure of the transform back
to the original structure, which will be useful for error messages.

Change-Id: I9dded5a517fa72177219294596e5c23bec7785ce
src/gromacs/utility/keyvaluetreetransform.cpp
src/gromacs/utility/keyvaluetreetransform.h
src/gromacs/utility/tests/keyvaluetreetransform.cpp
src/gromacs/utility/tests/refdata/TreeValueTransformTest_ObjectFromMultipleStrings.xml
src/gromacs/utility/tests/refdata/TreeValueTransformTest_ObjectFromString.xml
src/gromacs/utility/tests/refdata/TreeValueTransformTest_SimpleTransforms.xml
src/gromacs/utility/tests/refdata/TreeValueTransformTest_SimpleTransformsCaseAndDashInsensitive.xml
src/gromacs/utility/tests/refdata/TreeValueTransformTest_SimpleTransformsToObject.xml