LLVivoxProtocolParser Class Reference

This class helps construct new LLIOPipe specializations. More...

Inheritance diagram for LLVivoxProtocolParser:

Inheritance graph
[legend]
Collaboration diagram for LLVivoxProtocolParser:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLVivoxProtocolParser ()
virtual ~LLVivoxProtocolParser ()

Protected Member Functions

void reset ()
void processResponse (std::string tag)
void StartTag (const char *tag, const char **attr)
void EndTag (const char *tag)
void CharData (const char *buffer, int length)
virtual EStatus process_impl (const LLChannelDescriptors &channels, buffer_ptr_t &buffer, bool &eos, LLSD &context, LLPumpIO *pump)
 Process the data in buffer.

Static Protected Member Functions

static void XMLCALL ExpatStartTag (void *data, const char *el, const char **attr)
static void XMLCALL ExpatEndTag (void *data, const char *el)
static void XMLCALL ExpatCharHandler (void *data, const XML_Char *s, int len)

Protected Attributes

std::string mInput
XML_Parser parser
int responseDepth
bool ignoringTags
bool isEvent
int ignoreDepth
int returnCode
int statusCode
std::string statusString
std::string uuidString
std::string actionString
std::string connectorHandle
std::string accountHandle
std::string sessionHandle
std::string eventSessionHandle
std::string eventTypeString
int state
std::string uriString
bool isChannel
std::string nameString
std::string audioMediaString
std::string displayNameString
int participantType
bool isLocallyMuted
bool isModeratorMuted
bool isSpeaking
int volume
F32 energy
std::string textBuffer
bool accumulateText

Private Member Functions

 LOG_CLASS (LLVivoxProtocolParser)

Detailed Description

This class helps construct new LLIOPipe specializations.

See also:
LLIOPipe
THOROUGH_DESCRIPTION

Definition at line 133 of file llvoiceclient.cpp.


Constructor & Destructor Documentation

LLVivoxProtocolParser::LLVivoxProtocolParser (  ) 

Definition at line 208 of file llvoiceclient.cpp.

References NULL, parser, and reset().

LLVivoxProtocolParser::~LLVivoxProtocolParser (  )  [virtual]

Definition at line 225 of file llvoiceclient.cpp.

References parser.


Member Function Documentation

void LLVivoxProtocolParser::CharData ( const char *  buffer,
int  length 
) [protected]

Definition at line 518 of file llvoiceclient.cpp.

References accumulateText, and textBuffer.

Referenced by ExpatCharHandler().

void LLVivoxProtocolParser::EndTag ( const char *  tag  )  [protected]

Definition at line 406 of file llvoiceclient.cpp.

References accountHandle, accumulateText, LLVoiceClient::addCaptureDevice(), LLVoiceClient::addChannelMapEntry(), LLVoiceClient::addRenderDevice(), audioMediaString, connectorHandle, displayNameString, energy, eventSessionHandle, gVoiceClient, ignoreDepth, ignoringTags, isChannel, isEvent, isLocallyMuted, isModeratorMuted, isSpeaking, nameString, NULL, participantType, processResponse(), responseDepth, returnCode, sessionHandle, state, statusCode, statusString, textBuffer, uriString, and volume.

Referenced by ExpatEndTag().

void XMLCALL LLVivoxProtocolParser::ExpatCharHandler ( void data,
const XML_Char *  s,
int  len 
) [static, protected]

Definition at line 325 of file llvoiceclient.cpp.

References CharData().

Referenced by process_impl().

void XMLCALL LLVivoxProtocolParser::ExpatEndTag ( void data,
const char *  el 
) [static, protected]

Definition at line 314 of file llvoiceclient.cpp.

References EndTag().

Referenced by process_impl().

void XMLCALL LLVivoxProtocolParser::ExpatStartTag ( void data,
const char *  el,
const char **  attr 
) [static, protected]

Definition at line 303 of file llvoiceclient.cpp.

References StartTag().

