Skip to content

FOperatingSystemBankAccount

#include <OperatingSystemSimulator/Public/Data/OperatingSystemBankTypes.h>
---
config:
  class:
    hideEmptyMembersBox: true
---
classDiagram
  class FOperatingSystemBankAccount["FOperatingSystemBankAccount"]
  class FOperatingSystemCreditCard["FOperatingSystemCreditCard"]
  FOperatingSystemBankAccount *-- FOperatingSystemCreditCard
  class FOperatingSystemUserFundTransaction["FOperatingSystemUserFundTransaction"]
  FOperatingSystemBankAccount *-- FOperatingSystemUserFundTransaction
  class FOperatingSystemBankSetting["FOperatingSystemBankSetting"]
  FOperatingSystemBankAccount *-- FOperatingSystemBankSetting
---
config:
  class:
    hideEmptyMembersBox: true
---
classDiagram
  class FOperatingSystemBankAccount {
    +AccountNumber : int64
    +CreationDate : FDateTime
    +RemainingFunds : float
    +CreditCards : TSet< FOperatingSystemCreditCard() >
    +TransactionHistory : TArray< FOperatingSystemUserFundTransact
    +BankSetting : FOperatingSystemBankSetting()
    +FindCreditCard(const FName &CardName) const const FOperatingSystemCreditCard() *
    +FindCreditCard(const int64 &CardNumber) const const FOperatingSystemCreditCard() *
    +IsValid() const bool
    +FOperatingSystemBankAccount()
    +CreateNewBankAccount(const FOperatingSystemBankSetting &InBankSe FOperatingSystemBankAccount()
    +FOperatingSystemBankAccount(const FOperatingSystemBankSetting &BankSett
  }

Documented call sites inside the plugin (4):

flowchart LR
  FOperatingSystemBankAccount__IsValid["FOperatingSystemBankAccount::IsValid"]
  FOperatingSystemBankUserData__HasEntry["FOperatingSystemBankUserData::HasEntry"]
  FOperatingSystemBankUserData__HasEntry --> FOperatingSystemBankAccount__IsValid
  FOperatingSystemBankUserData__HasEntry --> FOperatingSystemBankAccount__IsValid
  UOperatingSystemBankManager__IsBankAccountValid["UOperatingSystemBankManager::IsBankAccountValid"]
  UOperatingSystemBankManager__IsBankAccountValid --> FOperatingSystemBankAccount__IsValid
  UOperatingSystemBankManager__UnregisterBankAccount["UOperatingSystemBankManager::UnregisterBankAccount"]
  UOperatingSystemBankManager__UnregisterBankAccount --> FOperatingSystemBankAccount__IsValid
struct FOperatingSystemBankAccount

Defined in OperatingSystemBankTypes.h:479 Struct representing a bank account in the operating system.

ReturnNameDescription
int64AccountNumberThe unique account number associated with a bank account. It is of type int64. This variable is used in several classes and functions in the bank system, including:
FDateTimeCreationDateThe creation date of the bank account. This variable represents the date and time when the bank account was created. It is of type FDateTime.
floatRemainingFundsThe remaining funds available in the bank account. This variable represents the amount of funds that are still available in the bank account. It is of type float. The initial value is 100.0.
TSet< FOperatingSystemCreditCard >CreditCardsA set of credit cards associated with a bank account. This set represents the collection of credit cards that are associated with a bank account. It is of type TSet<FOperatingSystemCreditCard>.
TArray< FOperatingSystemUserFundTransaction >TransactionHistoryAn array representing the transaction history of a bank account. This variable represents the transaction history of a bank account. It stores the details of each fund transaction made by the user, such as the description, remarks, amount, transaction ID, transaction type, date, and closing balance. It is of type TArray<FOperatingSystemUserFundTransaction>.
FOperatingSystemBankSettingBankSettingRepresents the banking settings for a specific bank account in the operating system. This variable is used to store the banking settings for a specific bank account in the operating system. It includes information such as the account number, creation date, available funds, credit cards associated, and transaction history. The BankSetting variable is of type FOperatingSystemBankSetting.

int64 AccountNumber

Defined in OperatingSystemBankTypes.h:493 The unique account number associated with a bank account. It is of type int64. This variable is used in several classes and functions in the bank system, including:

  • FOperatingSystemBankUserData class: The AccountNumber variable is used in the UpdateFunds() function to update the funds associated with a bank account.

  • UOperatingSystemBankManager class: The HasEntry() function uses the AccountNumber variable to search for a specific account entry in the bank system.

See also: FOperatingSystemBankUserData

See also: UOperatingSystemBankManager


FDateTime CreationDate

Defined in OperatingSystemBankTypes.h:501 The creation date of the bank account. This variable represents the date and time when the bank account was created. It is of type FDateTime.


float RemainingFunds

Defined in OperatingSystemBankTypes.h:512 The remaining funds available in the bank account. This variable represents the amount of funds that are still available in the bank account. It is of type float. The initial value is 100.0.

See also: FOperatingSystemBankUserData::UpdateFunds()

See also: UOperatingSystemBankManager::TransferFundsToAnotherAccount()


TSet< FOperatingSystemCreditCard > CreditCards

Defined in OperatingSystemBankTypes.h:520 A set of credit cards associated with a bank account. This set represents the collection of credit cards that are associated with a bank account. It is of type TSet<FOperatingSystemCreditCard>.


TArray< FOperatingSystemUserFundTransaction > TransactionHistory

Defined in OperatingSystemBankTypes.h:529 An array representing the transaction history of a bank account. This variable represents the transaction history of a bank account. It stores the details of each fund transaction made by the user, such as the description, remarks, amount, transaction ID, transaction type, date, and closing balance. It is of type TArray<FOperatingSystemUserFundTransaction>.


FOperatingSystemBankSetting BankSetting

Defined in OperatingSystemBankTypes.h:538 Represents the banking settings for a specific bank account in the operating system. This variable is used to store the banking settings for a specific bank account in the operating system. It includes information such as the account number, creation date, available funds, credit cards associated, and transaction history. The BankSetting variable is of type FOperatingSystemBankSetting.

ReturnNameDescription
const FOperatingSystemCreditCard *FindCreditCard const inlineFind the credit card with the specified card name.
const FOperatingSystemCreditCard *FindCreditCard const inlineFind the credit card with the specified card number.
boolIsValid const inlineChecks if the bank transaction is valid.
FOperatingSystemBankAccount inlineDefault constructor

const inline

inline const FOperatingSystemCreditCard * FindCreditCard(const FName & CardName) const

Defined in OperatingSystemBankTypes.h:576 Find the credit card with the specified card name.

This method searches for a credit card with the given card name in the CreditCards collection. If the card name is None, nullptr is returned. If a matching credit card is found, a pointer to it is returned. If no matching credit card is found, nullptr is returned.

  • CardName The name of the credit card to search for. Must be a valid FName object.

A const pointer to the matching credit card, or nullptr if not found.


const inline

inline const FOperatingSystemCreditCard * FindCreditCard(const int64 & CardNumber) const

Defined in OperatingSystemBankTypes.h:606 Find the credit card with the specified card number.

This method searches for a credit card with the given card number in the CreditCards collection. If the card number is not found, nullptr is returned. If a matching credit card is found, a const pointer to it is returned. Note that this method does not modify the CreditCards collection.

  • CardNumber The card number to search for. Must be of type int64.

A const pointer to the matching credit card, or nullptr if not found.


const inline

inline bool IsValid() const

Defined in OperatingSystemBankTypes.h:631 Checks if the bank transaction is valid.

The IsValid method verifies if all the necessary conditions for a bank transaction to be considered valid are met. These conditions include:

  • The account number is greater than the minimum account number defined in the operating system bank settings (ACC_MIN).

  • The account number is less than the maximum account number defined in the operating system bank settings (ACC_MAX).

  • The remaining funds are greater than or equal to zero.

  • The credit cards list is not empty.

  • The bank setting is valid.

True if the bank transaction is valid, False otherwise.


inline

inline FOperatingSystemBankAccount()

Defined in OperatingSystemBankTypes.h:667 Default constructor

ReturnNameDescription
FOperatingSystemBankAccountCreateNewBankAccount static inlineCreates a new bank account with the given bank settings and credit card type.

static inline

static inline FOperatingSystemBankAccount CreateNewBankAccount(const FOperatingSystemBankSetting & InBankSetting, const FOperatingSystemCreditCardSetting & InCardType)

Defined in OperatingSystemBankTypes.h:553 Creates a new bank account with the given bank settings and credit card type.

This method creates a new bank account with the specified bank settings and credit card type. It checks if the provided bank settings and credit card type are valid before creating the new account. If either the bank settings or the credit card type is invalid, an empty bank account is returned.

The newly created bank account with the specified bank settings and credit card type. If either the bank settings or the credit card type is invalid, an empty bank account is returned.

ReturnNameDescription
FOperatingSystemBankAccount inline explicit

inline explicit

inline explicit FOperatingSystemBankAccount(const FOperatingSystemBankSetting & BankSetting)

Defined in OperatingSystemBankTypes.h:677