FOperatingSystemBankSetting
#include <OperatingSystemSimulator/Public/OperatingSystemBankSetting.h>struct FOperatingSystemBankSettingDefined in OperatingSystemBankSetting.h:14
Inherits:
FTableRowBase
Inheritance diagram
Section titled “Inheritance diagram”---
config:
class:
hideEmptyMembersBox: true
---
classDiagram
class FOperatingSystemBankSetting["FOperatingSystemBankSetting"]
class FTableRowBase["FTableRowBase"]
FTableRowBase <|-- FOperatingSystemBankSetting
Class detail
Section titled “Class detail”---
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.
Friends
Section titled “Friends”| Name | Description |
|---|---|
GetTypeHash inline | Calculates the hash value for an instance of FOperatingSystemBankSetting. |
GetTypeHash
Section titled “GetTypeHash”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.
Parameters
Section titled “Parameters”Other- The FOperatingSystemBankSetting instance for which the hash value should be calculated.
Returns
Section titled “Returns”The hash value of the FOperatingSystemBankSetting instance.
See also: FOperatingSystemBankSetting
See also: GetTypeHash()
See also: ^ (xor operator)
Public Attributes
Section titled “Public Attributes”| Return | Name | Description |
|---|---|---|
FName | BankName | Represents the name of the bank. Cannot be empty. |
FName | BankIdentifier | A unique name for this bank. Must be unique and non empty. |
FName | CurrencyShortCode | Short code is used to identify a currency. It must be unique and non-empty. E.g: USD, INR etc. |
float | TransactionChargePercentage | 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. |
TSoftObjectPtr< UObject > | Icon | Represents the icon associated with a bank setting in the operating system. |
BankName
Section titled “BankName”FName BankNameDefined in OperatingSystemBankSetting.h:20 Represents the name of the bank. Cannot be empty.
Referenced by
Section titled “Referenced by”BankIdentifier
Section titled “BankIdentifier”FName BankIdentifierDefined in OperatingSystemBankSetting.h:24 A unique name for this bank. Must be unique and non empty.
Referenced by
Section titled “Referenced by”CurrencyShortCode
Section titled “CurrencyShortCode”FName CurrencyShortCodeDefined in OperatingSystemBankSetting.h:28 Short code is used to identify a currency. It must be unique and non-empty. E.g: USD, INR etc.
Referenced by
Section titled “Referenced by”TransactionChargePercentage
Section titled “TransactionChargePercentage”float TransactionChargePercentageDefined 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()
Invariants
Section titled “Invariants”TransactionChargePercentage >= 0 && TransactionChargePercentage <= 70
Referenced by
Section titled “Referenced by”TSoftObjectPtr< UObject > IconDefined 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.
Referenced by
Section titled “Referenced by”Public Methods
Section titled “Public Methods”| Return | Name | Description |
|---|---|---|
bool | IsValid const inline | Checks if the bank setting is valid. |
bool | operator== const inline | |
bool | operator!= const inline | |
FOperatingSystemBankSetting inline | Default constructor for initializing an instance of FOperatingSystemBankSetting. |
IsValid
Section titled “IsValid”const inline
inline bool IsValid() constDefined 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
Returns
Section titled “Returns”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
Referenced by
Section titled “Referenced by”operator==
Section titled “operator==”const inline
inline bool operator==(const FOperatingSystemBankSetting & Other) constDefined in OperatingSystemBankSetting.h:109
References
Section titled “References”operator!=
Section titled “operator!=”const inline
inline bool operator!=(const FOperatingSystemBankSetting & Other) constDefined in OperatingSystemBankSetting.h:118
References
Section titled “References”FOperatingSystemBankSetting
Section titled “FOperatingSystemBankSetting”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
Public Static Attributes
Section titled “Public Static Attributes”| Return | Name | Description |
|---|---|---|
constexpr int64 | ACC_MIN static constexpr | Minimum account number for a bank setting in the operating system. |
constexpr int64 | ACC_MAX static constexpr | Maximum account number for a bank setting in the operating system. |
ACC_MIN
Section titled “ACC_MIN”static constexpr
constexpr int64 ACC_MIN = 100000000000Defined 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.
Referenced by
Section titled “Referenced by”ACC_MAX
Section titled “ACC_MAX”static constexpr
constexpr int64 ACC_MAX = 999999999999Defined 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()
Referenced by
Section titled “Referenced by”Public Static Methods
Section titled “Public Static Methods”| Return | Name | Description |
|---|---|---|
int64 | GenerateAccountNumber static inline | Generates a random account number within the range defined by ACC_MIN and ACC_MAX. |
GenerateAccountNumber
Section titled “GenerateAccountNumber”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.
Returns
Section titled “Returns”A randomly generated account number.
See also: FOperatingSystemBankSettings::ACC_MIN
See also: FOperatingSystemBankSettings::ACC_MAX