/*
* This file is part of the GROMACS molecular simulation package.
*
- * Copyright (c) 2010,2011,2012,2013, by the GROMACS development team, led by
+ * Copyright (c) 2010,2011,2012,2013,2014,2015, by the GROMACS development team, led by
* Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
* and including many others, as listed in the AUTHORS file in the
* top-level source directory and at http://www.gromacs.org.
#include <string>
-#include "../utility/common.h"
+#include "gromacs/utility/classhelpers.h"
namespace gmx
{
* to assign values to options in subsections within the Options object.
* Typical use (without error handling):
* \code
- gmx::options::Options options("name", "Title");
+ gmx::Options options("name", "Title");
// Set up options
- gmx::options::OptionsAssigner assigner(&options);
+ gmx::OptionsAssigner assigner(&options);
assigner.start();
assigner.startOption("opt1");
assigner.appendValue("3");
* Does not throw.
*/
void setAcceptBooleanNoPrefix(bool bEnabled);
- /*! \brief
- * Sets the assigner to find options in non-active sections.
- *
- * By default, options are only looked for in the currently active
- * subsection. With this option set, if no matching option is found in
- * the current section, a breadth-first search is performed, first on
- * all subsections of the current section, and then going up one level
- * at a time. The first matching option is used, and the current
- * section is changed to the section that contains the matching option.
- *
- * Can be set or cleared at any time, and will have effect on all
- * subsequent calls of startOption().
- *
- * Does not throw.
- */
- void setNoStrictSectioning(bool bEnabled);
/*! \brief
* Starts assigning values.