Convert gmx-insert-molecules into proper C++ module
authorTeemu Murtola <teemu.murtola@gmail.com>
Tue, 9 Dec 2014 16:56:31 +0000 (18:56 +0200)
committerTeemu Murtola <teemu.murtola@gmail.com>
Sun, 28 Dec 2014 20:23:49 +0000 (21:23 +0100)
commit4d9a9fd6fbdaa8df1c57f03ff3045cc07da8d645
tree41792182ea9dc4b8403663d306dcf67e869f3f2e
parent696671e028a1f39a117ff452d2ca4fe50b419856
Convert gmx-insert-molecules into proper C++ module

This makes the module a bit more exception-safe (but not perfectly),
removes remaining legacyheaders/ dependencies from the code, and
demonstrates how the new helper class works (and acts as a
proof-of-concept for that generic code).

This new approach also makes it easier to start using selections in the
tool, but that is a potential future improvement.

Change-Id: I0bad97ff7638f9f583a096f212c070c0e34af1a2
src/gromacs/gmxpreprocess/insert-molecules.cpp
src/gromacs/gmxpreprocess/insert-molecules.h
src/gromacs/gmxpreprocess/tests/insert-molecules.cpp
src/programs/legacymodules.cpp