The manager for the information on the source of a budgetary item.
More...
#include <BudgetSource.h>
|
| 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.
|
|
The manager for the information on the source of a budgetary item.
◆ BudgetSource() [1/2]
drn::budgeting::BudgetSource::BudgetSource |
( |
| ) |
|
|
default |
◆ 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
-
Error | When the name of the budgetary item is not valid. |
- Parameters
-
name | The name of the source for the budgetary item. |
◆ 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.
◆ name()
const ::QString & drn::budgeting::BudgetSource::name |
( |
| ) |
const |
|
nodiscardnoexcept |
◆ operator<=>()
std::strong_ordering drn::budgeting::BudgetSource::operator<=> |
( |
const BudgetSource & | other | ) |
const |
|
nodiscarddefaultnoexcept |
◆ 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
-
Error | When the name of the budgetary item is not valid. |
- Parameters
-
name | The new name for the budgetary item source. |