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

The manager for the information on the source of a budgetary item. More...

#include <BudgetSource.h>

Collaboration diagram for drn::budgeting::BudgetSource:

Public Member Functions

 BudgetSource ()=default
 
 BudgetSource (::QString name)
 Fully initialising constructor. All leading and trailing white-space is removed from the name of the source.
 
bool isEmpty () const noexcept
 Determines if the object is empty, e.g. constructed by default.
 
const ::QString & name () const noexcept
 The name of the source.
 
std::strong_ordering operator<=> (const BudgetSource &other) const noexcept=default
 
void setName (const ::QString &name)
 Changes the name of the budgetary item source. All leading and trailing white-space is removed from the name.
 

Detailed Description

The manager for the information on the source of a budgetary item.

Constructor & Destructor Documentation

◆ BudgetSource() [1/2]

drn::budgeting::BudgetSource::BudgetSource ( )
default
Here is the caller graph for this function:

◆ BudgetSource() [2/2]

drn::budgeting::BudgetSource::BudgetSource ( ::QString name)
explicit

Fully initialising constructor. All leading and trailing white-space is removed from the name of the source.

Exceptions
ErrorWhen the name of the budgetary item is not valid.
Parameters
nameThe name of the source for the budgetary item.
Here is the call graph for this function:

Member Function Documentation

◆ isEmpty()

bool drn::budgeting::BudgetSource::isEmpty ( ) const
nodiscardnoexcept

Determines if the object is empty, e.g. constructed by default.

Returns
When everything is the default value gives true, false else-wise.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ name()

const ::QString & drn::budgeting::BudgetSource::name ( ) const
nodiscardnoexcept

The name of the source.

Here is the caller graph for this function:

◆ operator<=>()

std::strong_ordering drn::budgeting::BudgetSource::operator<=> ( const BudgetSource & other) const
nodiscarddefaultnoexcept
Here is the call graph for this function:

◆ setName()

void drn::budgeting::BudgetSource::setName ( const ::QString & name)

Changes the name of the budgetary item source. All leading and trailing white-space is removed from the name.

Exceptions
ErrorWhen the name of the budgetary item is not valid.
Parameters
nameThe new name for the budgetary item source.
Here is the call graph for this function:
Here is the caller graph for this function: