Skip to content

FOperatingSystemCommandFlag

#include <OperatingSystemSimulator/Public/Programs/Terminal/OperatingSystemTerminalCommand.h>
---
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 FOperatingSystemCommandFlag

Defined 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.

NameDescription
GetTypeHash inlineCalculates the hash value for a given FOperatingSystemCommandFlag object.

inline

friend inline uint32 GetTypeHash(const FOperatingSystemCommandFlag & Other)

Defined in OperatingSystemTerminalCommand.h:69 Calculates the hash value for a given FOperatingSystemCommandFlag object.

The calculated hash value.

ReturnNameDescription
FNameFlagCommand flag. Must be prefixed by - or –. Example -a, –info etc.
boolbIsRequiredTrue if this flag is required. Command will not process if this flag is missing.
FTextDescriptionHelp description.

FName Flag

Defined in OperatingSystemTerminalCommand.h:27 Command flag. Must be prefixed by - or –. Example -a, –info etc.


bool bIsRequired

Defined in OperatingSystemTerminalCommand.h:31 True if this flag is required. Command will not process if this flag is missing.


FText Description

Defined in OperatingSystemTerminalCommand.h:35 Help description.

ReturnNameDescription
booloperator== const inline
boolIsValid const inlineChecks if the command flag is valid.
FOperatingSystemCommandFlag inline

const inline

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

Defined in OperatingSystemTerminalCommand.h:37


const inline

inline bool IsValid(FString & ErrorReason) const

Defined in OperatingSystemTerminalCommand.h:45 Checks if the command flag is valid.

  • ErrorReason [out] A reference to a FString that stores the reason why the command flag is not valid.

True if the command flag is valid, false otherwise.


inline

inline FOperatingSystemCommandFlag()

Defined in OperatingSystemTerminalCommand.h:74