Gromacs
2018.8
|
Wraps markup output into a vector of string (one line per element).
Public Member Functions | |
WrapperToVector (const TextLineWrapperSettings &settings) | |
Creates a wrapper with the given settings. | |
virtual TextLineWrapperSettings & | settings () |
Provides the wrapping settings. More... | |
virtual void | wrap (const std::string &text) |
Appends the given string to output. | |
const std::vector< std::string > & | result () const |
Returns a vector with the output lines. | |
|
inlinevirtual |
Provides the wrapping settings.
HelpWriterContext::Impl::processMarkup() may provide some default values for the settings if they are not set; this is the reason the return value is not const.
Implements gmx::anonymous_namespace{helpwritercontext.cpp}::IWrapper.