Also adjusted a few includes from <...> to "..." in the touched files.
Closes #906, see the issue for details.
Change-Id: I291bfc6a004f6a3b9c3f8c1de8f724320591a5c6
add_subdirectory(mdlib)
add_subdirectory(gmxpreprocess)
add_subdirectory(analysisdata)
-add_subdirectory(fatalerror)
add_subdirectory(options)
add_subdirectory(selection)
add_subdirectory(trajectoryanalysis)
*/
#include "gromacs/analysisdata/abstractdata.h"
-#include "gromacs/fatalerror/exceptions.h"
-#include "gromacs/fatalerror/gmxassert.h"
+#include "gromacs/utility/exceptions.h"
+#include "gromacs/utility/gmxassert.h"
#include "abstractdata-impl.h"
#include "dataframe.h"
#include "gromacs/analysisdata/dataframe.h"
#include "gromacs/analysisdata/datastorage.h"
#include "gromacs/analysisdata/paralleloptions.h"
-#include "gromacs/fatalerror/exceptions.h"
-#include "gromacs/fatalerror/gmxassert.h"
+#include "gromacs/utility/exceptions.h"
+#include "gromacs/utility/gmxassert.h"
#include "analysisdata-impl.h"
#include <algorithm>
#include "gromacs/analysisdata/dataframe.h"
-#include "gromacs/fatalerror/exceptions.h"
-#include "gromacs/fatalerror/gmxassert.h"
+#include "gromacs/utility/exceptions.h"
+#include "gromacs/utility/gmxassert.h"
namespace gmx
{
#include <vector>
-#include "../fatalerror/gmxassert.h"
+#include "../utility/gmxassert.h"
#include "abstractdata.h"
#include "dataframe.h"
*/
#include "dataframe.h"
-#include "gromacs/fatalerror/gmxassert.h"
+#include "gromacs/utility/gmxassert.h"
namespace gmx
{
#include "../legacyheaders/types/simple.h"
-#include "../fatalerror/gmxassert.h"
#include "../utility/arrayref.h"
#include "../utility/flags.h"
+#include "../utility/gmxassert.h"
namespace gmx
{
#include "dataproxy.h"
#include "gromacs/analysisdata/dataframe.h"
-#include "gromacs/fatalerror/gmxassert.h"
+#include "gromacs/utility/gmxassert.h"
namespace gmx
{
#include "gromacs/analysisdata/abstractdata.h"
#include "gromacs/analysisdata/dataframe.h"
#include "gromacs/analysisdata/paralleloptions.h"
-#include "gromacs/fatalerror/exceptions.h"
-#include "gromacs/fatalerror/gmxassert.h"
+#include "gromacs/utility/exceptions.h"
+#include "gromacs/utility/gmxassert.h"
#include "datastorage-impl.h"
#include "../legacyheaders/types/simple.h"
-#include "../fatalerror/gmxassert.h"
#include "../utility/common.h"
+#include "../utility/gmxassert.h"
#include "dataframe.h"
#include "gromacs/analysisdata/dataframe.h"
#include "gromacs/analysisdata/modules/histogram.h"
-#include "gromacs/fatalerror/exceptions.h"
-#include "gromacs/fatalerror/gmxassert.h"
+#include "gromacs/utility/exceptions.h"
+#include "gromacs/utility/gmxassert.h"
#include "displacement-impl.h"
#include "gromacs/analysisdata/dataframe.h"
#include "gromacs/analysisdata/datastorage.h"
-#include "gromacs/fatalerror/exceptions.h"
-#include "gromacs/fatalerror/gmxassert.h"
+#include "gromacs/utility/exceptions.h"
+#include "gromacs/utility/gmxassert.h"
#include "histogram-impl.h"
#include "gromacs/analysisdata/dataframe.h"
#include "gromacs/options/options.h"
#include "gromacs/options/timeunitmanager.h"
-#include "gromacs/fatalerror/exceptions.h"
-#include "gromacs/fatalerror/gmxassert.h"
#include "gromacs/selection/selectioncollection.h"
+#include "gromacs/utility/exceptions.h"
#include "gromacs/utility/format.h"
+#include "gromacs/utility/gmxassert.h"
#include "plot-impl.h"
#include "gromacs/analysisdata/analysisdata.h"
#include "gromacs/analysisdata/paralleloptions.h"
-#include "gromacs/fatalerror/exceptions.h"
+#include "gromacs/utility/exceptions.h"
#include "datatest.h"
#include "mock_module.h"
#include "gromacs/analysisdata/analysisdata.h"
#include "gromacs/analysisdata/paralleloptions.h"
-#include "gromacs/fatalerror/gmxassert.h"
#include "gromacs/utility/format.h"
+#include "gromacs/utility/gmxassert.h"
#include "testutils/refdata.h"
#include <gtest/gtest.h>
#include "gromacs/legacyheaders/types/simple.h"
-#include "gromacs/fatalerror/gmxassert.h"
+
+#include "gromacs/utility/gmxassert.h"
#include "testutils/refdata.h"
#include "gromacs/analysisdata/analysisdata.h"
#include "gromacs/analysisdata/dataframe.h"
-#include "gromacs/fatalerror/gmxassert.h"
#include "gromacs/utility/format.h"
+#include "gromacs/utility/gmxassert.h"
#include "testutils/refdata.h"
+++ /dev/null
-file(GLOB FATALERROR_SOURCES *.cpp)
-set(LIBGROMACS_SOURCES ${LIBGROMACS_SOURCES} ${FATALERROR_SOURCES} PARENT_SCOPE)
-
-set(FATALERROR_PUBLIC_HEADERS
- errorcodes.h exceptions.h gmxassert.h)
-install(FILES ${FATALERROR_PUBLIC_HEADERS}
- DESTINATION ${INCL_INSTALL_DIR}/gromacs/fatalerror
- COMPONENT development)
*/
#include "gromacs/options/abstractoption.h"
-#include "gromacs/fatalerror/exceptions.h"
-#include "gromacs/fatalerror/gmxassert.h"
#include "gromacs/options/abstractoptionstorage.h"
#include "gromacs/options/optionflags.h"
+#include "gromacs/utility/exceptions.h"
+#include "gromacs/utility/gmxassert.h"
#include "basicoptionstorage.h"
#include <string>
#include <vector>
-#include "gromacs/fatalerror/exceptions.h"
#include "gromacs/options/basicoptioninfo.h"
#include "gromacs/options/options.h"
+#include "gromacs/utility/exceptions.h"
#include "gromacs/utility/format.h"
#include "basicoptionstorage.h"
#include <string>
-#include "../fatalerror/gmxassert.h"
+#include "../utility/gmxassert.h"
#include "abstractoption.h"
#include "optionfiletype.h"
#include <cctype>
-#include "gromacs/fatalerror/exceptions.h"
-#include "gromacs/fatalerror/messagestringcollector.h"
#include "gromacs/options/optionsassigner.h"
+#include "gromacs/utility/exceptions.h"
+#include "gromacs/utility/messagestringcollector.h"
#include "cmdlineparser-impl.h"
#include <cctype>
#include <cstring>
-#include "gromacs/fatalerror/exceptions.h"
-#include "gromacs/fatalerror/gmxassert.h"
-#include "gromacs/fatalerror/messagestringcollector.h"
#include "gromacs/options/abstractoption.h"
#include "gromacs/options/abstractoptionstorage.h"
+#include "gromacs/utility/exceptions.h"
+#include "gromacs/utility/gmxassert.h"
+#include "gromacs/utility/messagestringcollector.h"
#include "options-impl.h"
#include <deque>
-#include "gromacs/fatalerror/exceptions.h"
-#include "gromacs/fatalerror/gmxassert.h"
#include "gromacs/options/abstractoptionstorage.h"
#include "gromacs/options/options.h"
+#include "gromacs/utility/exceptions.h"
+#include "gromacs/utility/gmxassert.h"
#include "optionsassigner-impl.h"
#include "options-impl.h"
#include <boost/scoped_ptr.hpp>
-#include "../fatalerror/exceptions.h"
-#include "../fatalerror/gmxassert.h"
+#include "../utility/exceptions.h"
+#include "../utility/gmxassert.h"
#include "abstractoption.h"
#include "abstractoptionstorage.h"
#include <gmock/gmock.h>
#include <gtest/gtest.h>
-#include "gromacs/fatalerror/exceptions.h"
#include "gromacs/options/abstractoption.h"
#include "gromacs/options/options.h"
#include "gromacs/options/optionstoragetemplate.h"
#include "gromacs/options/optionsassigner.h"
+#include "gromacs/utility/exceptions.h"
#include "testutils/testexceptions.h"
namespace
#include <gtest/gtest.h>
-#include "gromacs/fatalerror/exceptions.h"
#include "gromacs/options/basicoptions.h"
#include "gromacs/options/options.h"
+#include "gromacs/utility/exceptions.h"
namespace
{
#include <gtest/gtest.h>
-#include "gromacs/fatalerror/exceptions.h"
#include "gromacs/options/basicoptions.h"
#include "gromacs/options/options.h"
#include "gromacs/options/optionsassigner.h"
+#include "gromacs/utility/exceptions.h"
namespace
{
*/
#include "gromacs/options/timeunitmanager.h"
-#include "gromacs/fatalerror/gmxassert.h"
#include "gromacs/options/basicoptioninfo.h"
#include "gromacs/options/basicoptions.h"
#include "gromacs/options/options.h"
#include "gromacs/options/optionsvisitor.h"
+#include "gromacs/utility/gmxassert.h"
namespace gmx
{
#ifndef GMX_OPTIONS_TIMEUNITMANAGER_H
#define GMX_OPTIONS_TIMEUNITMANAGER_H
-#include "../fatalerror/gmxassert.h"
+#include "../utility/gmxassert.h"
namespace gmx
{
#include <math.h>
#include <stdarg.h>
-#include <smalloc.h>
-#include <string2.h>
-#include <vec.h>
+#include "smalloc.h"
+#include "string2.h"
+#include "vec.h"
-#include "gromacs/fatalerror/exceptions.h"
#include "gromacs/selection/indexutil.h"
#include "gromacs/selection/poscalc.h"
#include "gromacs/selection/selection.h"
#include "gromacs/selection/selmethod.h"
+#include "gromacs/utility/exceptions.h"
#include "gromacs/utility/format.h"
#include "evaluate.h"
#include <string.h>
-#include <maths.h>
-#include <smalloc.h>
-#include <vec.h>
+#include "maths.h"
+#include "smalloc.h"
+#include "vec.h"
-#include "gromacs/fatalerror/exceptions.h"
-#include "gromacs/fatalerror/gmxassert.h"
#include "gromacs/selection/indexutil.h"
#include "gromacs/selection/poscalc.h"
#include "gromacs/selection/selection.h"
#include "gromacs/selection/selmethod.h"
+#include "gromacs/utility/exceptions.h"
+#include "gromacs/utility/gmxassert.h"
#include "evaluate.h"
#include "mempool.h"
#include <new>
-#include <smalloc.h>
+#include "smalloc.h"
-#include "gromacs/fatalerror/exceptions.h"
-#include "gromacs/fatalerror/gmxassert.h"
#include "gromacs/selection/indexutil.h"
+#include "gromacs/utility/exceptions.h"
+#include "gromacs/utility/gmxassert.h"
#include "mempool.h"
#include <algorithm>
-#include <smalloc.h>
-#include <string2.h>
-#include <vec.h>
+#include "smalloc.h"
+#include "string2.h"
+#include "vec.h"
-#include "gromacs/fatalerror/errorcodes.h"
-#include "gromacs/fatalerror/gmxassert.h"
-#include "gromacs/fatalerror/messagestringcollector.h"
#include "gromacs/selection/position.h"
#include "gromacs/selection/selmethod.h"
#include "gromacs/selection/selparam.h"
+#include "gromacs/utility/errorcodes.h"
#include "gromacs/utility/format.h"
+#include "gromacs/utility/gmxassert.h"
+#include "gromacs/utility/messagestringcollector.h"
#include "parsetree.h"
#include "position.h"
#include <stdio.h>
#include <stdarg.h>
-#include <futil.h>
-#include <smalloc.h>
-#include <string2.h>
+#include "futil.h"
+#include "smalloc.h"
+#include "string2.h"
-#include "gromacs/fatalerror/errorcodes.h"
-#include "gromacs/fatalerror/exceptions.h"
-#include "gromacs/fatalerror/messagestringcollector.h"
#include "gromacs/selection/poscalc.h"
#include "gromacs/selection/selection.h"
#include "gromacs/selection/selmethod.h"
+#include "gromacs/utility/errorcodes.h"
+#include "gromacs/utility/exceptions.h"
+#include "gromacs/utility/messagestringcollector.h"
#include "keywords.h"
#include "parsetree.h"
#include <string.h>
-#include <macros.h>
-#include <smalloc.h>
-#include <typedefs.h>
-#include <pbc.h>
-#include <vec.h>
-
-#include "gromacs/fatalerror/exceptions.h"
-#include "gromacs/fatalerror/gmxassert.h"
+#include "smalloc.h"
+#include "typedefs.h"
+#include "pbc.h"
+#include "vec.h"
+
#include "gromacs/selection/centerofmass.h"
#include "gromacs/selection/indexutil.h"
#include "gromacs/selection/poscalc.h"
#include "gromacs/selection/position.h"
+#include "gromacs/utility/exceptions.h"
+#include "gromacs/utility/gmxassert.h"
namespace gmx
{
#include <string.h>
-#include <smalloc.h>
-#include <typedefs.h>
-#include <vec.h>
+#include "smalloc.h"
+#include "typedefs.h"
+#include "vec.h"
-#include "gromacs/fatalerror/gmxassert.h"
#include "gromacs/selection/indexutil.h"
#include "gromacs/selection/position.h"
+#include "gromacs/utility/gmxassert.h"
/*!
* \param[out] pos Output structure.
#endif
#include <stdlib.h>
-#include <typedefs.h>
-#include <smalloc.h>
#include <string.h>
+#include "typedefs.h"
+#include "smalloc.h"
#include "string2.h"
-#include "gromacs/fatalerror/errorcodes.h"
-#include "gromacs/fatalerror/exceptions.h"
-#include "gromacs/fatalerror/gmxassert.h"
-#include "gromacs/fatalerror/messagestringcollector.h"
-
-#include "gromacs/selection/selmethod.h"
+#include "gromacs/utility/errorcodes.h"
+#include "gromacs/utility/exceptions.h"
+#include "gromacs/utility/gmxassert.h"
+#include "gromacs/utility/messagestringcollector.h"
#include "parsetree.h"
#include "selectioncollection-impl.h"
#include "selelem.h"
+#include "selmethod.h"
#include "symrec.h"
#include "parser.h"
#include "../legacyheaders/typedefs.h"
-#include "../fatalerror/gmxassert.h"
#include "../utility/arrayref.h"
#include "../utility/common.h"
+#include "../utility/gmxassert.h"
#include "position.h"
#include "indexutil.h"
#include "smalloc.h"
#include "xvgr.h"
-#include "gromacs/fatalerror/exceptions.h"
-#include "gromacs/fatalerror/gmxassert.h"
-#include "gromacs/fatalerror/messagestringcollector.h"
#include "gromacs/options/basicoptions.h"
#include "gromacs/options/options.h"
#include "gromacs/selection/selection.h"
#include "gromacs/selection/selectioncollection.h"
+#include "gromacs/utility/exceptions.h"
+#include "gromacs/utility/gmxassert.h"
+#include "gromacs/utility/messagestringcollector.h"
#include "compiler.h"
#include "mempool.h"
#include <string>
#include <vector>
-#include "gromacs/fatalerror/exceptions.h"
-#include "gromacs/fatalerror/gmxassert.h"
-#include "gromacs/fatalerror/messagestringcollector.h"
#include "gromacs/options/options.h"
#include "gromacs/options/optionsvisitor.h"
#include "gromacs/selection/selection.h"
#include "gromacs/selection/selectioncollection.h"
#include "gromacs/selection/selectionoptioninfo.h"
+#include "gromacs/utility/exceptions.h"
+#include "gromacs/utility/gmxassert.h"
+#include "gromacs/utility/messagestringcollector.h"
#include "selectioncollection-impl.h"
#include "selectionoptionstorage.h"
#include <config.h>
#endif
-#include <smalloc.h>
-#include <gmx_fatal.h>
+#include "gmx_fatal.h"
+#include "smalloc.h"
-#include "gromacs/fatalerror/exceptions.h"
#include "gromacs/selection/indexutil.h"
#include "gromacs/selection/poscalc.h"
#include "gromacs/selection/position.h"
#include "gromacs/selection/selmethod.h"
+#include "gromacs/utility/exceptions.h"
#include "keywords.h"
#include "mempool.h"
#include <config.h>
#endif
-#include <maths.h>
-#include <macros.h>
-#include <smalloc.h>
+#include "maths.h"
+#include "macros.h"
+#include "smalloc.h"
-#include "gromacs/fatalerror/exceptions.h"
#include "gromacs/selection/selmethod.h"
+#include "gromacs/utility/exceptions.h"
/** Defines the comparison operator for comparison expressions. */
typedef enum
#include <config.h>
#endif
-#include <macros.h>
-#include <pbc.h>
-#include <smalloc.h>
-#include <vec.h>
+#include "macros.h"
+#include "pbc.h"
+#include "smalloc.h"
+#include "vec.h"
-#include "gromacs/fatalerror/exceptions.h"
#include "gromacs/selection/nbsearch.h"
#include "gromacs/selection/position.h"
#include "gromacs/selection/selmethod.h"
+#include "gromacs/utility/exceptions.h"
/*! \internal \brief
* Data structure for distance-based selection method.
#include <math.h>
-#include <macros.h>
-#include <maths.h>
-#include <pbc.h>
-#include <physics.h>
-#include <smalloc.h>
-#include <vec.h>
-
-#include "gromacs/fatalerror/exceptions.h"
+#include "macros.h"
+#include "maths.h"
+#include "pbc.h"
+#include "physics.h"
+#include "smalloc.h"
+#include "vec.h"
+
#include "gromacs/selection/indexutil.h"
#include "gromacs/selection/position.h"
#include "gromacs/selection/selection.h"
#include "gromacs/selection/selmethod.h"
+#include "gromacs/utility/exceptions.h"
#include "selelem.h"
#define USE_REGEX
#endif
-#include <macros.h>
-#include <smalloc.h>
-#include <string2.h>
+#include "macros.h"
+#include "smalloc.h"
+#include "string2.h"
-#include "gromacs/fatalerror/errorcodes.h"
-#include "gromacs/fatalerror/messagestringcollector.h"
#include "gromacs/selection/selmethod.h"
+#include "gromacs/utility/errorcodes.h"
+#include "gromacs/utility/messagestringcollector.h"
#include "keywords.h"
#include "parsetree.h"
#include <config.h>
#endif
-#include <macros.h>
-#include <smalloc.h>
-#include <vec.h>
+#include "macros.h"
+#include "smalloc.h"
+#include "vec.h"
-#include "gromacs/fatalerror/exceptions.h"
#include "gromacs/selection/position.h"
#include "gromacs/selection/selmethod.h"
+#include "gromacs/utility/exceptions.h"
/*! \internal \brief
* Data structure for the merging selection modifiers.
#include <config.h>
#endif
-#include <macros.h>
-#include <smalloc.h>
-#include <vec.h>
+#include "macros.h"
+#include "smalloc.h"
+#include "vec.h"
-#include "gromacs/fatalerror/exceptions.h"
#include "gromacs/selection/position.h"
#include "gromacs/selection/selmethod.h"
+#include "gromacs/utility/exceptions.h"
#include "gromacs/utility/format.h"
/*! \internal \brief
#include <stdlib.h>
-#include <macros.h>
-#include <smalloc.h>
-#include <string2.h>
+#include "macros.h"
+#include "smalloc.h"
+#include "string2.h"
-#include "gromacs/fatalerror/exceptions.h"
#include "gromacs/selection/selmethod.h"
+#include "gromacs/utility/exceptions.h"
#include "keywords.h"
#include "parsetree.h"
#include <config.h>
#endif
-#include "gromacs/fatalerror/exceptions.h"
#include "gromacs/selection/position.h"
#include "gromacs/selection/selmethod.h"
+#include "gromacs/utility/exceptions.h"
/** Evaluates the \p all selection keyword. */
static void
#include "tpxio.h"
#include "vec.h"
-#include "gromacs/fatalerror/exceptions.h"
#include "gromacs/options/basicoptions.h"
#include "gromacs/options/options.h"
#include "gromacs/selection/poscalc.h"
#include "gromacs/selection/selectioncollection.h"
#include "gromacs/selection/selection.h"
+#include "gromacs/utility/exceptions.h"
#include "gromacs/utility/flags.h"
#include "gromacs/utility/format.h"
*/
#include <gtest/gtest.h>
-#include "gromacs/fatalerror/exceptions.h"
#include "gromacs/options/options.h"
#include "gromacs/options/optionsassigner.h"
#include "gromacs/selection/selection.h"
#include "gromacs/selection/selectioncollection.h"
#include "gromacs/selection/selectionoption.h"
#include "gromacs/selection/selectionoptioninfo.h"
+#include "gromacs/utility/exceptions.h"
namespace
{
#include "options.h"
#include "selection.h"
-#include "fatalerror/exceptions.h"
#include "trajectoryanalysis/analysismodule.h"
#include "trajectoryanalysis/analysissettings.h"
#include "trajectoryanalysis/cmdlinerunner.h"
#include "trajectoryanalysis/nbsearch.h"
+#include "utility/exceptions.h"
#endif
#include <utility>
#include "gromacs/analysisdata/analysisdata.h"
-#include "gromacs/fatalerror/exceptions.h"
-#include "gromacs/fatalerror/gmxassert.h"
#include "gromacs/selection/selection.h"
+#include "gromacs/utility/exceptions.h"
+#include "gromacs/utility/gmxassert.h"
#include "analysismodule-impl.h"
#include <config.h>
#endif
-#include <smalloc.h>
-#include <statutil.h>
-#include <vec.h>
+#include "smalloc.h"
+#include "statutil.h"
+#include "vec.h"
-#include "gromacs/fatalerror/exceptions.h"
#include "gromacs/trajectoryanalysis/analysissettings.h"
+#include "gromacs/utility/exceptions.h"
#include "analysissettings-impl.h"
#include <config.h>
#endif
-#include <copyrite.h>
-#include <pbc.h>
-#include <rmpbc.h>
-#include <statutil.h>
+#include "copyrite.h"
+#include "pbc.h"
+#include "rmpbc.h"
+#include "statutil.h"
#include "gromacs/analysisdata/paralleloptions.h"
-#include "gromacs/fatalerror/exceptions.h"
-#include "gromacs/fatalerror/gmxassert.h"
#include "gromacs/options/asciihelpwriter.h"
#include "gromacs/options/cmdlineparser.h"
#include "gromacs/options/options.h"
#include "gromacs/trajectoryanalysis/analysissettings.h"
#include "gromacs/trajectoryanalysis/cmdlinerunner.h"
#include "gromacs/trajectoryanalysis/runnercommon.h"
+#include "gromacs/utility/exceptions.h"
+#include "gromacs/utility/gmxassert.h"
namespace gmx
{
*/
#include "gromacs/trajectoryanalysis/modules.h"
-#include <string2.h>
+#include "string2.h"
-#include "gromacs/fatalerror/exceptions.h"
+#include "gromacs/utility/exceptions.h"
#include "gromacs/utility/format.h"
#include "modules/angle.h"
#include <config.h>
#endif
-#include <pbc.h>
-#include <vec.h>
+#include "pbc.h"
+#include "vec.h"
#include "gromacs/analysisdata/analysisdata.h"
#include "gromacs/analysisdata/modules/plot.h"
-#include "gromacs/fatalerror/exceptions.h"
-#include "gromacs/fatalerror/gmxassert.h"
#include "gromacs/options/basicoptions.h"
#include "gromacs/options/options.h"
#include "gromacs/selection/selection.h"
#include "gromacs/selection/selectionoption.h"
#include "gromacs/selection/selectionoptioninfo.h"
#include "gromacs/trajectoryanalysis/analysissettings.h"
+#include "gromacs/utility/exceptions.h"
#include "gromacs/utility/format.h"
+#include "gromacs/utility/gmxassert.h"
namespace gmx
{
#include <config.h>
#endif
-#include <pbc.h>
-#include <vec.h>
+#include "pbc.h"
+#include "vec.h"
#include "gromacs/analysisdata/analysisdata.h"
#include "gromacs/analysisdata/modules/plot.h"
-#include "gromacs/fatalerror/exceptions.h"
#include "gromacs/options/basicoptions.h"
#include "gromacs/options/options.h"
#include "gromacs/selection/selection.h"
#include "gromacs/selection/selectionoption.h"
#include "gromacs/trajectoryanalysis/analysissettings.h"
+#include "gromacs/utility/exceptions.h"
namespace gmx
{
#include <string>
#include <vector>
-#include <gmxfio.h>
+#include "gmxfio.h"
#include "gromacs/analysisdata/analysisdata.h"
#include "gromacs/analysisdata/dataframe.h"
#include "gromacs/analysisdata/datamodule.h"
#include "gromacs/analysisdata/modules/plot.h"
-#include "gromacs/fatalerror/exceptions.h"
#include "gromacs/options/basicoptions.h"
#include "gromacs/options/options.h"
#include "gromacs/selection/selection.h"
#include "gromacs/selection/selectionoption.h"
#include "gromacs/trajectoryanalysis/analysissettings.h"
+#include "gromacs/utility/exceptions.h"
#include "gromacs/utility/format.h"
namespace gmx
#include <string.h>
-#include <rmpbc.h>
-#include <smalloc.h>
-#include <statutil.h>
-#include <tpxio.h>
-#include <vec.h>
-
-#include "gromacs/fatalerror/exceptions.h"
-#include "gromacs/fatalerror/gmxassert.h"
+#include "rmpbc.h"
+#include "smalloc.h"
+#include "statutil.h"
+#include "tpxio.h"
+#include "vec.h"
+
#include "gromacs/options/basicoptions.h"
#include "gromacs/options/options.h"
#include "gromacs/selection/indexutil.h"
#include "gromacs/selection/selectioncollection.h"
#include "gromacs/trajectoryanalysis/analysissettings.h"
#include "gromacs/trajectoryanalysis/runnercommon.h"
+#include "gromacs/utility/exceptions.h"
#include "gromacs/utility/format.h"
+#include "gromacs/utility/gmxassert.h"
#include "analysissettings-impl.h"
#include <config.h>
#endif
-#include <gromacs/fatalerror/exceptions.h>
#include <gromacs/options/basicoptions.h>
#include <gromacs/options/options.h>
#include <gromacs/selection/selection.h>
#include <gromacs/trajectoryanalysis/analysismodule.h>
#include <gromacs/trajectoryanalysis/analysissettings.h>
#include <gromacs/trajectoryanalysis/cmdlinerunner.h>
+#include <gromacs/utility/exceptions.h>
namespace gmx
{
*
* For more info, check our website at http://www.gromacs.org
*/
-/*! \defgroup module_fatalerror Handling of Fatal Errors
+/*! \defgroup module_utility Low-level Utility Module
* \ingroup group_utilitymodules
* \brief
- * Provides functions for handling fatal errors.
+ * Provides various low-level utilities.
+ *
+ * <H3>Handling fatal errors</H3>
*
* Exception classes used in the library are defined in the exceptions.h header
* file. This header also declares a ::GMX_THROW macro that should be used for
*/
/*! \file
* \brief
- * Public API convenience header for fatal error handling.
+ * Public API convenience header for low-level utilities.
*
* \author Teemu Murtola <teemu.murtola@cbr.su.se>
* \inpublicapi
- * \ingroup module_fatalerror
+ * \ingroup module_utility
*/
-#ifndef GMX_FATALERROR_H
-#define GMX_FATALERROR_H
+#ifndef GMX_UTILITY_H
+#define GMX_UTILITY_H
-#include "fatalerror/errorcodes.h"
-#include "fatalerror/exceptions.h"
-#include "fatalerror/gmxassert.h"
+#include "utility/errorcodes.h"
+#include "utility/exceptions.h"
+#include "utility/gmxassert.h"
#endif
set(LIBGROMACS_SOURCES ${LIBGROMACS_SOURCES} ${UTILITY_SOURCES} PARENT_SCOPE)
set(UTILITY_PUBLIC_HEADERS
- arrayref.h common.h flags.h format.h uniqueptr.h)
+ arrayref.h
+ common.h
+ errorcodes.h
+ exceptions.h
+ flags.h
+ format.h
+ gmxassert.h
+ uniqueptr.h)
install(FILES ${UTILITY_PUBLIC_HEADERS}
DESTINATION ${INCL_INSTALL_DIR}/gromacs/utility
COMPONENT development)
#include <utility>
#include <vector>
-#include "../fatalerror/gmxassert.h"
+#include "gmxassert.h"
namespace gmx
{
* Implements functions in errorcodes.h.
*
* \author Teemu Murtola <teemu.murtola@cbr.su.se>
- * \ingroup module_fatalerror
+ * \ingroup module_utility
*/
-#include "gromacs/fatalerror/errorcodes.h"
+#include "gromacs/utility/errorcodes.h"
#include <cstdarg>
#include <cstdio>
#include "errorformat.h"
-// This has to match the enum in fatalerror.h
+// This has to match the enum in errorcodes.h
static const char *const error_names[] =
{
"No error",
*
* \author Teemu Murtola <teemu.murtola@cbr.su.se>
* \inpublicapi
- * \ingroup module_fatalerror
+ * \ingroup module_utility
*/
-#ifndef GMX_FATALERROR_ERRORCODES_H
-#define GMX_FATALERROR_ERRORCODES_H
+#ifndef GMX_UTILITY_ERRORCODES_H
+#define GMX_UTILITY_ERRORCODES_H
namespace gmx
{
* Should not be called directly, but instead through ::GMX_ERROR or
* ::GMX_ERROR_NORET.
*
- * \ingroup module_fatalerror
+ * \ingroup module_utility
*/
void fatalError(int retcode, const char *msg, const char *file, int line);
* Implements functions declared in errorformat.h.
*
* \author Teemu Murtola <teemu.murtola@cbr.su.se>
- * \ingroup module_fatalerror
+ * \ingroup module_utility
*/
-#include "gromacs/fatalerror/errorformat.h"
+#include "gromacs/utility/errorformat.h"
#include <string>
* Declares an internal helper function for formatting standard error messages.
*
* \author Teemu Murtola <teemu.murtola@cbr.su.se>
- * \ingroup module_fatalerror
+ * \ingroup module_utility
*/
-#ifndef GMX_FATALERROR_ERRORFORMAT_H
-#define GMX_FATALERROR_ERRORFORMAT_H
+#ifndef GMX_UTILITY_ERRORFORMAT_H
+#define GMX_UTILITY_ERRORFORMAT_H
#include <string>
/*! \internal \brief
* Formats common headers and footers for error messages.
*
- * \ingroup module_fatalerror
+ * \ingroup module_utility
*/
std::string formatFatalError(const char *title, const char *details,
const char *func, const char *file, int line);
* Implements classes and functions in exceptions.h.
*
* \author Teemu Murtola <teemu.murtola@cbr.su.se>
- * \ingroup module_fatalerror
+ * \ingroup module_utility
*/
-#include "gromacs/fatalerror/exceptions.h"
+#include "gromacs/utility/exceptions.h"
#include <boost/exception/get_error_info.hpp>
-#include "gromacs/fatalerror/errorcodes.h"
+#include "gromacs/utility/errorcodes.h"
#include "errorformat.h"
*
* \author Teemu Murtola <teemu.murtola@cbr.su.se>
* \inpublicapi
- * \ingroup module_fatalerror
+ * \ingroup module_utility
*/
-#ifndef GMX_FATALERROR_EXCEPTIONS_H
-#define GMX_FATALERROR_EXCEPTIONS_H
+#ifndef GMX_UTILITY_EXCEPTIONS_H
+#define GMX_UTILITY_EXCEPTIONS_H
#include <exception>
#include <string>
* -# Because the constructor takes an argument, virtual inheritance would
* complicate any classes that inherit indirectly from this class.
*
- * \ingroup module_fatalerror
+ * \ingroup module_utility
*/
class GromacsException : public std::exception, public boost::exception
{
/*! \brief
* Exception class for file I/O errors.
*
- * \ingroup module_fatalerror
+ * \ingroup module_utility
*/
class FileIOError : public GromacsException
{
* Derived classes should be used to indicate the nature of the error instead
* of throwing this class directly.
*
- * \ingroup module_fatalerror
+ * \ingroup module_utility
*/
class UserInputError : public GromacsException
{
/*! \brief
* Exception class for situations where user input cannot be parsed/understood.
*
- * \ingroup module_fatalerror
+ * \ingroup module_utility
*/
class InvalidInputError : public UserInputError
{
/*! \brief
* Exception class for situations where user input is inconsistent.
*
- * \ingroup module_fatalerror
+ * \ingroup module_utility
*/
class InconsistentInputError : public UserInputError
{
/*! \brief
* Exception class for simulation instabilities.
*
- * \ingroup module_fatalerror
+ * \ingroup module_utility
*/
class SimulationInstabilityError : public GromacsException
{
/*! \brief
* Exception class for internal errors.
*
- * \ingroup module_fatalerror
+ * \ingroup module_utility
*/
class InternalError : public GromacsException
{
/*! \brief
* Exception class for incorrect use of an API.
*
- * \ingroup module_fatalerror
+ * \ingroup module_utility
*/
class APIError : public GromacsException
{
/*! \brief
* Exception class for use of an unimplemented feature.
*
- * \ingroup module_fatalerror
+ * \ingroup module_utility
*/
class NotImplementedError : public APIError
{
* Implements assertion handlers.
*
* \author Teemu Murtola <teemu.murtola@cbr.su.se>
- * \ingroup module_fatalerror
+ * \ingroup module_utility
*/
-#include "gromacs/fatalerror/gmxassert.h"
+#include "gromacs/utility/gmxassert.h"
#include <cstdio>
#include <cstdlib>
*
* \author Teemu Murtola <teemu.murtola@cbr.su.se>
* \inpublicapi
- * \ingroup module_fatalerror
+ * \ingroup module_utility
*/
-#ifndef GMX_FATALERROR_GMXASSERT_H
-#define GMX_FATALERROR_GMXASSERT_H
+#ifndef GMX_UTILITY_GMXASSERT_H
+#define GMX_UTILITY_GMXASSERT_H
#include <boost/current_function.hpp>
#include <boost/exception/detail/attribute_noreturn.hpp>
* Should not be called directly, but instead through ::GMX_ASSERT or
* ::GMX_RELEASE_ASSERT.
*
- * \ingroup module_fatalerror
+ * \ingroup module_utility
*/
BOOST_ATTRIBUTE_NORETURN
void assertHandler(const char *condition, const char *msg,
* Implements gmx::MessageStringCollector.
*
* \author Teemu Murtola <teemu.murtola@cbr.su.se>
- * \ingroup module_fatalerror
+ * \ingroup module_utility
*/
-#include "gromacs/fatalerror/messagestringcollector.h"
+#include "gromacs/utility/messagestringcollector.h"
#include <vector>
-#include "gromacs/fatalerror/gmxassert.h"
+#include "gromacs/utility/gmxassert.h"
namespace gmx
{
*
* \author Teemu Murtola <teemu.murtola@cbr.su.se>
* \inlibraryapi
- * \ingroup module_fatalerror
+ * \ingroup module_utility
*/
-#ifndef GMX_FATALERROR_MESSAGESTRINGCOLLECTOR_H
-#define GMX_FATALERROR_MESSAGESTRINGCOLLECTOR_H
+#ifndef GMX_UTILITY_MESSAGESTRINGCOLLECTOR_H
+#define GMX_UTILITY_MESSAGESTRINGCOLLECTOR_H
#include <string>
* string for, e.g., printing out or for including in an exception.
*
* \inlibraryapi
- * \ingroup module_fatalerror
+ * \ingroup module_utility
*/
class MessageStringCollector
{
*
* \see MessageStringCollector
* \inlibraryapi
- * \ingroup module_fatalerror
+ * \ingroup module_utility
*/
class MessageStringContext
{
* For C++11 gmx::move is the std::move, for non-C++11 compilers, the
* move operation is a no-op.
*
- * \ingroup module_utility
* \inlibraryapi
*/
#ifdef HAVE_CXX11 // C++11 Compiler
*
* \author Teemu Murtola <teemu.murtola@cbr.su.se>
*/
-#include <copyrite.h>
+#include "gromacs/legacyheaders/copyrite.h"
-#include "gromacs/fatalerror.h"
#include "gromacs/trajectoryanalysis/analysismodule.h"
#include "gromacs/trajectoryanalysis/cmdlinerunner.h"
#include "gromacs/trajectoryanalysis/modules.h"
+#include "gromacs/utility/exceptions.h"
int
main(int argc, char *argv[])
*/
#include "datapath.h"
-#include "gromacs/fatalerror/gmxassert.h"
+#include "gromacs/utility/gmxassert.h"
#include "gromacs/utility/path.h"
static const char *g_testDataPath = NULL;
#include <libxml/parser.h>
#include <libxml/xmlmemory.h>
-#include "gromacs/fatalerror/exceptions.h"
-#include "gromacs/fatalerror/gmxassert.h"
+#include "gromacs/utility/exceptions.h"
+#include "gromacs/utility/gmxassert.h"
#include "gromacs/utility/path.h"
#include "gromacs/utility/format.h"
#include "testutils/testexceptions.h"
#include <string>
-#include "gromacs/fatalerror/exceptions.h"
+#include "gromacs/utility/exceptions.h"
namespace gmx
{
#include <boost/scoped_ptr.hpp>
-#include "gromacs/fatalerror/errorcodes.h"
-#include "gromacs/fatalerror/gmxassert.h"
#include "gromacs/options/cmdlineparser.h"
#include "gromacs/options/options.h"
+#include "gromacs/utility/errorcodes.h"
+#include "gromacs/utility/gmxassert.h"
#include "datapath.h"
#include "refdata.h"