DuxReiNummariae 1.0.0-alpha.23
Simple and powerful budgeting application
 
Loading...
Searching...
No Matches
drn::adviser Namespace Reference

Classes

class  BudgetHealth
 Determines the health of a budget. Currently, when only +/- 5% of the budgeted wage is left it's deemed healthy, +/- 12.5% deemed ailing, and anything else as sick. More...
 

Functions

DRN_ADVISER_EXPORT std::ostream & operator<< (std::ostream &out, const HealthStatuses &hs)
 Full object stream insertion operator.
 
DRN_ADVISER_EXPORT::QString presentationText (const HealthStatuses &hs)
 Converts the provided health status into a human-readable presentation text.
 

Function Documentation

◆ operator<<()

DRN_ADVISER_EXPORT std::ostream & drn::adviser::operator<< ( std::ostream & out,
const HealthStatuses & hs )

Full object stream insertion operator.

Parameters
outThe stream to place the data into.
hsThe data to place into the stream.
Returns
The modified stream after insertion.

◆ presentationText()

DRN_ADVISER_EXPORT::QString drn::adviser::presentationText ( const HealthStatuses & hs)

Converts the provided health status into a human-readable presentation text.

This method maps a health status into corresponding descriptive text for display, or communication purposes, such as in GUI items or logs. It is helpful when you need a clear textual representation of the health status.

Parameters
hsThe health status to be converted into presentation text.
Returns
A string representation of the health status suitable for presentation.
Here is the call graph for this function:
Here is the caller graph for this function: