LLLogTextMessage Class Reference

This class represents a coalesced collection of text messages generated by agents and their objects. More...

#include <lllogtextmessage.h>

Collaboration diagram for LLLogTextMessage:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLLogTextMessage (const LLHost &dataserver)
 ~LLLogTextMessage ()
void log (const LLUUID &from, const LLUUID &to, const char *mesg)
void log (const LLUUID &from, F64 global_x, F64 global_y, const char *mesg)
void log (const LLUUID &from, const LLUUID &to, F64 global_x, F64 global_y, const char *mesg)
void flush ()

Protected Attributes

LLHost mDataserver
std::deque< LLLogTextMessageDatamQueue
S32 mPendingSize

Classes

struct  LLLogTextMessageData

Detailed Description

This class represents a coalesced collection of text messages generated by agents and their objects.

This class is intended to be used as a singleton. Since use on the simulator and userserver is somewhat different the class does not enforce a singleton or provide an extern.

Definition at line 53 of file lllogtextmessage.h.


Constructor & Destructor Documentation

LLLogTextMessage::LLLogTextMessage ( const LLHost dataserver  )  [inline]

Definition at line 56 of file lllogtextmessage.h.

LLLogTextMessage::~LLLogTextMessage (  ) 

Definition at line 40 of file lllogtextmessage.cpp.

References llendl, llwarns, mQueue, and S32.


Member Function Documentation

void LLLogTextMessage::flush (  ) 

Definition at line 86 of file lllogtextmessage.cpp.

References _PREHASH_DataBlock, _PREHASH_FromAgentId, _PREHASH_GlobalX, _PREHASH_GlobalY, _PREHASH_LogTextMessage, _PREHASH_Message, _PREHASH_Time, _PREHASH_ToAgentId, LLMessageSystem::addF64Fast(), LLMessageSystem::addStringFast(), LLMessageSystem::addU32Fast(), LLMessageSystem::addUUIDFast(), f, gMessageSystem, mDataserver, mPendingSize, mQueue, LLMessageSystem::newMessageFast(), LLMessageSystem::nextBlockFast(), NULL, LLMessageSystem::sendReliable(), and TRUE.

Referenced by log().

void LLLogTextMessage::log ( const LLUUID from,
const LLUUID to,
F64  global_x,
F64  global_y,
const char *  mesg 
)

Definition at line 67 of file lllogtextmessage.cpp.

References flush(), LLLogTextMessage::LLLogTextMessageData::mMessage, mPendingSize, mQueue, and S32.

void LLLogTextMessage::log ( const LLUUID from,
F64  global_x,
F64  global_y,
const char *  mesg 
)

Definition at line 58 of file lllogtextmessage.cpp.

References log(), and LLUUID::null.

void LLLogTextMessage::log ( const LLUUID from,
const LLUUID to,
const char *  mesg 
)

Definition at line 49 of file lllogtextmessage.cpp.

Referenced by log().


Member Data Documentation

LLHost LLLogTextMessage::mDataserver [protected]

Definition at line 89 of file lllogtextmessage.h.

Referenced by flush().

S32 LLLogTextMessage::mPendingSize [protected]

Definition at line 96 of file lllogtextmessage.h.

Referenced by flush(), and log().

std::deque<LLLogTextMessageData> LLLogTextMessage::mQueue [protected]

Definition at line 92 of file lllogtextmessage.h.

Referenced by flush(), log(), and ~LLLogTextMessage().


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