Skip to content

FOperatingSystemBankSetting

#include <OperatingSystemSimulator/Public/OperatingSystemBankSetting.h>
struct FOperatingSystemBankSetting

Defined in OperatingSystemBankSetting.h:14

Inherits: FTableRowBase

---
config:
  class:
    hideEmptyMembersBox: true
---
classDiagram
  class FOperatingSystemBankSetting["FOperatingSystemBankSetting"]
  class FTableRowBase["FTableRowBase"]
  FTableRowBase <|-- FOperatingSystemBankSetting
---
config:
  class:
    hideEmptyMembersBox: true
---
classDiagram
  class FOperatingSystemBankSetting {
    +BankName : FName
    +BankIdentifier : FName
    +CurrencyShortCode : FName
    +TransactionChargePercentage : float
    +Icon : TSoftObjectPtr< UObject >
    +IsValid() const bool
    +operator==(const FOperatingSystemBankSetting &Other) c bool
    +operator!=(const FOperatingSystemBankSetting &Other) c bool
    +FOperatingSystemBankSetting()
    +ACC_MIN : constexpr int64
    +ACC_MAX : constexpr int64
    +GenerateAccountNumber() int64
  }

Structure representing a bank setting in the operating system.

NameDescription
GetTypeHash inlineCalculates the hash value for an instance of FOperatingSystemBankSetting.

inline

friend inline uint32 GetTypeHash(const FOperatingSystemBankSetting & Other)

Defined in OperatingSystemBankSetting.h:139 Calculates the hash value for an instance of FOperatingSystemBankSetting.

The hash value is calculated using the xor operator on the hash values of the individual properties of FOperatingSystemBankSetting.

The hash value of the FOperatingSystemBankSetting instance.

See also: FOperatingSystemBankSetting

See also: GetTypeHash()

See also: ^ (xor operator)

ReturnNameDescription
FNameBankNameRepresents the name of the bank. Cannot be empty.
FNameBankIdentifierA unique name for this bank. Must be unique and non empty.
FNameCurrencyShortCodeShort code is used to identify a currency. It must be unique and non-empty. E.g: USD, INR etc.
floatTransactionChargePercentageRepresents the transaction charge percentage for a bank setting in the operating system. The value should be between 0 and 70. It is used to calculate the transaction charge for a given amount.
TSoftObjectPtr< UObject >IconRepresents the icon associated with a bank setting in the operating system.

FName BankName

Defined in OperatingSystemBankSetting.h:20 Represents the name of the bank. Cannot be empty.


FName BankIdentifier

Defined in OperatingSystemBankSetting.h:24 A unique name for this bank. Must be unique and non empty.


FName CurrencyShortCode

Defined in OperatingSystemBankSetting.h:28 Short code is used to identify a currency. It must be unique and non-empty. E.g: USD, INR etc.


float TransactionChargePercentage

Defined in OperatingSystemBankSetting.h:40 Represents the transaction charge percentage for a bank setting in the operating system. The value should be between 0 and 70. It is used to calculate the transaction charge for a given amount.

See also: FOperatingSystemBankSetting

See also: UOperatingSystemStatics::CalculatePercentageForValue()

TransactionChargePercentage >= 0 && TransactionChargePercentage <= 70


TSoftObjectPtr< UObject > Icon

Defined in OperatingSystemBankSetting.h:49 Represents the icon associated with a bank setting in the operating system.

The icon is a soft object pointer to a UObject. It is used to display a thumbnail image and is allowed to be of types Texture or MaterialInterface.

ReturnNameDescription
boolIsValid const inlineChecks if the bank setting is valid.
booloperator== const inline
booloperator!= const inline
FOperatingSystemBankSetting inlineDefault constructor for initializing an instance of FOperatingSystemBankSetting.

const inline

inline bool IsValid() const

Defined in OperatingSystemBankSetting.h:87 Checks if the bank setting is valid.

A bank setting is considered valid if the following conditions are met:

  • BankName is not equal to NAME_None

  • BankIdentifier is not equal to NAME_None

  • CurrencyShortCode is not equal to NAME_None

  • TransactionChargePercentage is greater than or equal to 0 and less than or equal to 99

True if the bank setting is valid, false otherwise.

See also: FOperatingSystemBankSetting

See also: FOperatingSystemBankSetting::BankName

See also: FOperatingSystemBankSetting::BankIdentifier

See also: FOperatingSystemBankSetting::CurrencyShortCode

See also: FOperatingSystemBankSetting::TransactionChargePercentage


const inline

inline bool operator==(const FOperatingSystemBankSetting & Other) const

Defined in OperatingSystemBankSetting.h:109


const inline

inline bool operator!=(const FOperatingSystemBankSetting & Other) const

Defined in OperatingSystemBankSetting.h:118


inline

inline FOperatingSystemBankSetting()

Defined in OperatingSystemBankSetting.h:158 Default constructor for initializing an instance of FOperatingSystemBankSetting.

This constructor initializes the member variables of the FOperatingSystemBankSetting struct to their default values.

  • BankName: NAME_None

  • BankIdentifier: NAME_None

  • CurrencyShortCode: NAME_None

  • TransactionChargePercentage: A random value between 0.02 and 0.2, generated using FMath::FRandRange(0.02, 0.2)

  • Icon: nullptr

ReturnNameDescription
constexpr int64ACC_MIN static constexprMinimum account number for a bank setting in the operating system.
constexpr int64ACC_MAX static constexprMaximum account number for a bank setting in the operating system.

static constexpr

constexpr int64 ACC_MIN = 100000000000

Defined in OperatingSystemBankSetting.h:57 Minimum account number for a bank setting in the operating system.

This value represents the minimum allowable account number for a bank setting in the operating system. The account number should be greater than or equal to this value.


static constexpr

constexpr int64 ACC_MAX = 999999999999

Defined in OperatingSystemBankSetting.h:68 Maximum account number for a bank setting in the operating system.

This value represents the maximum allowable account number for a bank setting in the operating system. The account number should be less than or equal to this value.

See also: FOperatingSystemBankSetting

See also: FOperatingSystemBankSetting::GenerateAccountNumber()

ReturnNameDescription
int64GenerateAccountNumber static inlineGenerates a random account number within the range defined by ACC_MIN and ACC_MAX.

static inline

static inline int64 GenerateAccountNumber()

Defined in OperatingSystemBankSetting.h:104 Generates a random account number within the range defined by ACC_MIN and ACC_MAX.

A randomly generated account number.

See also: FOperatingSystemBankSettings::ACC_MIN

See also: FOperatingSystemBankSettings::ACC_MAX