ReXGlue SDK
Loading...
Searching...
No Matches
rex::ConsoleCommand Class Reference

#include <rex/console_command.h>

Inheritance diagram for rex::ConsoleCommand:
[legend]

Public Member Functions

 ConsoleCommand (SettingOwner *owner, std::string_view name, std::string_view help, MoveOnlyFunction< Result< void >(std::string_view args)> run)
const std::string & GetName () const
const std::string & GetHelp () const
Result< void > Run (std::string_view args)

Additional Inherited Members

Protected Member Functions inherited from rex::NonCopyable
 NonCopyable (const NonCopyable &)=delete
NonCopyable & operator= (const NonCopyable &)=delete

Detailed Description

A console command an owner registers, declared with REX_COMMAND. Runs on the calling thread.

Constructor & Destructor Documentation

◆ ConsoleCommand()

rex::ConsoleCommand::ConsoleCommand ( SettingOwner * owner,
std::string_view name,
std::string_view help,
MoveOnlyFunction< Result< void >(std::string_view args)> run )
Parameters
runCalled with the argument text.

Member Function Documentation

◆ GetName()

const std::string & rex::ConsoleCommand::GetName ( ) const

Returns the full name.


The documentation for this class was generated from the following file: