FOperatingSystemCommandFlag
#include <OperatingSystemSimulator/Public/Programs/Terminal/OperatingSystemTerminalCommand.h>Class detail
Section titled “Class detail”---
config:
class:
hideEmptyMembersBox: true
---
classDiagram
class FOperatingSystemCommandFlag {
+Flag : FName
+bIsRequired : bool
+Description : FText
+operator==(const FOperatingSystemCommandFlag &Other) c bool
+IsValid(FString &ErrorReason) const bool
+FOperatingSystemCommandFlag()
}
class FOperatingSystemCommandFlagDefined in OperatingSystemTerminalCommand.h:21 Represents a command flag for the operating system. A command flag must be prefixed by ”-” or ”—”. Examples include “-a”, “—info”, etc.
Friends
Section titled “Friends”| Name | Description |
|---|---|
GetTypeHash inline | Calculates the hash value for a given FOperatingSystemCommandFlag object. |
GetTypeHash
Section titled “GetTypeHash”inline
friend inline uint32 GetTypeHash(const FOperatingSystemCommandFlag & Other)Defined in OperatingSystemTerminalCommand.h:69 Calculates the hash value for a given FOperatingSystemCommandFlag object.
Parameters
Section titled “Parameters”OtherThe FOperatingSystemCommandFlag object for which to calculate the hash value.
Returns
Section titled “Returns”The calculated hash value.
Public Attributes
Section titled “Public Attributes”| Return | Name | Description |
|---|---|---|
FName | Flag | Command flag. Must be prefixed by - or –. Example -a, –info etc. |
bool | bIsRequired | True if this flag is required. Command will not process if this flag is missing. |
FText | Description | Help description. |
FName FlagDefined in OperatingSystemTerminalCommand.h:27 Command flag. Must be prefixed by - or –. Example -a, –info etc.
Referenced by
Section titled “Referenced by”bIsRequired
Section titled “bIsRequired”bool bIsRequiredDefined in OperatingSystemTerminalCommand.h:31 True if this flag is required. Command will not process if this flag is missing.
Description
Section titled “Description”FText DescriptionDefined in OperatingSystemTerminalCommand.h:35 Help description.
Public Methods
Section titled “Public Methods”| Return | Name | Description |
|---|---|---|
bool | operator== const inline | |
bool | IsValid const inline | Checks if the command flag is valid. |
FOperatingSystemCommandFlag inline |
operator==
Section titled “operator==”const inline
inline bool operator==(const FOperatingSystemCommandFlag & Other) constDefined in OperatingSystemTerminalCommand.h:37
References
Section titled “References”IsValid
Section titled “IsValid”const inline
inline bool IsValid(FString & ErrorReason) constDefined in OperatingSystemTerminalCommand.h:45 Checks if the command flag is valid.
Parameters
Section titled “Parameters”ErrorReason[out] A reference to a FString that stores the reason why the command flag is not valid.
Returns
Section titled “Returns”True if the command flag is valid, false otherwise.
References
Section titled “References”FOperatingSystemCommandFlag
Section titled “FOperatingSystemCommandFlag”inline
inline FOperatingSystemCommandFlag()Defined in OperatingSystemTerminalCommand.h:74