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

Data for includes. More...

#include <IncludeEntry.hpp>

Public Member Functions

 IncludeEntry ()=default
 
 IncludeEntry (const std::filesystem::path &_path, IncludeStyle _style=IncludeStyle::AngularBrackets, int32_t _priority=0)
 
 IncludeEntry (std::filesystem::path &&_path, IncludeStyle _style=IncludeStyle::AngularBrackets, int32_t _priority=0) noexcept
 

Public Attributes

std::filesystem::path path
 
IncludeStyle style = IncludeStyle::AngularBrackets
 
int32_t priority = 0
 

Detailed Description

Data for includes.

Constructor & Destructor Documentation

◆ IncludeEntry() [1/3]

panini::IncludeEntry::IncludeEntry ( )
inlinedefault

◆ IncludeEntry() [2/3]

panini::IncludeEntry::IncludeEntry ( const std::filesystem::path &  _path,
IncludeStyle  _style = IncludeStyle::AngularBrackets,
int32_t  _priority = 0 
)
inline

Construct an IncludeEntry from a path, an IncludeStyle, and a priority.

◆ IncludeEntry() [3/3]

panini::IncludeEntry::IncludeEntry ( std::filesystem::path &&  _path,
IncludeStyle  _style = IncludeStyle::AngularBrackets,
int32_t  _priority = 0 
)
inlinenoexcept

Construct an IncludeEntry from a path, an IncludeStyle, and a priority. The path is moved into the instance.

Member Data Documentation

◆ path

std::filesystem::path panini::IncludeEntry::path

Path for the include statement.

◆ priority

int32_t panini::IncludeEntry::priority = 0

Priority ranking of this entry in the set.

◆ style

IncludeStyle panini::IncludeEntry::style = IncludeStyle::AngularBrackets

Style to use for the include statement.


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