Skip to content

FOperatingSystemBankUserData

#include <OperatingSystemSimulator/Public/Data/OperatingSystemBankManager.h>
---
config:
  class:
    hideEmptyMembersBox: true
---
classDiagram
  class FOperatingSystemBankUserData["FOperatingSystemBankUserData"]
  class FOperatingSystemBankAccount["FOperatingSystemBankAccount"]
  FOperatingSystemBankUserData *-- FOperatingSystemBankAccount
---
config:
  class:
    hideEmptyMembersBox: true
---
classDiagram
  class FOperatingSystemBankUserData {
    +UpdateFunds(const FText &Description, const FText &Rema bool
    +AddEntry(const FOperatingSystemBankAccount &Bank)
    +RemoveEntry(const FName &BankName, FOperatingSystemBank bool
    +HasEntry(const FName &BankName, FOperatingSystemBank bool
    +HasEntry(const int64 &AccNumber, FOperatingSystemBan bool
    +FindCreditCardByName(const FName CardName, FOperatingSystemCredi bool
    +FindCreditCardByNumber(const int64 CardNumber, FOperatingSystemCre bool
    +BankAccounts : TSet< FOperatingSystemBankAccount() >
  }
struct FOperatingSystemBankUserData

Defined in OperatingSystemBankManager.h:17 Stores bank user data for the operating system.

ReturnNameDescription
boolUpdateFundsUpdates the funds for a bank account.
voidAddEntry inlineAdds a new bank entry to the operating system bank manager’s list of bank accounts. The bank entry must be a valid bank account.
boolRemoveEntry inlineRemoves a bank account entry with the specified bank name from the operating system bank manager’s list of bank accounts.
boolHasEntry const inlineChecks if a bank entry with the specified bank name exists in the operating system bank manager’s list of bank accounts.
boolHasEntry const inlineChecks if a bank entry with the specified account number exists in the operating system bank manager’s list of bank accounts.
boolFindCreditCardByName inlineFinds a credit card by name in the list of bank accounts managed by the operating system bank manager.
boolFindCreditCardByNumber inlineFinds a credit card by its number in the list of bank accounts managed by the operating system bank manager.

bool UpdateFunds(const FText & Description, const FText & Remarks, const float & Amount, const int64 & AccountNumber)

Defined in OperatingSystemBankManager.h:39 Updates the funds for a bank account.

  • Description The description of the transaction.

  • Remarks Additional remarks for the transaction.

  • Amount The amount to be updated. Negative value denotes withdrawal, positive value denotes deposit.

  • AccountNumber The account number to update the funds for.

True if the funds were successfully updated, false otherwise.


inline

inline void AddEntry(const FOperatingSystemBankAccount & Bank)

Defined in OperatingSystemBankManager.h:48 Adds a new bank entry to the operating system bank manager’s list of bank accounts. The bank entry must be a valid bank account.

  • Bank The bank account to add.

The bank account must be a valid bank account. If not, check assert is triggered.


inline

inline bool RemoveEntry(const FName & BankName, FOperatingSystemBankAccount & RemovedAccount)

Defined in OperatingSystemBankManager.h:62 Removes a bank account entry with the specified bank name from the operating system bank manager’s list of bank accounts.

  • BankName The name of the bank account entry to remove.

  • RemovedAccount [out] The removed bank account entry.

True if the bank account entry was successfully removed, false otherwise.


const inline

inline bool HasEntry(const FName & BankName, FOperatingSystemBankAccount & OutAccount) const

Defined in OperatingSystemBankManager.h:85 Checks if a bank entry with the specified bank name exists in the operating system bank manager’s list of bank accounts.

  • BankName The name of the bank account entry to check.

  • OutAccount [out] The bank account entry with the specified bank name, if found.

True if a bank entry with the specified bank name exists, false otherwise.


const inline

inline bool HasEntry(const int64 & AccNumber, FOperatingSystemBankAccount & OutAccount) const

Defined in OperatingSystemBankManager.h:107 Checks if a bank entry with the specified account number exists in the operating system bank manager’s list of bank accounts.

  • AccNumber The account number of the bank entry to check.

  • OutAccount [out] The bank account entry with the specified account number if found.

True if a bank entry with the specified account number exists, false otherwise.


inline

inline bool FindCreditCardByName(const FName CardName, FOperatingSystemCreditCard & OutCard)

Defined in OperatingSystemBankManager.h:129 Finds a credit card by name in the list of bank accounts managed by the operating system bank manager.

  • CardName The name of the credit card to find.

  • OutCard [out] The found credit card, if it exists.

True if a credit card with the specified name is found and successfully assigned to OutCard, false otherwise.


inline

inline bool FindCreditCardByNumber(const int64 CardNumber, FOperatingSystemCreditCard & OutCard)

Defined in OperatingSystemBankManager.h:151 Finds a credit card by its number in the list of bank accounts managed by the operating system bank manager.

  • CardNumber The number of the credit card to find.

  • OutCard [out] The found credit card, if it exists.

True if a credit card with the specified number is found and successfully assigned to OutCard, false otherwise.

ReturnNameDescription
TSet< FOperatingSystemBankAccount >BankAccountsSet of bank accounts managed by the operating system bank manager.

TSet< FOperatingSystemBankAccount > BankAccounts

Defined in OperatingSystemBankManager.h:25 Set of bank accounts managed by the operating system bank manager.