Referenced by process_impl().

LLVivoxProtocolParser::LOG_CLASS ( LLVivoxProtocolParser   )  [private]

LLIOPipe::EStatus LLVivoxProtocolParser::process_impl ( const LLChannelDescriptors channels,
buffer_ptr_t buffer,
bool &  eos,
LLSD context,
LLPumpIO pump 
) [protected, virtual]

Process the data in buffer.

Definition at line 232 of file llvoiceclient.cpp.

References ExpatCharHandler(), ExpatEndTag(), ExpatStartTag(), gVoiceClient, llendl, llinfos, LLVoiceClient::mConnected, mInput, NULL, parser, reset(), start, LLIOPipe::STATUS_OK, and LLIOPipe::STATUS_STOP.

void LLVivoxProtocolParser::processResponse ( std::string  tag  )  [protected]

Definition at line 533 of file llvoiceclient.cpp.

References accountHandle, actionString, LLVoiceClient::auxAudioPropertiesEvent(), LLVoiceClient::channelGetListResponse(), LLVoiceClient::connectorCreateResponse(), connectorHandle, LLVoiceClient::connectorShutdownResponse(), displayNameString, energy, eventSessionHandle, eventTypeString, gVoiceClient, isChannel, isEvent, isLocallyMuted, isModeratorMuted, isSpeaking, LLVoiceClient::loginResponse(), LLVoiceClient::loginStateChangeEvent(), LLVoiceClient::logoutResponse(), nameString, LLVoiceClient::participantPropertiesEvent(), LLVoiceClient::participantStateChangeEvent(), participantType, LLVoiceClient::sessionConnectResponse(), LLVoiceClient::sessionCreateResponse(), sessionHandle, LLVoiceClient::sessionNewEvent(), LLVoiceClient::sessionStateChangeEvent(), LLVoiceClient::sessionTerminateResponse(), state, statusCode, statusString, uriString, and volume.

Referenced by EndTag().

void LLVivoxProtocolParser::reset (  )  [protected]

Definition at line 216 of file llvoiceclient.cpp.

References accumulateText, ignoringTags, responseDepth, and textBuffer.

Referenced by LLVivoxProtocolParser(), and process_impl().

void LLVivoxProtocolParser::StartTag ( const char *  tag,
const char **  attr 
) [protected]

Definition at line 337 of file llvoiceclient.cpp.

References accumulateText, actionString, LLVoiceClient::clearCaptureDevices(), LLVoiceClient::clearRenderDevices(), eventTypeString, gVoiceClient, ignoreDepth, ignoringTags, isEvent, responseDepth, textBuffer, and uuidString.

Referenced by ExpatStartTag().


Member Data Documentation

std::string LLVivoxProtocolParser::accountHandle [protected]

Definition at line 171 of file llvoiceclient.cpp.

Referenced by EndTag(), and processResponse().

bool LLVivoxProtocolParser::accumulateText [protected]

Definition at line 192 of file llvoiceclient.cpp.

Referenced by CharData(), EndTag(), reset(), and StartTag().

std::string LLVivoxProtocolParser::actionString [protected]

Definition at line 169 of file llvoiceclient.cpp.

Referenced by processResponse(), and StartTag().

std::string LLVivoxProtocolParser::audioMediaString [protected]

Definition at line 181 of file llvoiceclient.cpp.

Referenced by EndTag().

std::string LLVivoxProtocolParser::connectorHandle [protected]

Definition at line 170 of file llvoiceclient.cpp.

Referenced by EndTag(), and processResponse().

std::string LLVivoxProtocolParser::displayNameString [protected]

Definition at line 182 of file llvoiceclient.cpp.

Referenced by EndTag(), and processResponse().

F32 LLVivoxProtocolParser::energy [protected]

Definition at line 188 of file llvoiceclient.cpp.

Referenced by EndTag(), and processResponse().

std::string LLVivoxProtocolParser::eventSessionHandle [protected]

