/*
* This file is part of the GROMACS molecular simulation package.
*
- * Copyright (c) 2010,2011,2012,2014, by the GROMACS development team, led by
+ * Copyright (c) 2010,2011,2012,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.
* \author Teemu Murtola <teemu.murtola@gmail.com>
* \ingroup module_options
*/
-#include "gromacs/options/options.h"
+#include "gmxpre.h"
+
+#include "options.h"
#include "gromacs/options/abstractoption.h"
#include "gromacs/options/abstractoptionstorage.h"
#include "gromacs/utility/arrayref.h"
#include "gromacs/utility/exceptions.h"
#include "gromacs/utility/gmxassert.h"
-#include "gromacs/utility/messagestringcollector.h"
#include "gromacs/utility/stringutil.h"
#include "options-impl.h"
{
/********************************************************************
- * OptionManagerInterface
+ * IOptionManager
*/
-OptionManagerInterface::~OptionManagerInterface()
+IOptionManager::~IOptionManager()
{
}
void Options::setDescription(const ConstArrayRef<const char *> &descArray)
{
- impl_->description_ = concatenateStrings(descArray.data(), descArray.size());
+ impl_->description_ = joinStrings(descArray, "\n");
}
-void Options::addManager(OptionManagerInterface *manager)
+void Options::addManager(IOptionManager *manager)
{
GMX_RELEASE_ASSERT(impl_->parent_ == NULL,
"Can only add a manager in a top-level Options object");