Inheritance diagram for LLVivoxProtocolParser:
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) |
Definition at line 133 of file llvoiceclient.cpp.
LLVivoxProtocolParser::LLVivoxProtocolParser | ( | ) |
LLVivoxProtocolParser::~LLVivoxProtocolParser | ( | ) | [virtual] |
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().
std::string LLVivoxProtocolParser::accountHandle [protected] |
bool LLVivoxProtocolParser::accumulateText [protected] |
Definition at line 192 of file llvoiceclient.cpp.
Referenced by CharData(), EndTag(), reset(), and StartTag().
std::string LLVivoxProtocolParser::actionString [protected] |
std::string LLVivoxProtocolParser::audioMediaString [protected] |
std::string LLVivoxProtocolParser::connectorHandle [protected] |
std::string LLVivoxProtocolParser::displayNameString [protected] |
F32 LLVivoxProtocolParser::energy [protected] |
std::string LLVivoxProtocolParser::eventSessionHandle [protected] |
std::string LLVivoxProtocolParser::eventTypeString [protected] |
int LLVivoxProtocolParser::ignoreDepth [protected] |
bool LLVivoxProtocolParser::ignoringTags [protected] |
bool LLVivoxProtocolParser::isChannel [protected] |
bool LLVivoxProtocolParser::isEvent [protected] |
Definition at line 161 of file llvoiceclient.cpp.
Referenced by EndTag(), processResponse(), and StartTag().
bool LLVivoxProtocolParser::isLocallyMuted [protected] |
bool LLVivoxProtocolParser::isModeratorMuted [protected] |
bool LLVivoxProtocolParser::isSpeaking [protected] |
std::string LLVivoxProtocolParser::mInput [protected] |
std::string LLVivoxProtocolParser::nameString [protected] |
XML_Parser LLVivoxProtocolParser::parser [protected] |
Definition at line 158 of file llvoiceclient.cpp.
Referenced by LLVivoxProtocolParser(), process_impl(), and ~LLVivoxProtocolParser().
int LLVivoxProtocolParser::participantType [protected] |
int LLVivoxProtocolParser::responseDepth [protected] |
int LLVivoxProtocolParser::returnCode [protected] |
std::string LLVivoxProtocolParser::sessionHandle [protected] |
int LLVivoxProtocolParser::state [protected] |
int LLVivoxProtocolParser::statusCode [protected] |
std::string LLVivoxProtocolParser::statusString [protected] |
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] |
std::string LLVivoxProtocolParser::uuidString [protected] |
int LLVivoxProtocolParser::volume [protected] |