Panini 1.4.0
Header-only library for generating C++, written in C++17
panini::Command Class Referenceabstract

Base class for commands. More...

#include <Command.hpp>

Inheritance diagram for panini::Command:
panini::Braces panini::CommaList< TIterator > panini::CommentBlock panini::CommentLine panini::FeatureFlag panini::Include panini::IncludeBlock panini::Label panini::Scope

Public Member Functions

virtual ~Command ()=default
 
virtual void Visit (Writer &writer)=0
 

Detailed Description

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.

See also
Writer

Constructor & Destructor Documentation

◆ ~Command()

virtual panini::Command::~Command ( )
virtualdefault

Member Function Documentation

◆ Visit()

virtual void panini::Command::Visit ( Writer writer)
pure virtual

The documentation for this class was generated from the following file: