TrinityCore
Loading...
Searching...
No Matches
SOAPCommand Class Reference

#include <TCSoap.h>

Public Member Functions

 SOAPCommand ()
 
 ~SOAPCommand ()
 
void appendToPrintBuffer (std::string_view msg)
 
void setCommandSuccess (bool val)
 
bool hasCommandSucceeded () const
 

Static Public Member Functions

static void print (void *callbackArg, std::string_view msg)
 
static void commandFinished (void *callbackArg, bool success)
 

Public Attributes

bool m_success
 
std::string m_printBuffer
 
std::promise< void > finishedPromise
 

Detailed Description

Definition at line 29 of file TCSoap.h.

Constructor & Destructor Documentation

◆ SOAPCommand()

SOAPCommand::SOAPCommand ( )
inline

Definition at line 32 of file TCSoap.h.

◆ ~SOAPCommand()

SOAPCommand::~SOAPCommand ( )
inline

Definition at line 37 of file TCSoap.h.

Member Function Documentation

◆ appendToPrintBuffer()

void SOAPCommand::appendToPrintBuffer ( std::string_view  msg)
inline

Definition at line 41 of file TCSoap.h.

References m_printBuffer.

◆ commandFinished()

void SOAPCommand::commandFinished ( void *  callbackArg,
bool  success 
)
static

Definition at line 141 of file TCSoap.cpp.

References setCommandSuccess().

Referenced by ns1__executeCommand().

◆ hasCommandSucceeded()

bool SOAPCommand::hasCommandSucceeded ( ) const
inline

Definition at line 52 of file TCSoap.h.

References m_success.

Referenced by ns1__executeCommand().

◆ print()

static void SOAPCommand::print ( void *  callbackArg,
std::string_view  msg 
)
inlinestatic

Definition at line 57 of file TCSoap.h.

Referenced by ns1__executeCommand().

◆ setCommandSuccess()

void SOAPCommand::setCommandSuccess ( bool  val)
inline

Definition at line 46 of file TCSoap.h.

References finishedPromise, and m_success.

Referenced by commandFinished().

Member Data Documentation

◆ finishedPromise

std::promise<void> SOAPCommand::finishedPromise

Definition at line 66 of file TCSoap.h.

Referenced by ns1__executeCommand(), and setCommandSuccess().

◆ m_printBuffer

std::string SOAPCommand::m_printBuffer

Definition at line 65 of file TCSoap.h.

Referenced by appendToPrintBuffer(), and ns1__executeCommand().

◆ m_success

bool SOAPCommand::m_success

Definition at line 64 of file TCSoap.h.

Referenced by hasCommandSucceeded(), and setCommandSuccess().


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