\ingroup module_commandline
*/
-/*!
+/*! \libinternal
\dir src/gromacs/onlinehelp
\brief \ref module_onlinehelp
class Options;
//! \cond internal
-//! \addtogroup module_onlinehelp
+//! \addtogroup module_commandline
//! \{
//! Output format for ShellCompletionWriter.
+++ /dev/null
-/*
- * This file is part of the GROMACS molecular simulation package.
- *
- * Copyright (c) 2014, 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.
- *
- * GROMACS is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public License
- * as published by the Free Software Foundation; either version 2.1
- * of the License, or (at your option) any later version.
- *
- * GROMACS is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with GROMACS; if not, see
- * http://www.gnu.org/licenses, or write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * If you want to redistribute modifications to GROMACS, please
- * consider that scientific software is very special. Version
- * control is crucial - bugs must be traceable. We will be happy to
- * consider code for inclusion in the official distribution, but
- * derived work must not be called official GROMACS. Details are found
- * in the README & COPYING files - if they are missing, get the
- * official version at http://www.gromacs.org.
- *
- * To help us fund GROMACS development, we humbly ask that you cite
- * the research papers on the package. Check out http://www.gromacs.org.
- */
-/*! \defgroup module_onlinehelp Help Formatting for Online Help (onlinehelp)
- * \ingroup group_utilitymodules
- * \brief
- * Provides functionality for formatting help text for console and other
- * formats.
- *
- * This module provides helper functions and classes for formatting console
- * help, as well as man pages and HTML help from the source code. It should
- * not be necessary to call any methods in this module outside the \Gromacs
- * library.
- *
- * \author Teemu Murtola <teemu.murtola@gmail.com>
- */
-/*! \file
- * \brief
- * Public API convenience header for help formatting.
- *
- * This module does not provide any classes that are intended to be used
- * outside the library. It only contains some type declarations that are
- * necessary for implementation reasons in other public API headers.
- *
- * \author Teemu Murtola <teemu.murtola@gmail.com>
- * \inlibraryapi
- * \ingroup module_onlinehelp
- */
-#ifndef GMX_ONLINEHELP_H
-#define GMX_ONLINEHELP_H
-
-#include "onlinehelp/helptopicinterface.h"
-
-#endif
file(GLOB ONLINEHELP_SOURCES *.cpp)
set(LIBGROMACS_SOURCES ${LIBGROMACS_SOURCES} ${ONLINEHELP_SOURCES} PARENT_SCOPE)
-set(ONLINEHELP_PUBLIC_HEADERS
- helptopicinterface.h)
-gmx_install_headers(onlinehelp ${ONLINEHELP_PUBLIC_HEADERS})
-
if (BUILD_TESTING)
add_subdirectory(tests)
endif()
* To help us fund GROMACS development, we humbly ask that you cite
* the research papers on the package. Check out http://www.gromacs.org.
*/
-/*! \file
+/*! \libinternal \defgroup module_onlinehelp Help Formatting for Online Help (onlinehelp)
+ * \ingroup group_utilitymodules
+ * \brief
+ * Provides functionality for formatting help text for console and other
+ * formats.
+ *
+ * This module provides helper functions and classes for formatting console
+ * help, as well as man pages and HTML help from the source code. It should
+ * not be necessary to call any methods in this module outside the \Gromacs
+ * library.
+ *
+ * \author Teemu Murtola <teemu.murtola@gmail.com>
+ */
+/*! \libinternal \file
* \brief
* Declares gmx::HelpTopicInterface.
*
class HelpWriterContext;
-/*! \brief
+/*! \libinternal \brief
* Provides a single online help topic.
*
- * \if libapi
* Implementations of these methods should not throw, except that writeHelp()
* is allowed to throw on out-of-memory or I/O errors since those it cannot
* avoid.
*
* Header helptopic.h contains classes that implement this interface and make
* it simple to write concrete help topic classes.
- * \endif
- *
- * This class is in a public header, and exposed through HelpTopicPointer, but
- * it is not intended to be used outside the library. To access a help topic
- * with public API methods, use HelpManager.
*
* \inlibraryapi
* \ingroup module_onlinehelp
namespace
{
-//! \addtogroup module_onlinehelp
+//! \internal \addtogroup module_onlinehelp
//! \{
struct t_sandr
}
}
-// static
-HelpTopicPointer
-SelectionCollection::createDefaultHelpTopic()
-{
- return createSelectionHelpTopic();
-}
-
} // namespace gmx
#include "../legacyheaders/types/oenv.h"
-#include "../onlinehelp/helptopicinterface.h"
#include "../utility/common.h"
#include "selection.h" // For gmx::SelectionList
class SelectionCollection
{
public:
- /*! \brief
- * Creates a help tree for selections.
- *
- * \throws std::bad_alloc if out of memory.
- * \returns Root topic of the created selection tree.
- */
- static HelpTopicPointer createDefaultHelpTopic();
-
/*! \brief
* Creates an empty selection collection.
*
/*
* This file is part of the GROMACS molecular simulation package.
*
- * Copyright (c) 2009,2010,2011,2012,2013, by the GROMACS development team, led by
+ * Copyright (c) 2009,2010,2011,2012,2013,2014, 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.
} // namespace
-/*! \cond internal */
+//! \cond libapi */
HelpTopicPointer createSelectionHelpTopic()
{
CompositeHelpTopicPointer root(new CompositeHelpTopic<CommonHelpText>);
/*
* This file is part of the GROMACS molecular simulation package.
*
- * Copyright (c) 2009,2010,2011,2012, by the GROMACS development team, led by
+ * Copyright (c) 2009,2010,2011,2012,2014, 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.
* To help us fund GROMACS development, we humbly ask that you cite
* the research papers on the package. Check out http://www.gromacs.org.
*/
-/*! \internal \file
+/*! \libinternal \file
* \brief
* Functions for initializing online help for selections.
*
* \author Teemu Murtola <teemu.murtola@gmail.com>
+ * \inlibraryapi
* \ingroup module_selection
*/
#ifndef GMX_SELECTION_SELHELP_H
namespace gmx
{
-/*! \cond internal */
-/*! \internal \brief
+//! \cond libapi
+/*! \libinternal \brief
* Creates a help tree for selections.
*
* \throws std::bad_alloc if out of memory.
*/
#include "gromacs/commandline/cmdlinemodulemanager.h"
#include "gromacs/commandline/cmdlineinit.h"
-#include "gromacs/selection/selectioncollection.h"
+#include "gromacs/selection/selhelp.h"
#include "gromacs/trajectoryanalysis/modules.h"
#include "gromacs/utility/exceptions.h"
gmx::CommandLineModuleManager manager("gmx", &context);
registerTrajectoryAnalysisModules(&manager);
registerLegacyModules(&manager);
- manager.addHelpTopic(gmx::SelectionCollection::createDefaultHelpTopic());
+ manager.addHelpTopic(gmx::createSelectionHelpTopic());
int rc = manager.run(argc, argv);
gmx::finalizeForCommandLine();
return rc;