|
Panini 1.4.0
Header-only library for generating C++, written in C++17
|
Command for outputting an include statement for C++. More...
#include <Include.hpp>
Public Member Functions | |
| Include (const IncludeEntry &entry) | |
| Include (IncludeEntry &&entry) noexcept | |
| Include (const std::filesystem::path &path, IncludeStyle style=IncludeStyle::Inherit) | |
| Include (std::filesystem::path &&path, IncludeStyle style=IncludeStyle::Inherit) noexcept | |
| void | Visit (Writer &writer) override |
Public Member Functions inherited from panini::Command | |
| virtual | ~Command ()=default |
Command for outputting an include statement for C++.
Include statements can be output by hand with relative ease, but this command will help you standardize how they are written.
Includes use double quotes by default, and can use single quotes or angular brackets as well.
Example:
Output:
|
inlineexplicit |
Construct an Include command from an IncludeEntry that is copied to the instance.
|
inlineexplicitnoexcept |
Construct an Include command from an IncludeEntry that is moved into the instance.
|
inlineexplicit |
Create an Include command with a path and an IncludeStyle.
Setting the style parameter to IncludeStyle::Inherit copies the include style from the writer, otherwise it will be overridden for this command only.
|
inlineexplicitnoexcept |
Create an Include command with a path and an IncludeStyle.
Setting the style parameter to IncludeStyle::Inherit copies the include style from the writer, otherwise it will be overridden for this command only.
|
inlineoverridevirtual |
Accepts a Writer to write chunks to the output.
Implements panini::Command.