![]() |
deltaFlow
|
Terminal and file output formatting for deltaFlow. More...
Classes | |
| struct | LicenseLine |
| A single line in the license notice box. More... | |
| struct | ProductLine |
| A single line in the product info box. More... | |
Functions | |
| std::string | padRight (const std::string &text, int width) |
| Right-pads a string with spaces to the given width. | |
| std::string | centerIn (const std::string &text, int width) |
| Centers a string within a given width. | |
| std::string | separator (char ch='=') |
| Returns a separator line of the given character. | |
| std::string | center (const std::string &text) |
| Returns a centered string within the page width. | |
| std::string | hostname () |
| Returns the machine hostname. | |
| std::vector< LicenseLine > | licenseContent () |
| Returns the license notice content lines. | |
| std::vector< ProductLine > | productContent () |
| Returns the product info box content lines. | |
| std::string | licenseNotice () |
| Returns the plain-text license notice box. | |
| std::string | productBox () |
| Returns the plain-text product info box. | |
| std::string | fileBanner () |
| Returns a full plain-text banner for output/log files. | |
| std::string | sectionHeader (const std::string &title) |
| Returns a section header for output files. | |
| std::string | subSectionHeader (const std::string &title) |
| Returns a sub-section header for output files. | |
| void | printLicenseNotice () |
| Prints the colored license notice box to terminal. | |
| void | printProductBox () |
| Prints the colored product info box to terminal. | |
| void | printTerminalBanner () |
| Prints the full colored banner to terminal. | |
| void | printSectionHeader (const std::string &title) |
| Prints a colored section header to terminal. | |
Variables | |
| constexpr fmt::rgb | LOGO_COLOR {153, 0, 204} |
| deltaFlow logo color | |
| constexpr int | pageWidth = 80 |
| Standard output page width. | |
| constexpr int | licenseBoxWidth = 67 |
| License notice box width. | |
| constexpr int | productBoxWidth = 59 |
| Product info box width. | |
Terminal and file output formatting for deltaFlow.
Provides colored terminal banners, plain-text banners for log/output files, section headers, and common formatting constants.
|
inline |
Returns a centered string within the page width.
| text | Text to center. |
Definition at line 91 of file Display.H.
References centerIn(), and pageWidth.


|
inline |
Centers a string within a given width.
| text | Text to center. |
| width | Target width. |
Definition at line 72 of file Display.H.

|
inline |
Returns a full plain-text banner for output/log files.
Definition at line 217 of file Display.H.
References licenseNotice(), and productBox().


|
inline |
Returns the machine hostname.
Definition at line 99 of file Display.H.

|
inline |
Returns the license notice content lines.
Shared by licenseNotice() (plain-text) and printLicenseNotice() (colored).
Definition at line 121 of file Display.H.
References centerIn(), and licenseBoxWidth.


|
inline |
Returns the plain-text license notice box.
Definition at line 189 of file Display.H.
References licenseBoxWidth, licenseContent(), and padRight().


|
inline |
Right-pads a string with spaces to the given width.
| text | Input string. |
| width | Target width. |
Definition at line 61 of file Display.H.

|
inline |
Prints the colored license notice box to terminal.
Definition at line 255 of file Display.H.
References licenseBoxWidth, licenseContent(), LOGO_COLOR, and padRight().


|
inline |
Prints the colored product info box to terminal.
Definition at line 276 of file Display.H.
References padRight(), productBoxWidth, and productContent().


|
inline |
Prints a colored section header to terminal.
| title | Section title. |
Definition at line 325 of file Display.H.
References center(), LOGO_COLOR, and separator().


|
inline |
Prints the full colored banner to terminal.
Definition at line 313 of file Display.H.
References printLicenseNotice(), and printProductBox().


|
inline |
Returns the plain-text product info box.
Definition at line 203 of file Display.H.
References padRight(), productBoxWidth, and productContent().


|
inline |
Returns the product info box content lines.
Shared by productBox() (plain-text) and printProductBox() (colored).
Definition at line 166 of file Display.H.
References hostname(), INFO, and LOGO_COLOR.


|
inline |
Returns a section header for output files.
| title | Section title. |
Definition at line 226 of file Display.H.
References center(), and separator().


|
inline |
|
inline |
Returns a sub-section header for output files.
| title | Sub-section title. |
Definition at line 243 of file Display.H.
|
constexpr |
|
constexpr |
|
constexpr |