#include <lllogtextmessage.h>
Collaboration diagram for LLLogTextMessage:
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< LLLogTextMessageData > | mQueue |
S32 | mPendingSize |
Classes | |
struct | LLLogTextMessageData |
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.
LLLogTextMessage::LLLogTextMessage | ( | const LLHost & | dataserver | ) | [inline] |
Definition at line 56 of file lllogtextmessage.h.
LLLogTextMessage::~LLLogTextMessage | ( | ) |
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.
LLHost LLLogTextMessage::mDataserver [protected] |
S32 LLLogTextMessage::mPendingSize [protected] |
std::deque<LLLogTextMessageData> LLLogTextMessage::mQueue [protected] |
Definition at line 92 of file lllogtextmessage.h.
Referenced by flush(), log(), and ~LLLogTextMessage().