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

A representation of the name of a financial institution. More...

#include <BankName.h>

Collaboration diagram for drn::banking::BankName:

Public Member Functions

 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
 

Detailed Description

A representation of the name of a financial institution.

Constructor & Destructor Documentation

◆ 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.

Here is the caller graph for this function:

◆ 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
BankErrorThrown when the provided name is empty or contains only whitespace.
Parameters
nameThe name of the financial institution to be initialized.

Member Function Documentation

◆ 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.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator<=>()

std::strong_ordering drn::banking::BankName::operator<=> ( const BankName & ) const
defaultnoexcept
Here is the call graph for this function: