ToolDoc - SeqAn API Documentation

# Class ToolDoc
Container for string documentation on a command line tool.

Implements | AssignableConcept
All Impl'd | AssignableConcept
Defined in | <seqan/arg_parse.>
Signature | `class ToolDoc;`

## Member Function Overview

- `ToolDoc::ToolDoc()`
  Constructor

### Member Functions Inherited From AssignableConcept

- `operator=`

## Interface Function Overview

- `void addListItem(toolDoc, key, value);`
  Add a list item to a ToolDoc.
- `void addSection(toolDoc, title);`
  Add a section with the given title.
- `void addSubSection(toolDoc, title);`
  Add a subsection with the given title.
- `void addText(toolDoc, text[, isParagraph]);`
  Add a text line/paragraph to ToolDoc.
- `void append(a, b);`
  Append two ToolDoc objects.
- `void clearEntries(toolDoc);`
  Clear entries from ToolDoc.
- `CharString getCategory(toolDoc);`
  Get the tool category.
- `CharString getCitation(toolDoc);`
  Get the tool citation string.
- `CharString getDate(toolDoc);`
  Get the date.
- `CharString getLongCopyright(toolDoc);`
  Get the tool long copyright string.
- `CharString getManTitle(toolDoc);`
  Get the tool man page title of.
- `CharString getName(toolDoc);`
  Get the tool name.
- `CharString getShortCopyright(toolDoc);`
  Get the tool short copyright string.
- `CharString getShortDescription(toolDoc);`
  Get the tool short description.
- `CharString getUrl(toolDoc);`
  Get the url string to the app repository or website.
- `CharString getVersion(toolDoc);`
  Get the tool version string.
- `void print(stream, toolDoc, format);`
  Print ToolDoc object in a given format.
- `void setName(toolDoc, name);`
  Set the tool name.
- `void setCitation(toolDoc, str);`
  Set the tool citation string.
- `void setName(toolDoc, str);`
  Set the date string.
- `void setLongCopyright(toolDoc, str);`
  Set the tool long copyright string.
- `void setTitle(toolDoc, title);`
  Set the man title.
- `void setName(toolDoc, name);`
  Set the tool name.
- `void setShortCopyright(toolDoc, str);`
  Set the tool short copyright string.
- `void setShortDescription(toolDoc, text);`
  Set the tool short description.
- `void setUrl(toolDoc, str);`
  Set the url string to the app repository or website.
- `void setVersion(toolDoc, str);`
  Set the tool version string.

### Interface Functions Inherited From AssignableConcept

- `assign`
- `set`
- `move`

## Detailed Description

### Remarks

This class is generally not used directly by the user but through ArgumentParser. It allows one to store and represent all information related to a command line tool that would normally go into a man page. It can be printed to STL streams in different formats, currently plain text, HTML and man pages are supported.

