TrinityCore
Trinity::Impl::ChatCommands::CommandInvoker Struct Reference

#include <ChatCommand.h>

Public Member Functions

 CommandInvoker ()
 
template<typename TypedHandler >
 CommandInvoker (TypedHandler &handler)
 
 CommandInvoker (bool(&handler)(ChatHandler *, char const *))
 
 operator bool () const
 
bool operator() (ChatHandler *chatHandler, std::string_view args) const
 

Private Types

using wrapper_func = bool(void *, ChatHandler *, std::string_view)
 

Private Attributes

wrapper_func_wrapper
 
void * _handler
 

Detailed Description

Definition at line 120 of file ChatCommand.h.

Member Typedef Documentation

◆ wrapper_func

using Trinity::Impl::ChatCommands::CommandInvoker::wrapper_func = bool(void*, ChatHandler*, std::string_view)
private

Definition at line 164 of file ChatCommand.h.

Constructor & Destructor Documentation

◆ CommandInvoker() [1/3]

Trinity::Impl::ChatCommands::CommandInvoker::CommandInvoker ( )
inline

Definition at line 122 of file ChatCommand.h.

◆ CommandInvoker() [2/3]

template<typename TypedHandler >
Trinity::Impl::ChatCommands::CommandInvoker::CommandInvoker ( TypedHandler &  handler)
inline

Definition at line 124 of file ChatCommand.h.

+ Here is the call graph for this function:

◆ CommandInvoker() [3/3]

Trinity::Impl::ChatCommands::CommandInvoker::CommandInvoker ( bool(&)(ChatHandler *, char const *)  handler)
inline

Definition at line 144 of file ChatCommand.h.

Member Function Documentation

◆ operator bool()

Trinity::Impl::ChatCommands::CommandInvoker::operator bool ( ) const
inlineexplicit

Definition at line 156 of file ChatCommand.h.

◆ operator()()

bool Trinity::Impl::ChatCommands::CommandInvoker::operator() ( ChatHandler chatHandler,
std::string_view  args 
) const
inline

Definition at line 157 of file ChatCommand.h.

Member Data Documentation

◆ _handler

void* Trinity::Impl::ChatCommands::CommandInvoker::_handler
private

Definition at line 166 of file ChatCommand.h.

◆ _wrapper

wrapper_func* Trinity::Impl::ChatCommands::CommandInvoker::_wrapper
private

Definition at line 165 of file ChatCommand.h.


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