A representation of the name of a financial institution.
More...
#include <BankName.h>
|
| BankName ()=default |
| Constructs a default-initialized object representing the name of a financial institution.
|
|
| BankName (::QString name) |
| Constructs an object representing the name of a financial institution.
|
|
const ::QString & | institution () const noexcept |
| An accessor to the value for the name of the financial institution.
|
|
bool | isEmpty () const noexcept |
| Determines if the financial institution's name value is set.
|
|
std::strong_ordering | operator<=> (const BankName &) const noexcept=default |
|
A representation of the name of a financial institution.
◆ BankName() [1/2]
drn::banking::BankName::BankName |
( |
| ) |
|
|
default |
Constructs a default-initialized object representing the name of a financial institution.
Use this constructor when you need to initialize a financial institution's name without immediately assigning a specific value. It sets all internal state to its default.
◆ BankName() [2/2]
drn::banking::BankName::BankName |
( |
::QString | name | ) |
|
|
explicit |
Constructs an object representing the name of a financial institution.
This constructor should be used when you need to instantiate an object representing the name of a financial institution, with a specific value provided during construction.
- Exceptions
-
BankError | Thrown when the provided name is empty or contains only whitespace. |
- Parameters
-
name | The name of the financial institution to be initialized. |
◆ institution()
const ::QString & drn::banking::BankName::institution |
( |
| ) |
const |
|
nodiscardnoexcept |
An accessor to the value for the name of the financial institution.
◆ isEmpty()
bool drn::banking::BankName::isEmpty |
( |
| ) |
const |
|
nodiscardnoexcept |
Determines if the financial institution's name value is set.
- Returns
- True when the name value is not set, false otherwise.
◆ operator<=>()
std::strong_ordering drn::banking::BankName::operator<=> |
( |
const BankName & | | ) |
const |
|
defaultnoexcept |