AzeorthCore 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
31 :
32 m_success(false) { }
bool m_success
Definition: ACSoap.h:59

◆ ~SOAPCommand()

SOAPCommand::~SOAPCommand ( )
inline
34{ }

Member Function Documentation

◆ appendToPrintBuffer()

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

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:29
void setCommandSuccess(bool val)
Definition: ACSoap.h:41

References setCommandSuccess().

Referenced by ns1__executeCommand().

◆ hasCommandSucceeded()

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

References m_success.

Referenced by ns1__executeCommand().

◆ print()

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

Referenced by ns1__executeCommand().

◆ setCommandSuccess()

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

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