Definition at line 173 of file llvoiceclient.cpp.

Referenced by EndTag(), and processResponse().

std::string LLVivoxProtocolParser::eventTypeString [protected]

Definition at line 176 of file llvoiceclient.cpp.

Referenced by processResponse(), and StartTag().

int LLVivoxProtocolParser::ignoreDepth [protected]

Definition at line 162 of file llvoiceclient.cpp.

Referenced by EndTag(), and StartTag().

bool LLVivoxProtocolParser::ignoringTags [protected]

Definition at line 160 of file llvoiceclient.cpp.

Referenced by EndTag(), reset(), and StartTag().

bool LLVivoxProtocolParser::isChannel [protected]

Definition at line 179 of file llvoiceclient.cpp.

Referenced by EndTag(), and processResponse().

bool LLVivoxProtocolParser::isEvent [protected]

Definition at line 161 of file llvoiceclient.cpp.

Referenced by EndTag(), processResponse(), and StartTag().

bool LLVivoxProtocolParser::isLocallyMuted [protected]

Definition at line 184 of file llvoiceclient.cpp.

Referenced by EndTag(), and processResponse().

bool LLVivoxProtocolParser::isModeratorMuted [protected]

Definition at line 185 of file llvoiceclient.cpp.

Referenced by EndTag(), and processResponse().

bool LLVivoxProtocolParser::isSpeaking [protected]

Definition at line 186 of file llvoiceclient.cpp.

Referenced by EndTag(), and processResponse().

std::string LLVivoxProtocolParser::mInput [protected]

Definition at line 155 of file llvoiceclient.cpp.

Referenced by process_impl().

std::string LLVivoxProtocolParser::nameString [protected]

Definition at line 180 of file llvoiceclient.cpp.

Referenced by EndTag(), and processResponse().

XML_Parser LLVivoxProtocolParser::parser [protected]

Definition at line 158 of file llvoiceclient.cpp.

Referenced by LLVivoxProtocolParser(), process_impl(), and ~LLVivoxProtocolParser().

int LLVivoxProtocolParser::participantType [protected]

Definition at line 183 of file llvoiceclient.cpp.

Referenced by EndTag(), and processResponse().

int LLVivoxProtocolParser::responseDepth [protected]

Definition at line 159 of file llvoiceclient.cpp.

Referenced by EndTag(), reset(), and StartTag().

int LLVivoxProtocolParser::returnCode [protected]

Definition at line 165 of file llvoiceclient.cpp.

Referenced by EndTag().

std::string LLVivoxProtocolParser::sessionHandle [protected]

Definition at line 172 of file llvoiceclient.cpp.

Referenced by EndTag(), and processResponse().

int LLVivoxProtocolParser::state [protected]

Definition at line 177 of file llvoiceclient.cpp.

Referenced by EndTag(), and processResponse().

int LLVivoxProtocolParser::statusCode [protected]

Definition at line 166 of file llvoiceclient.cpp.

Referenced by EndTag(), and processResponse().

std::string LLVivoxProtocolParser::statusString [protected]

Definition at line 167 of file llvoiceclient.cpp.

Referenced by EndTag(), and processResponse().

std::string LLVivoxProtocolParser::textBuffer [protected]

Definition at line 191 of file llvoiceclient.cpp.

Referenced by CharData(), EndTag(), reset(), and StartTag().

std::string LLVivoxProtocolParser::uriString [protected]

Definition at line 178 of file llvoiceclient.cpp.

Referenced by EndTag(), and processResponse().

std::string LLVivoxProtocolParser::uuidString [protected]

Definition at line 168 of file llvoiceclient.cpp.

Referenced by StartTag().

int LLVivoxProtocolParser::volume [protected]

Definition at line 187 of file llvoiceclient.cpp.

Referenced by EndTag(), and processResponse().


The documentation for this class was generated from the following file:
Generated on Thu Jul 1 06:12:00 2010 for Second Life Viewer by  doxygen 1.4.7