TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
SOAPCommand Class Reference

#include <TCSoap.h>

Public Member Functions

 SOAPCommand ()
 
 ~SOAPCommand ()
 
void appendToPrintBuffer (const char *msg)
 
void setCommandSuccess (bool val)
 
bool hasCommandSucceeded () const
 

Static Public Member Functions

static void print (void *callbackArg, const char *msg)
 
static void commandFinished (void *callbackArg, bool success)
 

Public Attributes

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

Constructor & Destructor Documentation

SOAPCommand::SOAPCommand ( )
inline
32  :
33  m_success(false)
34  {
35  }
bool m_success
Definition: TCSoap.h:64
SOAPCommand::~SOAPCommand ( )
inline
38  {
39  }

Member Function Documentation

void SOAPCommand::appendToPrintBuffer ( const char *  msg)
inline
42  {
43  m_printBuffer += msg;
44  }
std::string m_printBuffer
Definition: TCSoap.h:65
void SOAPCommand::commandFinished ( void *  callbackArg,
bool  success 
)
static
128 {
129  SOAPCommand* con = (SOAPCommand*)soapconnection;
130  con->setCommandSuccess(success);
131 }
void setCommandSuccess(bool val)
Definition: TCSoap.h:46
Definition: TCSoap.h:29

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool SOAPCommand::hasCommandSucceeded ( ) const
inline
53  {
54  return m_success;
55  }
bool m_success
Definition: TCSoap.h:64

+ Here is the caller graph for this function:

static void SOAPCommand::print ( void *  callbackArg,
const char *  msg 
)
inlinestatic
58  {
59  ((SOAPCommand*)callbackArg)->appendToPrintBuffer(msg);
60  }
Definition: TCSoap.h:29

+ Here is the caller graph for this function:

void SOAPCommand::setCommandSuccess ( bool  val)
inline
47  {
48  m_success = val;
49  finishedPromise.set_value();
50  }
bool m_success
Definition: TCSoap.h:64
std::promise< void > finishedPromise
Definition: TCSoap.h:66

+ Here is the caller graph for this function:

Member Data Documentation

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

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