Ark Server API (ASA) - Wiki
|
#include <CommandLine.h>
Static Public Member Functions | |
static void | Reset () |
static const TCHAR * | Get () |
static const TCHAR * | GetForLogging () |
static const TCHAR * | GetOriginal () |
static const TCHAR * | GetOriginalForLogging () |
static bool | IsInitialized () |
static bool | Set (const TCHAR *NewCommandLine) |
static void | Append (const TCHAR *AppendString) |
static void | AddToSubprocessCommandline (const TCHAR *Param) |
static const FString & | GetSubprocessCommandline () |
static const TCHAR * | RemoveExeName (const TCHAR *CmdLine) |
static void | Parse (const TCHAR *CmdLine, TArray< FString > &Tokens, TArray< FString > &Switches) |
static bool | IsCommandLineLoggingFiltered () |
static FString | BuildFromArgV (const TCHAR *Prefix, int32 ArgC, TCHAR *ArgV[], const TCHAR *Suffix) |
Static Public Attributes | |
static constexpr uint32 | MaxCommandLineSize = 16384 |
Static Private Member Functions | |
static FString & | GetSubprocessCommandLine_Internal () |
Static Private Attributes | |
static bool | bIsInitialized |
static TCHAR | CmdLine [MaxCommandLineSize] |
static TCHAR | OriginalCmdLine [MaxCommandLineSize] |
static TCHAR | LoggingCmdLine [MaxCommandLineSize] |
static TCHAR | LoggingOriginalCmdLine [MaxCommandLineSize] |
Definition at line 23 of file CommandLine.h.
Adds a new parameter to subprocess command line. If Param does not start with a space, one is added.
Param | Command line param string. |
Appends the passed string to the command line as it is (no space is added).
AppendString | String that should be appended to the commandline. |
|
static |
Builds a command line string from the ArgC/ArgV main() arguments, together with an optional prefix or suffix, for adding additional command list arguments programmatically.
Returns an edited version of the executable's command line with the game name and certain other parameters removed.
Returns an edited version of the executable's command line.
Returns the command line originally passed to the executable.
Returns an edited version of the command line originally passed to the executable.
Returns the subprocess command line string
subprocess command line
Checks if command line logging filtering is enabled
Returns true if logging filter is enabled
Checks if the command line has been initialized.
|
static |
Parses a string into tokens, separating switches (beginning with -) from other parameters
CmdLine | the string to parse |
Tokens | [out] filled with all parameters found in the string |
Switches | [out] filled with all switches found in the string |
Removes the executable name from the passed CmdLine, denoted by parentheses. Returns the CmdLine string without the executable name.
Resets FCommandLine to an uninitialised state as if Set() has never been called
Sets CmdLine to the string given
|
staticprivate |
Flag to check if the commandline has been initialized or not.
Definition at line 128 of file CommandLine.h.
|
staticprivate |
character buffer containing the command line
Definition at line 130 of file CommandLine.h.
|
staticprivate |
character buffer containing the command line filtered for logging purposes
Definition at line 134 of file CommandLine.h.
|
staticprivate |
character buffer containing the original command line filtered for logging purposes
Definition at line 136 of file CommandLine.h.
maximum size of the command line
Definition at line 26 of file CommandLine.h.
|
staticprivate |
character buffer containing the original command line
Definition at line 132 of file CommandLine.h.