AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
SOAPCommand Class Reference

#include "ACSoap.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

Constructor & Destructor Documentation

◆ SOAPCommand()

SOAPCommand::SOAPCommand ( )
inline
30 :
31 m_success(false) { }
bool m_success
Definition: ACSoap.h:58

◆ ~SOAPCommand()

SOAPCommand::~SOAPCommand ( )
inline
33{ }

Member Function Documentation

◆ appendToPrintBuffer()

void SOAPCommand::appendToPrintBuffer ( std::string_view  msg)
inline
36 {
37 m_printBuffer += msg;
38 }
std::string m_printBuffer
Definition: ACSoap.h:59

References m_printBuffer.

◆ commandFinished()

void SOAPCommand::commandFinished ( void *  callbackArg,
bool  success 
)
static
130{
131 SOAPCommand* con = (SOAPCommand*)soapconnection;
132 con->setCommandSuccess(success);
133}
Definition: ACSoap.h:28
void setCommandSuccess(bool val)
Definition: ACSoap.h:40

References setCommandSuccess().

Referenced by ns1__executeCommand().

◆ hasCommandSucceeded()

bool SOAPCommand::hasCommandSucceeded ( ) const
inline
47 {
48 return m_success;
49 }

References m_success.

Referenced by ns1__executeCommand().

◆ print()

static void SOAPCommand::print ( void *  callbackArg,
std::string_view  msg 
)
inlinestatic
52 {
53 ((SOAPCommand*)callbackArg)->appendToPrintBuffer(msg);
54 }

Referenced by ns1__executeCommand().

◆ setCommandSuccess()

void SOAPCommand::setCommandSuccess ( bool  val)
inline
41 {
42 m_success = val;
43 finishedPromise.set_value();
44 }
std::promise< void > finishedPromise
Definition: ACSoap.h:60

References finishedPromise, and m_success.

Referenced by commandFinished().

Member Data Documentation

◆ finishedPromise

std::promise<void> SOAPCommand::finishedPromise

◆ m_printBuffer

std::string SOAPCommand::m_printBuffer

◆ m_success

bool SOAPCommand::m_success