Gromacs
2024.4
|
#include <gromacs/options/ioptionscontainerwithsections.h>
Interface for adding input options with sections.
This interface extends IOptionsContainer with an additional addSection() method that supports creating a hierarchy of sections for the options.
Header optionsection.h provides OptionSection.
Public Member Functions | |
template<class SectionType > | |
SectionType::HandleType | addSection (const SectionType §ion) |
Adds a section to this collection. More... | |
Public Member Functions inherited from gmx::IOptionsContainer | |
virtual IOptionsContainer & | addGroup ()=0 |
Creates a subgroup of options within the current options. More... | |
template<class OptionType > | |
OptionType::InfoType * | addOption (const OptionType &settings) |
Adds a recognized option. More... | |
Protected Member Functions | |
virtual internal::OptionSectionImpl * | addSectionImpl (const AbstractOptionSection §ion)=0 |
Adds a section to this container. More... | |
GMX_DEFAULT_CONSTRUCTORS (IOptionsContainerWithSections) | |
Protected Member Functions inherited from gmx::IOptionsContainer | |
virtual OptionInfo * | addOptionImpl (const AbstractOption &settings)=0 |
Adds a recognized option. More... | |
GMX_DEFAULT_CONSTRUCTORS (IOptionsContainer) | |
|
inline |
Adds a section to this collection.
SectionType | Type of the section description object. |
[in] | section | Section description. |
APIError | if invalid option settings are provided. |
Options can be added to the section through the returned handle.
SectionType::HandleType
must specify a type that derives from AbstractinOptionSectionHandle and has a suitable constructor.
|
protectedpure virtual |
Adds a section to this container.
[in] | section | Section description. |
Implemented in gmx::internal::OptionSectionImpl.