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 132 of file llvoiceclient.cpp.


Constructor & Destructor Documentation

LLVivoxProtocolParser::LLVivoxProtocolParser (  ) 

Definition at line 207 of file llvoiceclient.cpp.

References NULL, parser, and reset().

Here is the call graph for this function:

LLVivoxProtocolParser::~LLVivoxProtocolParser (  )  [virtual]

Definition at line 224 of file llvoiceclient.cpp.

References parser.


Member Function Documentation

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 231 of file llvoiceclient.cpp.

References ExpatCharHandler(), ExpatEndTag(), ExpatStartTag(), LL_DEBUGS, LL_ENDL, LL_INFOS, LLVoiceClient::mConnected, mInput, NULL, parser, reset(), LLIOPipe::STATUS_OK, and LLIOPipe::STATUS_STOP.

Here is the call graph for this function:

void LLVivoxProtocolParser::reset (  )  [protected]

Definition at line 215 of file llvoiceclient.cpp.

References accumulateText, ignoringTags, responseDepth, and textBuffer.

Referenced by LLVivoxProtocolParser(), and process_impl().

Here is the caller graph for this function:

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

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

Definition at line 302 of file llvoiceclient.cpp.

Referenced by process_impl().

Here is the caller graph for this function:

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

Definition at line 313 of file llvoiceclient.cpp.

Referenced by process_impl().

Here is the caller graph for this function:

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

Definition at line 324 of file llvoiceclient.cpp.

Referenced by process_impl().

Here is the caller graph for this function:

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

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

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

Definition at line 517 of file llvoiceclient.cpp.

References accumulateText, and textBuffer.


Member Data Documentation

std::string LLVivoxProtocolParser::mInput [protected]

Definition at line 154 of file llvoiceclient.cpp.

Referenced by process_impl().

XML_Parser LLVivoxProtocolParser::parser [protected]

Definition at line 157 of file llvoiceclient.cpp.

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

Definition at line 158 of file llvoiceclient.cpp.

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

Definition at line 159 of file llvoiceclient.cpp.

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

Definition at line 160 of file llvoiceclient.cpp.

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

Definition at line 161 of file llvoiceclient.cpp.

Referenced by EndTag(), and StartTag().

Definition at line 164 of file llvoiceclient.cpp.

Referenced by EndTag().

Definition at line 165 of file llvoiceclient.cpp.

Referenced by EndTag(), and processResponse().

std::string LLVivoxProtocolParser::statusString [protected]

Definition at line 166 of file llvoiceclient.cpp.

Referenced by EndTag(), and processResponse().

std::string LLVivoxProtocolParser::uuidString [protected]

Definition at line 167 of file llvoiceclient.cpp.

Referenced by StartTag().

std::string LLVivoxProtocolParser::actionString [protected]

Definition at line 168 of file llvoiceclient.cpp.

Referenced by processResponse(), and StartTag().

std::string LLVivoxProtocolParser::connectorHandle [protected]

Definition at line 169 of file llvoiceclient.cpp.

Referenced by EndTag(), and processResponse().

std::string LLVivoxProtocolParser::accountHandle [protected]

Definition at line 170 of file llvoiceclient.cpp.

Referenced by EndTag(), and processResponse().

std::string LLVivoxProtocolParser::sessionHandle [protected]

Definition at line 171 of file llvoiceclient.cpp.

Referenced by EndTag(), and processResponse().

Definition at line 172 of file llvoiceclient.cpp.

Referenced by EndTag(), and processResponse().

std::string LLVivoxProtocolParser::eventTypeString [protected]

Definition at line 175 of file llvoiceclient.cpp.

Referenced by processResponse(), and StartTag().

Definition at line 176 of file llvoiceclient.cpp.

Referenced by EndTag(), and processResponse().

std::string LLVivoxProtocolParser::uriString [protected]

Definition at line 177 of file llvoiceclient.cpp.

Referenced by EndTag(), and processResponse().

Definition at line 178 of file llvoiceclient.cpp.

Referenced by EndTag(), and processResponse().

std::string LLVivoxProtocolParser::nameString [protected]

Definition at line 179 of file llvoiceclient.cpp.

Referenced by EndTag(), and processResponse().

std::string LLVivoxProtocolParser::audioMediaString [protected]

Definition at line 180 of file llvoiceclient.cpp.

Referenced by EndTag().

Definition at line 181 of file llvoiceclient.cpp.

Referenced by EndTag(), and processResponse().

Definition at line 182 of file llvoiceclient.cpp.

Referenced by EndTag(), and processResponse().

Definition at line 183 of file llvoiceclient.cpp.

Referenced by EndTag(), and processResponse().

Definition at line 184 of file llvoiceclient.cpp.

Referenced by EndTag(), and processResponse().

Definition at line 185 of file llvoiceclient.cpp.

Referenced by EndTag(), and processResponse().

Definition at line 186 of file llvoiceclient.cpp.

Referenced by EndTag(), and processResponse().

Definition at line 187 of file llvoiceclient.cpp.

Referenced by EndTag(), and processResponse().

std::string LLVivoxProtocolParser::textBuffer [protected]

Definition at line 190 of file llvoiceclient.cpp.

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

Definition at line 191 of file llvoiceclient.cpp.

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


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

Generated on Fri May 16 09:35:35 2008 for SecondLife by  doxygen 1.5.5