Panini 1.4.0
Header-only library for generating C++, written in C++17
panini::CommaListOptions Struct Reference

Options for the CommaList command. More...

#include <CommaListOptions.hpp>

Public Attributes

std::string chunkBeginSeparator = ""
 
std::string chunkEndSeparator = ", "
 
bool addNewLines = false
 
bool skipFirstItemBeginSeparator = false
 
bool skipLastItemEndSeparator = true
 

Detailed Description

Options for the CommaList command.

Member Data Documentation

◆ addNewLines

bool panini::CommaListOptions::addNewLines = false

Whether to add NextLine commands after each item in the list.

◆ chunkBeginSeparator

std::string panini::CommaListOptions::chunkBeginSeparator = ""

Chunk inserted before each item in the list, including the first item by default.

See also
skipFirstItemBeginSeparator

◆ chunkEndSeparator

std::string panini::CommaListOptions::chunkEndSeparator = ", "

Chunk inserted after the first item in the list, excluding the last item in the list by default.

See also
skipLastItemEndSeparator

◆ skipFirstItemBeginSeparator

bool panini::CommaListOptions::skipFirstItemBeginSeparator = false

Skip adding the begin separator to the first item in the list.

◆ skipLastItemEndSeparator

bool panini::CommaListOptions::skipLastItemEndSeparator = true

Skip adding the end separator to the last item in the list.


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