|
Panini 1.4.0
Header-only library for generating C++, written in C++17
|
Base class for commands. More...
#include <Command.hpp>
Public Member Functions | |
| virtual | ~Command ()=default |
| virtual void | Visit (Writer &writer)=0 |
Base class for commands.
Commands are used to output chunks to the writer. They should be designed to be chained together. Because commands cannot undo output that was already written, you should be careful not to output more than you strictly need. A good rule of thumb is that a command should never end on a NextLine command.
|
virtualdefault |
|
pure virtual |
Accepts a Writer to write chunks to the output.
Implemented in panini::Braces, panini::CommaList< TIterator >, panini::CommentBlock, panini::CommentLine, panini::FeatureFlag, panini::Include, panini::IncludeBlock, panini::Label, and panini::Scope.