OregonCore  revision be9e804-git
Your Favourite TBC server
SOAPCommand Class Reference

#include <OCSoap.h>

Public Member Functions

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

Static Public Member Functions

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

Public Attributes

ACE_Semaphore pendingCommands
 
bool m_success
 
std::string m_printBuffer
 

Detailed Description

Definition at line 77 of file OCSoap.h.

Constructor & Destructor Documentation

SOAPCommand::SOAPCommand ( )
inline

Definition at line 80 of file OCSoap.h.

80  :
81  pendingCommands(0, USYNC_THREAD, "pendingCommands")
82  {
83 
84  }
ACE_Semaphore pendingCommands
Definition: OCSoap.h:94
SOAPCommand::~SOAPCommand ( )
inline

Definition at line 85 of file OCSoap.h.

86  {
87  }

Member Function Documentation

void SOAPCommand::appendToPrintBuffer ( const char *  msg)
inline

Definition at line 89 of file OCSoap.h.

90  {
91  m_printBuffer += msg;
92  }
std::string m_printBuffer
Definition: OCSoap.h:113
void SOAPCommand::commandFinished ( void *  callbackArg,
bool  success 
)
static

Definition at line 146 of file OCSoap.cpp.

References pendingCommands, and setCommandSuccess().

Referenced by ns1__executeCommand().

147 {
148  SOAPCommand* con = (SOAPCommand*)soapconnection;
149  con->setCommandSuccess(success);
150  con->pendingCommands.release();
151 }
ACE_Semaphore pendingCommands
Definition: OCSoap.h:94
void setCommandSuccess(bool val)
Definition: OCSoap.h:96
bool SOAPCommand::hasCommandSucceeded ( )
inline

Definition at line 100 of file OCSoap.h.

Referenced by ns1__executeCommand().

101  {
102  return m_success;
103  }
bool m_success
Definition: OCSoap.h:112
static void SOAPCommand::print ( void *  callbackArg,
const char *  msg 
)
inlinestatic

Definition at line 105 of file OCSoap.h.

Referenced by ns1__executeCommand().

106  {
107  ((SOAPCommand*)callbackArg)->appendToPrintBuffer(msg);
108  }
void SOAPCommand::setCommandSuccess ( bool  val)
inline

Definition at line 96 of file OCSoap.h.

Referenced by commandFinished().

97  {
98  m_success = val;
99  }
bool m_success
Definition: OCSoap.h:112

Member Data Documentation

std::string SOAPCommand::m_printBuffer

Definition at line 113 of file OCSoap.h.

Referenced by ns1__executeCommand().

bool SOAPCommand::m_success

Definition at line 112 of file OCSoap.h.

ACE_Semaphore SOAPCommand::pendingCommands

Definition at line 94 of file OCSoap.h.

Referenced by commandFinished(), and ns1__executeCommand().


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