FOperatingSystemBankUserData
#include <OperatingSystemSimulator/Public/Data/OperatingSystemBankManager.h>Collaboration diagram
Section titled “Collaboration diagram”---
config:
class:
hideEmptyMembersBox: true
---
classDiagram
class FOperatingSystemBankUserData["FOperatingSystemBankUserData"]
class FOperatingSystemBankAccount["FOperatingSystemBankAccount"]
FOperatingSystemBankUserData *-- FOperatingSystemBankAccount
Class detail
Section titled “Class detail”---
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 FOperatingSystemBankUserDataDefined in OperatingSystemBankManager.h:17 Stores bank user data for the operating system.
Public Methods
Section titled “Public Methods”| Return | Name | Description |
|---|---|---|
bool | UpdateFunds | Updates the funds for a bank account. |
void | AddEntry inline | 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. |
bool | RemoveEntry inline | Removes a bank account entry with the specified bank name from the operating system bank manager’s list of bank accounts. |
bool | HasEntry const inline | Checks if a bank entry with the specified bank name exists in the operating system bank manager’s list of bank accounts. |
bool | HasEntry const inline | Checks if a bank entry with the specified account number exists in the operating system bank manager’s list of bank accounts. |
bool | FindCreditCardByName inline | Finds a credit card by name in the list of bank accounts managed by the operating system bank manager. |
bool | FindCreditCardByNumber inline | Finds a credit card by its number in the list of bank accounts managed by the operating system bank manager. |
UpdateFunds
Section titled “UpdateFunds”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.
Parameters
Section titled “Parameters”-
DescriptionThe description of the transaction. -
RemarksAdditional remarks for the transaction. -
AmountThe amount to be updated. Negative value denotes withdrawal, positive value denotes deposit. -
AccountNumberThe account number to update the funds for.
Returns
Section titled “Returns”True if the funds were successfully updated, false otherwise.
References
Section titled “References”AddEntry
Section titled “AddEntry”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.
Parameters
Section titled “Parameters”BankThe bank account to add.
The bank account must be a valid bank account. If not, check assert is triggered.
RemoveEntry
Section titled “RemoveEntry”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.
Parameters
Section titled “Parameters”-
BankNameThe name of the bank account entry to remove. -
RemovedAccount[out] The removed bank account entry.
Returns
Section titled “Returns”True if the bank account entry was successfully removed, false otherwise.
HasEntry
Section titled “HasEntry”const inline
inline bool HasEntry(const FName & BankName, FOperatingSystemBankAccount & OutAccount) constDefined 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.
Parameters
Section titled “Parameters”-
BankNameThe name of the bank account entry to check. -
OutAccount[out] The bank account entry with the specified bank name, if found.
Returns
Section titled “Returns”True if a bank entry with the specified bank name exists, false otherwise.
References
Section titled “References”HasEntry
Section titled “HasEntry”const inline
inline bool HasEntry(const int64 & AccNumber, FOperatingSystemBankAccount & OutAccount) constDefined 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.
Parameters
Section titled “Parameters”-
AccNumberThe account number of the bank entry to check. -
OutAccount[out] The bank account entry with the specified account number if found.
Returns
Section titled “Returns”True if a bank entry with the specified account number exists, false otherwise.
References
Section titled “References”FindCreditCardByName
Section titled “FindCreditCardByName”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.
Parameters
Section titled “Parameters”-
CardNameThe name of the credit card to find. -
OutCard[out] The found credit card, if it exists.
Returns
Section titled “Returns”True if a credit card with the specified name is found and successfully assigned to OutCard, false otherwise.
References
Section titled “References”FindCreditCardByNumber
Section titled “FindCreditCardByNumber”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.
Parameters
Section titled “Parameters”-
CardNumberThe number of the credit card to find. -
OutCard[out] The found credit card, if it exists.
Returns
Section titled “Returns”True if a credit card with the specified number is found and successfully assigned to OutCard, false otherwise.
References
Section titled “References”Private Attributes
Section titled “Private Attributes”| Return | Name | Description |
|---|---|---|
TSet< FOperatingSystemBankAccount > | BankAccounts | Set of bank accounts managed by the operating system bank manager. |
BankAccounts
Section titled “BankAccounts”TSet< FOperatingSystemBankAccount > BankAccountsDefined in OperatingSystemBankManager.h:25 Set of bank accounts managed by the operating system bank manager.