You can also use basic formatting in text. This formatting is tailored to the usage on the command line. Use `\fB` to start bold font, `\fI` to start italic font and `\fP` to use the previous font (of course, use correct escaping of the backslash in C strings, so use `"\\fB"`, `"\\fI"`, and `"\\fP"` in your code.

### Examples

The following shows a brief example of how to use ToolDoc.

    ToolDoc doc;
    setName(doc, "RazerS");
    setShortDescription(doc, "Read mapping with controllable sensitivity.");
    setDate(doc, "04 March 2012");
    setVersion(doc, "1.0");
    setCategory(doc, "Read Mapping");
    setManTitle(doc, "SeqAn Apps Reference Manual");

    addSection(doc, "Synopsis");
    addText(doc, "\\fBrazers\\fP [\\fIOPTIONS\\fP] \\fIREFERENCE\\fP \\fIREADS\\fP", false);
    addText(doc,
            "\\fBrazers\\fP [\\fIOPTIONS\\fP] \\fIREFERENCE\\fP \\fILEFT_READS\\fP "
            "\\fIRIGHT_READS\\fP", false);

    addSection(doc, "Description");
    addText(doc,
            "RazerS is a read mapper with controllable, sensitivity.  This "
            "means that you can find all read matches in the reference sequence "
            "and optionally, you can trade lower sensitivity for better "
            "performance.");
    addText(doc,
            "What's special about RazerS is that you can control the sensitivity.");

    addSection(doc, "Options");
    addSubSection(doc, "Main Options");
    addListItem(doc, "\\fB-id\\fP, \\fB--indels\\fP",
                "Enable mapping with indels enabled.");
    addListItem(doc, "\\fB-i\\fP, \\fB--identity\\fP \\fIIDENTITY\\fP",
                "Set minimal identity of matches to find.");

    print(std::cout, doc, "text");

## See Also

- ArgumentParser
- addListItem
- addText

## Member Functions Detail

### `ToolDoc::ToolDoc()`

Constructor

#### Data Races

If not stated otherwise, concurrent invocation is not guaranteed to be thread-safe.

## Interface Functions Detail

### `void addListItem(toolDoc, key, value);`

Add a list item to a ToolDoc.

#### Parameters

`toolDoc` | The ToolDoc object to add the list item to.
`key` | The key for the list (CharString).
`value` | The value for the list (CharString).

#### Data Races

If not stated otherwise, concurrent invocation is not guaranteed to be thread-safe.

### `void addSection(toolDoc, title);`

Add a section with the given title.

#### Parameters

`toolDoc` | The ToolDoc object to add a section for.
`title` | The section title (CharString).

#### Data Races

If not stated otherwise, concurrent invocation is not guaranteed to be thread-safe.

### `void addSubSection(toolDoc, title);`

Add a subsection with the given title.

#### Parameters

`toolDoc` | The ToolDoc object to add a subsection for.
`title` | The subsection title (CharString).

#### Data Races

If not stated otherwise, concurrent invocation is not guaranteed to be thread-safe.

### `void addText(toolDoc, text[, isParagraph]);`

Add a text line/paragraph to ToolDoc.

#### Parameters

`toolDoc` | The ToolDoc to add the text to.
`text` | The text to add (CharString).
`isParagraph` | Whether to insert as paragraph or just a line (only one line break if not a paragraph).

#### Data Races

If not stated otherwise, concurrent invocation is not guaranteed to be thread-safe.

### `void append(a, b);`

Append two ToolDoc objects.

#### Parameters

`a` | This object is updated
`b` | This object is appended to `b`.

#### Data Races

If not stated otherwise, concurrent invocation is not guaranteed to be thread-safe.

### `void clearEntries(toolDoc);`

Clear entries from ToolDoc.

#### Parameters

`toolDoc` | The ToolDoc object to clear entries from.

#### Data Races

If not stated otherwise, concurrent invocation is not guaranteed to be thread-safe.

### `CharString getCategory(toolDoc);`

Get the tool category.

#### Parameters

`toolDoc` | The ToolDoc object to the get the category for.

#### Returns

`CharString` | Resulting category (CharString).

#### Data Races

If not stated otherwise, concurrent invocation is not guaranteed to be thread-safe.

### `CharString getCitation(toolDoc);`

Get the tool citation string.

#### Parameters

`toolDoc` | The ToolDoc object to the get the citation string.

#### Returns

`CharString` | Resulting citation string (CharString).

#### Data Races

If not stated otherwise, concurrent invocation is not guaranteed to be thread-safe.

### `CharString getDate(toolDoc);`

Get the date.

#### Parameters

`toolDoc` | The ToolDoc object to the get the date from.

#### Returns

`CharString` | Resulting date string (CharString).

#### Data Races

If not stated otherwise, concurrent invocation is not guaranteed to be thread-safe.

### `CharString getLongCopyright(toolDoc);`

Get the tool long copyright string.

#### Parameters

`toolDoc` | The ToolDoc object to the get the long copyright string.

#### Returns

`CharString` | Resulting long copyright string (CharString).

#### Data Races

If not stated otherwise, concurrent invocation is not guaranteed to be thread-safe.

### `CharString getManTitle(toolDoc);`

Get the tool man page title of.

#### Parameters

`toolDoc` | The ToolDoc object to the get the man page title.

#### Returns

`CharString` | Resulting man page title (CharString).

#### Data Races

If not stated otherwise, concurrent invocation is not guaranteed to be thread-safe.

### `CharString getName(toolDoc);`

Get the tool name.

#### Parameters

`toolDoc` | The ToolDoc object to the get the name for.

#### Returns

`CharString` | Resulting name (CharString).

#### Data Races

If not stated otherwise, concurrent invocation is not guaranteed to be thread-safe.

### `CharString getShortCopyright(toolDoc);`

Get the tool short copyright string.

#### Parameters

`toolDoc` | The ToolDoc object to the get the short copyright string.

#### Returns

`CharString` | Resulting short copyright string (CharString).

#### Data Races

If not stated otherwise, concurrent invocation is not guaranteed to be thread-safe.

### `CharString getShortDescription(toolDoc);`

Get the tool short description.

#### Parameters

`toolDoc` | The ToolDoc object to the get the short description for.

#### Returns

`CharString` | Resulting short description (CharString).

#### Data Races

If not stated otherwise, concurrent invocation is not guaranteed to be thread-safe.

### `CharString getUrl(toolDoc);`

Get the url string to the app repository or website.

#### Parameters

`toolDoc` | The ToolDoc object to the get the version string.

#### Returns

`CharString` | Resulting url string (CharString).

#### Data Races

If not stated otherwise, concurrent invocation is not guaranteed to be thread-safe.

### `CharString getVersion(toolDoc);`

Get the tool version string.

#### Parameters

`toolDoc` | The ToolDoc object to the get the version string.

#### Returns

`CharString` | Resulting version string (CharString).

#### Data Races

If not stated otherwise, concurrent invocation is not guaranteed to be thread-safe.

### `void print(stream, toolDoc, format);`

Print ToolDoc object in a given format.

#### Parameters

`stream` | The `std::ostream` to write to.
`toolDoc` | The ToolDoc to print.
`format` | The format, one of {"html", "man", "txt"}.

#### Data Races

If not stated otherwise, concurrent invocation is not guaranteed to be thread-safe.

### `void setName(toolDoc, name);`

Set the tool name.

#### Parameters

`toolDoc` | The ToolDoc object to the set the name for.
`name` | The name of the tool (CharString).

#### Data Races

If not stated otherwise, concurrent invocation is not guaranteed to be thread-safe.

### `void setCitation(toolDoc, str);`

Set the tool citation string.

#### Parameters

`toolDoc` | The ToolDoc object to the set the citation string for.
`str` | The citation string of the tool (CharString).

#### Data Races

If not stated otherwise, concurrent invocation is not guaranteed to be thread-safe.

### `void setName(toolDoc, str);`

Set the date string.

#### Parameters

`toolDoc` | The ToolDoc object to the set the date string for.
`str` | The date string of the tool (CharString).

#### Data Races

If not stated otherwise, concurrent invocation is not guaranteed to be thread-safe.

### `void setLongCopyright(toolDoc, str);`

Set the tool long copyright string.

#### Parameters

`toolDoc` | The ToolDoc object to the set the long copyright string for.
`str` | The long copyright string of the tool (CharString).

#### Data Races

If not stated otherwise, concurrent invocation is not guaranteed to be thread-safe.

### `void setTitle(toolDoc, title);`

Set the man title.

#### Parameters

`toolDoc` | The ToolDoc object to the set the title for.
`title` | The title of the tool (CharString).

#### Data Races

If not stated otherwise, concurrent invocation is not guaranteed to be thread-safe.

### `void setName(toolDoc, name);`

Set the tool name.

#### Parameters

`toolDoc` | The ToolDoc object to the set the name for.
`name` | The name of the tool (CharString).

#### Data Races

If not stated otherwise, concurrent invocation is not guaranteed to be thread-safe.

### `void setShortCopyright(toolDoc, str);`

Set the tool short copyright string.

#### Parameters

`toolDoc` | The ToolDoc object to the set the short copyright string for.
`str` | The short copyright string of the tool (CharString).

#### Data Races

If not stated otherwise, concurrent invocation is not guaranteed to be thread-safe.

### `void setShortDescription(toolDoc, text);`

Set the tool short description.

#### Parameters

`toolDoc` | The ToolDoc object to the set the short description for.
`text` | The short description of the tool (CharString).

#### Data Races

If not stated otherwise, concurrent invocation is not guaranteed to be thread-safe.

### `void setUrl(toolDoc, str);`

Set the url string to the app repository or website.

#### Parameters

`toolDoc` | The ToolDoc object to the set the version string for.
`str` | The url string of the tool (CharString).

#### Data Races

If not stated otherwise, concurrent invocation is not guaranteed to be thread-safe.

### `void setVersion(toolDoc, str);`

Set the tool version string.

#### Parameters

`toolDoc` | The ToolDoc object to the set the version string for.
`str` | The version string of the tool (CharString).

#### Data Races

If not stated otherwise, concurrent invocation is not guaranteed to be thread-safe.

#### Dox Sources

    /*!
     * @class ToolDoc
     *
     * @implements AssignableConcept
     *
     * @headerfile <seqan/arg_parse.>
     *
     * @brief Container for string documentation on a command line tool.
     *
     * @signature class ToolDoc;
     *
     * @section Remarks
     *
     * This class is generally not used directly by the user but through @link
     * ArgumentParser @endlink. It allows one to store and represent all information
     * related to a command line tool that would normally go into a man page. It can
     * be printed to STL streams in different formats, currently plain text, HTML
     * and man pages are supported.
     *
     * You can also use basic formatting in text. This formatting is tailored to the
     * usage on the command line. Use <tt>\fB</tt> to start bold font, <tt>\fI</tt>
     * to start italic font and <tt>\fP</tt> to use the previous font (of course,
     * use correct escaping of the backslash in C strings, so use <tt>"\\fB"</tt>,
     * <tt>"\\fI"</tt>, and <tt>"\\fP"</tt> in your code.
     *
     * @section Examples
     *
     * The following shows a brief example of how to use @link ToolDoc @endlink.
     *
     * @code{.cpp}
     * ToolDoc doc;
     * setName(doc, "RazerS");
     * setShortDescription(doc, "Read mapping with controllable sensitivity.");
     * setDate(doc, "04 March 2012");
     * setVersion(doc, "1.0");
     * setCategory(doc, "Read Mapping");
     * setManTitle(doc, "SeqAn Apps Reference Manual");
     *
     * addSection(doc, "Synopsis");
     * addText(doc, "\\fBrazers\\fP [\\fIOPTIONS\\fP] \\fIREFERENCE\\fP \\fIREADS\\fP", false);
     * addText(doc,
     *         "\\fBrazers\\fP [\\fIOPTIONS\\fP] \\fIREFERENCE\\fP \\fILEFT_READS\\fP "
     *         "\\fIRIGHT_READS\\fP", false);
     *
     * addSection(doc, "Description");
     * addText(doc,
     *         "RazerS is a read mapper with controllable, sensitivity.  This "
     *         "means that you can find all read matches in the reference sequence "
     *         "and optionally, you can trade lower sensitivity for better "
     *         "performance.");
     * addText(doc,
     *         "What's special about RazerS is that you can control the sensitivity.");
     *
     * addSection(doc, "Options");
     * addSubSection(doc, "Main Options");
     * addListItem(doc, "\\fB-id\\fP, \\fB--indels\\fP",
     *             "Enable mapping with indels enabled.");
     * addListItem(doc, "\\fB-i\\fP, \\fB--identity\\fP \\fIIDENTITY\\fP",
     *             "Set minimal identity of matches to find.");
     *
     * print(std::cout, doc, "text");
     * @endcode
     *
     *
     * @see ToolDoc#addText
     * @see ToolDoc#addListItem
     * @see ArgumentParser
     *
     * @fn ToolDoc::ToolDoc
     *
     * @brief Constructor
     *
     * @signature ToolDoc::ToolDoc()
     *
     * @fn ToolDoc#append
     *
     * @headerfile <seqan/arg_parse.h>
     *
     * @brief Append two @link ToolDoc @endlink objects.
     *
     * @signature void append(a, b);
     *
     * @param[in,out] a This object is updated
     * @param[in] b This object is appended to <tt>b</tt>.
     *
     * @fn ToolDoc#setName
     *
     * @headerfile <seqan/arg_parse.h>
     *
     * @brief Set the tool name.
     *
     * @signature void setName(toolDoc, name);
     *
     * @param[in,out] toolDoc The ToolDoc object to the set the name for.
     * @param[in] name The name of the tool (@link CharString @endlink).
     *
     * @fn ToolDoc#getName
     *
     * @headerfile <seqan/arg_parse.h>
     *
     * @brief Get the tool name.
     *
     * @signature CharString getName(toolDoc);
     *
     * @param[in] toolDoc The ToolDoc object to the get the name for.
     *
     * @return CharString Resulting name (@link CharString @endlink).
     *
     * @fn ToolDoc#setCategory
     *
     * @headerfile <seqan/arg_parse.h>
     *
     * @brief Set the tool name.
     *
     * @signature void setName(toolDoc, name);
     *
     * @param[in,out] toolDoc The ToolDoc object to the set the name for.
     * @param[in] name The name of the tool (@link CharString @endlink).
     *
     * @fn ToolDoc#getCategory
     *
     * @headerfile <seqan/arg_parse.h>
     *
     * @brief Get the tool category.
     *
     * @signature CharString getCategory(toolDoc);
     *
     * @param[in] toolDoc The ToolDoc object to the get the category for.
     *
     * @return CharString Resulting category (@link CharString @endlink).
     *
     * @fn ToolDoc#setShortDescription
     *
     * @headerfile <seqan/arg_parse.h>
     *
     * @brief Set the tool short description.
     *
     * @signature void setShortDescription(toolDoc, text);
     *
     * @param[in,out] toolDoc The ToolDoc object to the set the short description
     *                        for.
     * @param[in] text The short description of the tool (@link CharString
     *                 @endlink).
     *
     * @fn ToolDoc#getShortDescription
     *
     * @headerfile <seqan/arg_parse.h>
     *
     * @brief Get the tool short description.
     *
     * @signature CharString getShortDescription(toolDoc);
     *
     * @param[in] toolDoc The ToolDoc object to the get the short description for.
     *
     * @return CharString Resulting short description (@link CharString @endlink).
     *
     * @fn ToolDoc#setUrl
     *
     * @headerfile <seqan/arg_parse.h>
     *
     * @brief Set the url string to the app repository or website.
     *
     * @signature void setUrl(toolDoc, str);
     *
     * @param[in,out] toolDoc The ToolDoc object to the set the version string for.
     * @param[in] str The url string of the tool (@link CharString @endlink).
     *
     * @fn ToolDoc#getUrl
     *
     * @headerfile <seqan/arg_parse.h>
     *
     * @brief Get the url string to the app repository or website.
     *
     * @signature CharString getUrl(toolDoc);
     *
     * @param[in] toolDoc The ToolDoc object to the get the version string.
     *
     * @return CharString Resulting url string (@link CharString @endlink).
     *
     * @fn ToolDoc#setDate
     *
     * @headerfile <seqan/arg_parse.h>
     *
     * @brief Set the date string.
     *
     * @signature void setName(toolDoc, str);
     *
     * @param[in,out] toolDoc The ToolDoc object to the set the date string for.
     * @param[in] str The date string of the tool (@link CharString @endlink).
     *
     * @fn ToolDoc#getDate
     *
     * @headerfile <seqan/arg_parse.h>
     *
     * @brief Get the date.
     *
     * @signature CharString getDate(toolDoc);
     *
     * @param[in] toolDoc The ToolDoc object to the get the date from.
     *
     * @return CharString Resulting date string (@link CharString @endlink).
     *
     * @fn ToolDoc#setVersion
     *
     * @headerfile <seqan/arg_parse.h>
     *
     * @brief Set the tool version string.
     *
     * @signature void setVersion(toolDoc, str);
     *
     * @param[in,out] toolDoc The ToolDoc object to the set the version string for.
     * @param[in] str The version string of the tool (@link CharString @endlink).
     *
     * @fn ToolDoc#getVersion
     *
     * @headerfile <seqan/arg_parse.h>
     *
     * @brief Get the tool version string.
     *
     * @signature CharString getVersion(toolDoc);
     *
     * @param[in] toolDoc The ToolDoc object to the get the version string.
     *
     * @return CharString Resulting version string (@link CharString @endlink).
     *
     * @fn ToolDoc#setShortCopyright
     *
     * @headerfile <seqan/arg_parse.h>
     *
     * @brief Set the tool short copyright string.
     *
     * @signature void setShortCopyright(toolDoc, str);
     *
     * @param[in,out] toolDoc The ToolDoc object to the set the short copyright
     *                        string for.
     * @param[in] str The short copyright string of the tool (@link CharString
     *                @endlink).
     *
     * @fn ToolDoc#getShortCopyright
     *
     * @headerfile <seqan/arg_parse.h>
     *
     * @brief Get the tool short copyright string.
     *
     * @signature CharString getShortCopyright(toolDoc);
     *
     * @param[in] toolDoc The ToolDoc object to the get the short copyright string.
     *
     * @return CharString Resulting short copyright string (@link CharString
     *                    @endlink).
     *
     * @fn ToolDoc#setLongCopyright
     *
     * @headerfile <seqan/arg_parse.h>
     *
     * @brief Set the tool long copyright string.
     *
     * @signature void setLongCopyright(toolDoc, str);
     *
     * @param[in,out] toolDoc The ToolDoc object to the set the long copyright
     *                        string for.
     * @param[in] str The long copyright string of the tool (@link CharString
     *                @endlink).
     *
     * @fn ToolDoc#getLongCopyright
     *
     * @headerfile <seqan/arg_parse.h>
     *
     * @brief Get the tool long copyright string.
     *
     * @signature CharString getLongCopyright(toolDoc);
     *
     * @param[in] toolDoc The ToolDoc object to the get the long copyright string.
     *
     * @return CharString Resulting long copyright string (@link CharString
     *                    @endlink).
     *
     * @fn ToolDoc#setCitation
     *
     * @headerfile <seqan/arg_parse.h>
     *
     * @brief Set the tool citation string.
     *
     * @signature void setCitation(toolDoc, str);
     *
     * @param[in,out] toolDoc The ToolDoc object to the set the citation string for.
     * @param[in] str The citation string of the tool (@link CharString @endlink).
     *
     * @fn ToolDoc#getCitation
     *
     * @headerfile <seqan/arg_parse.h>
     *
     * @brief Get the tool citation string.
     *
     * @signature CharString getCitation(toolDoc);
     *
     * @param[in] toolDoc The ToolDoc object to the get the citation string.
     *
     * @return CharString Resulting citation string (@link CharString @endlink).
     *
     * @fn ToolDoc#setManTitle
     *
     * @headerfile <seqan/arg_parse.h>
     *
     * @brief Set the man title.
     *
     * @signature void setTitle(toolDoc, title);
     *
     * @param[in,out] toolDoc The ToolDoc object to the set the title for.
     * @param[in] title The title of the tool (@link CharString @endlink).
     *
     * @fn ToolDoc#getManTitle
     *
     * @headerfile <seqan/arg_parse.h>
     *
     * @brief Get the tool man page title of.
     *
     * @signature CharString getManTitle(toolDoc);
     *
     * @param[in] toolDoc The ToolDoc object to the get the man page title.
     *
     * @return CharString Resulting man page title (@link CharString @endlink).
     *
     * @fn ToolDoc#addSection
     *
     * @headerfile <seqan/arg_parse.h>
     *
     * @brief Add a section with the given title.
     *
     * @signature void addSection(toolDoc, title);
     *
     * @param[in,out] toolDoc The ToolDoc object to add a section for.
     * @param[in] title The section title (@link CharString @endlink).
     *
     * @fn ToolDoc#addSubSection
     *
     * @headerfile <seqan/arg_parse.h>
     *
     * @brief Add a subsection with the given title.
     *
     * @signature void addSubSection(toolDoc, title);
     *
     * @param[in,out] toolDoc The ToolDoc object to add a subsection for.
     * @param[in] title The subsection title (@link CharString @endlink).
     *
     * @fn ToolDoc#addText
     *
     * @headerfile <seqan/arg_parse.h>
     *
     * @brief Add a text line/paragraph to ToolDoc.
     *
     * @signature void addText(toolDoc, text[, isParagraph]);
     *
     * @param[in,out] toolDoc The ToolDoc to add the text to.
     * @param[in] text The text to add (@link CharString @endlink).
     * @param[in] isParagraph Whether to insert as paragraph or just a line (only
     *                        one line break if not a paragraph).
     *
     * @fn ToolDoc#addListItem
     *
     * @headerfile <seqan/arg_parse.h>
     *
     * @brief Add a list item to a ToolDoc.
     *
     * @signature void addListItem(toolDoc, key, value);
     *
     * @param[in,out] toolDoc The ToolDoc object to add the list item to.
     * @param[in] key The key for the list (@link CharString @endlink).
     * @param[in] value The value for the list (@link CharString @endlink).
     *
     * @fn ToolDoc#print
     *
     * @headerfile <seqan/arg_parse.h>
     *
     * @brief Print ToolDoc object in a given format.
     *
     * @signature void print(stream, toolDoc, format);
     *
     * @param[in,out] stream The <tt>std::ostream</tt> to write to.
     * @param[in] toolDoc The ToolDoc to print.
     * @param[in] format The format, one of {"html", "man", "txt"}.
     *
     * @fn ToolDoc#clearEntries
     *
     * @headerfile <seqan/arg_parse.h>
     *
     * @brief Clear entries from ToolDoc.
     *
     * @signature void clearEntries(toolDoc);
     *
     * @param[in,out] toolDoc The ToolDoc object to clear entries from.
     */